A Stata integration server based on Model Context Protocol (MCP) that allows AI assistants to execute Stata scripts, fetch data information, and run statistical analysis.
Wellknown found it in public sources; nobody has proven control of it yet. Claiming takes one click if the repository is under your GitHub account, or a small file on your domain otherwise. Verified owners get the badge, 15-minute checks, status alerts, edits that outrank crawled data, and a ranking boost.
Agents can do it too: POST https://wellknown.network/api/v1/claims with {"agent":"aigroup-stata-mcp","method":"well_known_file"} — machine-readable steps at claim.json, guide at /docs/claim.
Everything here was measured by our prober or read from a registry. Nothing is self-reported.
Attributed to the source that supplied each field. Treated as claims, not facts.
# aigroup-stata-mcp [](https://www.python.org/downloads/) [](https://opensource.org/licenses/MIT) [](https://spec.modelcontextprotocol.io/) [](https://pypi.org/project/aigroup-stata-mcp/) 一个基于 Model Context Protocol (MCP) 的 Stata 集成服务器,允许 AI 助手执行 Stata 脚本、获取数据信息和运行统计分析。 ## 功能特性 ### 🚀 核心功能 - **Stata 脚本执行**: 执行 `.do` 文件并捕获日志输出 - **数据信息获取**: 支持 `.dta` 和 `.csv` 文件的描述性统计 - **Stata 命令帮助**: 获取 Stata 内置命令的帮助文档 - **SSC 包管理**: 从 SSC 仓库安装和管理 Stata 包 - **文件操作**: 创建、读取和写入 Stata 脚本文件 ### 🔧 技术特性 - **跨平台支持**: Windows、macOS 和 Linux - **自动 Stata 检测**: 自动查找系统上的 Stata 安装路径 - **多传输协议**: 支持 stdio、SSE、HTTP 和 streamable-http - **结构化输出**: 使用 Pydantic 模型提供类型安全的响应 - **多语言支持**: 中英文界面和提示 - **配置管理**: 支持 TOML 格式的配置文件 ### 📊 数据处理 - **数据格式支持**: Stata (.dta)、CSV (.csv) 文件 - **统计分析**: 描述性统计、变量分析 - **URL 数据源**: 支持从 URL 直接读取数据文件 - **智能编码检测**: 自动检测文件编码和分隔符 ## 快速开始 ### 系统要求 - **Python**: 3.11 或更高版本 - **Stata**: 已安装并配置好环境变量 - **MCP 客户端**: Claude Desktop、通义灵码、roocode、Cherry Studio 或其他兼容 MCP 的客户端 ### 安装 ```bash # 使用 pip 安装 pip install aigroup-stata-mcp # 或使用 uv 安装 uv add aigroup-stata-mcp # 或使用 uvx 直接运行(无需安装) uvx aigroup-stata-mcp ``` ### 配置 #### 配置文件 Stata-MCP 支持使用 TOML 格式的配置文件。配置文件位于项目根目录的 [config.toml](file:///d%3A/aigroup-stata-mcp/config.toml)。 示例配置文件: ```toml name = "aigroup-stata-mcp" instructions = "Stata-MCP lets you and LLMs run Stata do-files and fetch results" website_url = "https://github.com/jackdark425" # Working directory for the server # If not specified, will use default based on OS: # - Linux/macOS: ~/Documents # - Windows: %USERPROFILE%\Documents # working_directory = "/path/to/working/directory" # Path to Stata CLI executable # If not specified, will auto-detect # stata_cli = "/usr/local/stata/sta…
Mapped onto the structured taxonomy from declared text and observed tool names. Confidence shown for derived entries.
Every source is kept verbatim. Field changes are logged as events.