stata-mcp

Installation
SKILL.md

Stata MCP Skill

Instructions

  1. Ensure the stata MCP server is registered (see project README for config) and request it if not already active.
  2. When the user asks for Stata work:
    • Use run_command for ad-hoc syntax (trace=True for call stacks, raw=True for plain output).
    • Use load_data before analyses that require datasets.
    • Use get_data, describe, codebook, or get_variable_list to inspect data.
    • Use run_do_file for provided .do scripts.
    • Use export_graph/export_graphs_all for visualization requests.
    • Use get_help when the user wants Stata documentation.
    • Use get_stored_results to return r()/e() scalars/macros after commands for validation.
    • Use read_log to tail or retrieve output from long-running commands.
    • Use get_ui_channel to obtain a localhost HTTP endpoint for high-volume data browsing.
  3. Surface rc/stderr info back to the user, referencing r()/e() codes.
  4. If Stata isn't auto-discovered, remind the user to set STATA_PATH (examples in README).

Tool quick reference

Installs
1
GitHub Stars
55
First Seen
Jul 28, 2026
stata-mcp — diegosouzapw/awesome-omni-skill