A lightweight Model Context Protocol (MCP) server for Stata, enabling LLM integration with Stata workflows. Execute commands, inspect data, retrieve stored results (r()/e()), and view graphs. Version 3.3.0 requires Python >=3.11.
pip install mcp-stataNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Start the MCP server, specifying the Stata executable path via environment variable or argument.
Update imports: `from mcp_stata import server` and call `server.run(...)`.
Set the `STATA_PATH` environment variable or pass the correct path to `run()`.
Use `os.environ['STATA_PATH']` instead of passing the argument.
Run `pip install mcp-stata` ensuring correct environment (e.g., virtualenv).
Set STATA_PATH environment variable to the full path of your Stata executable.
Verify Stata installation and license, or run Stata manually to check.
No dependency data recorded yet.