1. Conduid
  2. Developer Tools
  3. Stata MCP
MCP server · Developer Tools

Stata MCP

Stata MCP Extension for VS Code, Cursor, and Antigravity IDE

Unclaimed AGPL-3.0 devtools
80Excellent

Scored 7 days ago · breakdown

About Stata MCP

Stata MCP is an MCP server published by SepineTam in the Developer Tools category: stata MCP Extension for VS Code, Cursor, and Antigravity IDE.

The repository has 509 stars and 26 forks, with the last commit 3 days ago. Recent commit activity is the strongest signal that reported issues will get attention.

Install

From source
git clone https://github.com/SepineTam/stata-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Stata MCP

Powered by Claude · Grounded in docs

I know everything about Stata MCP. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

3 checks have not been run yet.

Releases

v1.25.2V1.25.2 · 15 Oct 2026Stata-MCP v1.25.2 Release Date: October 15, 2026 Type: Bug Fix What's New Fixes `get_data_info` crashes when CSV or Excel datasets contain `True`/`False` columns (#109). Changes Boolean Summaries: Report Boolean variables as `"type":…
v1.25.1V1.25.1 · 6 Oct 2026Stata-MCP v1.25.1 Release Date: October 6, 2026 Type: Bug Fix and Feature Enhancement What's New Fixes Windows batch-log accumulation and expands the Stata toolbox for agent-driven research workflows. Changes Windows Execution: Clean up…
v1.25.0V1.25.0 · 18 Sep 2026Stata-MCP v1.25.0 Release Date: September 18, 2026 Type: Feature Enhancement What's New GitHub-delivered Stata addons (enabled by default) and opt-in research tools. Changes Installer: Client-specific setup and protected upgrades.…
v1.24.0V1.24.0 · 6 Sep 2026Stata-MCP v1.24.0 Release Date: September 6, 2026 Type: Feature Enhancement and Security What's New Adds auditable Stata execution, local diagnostics, and installed Stata discovery while upgrading to MCP Python SDK 2.x. Changes MCP SDK:…
v1.23.1V1.23.1 · 29 Aug 2026Stata-MCP v1.23.1 Release Date: August 29, 2026 Type: Feature Enhancement and Security What's New Strengthens dependency and CI security while adding clearer Stata output guidance for agent-driven research workflows. Changes Dependencies:…

README

en cn Publish to PyPI Build and Push Docker Images PyPI version PyPI Downloads Issue Ask DeepWiki


Notes: While we strive to make open source accessible to everyone, we regret that we can no longer maintain the Apache-2.0 License. Due to individuals directly copying this project and claiming to be its maintainers, we have decided to change the license to AGPL-3.0 to prevent misuse of the project in ways that go against our original vision.

Notes: 尽管我们希望尽可能让所有人都能从开源中获益,但我们很遗憾地宣布无法继续保持 Apache-2.0 License。由于有人直接抄袭本项目并标榜其为项目维护者,我们不得不将 License 更改为 AGPL-3.0,以防止有人滥用本项目进行违背项目初心的事情。

Background: @jackdark425's repository directly copied this project and claimed to be the sole maintainer. We welcome open source collaboration based on forks, including but not limited to adding new features, fixing existing bugs, or providing valuable suggestions for the project, but we firmly oppose plagiarism and false attribution.

Update: The infringing project has been taken down via GitHub DMCA. Click here to learn about.

背景: @jackdark425 的仓库直接抄袭了本项目并标榜为项目唯一维护者。我们欢迎基于fork的开源协作,包括但不限于添加新的feature、修改已有bug或对项目提出您宝贵的意见,但坚决反对抄袭和虚假署名行为。

更新: 侵权项目已通过GitHub DMCA被takedown,点击这里查看详情。


News:

  • 🦞 OpenClaw Support: Standalone CLI tools for OpenClaw integration (stata-mcp tool), see OpenClaw guide
  • ✨ Claude Code Plugin Support: Official plugin package with MCP server and Stata LSP integration
  • Use Stata-MCP in Claude Code, look here

Finding our newest research? Click here or visit reports website.

MCP or AI about Stata

