Stata MCP Server
by aliveranmeio.github.aliveranme/stata-mcpv1.0.10
通过 pystata 驱动真实 Stata 的 MCP 服务器:数据加载/清洗/建模/诊断/图形导出,75 个工具覆盖完整计量工作流。
context tax
queued
security
queued
cold start
queued
freshness
Maintained40d ago
Install Stata MCP server
Install in Claude Code
claude mcp add stata-aliveranme -e STATA_HOME='<stata-home>' -- npx -y @aliveranme/stata-mcpInstall in Cursor
{
"mcpServers": {
"stata-aliveranme": {
"command": "npx",
"args": [
"-y",
"@aliveranme/stata-mcp"
],
"env": {
"STATA_HOME": "<stata-home>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"stata-aliveranme": {
"command": "npx",
"args": [
"-y",
"@aliveranme/stata-mcp"
],
"env": {
"STATA_HOME": "<stata-home>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"stata-aliveranme": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@aliveranme/stata-mcp"
],
"env": {
"STATA_HOME": "<stata-home>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"stata-aliveranme": {
"command": "npx",
"args": [
"-y",
"@aliveranme/stata-mcp"
],
"env": {
"STATA_HOME": "<stata-home>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| STATA_HOME | yes | — | Stata 安装目录(含 utilities/pystata),如 /Applications/StataNow |
| STATA_EDITION | — | — | Stata 版本 mp|se|be |
| STATA_ALLOWED_ROOTS | — | — | 路径沙箱白名单(分号分隔);可选 |
Freshness
Maintained — last maintenance signal 40d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-08-30 · 40d ago · GitHub
Latest release
2026-08-16 · 54d ago · GitHub · v1.0.10
Package published
no data · npm/PyPI
Registry entry updated
2026-08-16 · 54d ago · official registry · v1.0.10
FAQ
›How do I install the Stata MCP server in Claude Code?
Run: claude mcp add stata-aliveranme -e STATA_HOME='<stata-home>' -- npx -y @aliveranme/stata-mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Stata require an API key?
Yes. It expects STATA_HOME.
›Can I use Stata as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Stata in the official MCP registry?
Yes, as io.github.aliveranme/stata-mcp.