This server enables interaction with Stata for data analysis and management through five key capabilities:
Read Log Files: Retrieve and return the content of specified log files
Get Data Information: Obtain descriptive statistics for data files, with optional encoding and variable list specifications
Write Dofiles: Create new Stata dofiles with provided content
Append Dofiles: Add Stata code to existing dofiles or create new ones if they don't exist
Execute Stata Code: Run Stata commands by executing specified dofiles through Stata
Supports running Stata statistical analysis on macOS systems, with Windows support planned for future releases.
Looking for other Stata integrations or others?
A VScode or Cursor integrated here. Confused it? 💡 Difference
Jupyter Lab Usage (Important: Stata 17+) here
NBER-MCP 🔧 under construction
💡 Quick Start
For more detailed usage information, visit the Usage guide.
And some advanced usage, visit the Advanced guide
Prerequisites
uv - Package installer and virtual environment manager
Claude, Cline, ChatWise, or other LLM service
Stata License
Your API-KEY from LLM
Installation
📝 Documentation
For more detailed usage information, visit the Usage guide.
Advanced Usage, visit the Advanced
Some questions, visit the Questions
Difference with Stata-MCP@hanlulong, visit the Difference
💡 Questions
🚀 Roadmap
macOS support
Windows support
Additional LLM integrations
Performance optimizations
⚠️ Disclaimer
This project is for research purposes only. I am not responsible for any damage caused by this project. Please ensure you have proper licensing to use Stata.
For more information, refer to the Statement.
🐛 Report Issues
If you encounter any bugs or have feature requests, please open an issue.
📄 License
MIT License and Extensions
📚 Citation
If you use Stata-MCP in your research, please cite this repository using one of the following formats:
BibTeX
APA
Chicago
📬 Contact
Email: sepinetam@gmail.com
Or contribute directly by submitting a Pull Request! We welcome contributions of all kinds, from bug fixes to new features.
❤️ Acknowledgements
The author sincerely thanks the Stata official team for their support and the Stata License for authorizing the test development.
✨ Star History
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
An MCP server that lets Large Language Models interact with Stata software to perform regression analysis and other statistical operations.
Related MCP Servers
- -securityAlicense-qualityAn MCP server that enables Large Language Models to retrieve, analyze, and query metric data from Prometheus databases through pre-defined routes.Last updated -30MIT License
- -securityFlicense-qualityAn MCP server that enables language models to access code intelligence features like completions, definitions, and references across multiple programming languages through the Language Server Protocol.Last updated -
- -securityAlicense-qualityAn MCP server that enables large language models to interact directly with MongoDB databases, allowing them to query collections, inspect schemas, and manage data through natural language.Last updated -219MIT License
- -securityAlicense-qualityA high-performance Model Context Protocol (MCP) server designed for large language models, enabling real-time communication between AI models and applications with support for session management and intelligent tool registration.Last updated -2MIT License