Skills/PyPI/mcp-stata

mcp-stata@3.3.0

CAUTION· not started

Publisher claims: "A lightweight Model Context Protocol (MCP) server for Stata. Execute commands, inspect data, retrieve stored results (`r()`/`e()`), and view graphs in your chat interface. Built for economists who want to integrate LLM assistance into their Stata workflow. " Observed in sandbox: no network, touches nothing outside the project, writes no memory.

Registry PyPI (MCP server)Publisher tmonk · publishing for 337 daysInstalls 2,395Last detonated 5d ago

Coverage

Not started: dependency install failed; the server itself was not observed.
Tested
the dependency install step · every file read, file written and host contacted by what ran
Not tested
server startup · the tool list · tool behavior

What this means for the label: Caution here covers what ran. The server's tools were not exercised with a real credential, so nothing about their behavior is asserted; the credential summary below says what to do with that.

Before you give it your token

It will ask for
no credential variables read in the code
Where it talks to
no vendor host named in the codeAlso githubusercontent.com, astral.sh, cloudflare.com, tdmonk.com — not the publisher's domain; check what for before connecting.
What the honeypot saw
no credential files read · no network
What we could not test
server startup · the tool list · tool behavior

Connect it under the guard. Not started: dependency install failed; the server itself was not observed. The code names no credential variable; the guard pins the network to what the honeypot saw and logs every call.

$vet-skills run --net declared -- uvx mcp-stata

Never paste a credential into a chat, a ticket or a report, including ours. How the guard holds it.

Is [email protected] safe to install?

KillerSkills ran it in the KillerSkills honeypot sandbox (2 scenarios; not started: dependency install failed; the server itself was not observed) on 2026-11-09 and scored it 70/100 (Caution). It is not known to be malicious, but it has behaviour or code a security policy should decide on before install. Notable findings: Privileged sudo command; Pipe-to-shell pattern; Pipe-to-shell pattern. Summary: no network, touches nothing outside the project, writes no memory.

Behavior trace

Honeypot run · 0 s · 2 scenarios · 0 deviations
t+CategoryObserved action
0.0sprocessno install scripts in bundle
0.1sprocessdependency install exit 1 ·
0.1sclaimednot started: dependency install failed (exit 1); the server itself was not observed
0.1sprocessscript backend runs setup only
0.1sprocessno install scripts to re-run

Static findings

