stata-mcp

Let LLM help you achieve your regression with Stata: AI-Powered Stata Code Generation & Regression Analysis.

https://github.com/sepinetam/stata-mcp

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.5%) to scientific vocabulary

Keywords

ai-coding econometrics llm mcp stata statistical-analysis
Last synced: 6 months ago · JSON representation ·

Repository

Let LLM help you achieve your regression with Stata: AI-Powered Stata Code Generation & Regression Analysis.

Basic Info
  • Host: GitHub
  • Owner: SepineTam
  • License: apache-2.0
  • Language: Python
  • Default Branch: master
  • Homepage: https://www.statamcp.com
  • Size: 5.15 MB
Statistics
  • Stars: 37
  • Watchers: 2
  • Forks: 4
  • Open Issues: 0
  • Releases: 17
Topics
ai-coding econometrics llm mcp stata statistical-analysis
Created 11 months ago · Last pushed 6 months ago
Metadata Files
Readme Changelog License Citation

README.md

logo

Stata-MCP

Let LLM help you achieve your regression analysis with Stata ✨

en cn fr sp PyPI version PyPI Downloads License: Apache 2.0 Issue Ask DeepWiki


Looking for others?

  • Trace DID: If you want to fetch the newest information about DID (Difference-in-Difference), click here. Now there is a Chinese translation by Sepine Tam and StataMCP-Team 🎉
  • Jupyter Lab Usage (Important: Stata 17+) here
  • NBER-MCP & AER-MCP 🔧 under construction
  • Econometrics-Agent
  • TexIV: A machine learning-driven framework that transforms text data into usable variables for empirical research using advanced NLP and ML techniques
  • A VScode or Cursor integrated here. Confused it? 💡 Difference

💡 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. json { "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. bash 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 bash pip install stata-mcp

Download source code and compile ```bash git clone https://github.com/sepinetam/stata-mcp.git cd stata-mcp

uv build `` Then you can find the compiledstata-mcpbinary in thedist` directory. You can use it directly or add it to your PATH.

For example: bash uvx /path/to/your/whl/stata_mcp-1.6.2-py3-non-any.whl # here is the wheel file name, you can change it to your version

📝 Documentation

💡 Questions

🚀 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

Apache License 2.0

📚 Citation

If you use Stata-MCP in your research, please cite this repository using one of the following formats:

BibTeX

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.6.2} }

APA

Song Tan. (2025). Stata-MCP: Let LLM help you achieve your regression analysis with Stata (Version 1.6.0) [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.6.0. https://github.com/sepinetam/stata-mcp.

📬 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

Star History Chart

Owner

  • Login: SepineTam
  • Kind: user

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
  - family-names: "Tan"
    given-names: "Song"
    email: "sepinetam@gmail.com"
title: "Stata-MCP: Let LLM help you achieve your regression analysis with Stata"
version: 1.6.2
date-released: 2025-08-15
url: "https://github.com/sepinetam/stata-mcp"
repository-code: "https://github.com/sepinetam/stata-mcp"
license: Apache-2.0

GitHub Events

Total
  • Create event: 18
  • Issues event: 7
  • Release event: 14
  • Watch event: 33
  • Delete event: 4
  • Issue comment event: 5
  • Push event: 117
  • Public event: 1
  • Pull request event: 11
  • Fork event: 2
Last Year
  • Create event: 18
  • Issues event: 7
  • Release event: 14
  • Watch event: 33
  • Delete event: 4
  • Issue comment event: 5
  • Push event: 117
  • Public event: 1
  • Pull request event: 11
  • Fork event: 2

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 356 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 17
  • Total maintainers: 1
pypi.org: stata-mcp

Let LLM help you achieve your regression analysis with Stata

  • Versions: 17
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 356 Last month
Rankings
Dependent packages count: 9.0%
Stargazers count: 15.0%
Average: 26.5%
Forks count: 31.3%
Dependent repos count: 50.8%
Maintainers (1)
Last synced: 6 months ago

Dependencies

pyproject.toml pypi
  • dotenv >=0.9.9
  • mcp [cli]>=1.6.0
  • numpy >=2.2.4
  • pandas >=2.2.3
uv.lock pypi
  • 124 dependencies