Stata MCP Server
io.github.tmonk/mcp-stata·v1.0.4·86 starsA lightweight MCP server for Stata.
86 stars382 downloads/wk
Reviews
Write oneNobody has reviewed Stata MCP Server yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Stata MCP Server tools (11, 2 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
codebookReturns codebook/summary for a specific variable.
describeReturns variable descriptions, storage types, and labels (equivalent to Stata's `describe` command).
export_graphExports a stored Stata graph to an image format (PNG) and returns it.
export_graphs_allExports all graphs in memory to base64-encoded PNGs. Returns a JSON envelope listing graph names and images.
get_dataReturns a slice of the active dataset as a JSON-formatted list of dictionaries.
get_helpReturns the official Stata help text for a given command or topic.
get_stored_resultsReturns the current stored results (r-class and e-class scalars/macros) as a JSON-formatted string.
list_graphsLists the names of all graphs currently stored in Stata's memory.
load_dataLoads data using sysuse/webuse/use heuristics based on the source string. Automatically appends , clear unless clear=False.
run_commandwrite actionExecutes a specific Stata command.
run_do_filewrite actionExecutes a .do file with optional trace output and JSON envelope.
Public scan report
scanner v0.1.10 · 2026-10-01 · same rubric, same numbers if you re-run it
- Code scan8 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 142 days ago8/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How Stata MCP Server compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 82/100
- higher than 63% of 48,255 servers
- Tools
- 11
- the typical server has 7
- Tools that change things
- 18%
- typical: 0%. Fewer write tools means less an agent can break
- GitHub stars
- 86
- more than 95% of 28,688 servers
- Downloads a week
- 382
- more than 84% of 12,191 servers with a package
What its tools let an agent do: 9 read · 2 run or deploy
Install Stata MCP Server in Claude Code, Cursor or VS Code
claude mcp add mcp-stata -- uvx mcp-stata
Stata MCP Server: common questions
- Is Stata MCP Server safe?
- Mostly: it is graded B (82/100). Read the Stata MCP Server safety report
- How do I install Stata MCP Server?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Stata MCP Server need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Stata MCP Server maintained?
- The last commit was 176 days ago (2026-05-12). The latest release is v1.0.4.
- How does Stata MCP Server compare with other MCP servers?
- safety score 82/100 (higher than 63% of 48,255 servers); tools 11 (the typical server has 7); tools that change things 18% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.