Skip to content
appsgit

StatsPAI

StatsPAI is an MCP server that adds tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Econometrics and causal inference (DiD, IV, RD, synthetic control, DML) with Stata/R parity grades. It has 375 GitHub stars, is released under the MIT license and runs locally with uvx statspai.

github.com/brycewang-stanford/StatsPAI (opens in a new tab)

Data as of from the GitHub API and the official MCP registry; description from the project's repository. Report an error

Install StatsPAI

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

Claude Desktop

claude_desktop_config.json
{
  "mcpServers": {
    "statspai": {
      "command": "uvx",
      "args": [
        "statspai"
      ],
      "env": {
        "STATSPAI_MCP_DATA_ROOTS": "your-value",
        "STATSPAI_MCP_PROFILE": "your-value"
      }
    }
  }
}

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

Claude Code

claude mcp add --env STATSPAI_MCP_DATA_ROOTS=your-value --env STATSPAI_MCP_PROFILE=your-value --transport stdio statspai -- uvx statspai

Cursor

.cursor/mcp.json
{
  "mcpServers": {
    "statspai": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "statspai"
      ],
      "env": {
        "STATSPAI_MCP_DATA_ROOTS": "your-value",
        "STATSPAI_MCP_PROFILE": "your-value"
      }
    }
  }
}

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

VS Code

.vscode/mcp.json
{
  "servers": {
    "statspai": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "statspai"
      ],
      "env": {
        "STATSPAI_MCP_DATA_ROOTS": "your-value",
        "STATSPAI_MCP_PROFILE": "your-value"
      }
    }
  }
}

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).

Environment variables

Variables the server reads at startup.

NameRequiredDescription
STATSPAI_MCP_DATA_ROOTSNoDirectories the server may read data files from, separated by the OS path separator. Unset: any readable path.
STATSPAI_MCP_PROFILENoSize of the advertised tool list: core, curated or full.

About StatsPAI

Developed and maintained by the Stanford REAP team Published in the Journal of Open Source Software (JOSS) : Wang & Rozelle (2026), 11(125), 10604 · doi:10.21105/joss.10604

  • agent-native
  • ai-agents
  • causal-discovery
  • causal-inference
  • data-science
  • difference-in-differences
  • double-machine-learning
  • econometrics
  • instrumental-variables
  • llm

FAQ

StatsPAI FAQ

Still curious? Email info@appsgit.com.

How do I install the StatsPAI MCP server?

Add the command uvx statspai 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 StatsPAI free?

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

Is StatsPAI actively maintained?

The most recent commit was on Nov 13, 2026. The latest release is v1.23.0, published Aug 24, 2026. appsgit only lists MCP servers with a commit in the last six months.