# StatsPAI (MCP server)

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

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

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/brycewang-stanford/StatsPAI |
| GitHub stars | 375 |
| License | MIT |
| Language | Python |
| Transport | stdio |
| Packages | pypi: statspai |
| Remote URL | none |
| Needs API key | no |
| Official | no |
| Works with | Claude Desktop, Claude Code, Cursor, VS Code |
| Category | Other |
| Latest release | v1.23.0 (Aug 24, 2026) |
| Last commit | Nov 13, 2026 |
| MCP registry name | io.github.brycewang-stanford/statspai |

## Install

### Claude Desktop (claude_desktop_config.json)

```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

```sh
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)

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

```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 2026-10-07.

## Environment variables

- `STATSPAI_MCP_DATA_ROOTS`: Directories the server may read data files from, separated by the OS path separator. Unset: any readable path.
- `STATSPAI_MCP_PROFILE`: Size of the advertised tool list: core, curated or full.

## Similar MCP servers

- [color-space](https://appsgit.com/mcp-servers/color-space): Conversions across 221 color spaces, tested against cited sources: CSS strings, gamut, LUTs. (396 stars, CC0-1.0)
- [Hookdeck CLI](https://appsgit.com/mcp-servers/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. (371 stars, Apache-2.0, official)
- [Flutter MCP Toolkit](https://appsgit.com/mcp-servers/flutter-mcp-toolkit): Inspect and drive Flutter debug apps/games: semantic snapshots, search, and custom client tools. (398 stars, MIT)
- [Jacobian](https://appsgit.com/mcp-servers/jacobian): Executable mathematics and independent verification for AI agents. (371 stars, MIT)
- [Funplay Cocos MCP](https://appsgit.com/mcp-servers/funplay-cocos-mcp): stdio bridge for the local Cocos Creator Editor MCP server from FunplayAI/funplay-cocos-mcp. (400 stars, MIT, official)
- [Mapbox MCP Server](https://appsgit.com/mcp-servers/mapbox-mcp-server): Geospatial intelligence with Mapbox APIs like geocoding, POI search, directions, isochrones, etc. (371 stars, MIT, official, needs API key)

---

Canonical page: https://appsgit.com/mcp-servers/statspai
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed daily.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
