MCP Server + Skill for Stata: execute commands, inspect data, and generate high-quality Stata code with AI
Project description
Stata AI Fusion
MCP Server + Skill Knowledge Base + VS Code Extension for Stata.
A three-in-one Stata AI integration: let AI directly execute Stata code, generate high-quality statistical analysis code, and provide a complete IDE experience in VS Code.
Features
- MCP Server: 10 tools that let AI agents operate Stata directly
run_command/run_do_file-- execute codeinspect_data/codebook-- data explorationget_results-- extract r()/e()/c() resultsexport_graph-- graph export with auto-capturesearch_log/install_package-- utility toolslist_sessions/close_session-- session management
- Skill Knowledge Base: 5,600+ lines of Stata knowledge
- Econometrics, causal inference, survival analysis, clinical data analysis
- 14 reference documents with Progressive Disclosure architecture
- VS Code Extension: complete Stata IDE experience
- Syntax highlighting (350+ functions)
- 30 code snippets
- Run code / .do files with one keypress
- Graph preview panel
Quick Start
MCP Server (Claude Desktop / Claude Code / Cursor)
# One-command launch with uvx
uvx --from stata-ai-fusion stata-ai-fusion
Or configure in your AI assistant's MCP settings:
{
"mcpServers": {
"stata": {
"command": "uvx",
"args": ["--from", "stata-ai-fusion", "stata-ai-fusion"]
}
}
}
VS Code Extension
code --install-extension stata-ai-fusion-0.1.0.vsix
Skill Only (Claude.ai)
Download stata-ai-fusion-skill.zip from the
Releases page,
then upload via Claude.ai Settings > Skills.
Requirements
- Stata 17+ installed locally (MP, SE, IC, or BE)
- Python 3.11+ (for MCP server)
- VS Code 1.85+ (for extension)
Supported Platforms
- macOS (Intel & Apple Silicon)
- Linux
- Windows
Development
git clone https://github.com/SexyERIC0723/stata-ai-fusion.git
cd stata-ai-fusion
uv sync
uv run pytest tests/ -v
License
MIT -- see LICENSE for details.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stata_ai_fusion-0.1.0.tar.gz.
File metadata
- Download URL: stata_ai_fusion-0.1.0.tar.gz
- Upload date:
- Size: 98.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2cf13c44967efa7aa621e17db7188880551131707f7d4abe840c427f827fc678
|
|
| MD5 |
26a5f87b67ae07230e454438b044bd8f
|
|
| BLAKE2b-256 |
d4458d653e84657bb24a59ef893fd144a2e4473a3221b730e18872263038b91c
|
File details
Details for the file stata_ai_fusion-0.1.0-py3-none-any.whl.
File metadata
- Download URL: stata_ai_fusion-0.1.0-py3-none-any.whl
- Upload date:
- Size: 37.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
270e533e82f11d931e98b5d7988d93e93a8ff16d6aa2cd40dd88e1183070b23e
|
|
| MD5 |
2814d61270e1c168b3482394f5bd1de9
|
|
| BLAKE2b-256 |
542d77addaa8d794cd84d46fb0073e287977912d6eb3cbe9c3293a776be44754
|