mcp-for-stata

MCP.Pizza Chef: SepineTam

Your assistant can open a dataset sitting on your own computer, run the regression or summary you described, and read the results back without you typing a single Stata command. One install command sets it up for Claude Desktop, Claude Code, Cursor, Codex, Cline, Gemini CLI, OpenCode, and OpenClaw at once, and there are double-click installers for Mac and Windows. You need Stata already installed and licensed, since this drives your existing copy rather than replacing it.

Data
Spreadsheets

Use This MCP server To

Run a regression on my dataset by describing it Summarize a dataset before I start working with it Ask what a set of results actually means Rerun an analysis with different controls Produce a results table for a paper Check my data for oddities before analyzing it

README

MCP-for-Stata: Integrate Stata into your agent

Enable Claude Code, Codex, OpenClaw, and other AI agents to safely invoke Stata on your local device for data analysis.

Stata is a registered trademark of StataCorp LLC. This project is an independent community-developed tool and is not affiliated with, endorsed by, or sponsored by StataCorp LLC.

en cn fr es Publish to PyPI PyPI version PyPI Downloads License: AGPL 3.0 Issue Ask DeepWiki


🆕 News

mcp-for-stata FAQ

Do I need Stata already?
Yes. A licensed copy on your own computer is required, because this drives Stata rather than replacing it.
Which apps does it work in?
Claude Desktop, Claude Code, Cursor, Codex, Cline, Gemini CLI, OpenCode, and OpenClaw.
How hard is setup?
One command installs it for every supported assistant, and there are double-click installers for Mac and Windows.
Where does my data go?
Stata runs on your own machine against your local files.
Can I use this to run a regression without knowing Stata?
Yes. You describe the analysis you want and it writes and runs the commands for you.
Is the project free?
The project itself is free and open source; you supply your own assistant and your own Stata licence.