stata-mcp  by hanlulong

AI-powered Stata development for VS Code and compatible IDEs

Created 1 year ago
277 stars

Top 93.4% on SourcePulse

GitHubView on GitHub
Project Summary

This extension provides Stata integration for VS Code, Cursor, and Antigravity IDEs, enabling AI-powered Stata development through the Model Context Protocol (MCP). It targets Stata users who leverage modern IDEs and AI assistants, offering benefits such as real-time execution feedback, enhanced code completion, and streamlined data analysis workflows.

How It Works

This extension bridges Stata with modern IDEs (VS Code, Cursor, Antigravity) and AI assistants through the Model Context Protocol (MCP). It enables direct execution of Stata commands, real-time output display, and syntax highlighting for Stata scripts. The core innovation lies in its MCP integration, allowing AI tools like GitHub Copilot and Claude Code to interact with Stata sessions, facilitating AI-driven data analysis and code generation. It leverages the fast uv Python package installer for dependency management.

Quick Start & Requirements

Installation is straightforward via the VS Code Marketplace or by installing a .vsix package for VS Code, Cursor, or Antigravity. Key requirements include Stata 17 or higher and the uv package manager (automatically installed). Initial setup may take up to 2 minutes, with subsequent runs being instantaneous.

Highlighted Details

  • AI Integration: Seamlessly connects with GitHub Copilot, Cursor, Antigravity, Cline, Claude Code, and Codex via MCP for AI-assisted Stata development.
  • Multi-Session Execution: Supports running multiple Stata sessions in parallel, each with isolated environments, ideal for complex workflows.
  • Enhanced Workflow: Features include direct command execution, real-time output, syntax highlighting for .do, .ado, .mata, and .doh files, and an integrated data viewer.
  • Performance: Utilizes uv for rapid Python dependency installation, offering significant speed improvements over traditional package managers.

Maintenance & Community

Maintained by DeepEcon.ai, with contributions from Lu Han. No specific community channels (e.g., Discord, Slack) or roadmap links are provided in the README.

Licensing & Compatibility

The extension is released under the MIT License, permitting broad use and integration, including within commercial applications.

Limitations & Caveats

Requires Stata 17 or higher. Each active Stata session consumes approximately 200-300 MB of RAM, and users must adhere to their Stata license's concurrent instance limitations. Initial setup involves a one-time dependency installation that may take up to two minutes.

Health Check
Last Commit

2 weeks ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
3
Star History
81 stars in the last 30 days

Explore Similar Projects

Starred by George Hotz George Hotz(Author of tinygrad; Founder of the tiny corp, comma.ai), Andrej Karpathy Andrej Karpathy(Founder of Eureka Labs; Formerly at Tesla, OpenAI; Author of CS 231n), and
42 more.

opencode by anomalyco

3.1%
141k
CLI tool for AI-assisted coding in the terminal
Created 11 months ago
Updated 23 hours ago
Feedback? Help us improve.