| name | stata |
| description | Show mcp-stata identity, connected tools, and status. Use when the user asks if mcp-stata is available, asks about access to the toolkit, or asks what Stata tools are connected. |
ToolSearch query="select:stata_manage_session"
Call stata_manage_session(action="detect") to verify the Stata connection. If stata_manage_session(action="detect") fails, report the error and suggest the user set STATA_PATH to the Stata executable path.
Then respond with:
__ __
____ ___ _________ _____/ /_____ _/ /_____ _
/ __ `__ \/ ___/ __ \______/ ___/ __/ __ `/ __/ __ `/
/ / / / / / /__/ /_/ /_____(__ ) /_/ /_/ / /_/ /_/ /
/_/ /_/ /_/\___/ .___/ /____/\__/\__,_/\__/\__,_/
/_/ mcp-stata
mcp-stata is connected. Stata {version} ({flavor}) detected.
MCP Tools:
stata_run โ execute do-file code & ad-hoc commands
stata_load_data โ load datasets (sysuse / webuse / path)
stata_inspect_data โ describe, codebook, summary, list, get rows
stata_manage_graphs โ list, export, or export_all graphs
stata_get_help โ Stata command documentation
stata_get_results โ fetch r() / e() / s() stored results
stata_read_log โ tail or search log output
stata_manage_session โ create/stop sessions, history diff, UI channel
stata_task_status โ poll background task progress
stata_control โ break or cancel running work
Slash Commands:
/stata-run <code> โ run arbitrary Stata code
/stata-inspect [var] โ describe/summarize current dataset
/stata-results โ fetch stored r()/e()/s() results
/stata-graph [name] โ export graph(s)
/stata-lint <path> โ lint a .do or .ado file
/stata-log [path] โ tail log output
/stata-help <topic> โ look up Stata documentation
Resources (MCP):
stata://data/summary stata://data/metadata
stata://graphs/list stata://variables/list
stata://results/stored