mcp-stata
by tmonk
Overview
Connects AI assistants to a local Stata installation for executing commands, inspecting data, exporting graphics, and programmatically verifying results.
Installation
uvx --from mcp-stata mcp-stataEnvironment Variables
- STATA_PATH
- STATA_MCP_LOGLEVEL
Security Notes
The `run_command` tool directly executes arbitrary Stata code provided by the LLM. Stata itself has capabilities to execute shell commands (e.g., `shell rm -rf /` or `! rm -rf /`), which means an uncontrolled LLM could potentially lead to arbitrary operating system command execution on the host machine. The `run_do_file` and `load_data` functions also introduce risk by executing external scripts or loading data from potentially untrusted paths/URLs, but the direct command injection via `run_command` is the most critical concern. Without strong LLM guardrails or execution within an isolated sandbox (like a container with restricted privileges), running this server is risky.
Similar Servers
5ire
A desktop AI assistant and MCP (Model Context Protocol) client that integrates with various LLMs, supports external tools via MCP servers, and manages a local knowledge base.
PowerBI-Desktop-MCP
Enables AI assistants to programmatically interact with Power BI Desktop models for data exploration, analysis, and modification.
us-census-bureau-data-api-mcp
This MCP server provides a standardized client-server interface to query and interact with various U.S. Census Bureau data APIs, allowing AI assistants to access demographic and geographic information.
emacs-mcp-server
Exposes Emacs functionality as standardized tools to Large Language Models (LLMs) via the Model Context Protocol (MCP) over Unix domain sockets.