Datasets and Informations

  • STOP Dataset: StataMCP-Team Opendata Project 📊, we have open-sourced a comprehensive dataset collection for social science research, aiming to enable the future of AI-driven and data-powered research paradigms.
  • 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 and nbstata

💡 Quickly Start

Use Stata-MCP in Claude Code

We can use Stata-MCP in Claude Code as its prefect agentic ability.

Before using it, please make sure you have ever install Claude Code, if you don't know how to install it, visit on GitHub

Generally, you can install Stata-MCP globally for one time, you can run:

claude mcp add stata-mcp --scope user -- uvx stata-mcp

Then, you do not need to watch it again.

If you want to install it locally only for the certain workspace, you can open your terminal and cd to your working directory, and run:

claude mcp add stata-mcp --env STATA_MCP_CWD=$(pwd) --scope local -- uvx --directory $(pwd) stata-mcp

It would nothing happen, you can type claude and type /mcp to find the status.

If you are collaborating with others, you can use project scope for that, with:

claude mcp add stata-mcp --scope project -- uvx stata-mcp

In your working directory, you can find a file named .mcp.json, your mcp config will be placed here.

Then, you can use Stata-MCP in Claude Code. Here are some scenarios for using it:

  • Paper Replication: Replicate empirical studies from economics papers
  • Quick Hypothesis Testing: Validate economic hypotheses through regression analysis
  • Stata Learning Assistant: Learn econometrics with step-by-step Stata explanations
  • Code Organization: Review and optimize existing Stata do-files
  • Result Interpretation: Understand complex statistical outputs and regression results

Install Claude Code Plugin

We provide official native plugin, integrating Stata-MCP maintained by @sepinetam and Stata LSP maintained by @euglevi. Installation commands:

# Install stata-mcp marketplace first
claude plugin marketplace add sepinetam/stata-mcp

# Install plugin to local, project or user scope
claude plugin install stata-toolbox -s local

AI Chat-Bot Client Mode

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

Notes:

  1. If you are located in China, a short uv usage document you can find here.
  2. Claude is the best choice for Stata-MCP, for Chinese, I recommend to use DeepSeek as your model provider as it is cheap and powerful, also the score is highest in China provider, if you are increased in it, visit the report How to use StataMCP improve your social science research.

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 doctor
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.13.0-py3-non-any.whl  # here is the wheel file name, you can change it to your version

📝 Documentation

Core Documentation

Usage Guides

Key Features

  • Security Guard: Blocks dangerous commands (!, shell, erase, etc.)
  • RAM Monitoring: Prevents memory exhaustion with configurable limits
  • Unified Configuration: TOML config + environment variables
  • Cross-platform support (macOS, Windows, Linux)
  • Automatic log capture and error reporting

💡 Questions

🚀 Roadmap

  • macOS support
  • Windows support
  • Additional LLM integrations (With a new webUI)
  • Performance optimizations (Via prompt and context engineering)

For more information, refer to the Statement.

🐛 Report Issues

If you encounter any bugs or have feature requests, please open an issue.

📄 License

GNU Affero General Public License v3.0

📚 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.13.0}
}

APA

Song Tan. (2025). Stata-MCP: Let LLM help you achieve your regression analysis with Stata (Version 1.13.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.13.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.

📃 Statement

The Stata referred to in this project is the commercial software Stata developed by StataCorp LLC. This project is not affiliated with, endorsed by, or sponsored by StataCorp LLC. This project does not include the Stata software or any installation packages; users must obtain and install a validly licensed copy of Stata from StataCorp. This project is licensed under AGPL-3.0. The project maintainers accept no liability for any loss or damage arising from the use of this project or from actions related to Stata.

More information: refer to the Chinese version at [source/docs/README/cn/README.md]; in case of any conflict, the Chinese version shall prevail.

✨ Star History

Star History Chart

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Stata MCP

How do I install Stata MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Stata MCP safe to use with an AI agent?

Its trust score is 80 out of 100 (excellent). It passes 2 of the 3 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Stata MCP still maintained?

Yes — the latest release is v1.25.2 (15 Oct 2026), and the last commit was 3 days ago. The repository has 509 stars.