mcp-for-stata
Run local Stata econometrics from AI agents via MCP
Install
See setup instructions on aidea-labs.comWhat it does
MCP-for-Stata is an open-source MCP server and command-line tool that lets an AI agent drive a locally installed copy of Stata. It is aimed at economists and empirical researchers who want an agent to run regressions, test hypotheses, replicate papers, or review do-files without leaving their own machine. Installation is handled by a uv-based CLI: a single command configures supported agents such as Claude Desktop, Claude Code, Gemini CLI, Cursor, Cline, Codex, OpenCode, OpenClaw and DeepSeek Harness, or you can add a standard JSON server entry pointing at uvx stata-mcp. Related Stata skills are installed by default, and a plugin bundles the server with a Stata language server for syntax awareness. A doctor command checks the operating system, Python, uv, dependencies and the Stata CLI.
Important constraints:
- You must supply your own Stata licence and LLM API key.
- Some clients, notably Claude Science, run in a sandbox that blocks home-directory paths, so allowlisting is required.
- It is an independent community project, not affiliated with StataCorp.
- It is licensed under AGPL-3.0.
Compatibility and authentication
- Connection
- Local
- Transports
- Unspecified
- Authentication
- Unknown
Security and permissions
- When you run the server locally, it runs with your user permissions.
- Authentication type: Unknown.
Repository data
- Stars
- 284
- Last push
- Nov 6, 2026
- License
- AGPL-3.0
- Archived
- No
FAQ
- What license does mcp-for-stata use?
- AGPL-3.0
- Does mcp-for-stata run locally or remotely?
- It runs locally.
- Is mcp-for-stata an official server?
- It is listed as a community server.
Embed a listing badge
<a href="https://aiagentsmarketplace.dev/mcp/mcp-for-stata"><img src="https://aiagentsmarketplace.dev/badges/featured.svg" alt="Featured on AI Agents Marketplace" width="262" height="36"></a>
Comments
No comments yet.