tmonk/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.

60
/ 100
Established

Implements automatic Stata installation discovery and uses the official `pystata` module (bundled with Stata) to execute commands via stdio transport, with built-in startup do-file handling that mirrors native Stata's profile loading and automatic re-execution after `clear all`. Integrates with Claude Desktop, Cursor, Windsurf, Antigravity, and VS Code through standard MCP configuration, supporting streaming graph caching and programmatic access to Stata's stored results (`r()`, `e()`) for LLM-driven statistical validation.

35 stars and 6,305 monthly downloads. Available on PyPI.

Maintenance 10 / 25
Adoption 16 / 25
Maturity 22 / 25
Community 12 / 25

How are scores calculated?

Stars

35

Forks

5

Language

Python

License

AGPL-3.0

Last pushed

Mar 03, 2026

Monthly downloads

6,305

Commits (30d)

0

Dependencies

9

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/mcp/tmonk/mcp-stata"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.