Stata MCP Server

Enable Claude Code, Codex, OpenClaw, and other AI agents to safely invoke Stata on your local device for data analysis.

Local serverstdioPython

What is the Stata MCP Server?

Enable Claude Code, Codex, OpenClaw, and other AI agents to safely invoke Stata on your local device for data analysis.

What it actually does

  • Security Guard — Blocks dangerous commands (!, shell, erase, etc.)
  • RAM Monitoring — Prevents memory exhaustion with configurable limits
  • Layered Configuration — User, project, environment, and Linux system config support
  • Beta async stata_do execution — Supports concurrent MCP calls for multi-client workflows
  • Configurable data access boundaries — Data info URL guard and optional direct read_log boundary
  • Cross-platform support (macOS, Windows, Linux)

Configuration

  • uv - Package installer and virtual environment manager - Claude Code, Codex, OpenClaw or other Agents - Stata License - Your API-KEY from LLM If you want to check whether your device is supported, you can run: It displays basic information about your device and checks whether your setup is supported. Example output >

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Stata MCP Server

{
  "mcpServers": {
    "stata-mcp": {
      "command": "uvx",
      "args": [
        "stata-mcp"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

  • uv - Package installer and virtual environment manager - Claude Code, Codex, OpenClaw or other Agents - Stata License - Your API-KEY from LLM If you want to check whether your device is supported, you can run: It displays basic information about your device and checks whether your setup is supported. Example output >

Example prompts to try

  • “Use Stata MCP to Name.”
  • “Use Stata MCP to Command.”
  • “Use Stata MCP to Cross.”

Frequently asked questions

Enable Claude Code, Codex, OpenClaw, and other AI agents to safely invoke Stata on your local device for data analysis. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.