MCP server
Stata MCP Server
通过 pystata 驱动真实 Stata 的 MCP 服务器:数据加载/清洗/建模/诊断/图形导出,75 个工具覆盖完整计量工作流。
Runs locallyStatus and history
- Pricing
- Open source
- Runs
- Locally
- Version
- 1.0.10
- Listing updated
- 6 days ago
About Stata MCP Server
Stata MCP Server 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 --env STATA_HOME='<STATA_HOME>' -- npx -y @aliveranme/stata-mcpAdd to claude_desktop_config.json
{
"mcpServers": {
"stata-mcp": {
"command": "npx",
"args": [
"-y",
"@aliveranme/stata-mcp"
],
"env": {
"STATA_HOME": "<STATA_HOME>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"stata-mcp": {
"command": "npx",
"args": [
"-y",
"@aliveranme/stata-mcp"
],
"env": {
"STATA_HOME": "<STATA_HOME>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"stata-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@aliveranme/stata-mcp"
],
"env": {
"STATA_HOME": "<STATA_HOME>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"stata-mcp": {
"command": "npx",
"args": [
"-y",
"@aliveranme/stata-mcp"
],
"env": {
"STATA_HOME": "<STATA_HOME>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"stata-mcp": {
"command": "npx",
"args": [
"-y",
"@aliveranme/stata-mcp"
],
"env": {
"STATA_HOME": "<STATA_HOME>"
}
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
STATA_HOMEStata 安装目录(含 utilities/pystata),如 /Applications/StataNowRequiredSTATA_EDITIONStata 版本 mp|se|beSTATA_ALLOWED_ROOTS路径沙箱白名单(分号分隔);可选
Pricing
Open source
Stata MCP Server FAQ
Is Stata MCP Server free?
Yes. Stata MCP Server is open source, so you can use and self-host it for free.
How do I add Stata MCP Server to Claude Code?
Run this command in your terminal: claude mcp add stata-mcp --env STATA_HOME='<STATA_HOME>' -- npx -y @aliveranme/stata-mcp
Where this comes from
- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.