What it is
An MCP server that hands a licensed local Stata install to an agent. The agent writes a do-file, the server runs it through the Stata CLI as a subprocess and returns the execution log; separate tools describe a data file before it is used and read back .log or .smcl output afterwards. A command guard sits in front of execution, and the same tools are also exposed as a standalone CLI toolkit.
Requirements
Your own Stata licence, installed at the default path, with the Stata CLI present on macOS and Linux. uv provides the runtime: uvx stata-mcp install --all writes the config for every supported client, or uvx stata-mcp install -c cc for one of them; the published package is stata-mcp 1.22.0 on PyPI and runs over stdio. uvx stata-mcp doctor reports whether the OS, Python, dependencies, Stata CLI and execution path all check out before you debug a client. Claude Science runs servers in a sandbox that blocks the home directory, so it needs the uv tool paths allowlisted in its own config. Licensed AGPL-3.0.
Setup effort
One command — uvx stata-mcp