Back to Home
tmonk icon

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

Run Command
uvx --from mcp-stata mcp-stata

Environment 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

Stats

Interest Score42
Security Score3
Cost ClassMedium
Avg Tokens3900
Stars1
Forks0
Last Update2025-12-14

Tags

StataMCPAI AssistantData AnalysisEconometrics