detect
Returns metadata about the Stata installation (version, flavor, OS) and optionally SSC packages.
How to use it
detect is exposed by the MCP Stata MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the detect tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install MCP Stata
$
uvx --refresh --refresh-package mcp-stata --from mcp-stata@latest mcp-stataOther tools in MCP Stata (4)
action
describe, codebook, summary, search, list, get, or lint.
history_diff
returns tracked changes in variables/macros and dataset dimensions.
history_stats
returns retained window metadata (historysize, earliestcommand, latestcommand, maxhistoryentries).
lint
performs static analysis of .do and .ado files for modern best practices.