MCP-for-Stata (Stata-MCP): Run Stata with ANY Agent
MCP-for-Stata is an safety first open-source MCP server and CLI tool with Skills lets any AI agent you use invoke local Stata on your device for regression analysis, econometrics, paper replication, and empirical research. It provides command guards, resource monitoring, automatic log capture, and cross-platform client installation, while you retain control of your data and Stata license.
Turn Claude Code, Codex, and other AI agents into an on-demand research assistant.
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.
Fork notice. This repository is a fork of SepineTam/stata-mcp that adds Wine mode, so a Windows Stata build can be driven from Linux and macOS. It is licensed under AGPL-3.0, keeps the upstream copyright notices, and is neither affiliated with nor maintained by the upstream project. The README.zh-CN.md / README.fr.md / README.es.md files are the upstream translations and do not describe this fork.

💡 Quick Start
You do not need to edit any configuration. Just tell your agent:
Install MCP-for-Stata for yourself globally following the instructions in the GitHub repository at SepineTam/mcp-for-stata.
🆕 News
Finding our newest research? View latest research reports.
Looking for others?
MCP or AI about Stata
Datasets and Information
- STOP Dataset: StataMCP-Team Opendata Project 📊, we have open-sourced a comprehensive dataset collection for social science research, aiming to enable the future of AI-driven and data-powered research paradigms.
Why AGPL 3.0 License?