Skip to content
appsgit

Stata MCP

Stata MCP is an MCP server that lets LLM help you achieve your regression analysis with Stata. It has 263 GitHub stars, is released under the AGPL-3.0 license and runs locally with uvx stata-mcp. It works with Claude Desktop, Claude Code, Cursor and VS Code.

github.com/SepineTam/mcp-for-stata (opens in a new tab)

Install Stata MCP

Generated from the server's MCP registry entry. Replace your-value with your own values.

Claude Desktop

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

Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.

Claude Code

claude mcp add --transport stdio stata-mcp -- uvx stata-mcp

Cursor

.cursor/mcp.json
{
  "mcpServers": {
    "stata-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "stata-mcp"
      ]
    }
  }
}

Project file; use ~/.cursor/mcp.json to enable it in every project.

VS Code

.vscode/mcp.json
{
  "servers": {
    "stata-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "stata-mcp"
      ]
    }
  }
}

Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).

About Stata MCP

MCP-for-Stata is an safety first open-source MCP server and CLI tool with Skills lets any AI agent you use invoke local Stata on your device for regression analysis, econometrics, paper replication, and empirical research. It provides command guards, resource monitoring, automatic log capture, and cross-platform client installation, while you retain control of your data and Stata license.

  • mcp
  • stata
  • econometrics
  • llm
  • statistical-analysis
  • empirical
  • empirical-research
  • social-science
  • social-science-research
  • dsh-plugin

FAQ

Stata MCP FAQ

Still curious? Email info@appsgit.com.

What is Stata MCP?

Stata MCP is an MCP server that lets LLM help you achieve your regression analysis with Stata. It has 263 GitHub stars, is released under the AGPL-3.0 license and runs locally with uvx stata-mcp. It works with Claude Desktop, Claude Code, Cursor and VS Code. The source code is at github.com/SepineTam/mcp-for-stata.

How do I install the Stata MCP MCP server?

Add the command uvx stata-mcp to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.

Is Stata MCP free?

The server is open source under the AGPL-3.0 license, so running it is free. It does not declare any required API key.

Is Stata MCP actively maintained?

The most recent commit was on Oct 6, 2026. The latest release is v1.25.1, published Oct 6, 2026. appsgit only lists MCP servers with a commit in the last six months and re-checks every server daily.