Help us improve
Share bugs, ideas, or general feedback.
From mcp-stata
Executes arbitrary Stata code or .do files and displays results, stdout, errors, or graph notes. Useful for running statistical analyses and scripts directly in chats.
npx claudepluginhub tmonk/mcp-stata --plugin mcp-stataHow this skill is triggered — by the user, by Claude, or both
Slash command
/mcp-stata:stata-runThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
The argument is the Stata code or absolute path to a `.do` file to execute.
Dispatches Stata tasks for commands, .do files, regressions, econometrics, graphs, dataset inspection, replication, and errors to mcp-stata tools and specialized research skills.
Provides Stata reference for .do files, data management, econometrics, causal inference, graphics, Mata programming, and packages like reghdfe, estout, did, rdrobust. Aids writing, debugging, explaining code.
Runs Stata do-files, queries data structure, installs ado packages, reads .smcl/.log files, and looks up command documentation via the MCP-for-Stata server.
Share bugs, ideas, or general feedback.
The argument is the Stata code or absolute path to a .do file to execute.
If the argument ends in .do or .ado, call:
stata_run(code=<argument>, is_file=True, echo=True, as_json=True)
Otherwise call:
stata_run(code=<argument>, echo=True, as_json=True)
If success is true, display the stdout output. Note the output is truncated to 5,000 chars; if the response includes a log_path, offer to tail the full log with /stata-log <log_path>.
If success is false, display the error message and rc code. Suggest using /stata-lint <path> for syntax issues or /stata-help <command> for documentation.
If the command produces graphs, note that /stata-graph can export them.