mcp-stata
A lightweight Model Context Protocol (MCP) server for Stata. Execute commands, inspect data, retrieve stored results (r()/e()), and view graphs in your chat interface. Built for economists who want to integrate LLM assistance into their Stata workflow.
This MCP server enables LLMs to execute Stata code, inspect data, export graphics, and verify results. It uses the proprietary pystata module included with Stata 17+ and requires Python 3.11+. The server supports various IDEs like Claude Desktop, Cursor, and VS Code via stdio transport.
Features
Compatibility
Quick start
Use cases
Alternatives
Related searches
Comments
- Oakley LeeApr 27, 2026
Stata command execution via MCP makes statistical analysis workflows conversational
- HHarley ThompsonMar 25, 2026
Used for automated statistical analysis pipelines, the command execution is reliable
- RRebel JohnsonMar 15, 2026
Good for researchers who want AI assistance without leaving their Stata environment
- CCorey KimMar 4, 2026
The lightweight design means minimal overhead for existing Stata workflows