HIGH
Privileged sudo commandplugin/install.sh:604 · Privileged sudo command — agent may execute with elevated privilegesSUDO=$(command -v sudo || true)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
CRITICAL
Pipe-to-shell patternplugin/install.sh:140 · Pipe-to-shell pattern — downloads and immediately executes remote codeprintf " %b%s%b\n" "${CYAN}" "curl -LsSf ${INSTALL_URL_SH} | bash" "${RESET}"Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST06
CRITICAL
Pipe-to-shell patternplugin/install.sh:296 · Pipe-to-shell pattern — downloads and immediately executes remote codecurl -fsSL ${INSTALL_URL_SH} | bashFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST06
CRITICAL
Pipe-to-shell patternplugin/install.sh:141 · Pipe-to-shell pattern — downloads and immediately executes remote codedetail "Fallback: curl -LsSf ${INSTALL_FALLBACK_SH} | bash"Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST06
CRITICAL
Pipe-to-shell patternworker/src/index.js:339 · Pipe-to-shell pattern — downloads and immediately executes remote codecurl -fsSL https://${host}/install.sh | bashFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST06
HIGH
Script disguised as a text filediff.txt contains a shell or batch scriptdiff --git a/.gitignore b/.gitignore index 055dfa7..b2b09c9 100644 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,4 @@ bFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST06
CRITICAL
Pipe-to-shell patternplugin/install.sh:469 · Pipe-to-shell pattern — downloads and immediately executes remote code# output of `curl … | sh`, not just the banner.Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST06
CRITICAL
Pipe-to-shell patternplugin/install.sh:297 · Pipe-to-shell pattern — downloads and immediately executes remote code# Fallback: curl -fsSL ${INSTALL_FALLBACK_SH} | bashFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST06
MEDIUM
Python subprocess execution detectedsrc/mcp_stata/discovery.py:709 · Python subprocess execution detectedres = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
HIGH
Access to sensitive file pathsscripts/install/setup_toolkit.py:220 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesr'(?ms)^\[mcp_servers\.(?:"?mcp-stata"?|"?mcp_stata"?)(?:\.env)?\]\n.*?(?=^\[|\Z)'Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Access to sensitive file pathsscripts/install/setup_toolkit.py:760 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesr'(?ms)^\[mcp_servers\.(?:"?mcp-stata"?|"?mcp_stata"?)\](?:\.env)?\n.*?(?=^\[|\Z)'Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Remote installer piped to shellplugin/install.sh:140 · Remote installer piped to shellprintf " %b%s%b\n" "${CYAN}" "curl -LsSf ${INSTALL_URL_SH} | bash" "${RESET}"Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST07
MEDIUM
Python subprocess execution detectedscripts/install/setup_toolkit.py:102 · Python subprocess execution detectedresult = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedsrc/mcp_stata/stata_client.py:1062 · Python subprocess execution detectedres = subprocess.run(f'type "{self._persistent_log_path}"', shell=True, capture_output=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedsrc/mcp_stata/stata_client.py:4906 · Python subprocess execution detectedcompleted = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedscripts/install/setup_toolkit.py:702 · Python subprocess execution detectedsubprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
File type combined with upload actionsrc/mcp_stata/toolkit_catalog_data.py:509 · File type combined with upload action — agent may exfiltrate local data files… skills directory\n- Installs the Gemini extension from `plugin/gemini-extension.json`\n- Registers shared `~/.agents/skills/mcp-stata` symlinks for compatible agents\n- Supports latest-by-default installs and explicit version pinning\n\n#…Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.
AST07
MEDIUM
Python subprocess execution detectedsrc/mcp_stata/stata_client.py:1029 · Python subprocess execution detectedres = subprocess.run(f'type "{path}"', shell=True, capture_output=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Remote installer piped to shellplugin/install.sh:469 · Remote installer piped to shell# output of `curl … | sh`, not just the banner.Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST07
MEDIUM
Remote installer piped to shellworker/src/index.js:339 · Remote installer piped to shellcurl -fsSL https://${host}/install.sh | bashFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST07
MEDIUM
Python subprocess execution detectedsrc/mcp_stata/stata_client.py:686 · Python subprocess execution detectedres = subprocess.run(f'type "{smcl_path}"', shell=True, capture_output=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Process kill commandsrc/mcp_stata/sessions.py:390 · Process kill command — agent can terminate processeslogger.error(f"Failed to kill session {self.id} worker: {e}")Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Access to sensitive file pathssrc/mcp_stata/server.py:1912 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files".netrc",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Direct script execution from GitHub raw URLplugin/installer.json:12 · Direct script execution from GitHub raw URL — unverified code source"sh": "https://raw.githubusercontent.com/tmonk/mcp-stata/main/plugin/install.sh",Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
Process kill commandscripts/benchmarks/run_e2e_benchmark.py:88 · Process kill command — agent can terminate processes# Stata bridge might hang on exit if not clean, but script exit should kill it.Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Access to sensitive file pathsscripts/install/setup_toolkit.py:231 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesblock_lines.append(f"[mcp_servers.{CANONICAL_SERVER_NAME}.env]")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Python subprocess execution detectedscripts/benchmarks/run_e2e_benchmark.py:69 · Python subprocess execution detectedresult = subprocess.run(cmd, capture_output=True, text=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Remote installer piped to shellplugin/install.sh:296 · Remote installer piped to shellcurl -fsSL ${INSTALL_URL_SH} | bashFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST07
MEDIUM
Remote installer piped to shellplugin/install.sh:141 · Remote installer piped to shelldetail "Fallback: curl -LsSf ${INSTALL_FALLBACK_SH} | bash"Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST07
MEDIUM
File type combined with upload actionsrc/mcp_stata/toolkit_catalog_data.py:512 · File type combined with upload action — agent may exfiltrate local data files… skills directory\n- Installs the Gemini extension from `plugin/gemini-extension.json`\n- Registers shared `~/.agents/skills/mcp-stata` symlinks for compatible agents\n- Supports latest-by-default installs and explicit version pinning\n\n#…Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.
AST07
MEDIUM
Python subprocess execution detectedscripts/maintenance/check_server_version.py:19 · Python subprocess execution detectedsubprocess.check_output(["hatch", "version"], cwd=ROOT, text=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedscripts/maintenance/sync_server_version.py:40 · Python subprocess execution detectedreturn subprocess.check_output(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Remote installer piped to shellplugin/install.sh:297 · Remote installer piped to shell# Fallback: curl -fsSL ${INSTALL_FALLBACK_SH} | bashFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST07

Cost to the agent

Instructions loaded
≈748 tok
2 files · 81 in bundle
Tool list per prompt
≈0 tok
0 tools · 0 per tool
Handshake
no reply
launch to tools/list, stdio
Undocumented tools
0
description under 20 chars · avg 0

Tokens estimated at four characters each. The tool list is re-read by the agent on every turn, so it is the number to compare between servers that do the same job: ranked across the index.

Known vulnerabilities

No advisories in OSV for mcp-stata@3.3.0 as of 5d ago. This is the package itself, not its dependencies.

What would make this Verified

10 points to 80 · weights: behavior 45%, static 25%, prompt 15%, publisher 15%
  1. Pipe-to-shell pattern≈ +9 on the totalBuild commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
  2. Unclaimed publisher≈ +8 on the totalClaim tmonk: a verified publisher gets +50 on publisher trust. It is free and usually instant with GitHub sign-in.
  3. Privileged sudo command≈ +4 on the totalBuild commands from fixed arguments; do not interpolate untrusted strings into a shell.
  4. Script disguised as a text file≈ +4 on the totalBuild commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
  5. Access to sensitive file paths≈ +4 on the totalStop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
  6. Direct script execution from GitHub raw URL≈ +4 on the totalPin versions and sources; vendor anything fetched at install time.
Publish a new version to PyPI, then queue it here. Not your skill? Claim the handle to get verdict changes by email.Claim tmonkPropose a patch to the maintainer