Skip to main content

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 code
    • inspect_data / codebook -- data exploration
    • get_results -- extract r()/e()/c() results
    • export_graph -- graph export with auto-capture
    • search_log / install_package -- utility tools
    • list_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

stata_ai_fusion-0.1.0.tar.gz (98.4 kB view details)

Uploaded Source

Built Distribution

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

stata_ai_fusion-0.1.0-py3-none-any.whl (37.9 kB view details)

Uploaded Python 3

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

Hashes for stata_ai_fusion-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2cf13c44967efa7aa621e17db7188880551131707f7d4abe840c427f827fc678
MD5 26a5f87b67ae07230e454438b044bd8f
BLAKE2b-256 d4458d653e84657bb24a59ef893fd144a2e4473a3221b730e18872263038b91c

See more details on using hashes here.

File details

Details for the file stata_ai_fusion-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for stata_ai_fusion-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 270e533e82f11d931e98b5d7988d93e93a8ff16d6aa2cd40dd88e1183070b23e
MD5 2814d61270e1c168b3482394f5bd1de9
BLAKE2b-256 542d77addaa8d794cd84d46fb0073e287977912d6eb3cbe9c3293a776be44754

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