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
{
"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 statspaiCursor
{
"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
{
"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.
| Name | Required | Description |
|---|---|---|
STATSPAI_MCP_DATA_ROOTS | No | Directories the server may read data files from, separated by the OS path separator. Unset: any readable path. |
STATSPAI_MCP_PROFILE | No | Size 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
Similar MCP servers
More other MCP servers
color-space
colorjs/color-space
Conversions across 221 color spaces, tested against cited sources: CSS strings, gamut, LUTs.
Active · last commit Nov 12, 2026
OtherJavaScriptHookdeck CLI
hookdeck/hookdeck-cli
CLI for Hookdeck: forward webhooks to localhost (ngrok alternative), manage and query Event Gateway resources (sources, connections, destinations, events), run the MCP server for AI agents.
Active · last commit Nov 13, 2026
OfficialOtherGoFlutter MCP Toolkit
Arenukvern/mcp_flutter
Inspect and drive Flutter debug apps/games: semantic snapshots, search, and custom client tools.
Active · last commit Nov 13, 2026
OtherDartJacobian
morluto/jacobian
Executable mathematics and independent verification for AI agents.
Active · last commit Nov 6, 2026
OtherPythonFunplay Cocos MCP
FunplayAI/funplay-cocos-mcp
stdio bridge for the local Cocos Creator Editor MCP server from FunplayAI/funplay-cocos-mcp.
Active · last commit Nov 10, 2026
OfficialOtherJavaScriptMapbox MCP Server
mapbox/mcp-server
Geospatial intelligence with Mapbox APIs like geocoding, POI search, directions, isochrones, etc.
Active · last commit Nov 11, 2026
OfficialOtherTypeScript
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.