Runs Stata commands from VS Code, Cursor and similar editors and shows output, letting agents assist with Stata code.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add stata -- node ./src/start-server.js --port 4000 --force-port~/.codex/config.toml
[mcp_servers.stata]
command = "node"
args = ["./src/start-server.js", "--port", "4000", "--force-port"]
# codex mcp add stata -- node ./src/start-server.js --port 4000 --force-port~/.cursor/mcp.json
{
"mcpServers": {
"stata": {
"command": "node",
"args": [
"./src/start-server.js",
"--port",
"4000",
"--force-port"
]
}
}
}.vscode/mcp.json
{
"servers": {
"stata": {
"type": "stdio",
"command": "node",
"args": [
"./src/start-server.js",
"--port",
"4000",
"--force-port"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"stata": {
"command": "node",
"args": [
"./src/start-server.js",
"--port",
"4000",
"--force-port"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"stata": {
"command": "node",
"args": [
"./src/start-server.js",
"--port",
"4000",
"--force-port"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"stata": {
"command": "node",
"args": [
"./src/start-server.js",
"--port",
"4000",
"--force-port"
]
}
}
}