MCP-for-Stata: one-command install of a Stata MCP server for Claude Code, Codex, OpenClaw, and 7+ AI agents. Run Stata do-files through natural
Stata MCP server exists for a simple reason — assistants are far more useful when they can act on Stata directly instead of describing what you should do. MCP-for-Stata: one-command install of a Stata MCP server for Claude Code, Codex, OpenClaw, and 7+ AI agents. Run Stata do-files through natural language.
Enable Claude Code, Codex, OpenClaw, and other AI agents to safely invoke Stata on your local device for data analysis.
Once Stata is connected, these are the calls the assistant has available:
Name — stata-mcpCommand — ~/.local/bin/stata-mcpCross — platform support (macOS, Windows, Linux)Agent — TagCursor — cursorOpenCode — opencodeOpenClaw — openclawFeature — MCP-for-Stata (this)Agents — AllType — MCP Server + CLI toolkitExecution — do-file via subprocessSafety — Command guard + RAM monitorstata-mcp on PyPI is all you need. Most clients run it directly, so configuration is a few lines and a restart.
Plenty of monitoring and observability servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Stata's toolset — Name, Command, Cross and 11 more — is a fair guide to whether it matches your workflow. It is maintained by Song Tan; worth a glance at recent repository activity before you build anything load-bearing on it.
We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.
| Tool | What it does |
|---|---|
| Name | stata-mcp |
| Command | ~/.local/bin/stata-mcp |
| Cross | platform support (macOS, Windows, Linux) |
| Agent | Tag |
| Cursor | cursor |
| OpenCode | opencode |
| OpenClaw | openclaw |
| Feature | [MCP-for-Stata](https://aidea-labs.com/mcp-for-stata) (this) |
| Agents | All |
| Type | MCP Server + CLI toolkit |
| Execution | do-file via subprocess |
| Safety | Command guard + RAM monitor |
| Logs | Text + SMCL readers |
| Graphs | — |
{
"mcpServers": {
"stata-1": {
"command": "uvx",
"args": ["stata-mcp"]
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
Give your coding agent the full DevTools toolbox: traces, network, console, heap snapshots and Lighthouse.
Dashboards, Prometheus and Loki queries, incidents and alerts — observability by conversation.
Errors with full context — stack traces, issue triage and AI-powered root-cause analysis from Sentry's server.
Enables enhanced web research capabilities for large language models through intelligent search queuing and advanced content extraction.
Automates browser interactions and enables Large Language Models (LLMs) to interact with web pages through Playwright and Chrome DevTools Protocol
Guides tool usage by providing recommendations for MCP tools at each problem-solving stage.