Skip to content
MCP server

Stata MCP

Stata MCP: 20 real tools to read, check, lint, scaffold, build and run Stata code.

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
1.0.0
Listing updated
4 days ago

About Stata MCP

Stata MCP is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Install

Run in a terminal

claude mcp add stata-mcp -- npx -y @mrfentmen/stata-mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "stata-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mrfentmen/stata-mcp"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "stata-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mrfentmen/stata-mcp"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "stata-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mrfentmen/stata-mcp"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "stata-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mrfentmen/stata-mcp"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "stata-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mrfentmen/stata-mcp"
      ]
    }
  }
}

Pricing

Open source

Stata MCP FAQ

Is Stata MCP free?

Yes. Stata MCP is open source, so you can use and self-host it for free.

How do I add Stata MCP to Claude Code?

Run this command in your terminal: claude mcp add stata-mcp -- npx -y @mrfentmen/stata-mcp