Leverage large language models to streamline regression analysis with Stata through Model Context Protocol integration, offering cross-platform support and advanced LLM-powered statistical workflows.
Unlock the full potential of Stata-MCP through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.
Free tier available • No credit card required
Stata-MCP
Let LLM help you achieve your regression analysis with Stata ✨
Looking for other Stata integrations or others?
For more detailed usage information, visit the Usage guide.
And some advanced usage, visit the Advanced guide
# Clone the repository git clone https://github.com/sepinetam/stata-mcp.git cd stata-mcp # Using uv (recommended) to test usable uv run usable.py # Alternative setup with pip # python3.11 -m venv .venv # source .venv/bin/activate # pip install -r requirements.txt
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.
If you encounter any bugs or have feature requests, please open an issue.
MIT License and Extensions
If you use Stata-MCP in your research, please cite this repository using one of the following formats:
@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.3.2} }
Song Tan. (2025). Stata-MCP: Let LLM help you achieve your regression analysis with Stata (Version 1.3.2) [Computer software]. https://github.com/sepinetam/stata-mcp
Song Tan. 2025. "Stata-MCP: Let LLM help you achieve your regression analysis with Stata." Version 1.3.2. https://github.com/sepinetam/stata-mcp.
Email: sepinetam@gmail.com
Or contribute directly by submitting a Pull Request! We welcome contributions of all kinds, from bug fixes to new features.
The author sincerely thanks the Stata official team for their support and the Stata License for authorizing the test development.
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!