- Explore MCP Servers
- stata-mcp
Stata Mcp
What is Stata Mcp
Stata-MCP is a tool that integrates Large Language Models (LLMs) to assist users in performing regression analysis using Stata software.
Use cases
Use cases include academic research projects, data-driven decision making in businesses, and statistical analysis in social sciences.
How to use
To use Stata-MCP, clone the repository, set up the environment with uv or pip, and run the server with the appropriate Stata version. Ensure you have the necessary prerequisites including a Stata license and an API key from an LLM service.
Key features
Key features include support for macOS, integration with various LLM services, and the ability to perform regression analysis efficiently with Stata.
Where to use
Stata-MCP is primarily used in academic research, data analysis, and any field that requires statistical modeling and regression analysis.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Stata Mcp
Stata-MCP is a tool that integrates Large Language Models (LLMs) to assist users in performing regression analysis using Stata software.
Use cases
Use cases include academic research projects, data-driven decision making in businesses, and statistical analysis in social sciences.
How to use
To use Stata-MCP, clone the repository, set up the environment with uv or pip, and run the server with the appropriate Stata version. Ensure you have the necessary prerequisites including a Stata license and an API key from an LLM service.
Key features
Key features include support for macOS, integration with various LLM services, and the ability to perform regression analysis efficiently with Stata.
Where to use
Stata-MCP is primarily used in academic research, data analysis, and any field that requires statistical modeling and regression analysis.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
Stata-MCP
Let LLM help you achieve your regression analysis with Stata ✨
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
- AER-MCP
- Econometrics-Agent
💡 Quick Start
Standard config requires: please make sure the stata is installed at the default path, and the stata cli (for macOS and Linux) exists.
The standard config json as follows, you can DIY your config via add envs.
{
"mcpServers": {
"stata-mcp": {
"command": "uvx",
"args": [
"stata-mcp"
]
}
}
}
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
For the new version, you don’t need to install the stata-mcp package again, you can just use the following command to check whether your computer can use stata-mcp.
uvx stata-mcp --usable uvx stata-mcp --version
If you want to use it locally, you can install it via pip or download the source code.
Download via pip
pip install stata-mcp
Download source code and compile
git clone https://github.com/sepinetam/stata-mcp.git
cd stata-mcp
uv build
Then you can find the compiled stata-mcp binary in the dist directory. You can use it directly or add it to your PATH.
For example:
uvx /path/to/your/whl/stata_mcp-1.4.1-py3-non-any.whl # here is the wheel file name, you can change it to your version
📝 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
- Cherry Studio 32000 wrong
- Cherry Studio 32000 error
- Windows Support
- Network Errors When Running Stata-MCP
🚀 Roadmap
- [x] macOS support
- [x] 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
@software{sepinetam2025stata, author = {Song Tan}, title = {Stata-MCP: Let LLM help you achieve your regression analysis with Stata}, year = {2025}, url = {https://github.com/sepinetam/stata-mcp}, version = {1.4.1} }
APA
Song Tan. (2025). Stata-MCP: Let LLM help you achieve your regression analysis with Stata (Version 1.4.1) [Computer software]. https://github.com/sepinetam/stata-mcp
Chicago
Song Tan. 2025. "Stata-MCP: Let LLM help you achieve your regression analysis with Stata." Version 1.4.1. https://github.com/sepinetam/stata-mcp.
📬 Contact
Email: [email protected]
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
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










