Skip to main content

Let LLM help you achieve your regression analysis with Stata

Project description

Stata-MCP

Let LLM help you achieve your regression analysis with Stata ✨

en cn fr sp PyPI version License: MIT Issue


Looking for other Stata integrations or others?

💡 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

💡 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

@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: 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stata_mcp-1.4.1.tar.gz (2.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stata_mcp-1.4.1-py3-none-any.whl (43.4 kB view details)

Uploaded Python 3

File details

Details for the file stata_mcp-1.4.1.tar.gz.

File metadata

  • Download URL: stata_mcp-1.4.1.tar.gz
  • Upload date:
  • Size: 2.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for stata_mcp-1.4.1.tar.gz
Algorithm Hash digest
SHA256 0810dd62f566255b5c520e3f196ee427ed2acc2541f7c0dd31af5721a45bc2dc
MD5 dfbc200a7a069684b0f2de80d925c531
BLAKE2b-256 8ba849c34fcb7edcd2b27d6f3df58ed3bfcf9b6a2af6d327d7df6eb26d993576

See more details on using hashes here.

File details

Details for the file stata_mcp-1.4.1-py3-none-any.whl.

File metadata

  • Download URL: stata_mcp-1.4.1-py3-none-any.whl
  • Upload date:
  • Size: 43.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for stata_mcp-1.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d54e68588a59215da8e3d12f4f5d40f9c46c7fe3f98da42c1ace881f0b5af9fe
MD5 9997890805027e3a1b272622814dcad2
BLAKE2b-256 8154aa12151d18644c8901623dbda8fac9303dc37a3c98819a9990e7ef69e0f6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page