Airsc is free for everyone. If it helps you, support it with $2–$20.

Support
PluginCautionData & analyticsAdvanced

mcp-for-stata

SepineTam · SepineTam/mcp-for-stata

This MCP server integrates Stata statistical software into AI agent workflows, allowing agents to perform regression analysis, econometrics, and empirical research.

Stata-MCP: A MCP server for integrating Stata into your agent loop with a safety-first design.

263 stars36License: AGPL-3.0Updated 12 days ago0 opens

Preview

▍

What you can do with it

  • Run Stata commands via natural language for econometric analysis.
  • Replicate empirical research papers using agent-driven Stata execution.
  • Analyze datasets in Stata with AI agent assistance while ensuring data safety.

Safety check

Caution

Usable, but read the notes first.

  • ●Installer downloads a remote script and pipes it to the shell.scripts/install.sh

Automated scan of the repo files. Always review code you run.

From the README

MCP-for-Stata (Stata-MCP): Run Stata with ANY Agent

MCP-for-Stata is an safety first open-source MCP server and CLI tool with Skills lets any AI agent you use invoke local Stata on your device for regression analysis, econometrics, paper replication, and empirical research. It provides command guards, resource monitoring, automatic log capture, and cross-platform client installation, while you retain control of your data and Stata license.

Turn Claude Code, Codex, and other AI agents into an on-demand research assistant.

Stata is a registered trademark of StataCorp LLC. This project is an independent community-developed tool and is not affiliated with, endorsed by, or sponsored by StataCorp LLC.


💡 Quick Start

You do not need to edit any configuration. Just tell your agent:

Install MCP-for-Stata for yourself globally following the instructions in the GitHub repository at SepineTam/mcp-for-stata.

🆕 News

Finding our newest research? View latest research reports.

Looking for others?

MCP or AI about Stata

Datasets and Information

  • 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.

Why AGPL 3.0 License?

The AGPL 3.0 License is a type of open-source license. It does not affect your daily use, and allows you to use, modify, and distribute this software free of charge, provided that you comply with its terms, such as retaining the original copyright notices.

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,以防止有人滥用本项目进行违背项目初心的事情。

Reason following:

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. View DMCA takedown details.

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

更新: 侵权项目已通过GitHub DMCA被takedown,查看DMCA下架详情。


Installation and Client Configuration

See the Installation Guide for installation methods, client setup, addon/extra options, and verification.

🚀 One-click installation for all clients!

No config, no manual JSON editing. Just one command installs MCP-for-Stata for every supported agent (Claude Code, Codex, OpenClaw, Cursor, Gemini CLI, and more):

uvx stata-mcp install --all

Supported Agents 🤖 Based on our own experience and testing, we recommend using Claude Code, Codex, and OpenClaw. We have found that Claude and DeepSeek are the two best models across any framework.

AgentTagCommand
Claude Desktopclaudeuvx stata-mcp install -c claude
Claude Codeccuvx stata-mcp install -c cc
Gemini CLIgeminiuvx stata-mcp install -c gemini
Cursorcursoruvx stata-mcp install -c cursor
Cline (VScode Extension)clineuvx stata-mcp install -c cline
Codex CLI & Codex Desktopcodexuvx stata-mcp install -c codex
OpenCodeopencodeuvx stata-mcp install -c opencode
OpenClawopenclawuvx stata-mcp install -c openclaw
Claude Science—[Manual config](#a
View source on GitHub