mcp-stata@3.3.0
CAUTION· not startedPublisher 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.
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.
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 deviationsStatic findings
SUDO=$(command -v sudo || true)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.printf " %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.curl -fsSL ${INSTALL_URL_SH} | bashFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.detail "Fallback: curl -LsSf ${INSTALL_FALLBACK_SH} | bash"Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.curl -fsSL https://${host}/install.sh | bashFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.diff --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.# 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.# Fallback: curl -fsSL ${INSTALL_FALLBACK_SH} | bashFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.res = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.r'(?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.r'(?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.printf " %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.result = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.res = 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.completed = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.… 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.res = 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.# 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.curl -fsSL https://${host}/install.sh | bashFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.res = 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.logger.error(f"Failed to kill session {self.id} worker: {e}")Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.".netrc",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose."sh": "https://raw.githubusercontent.com/tmonk/mcp-stata/main/plugin/install.sh",Fix: Pin versions and sources; vendor anything fetched at install time.# 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.block_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.result = 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.curl -fsSL ${INSTALL_URL_SH} | bashFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.detail "Fallback: curl -LsSf ${INSTALL_FALLBACK_SH} | bash"Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.… 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.subprocess.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.return subprocess.check_output(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.# Fallback: curl -fsSL ${INSTALL_FALLBACK_SH} | bashFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.Cost to the agent
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%- Pipe-to-shell pattern≈ +9 on the totalBuild commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
- 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.
- Privileged sudo command≈ +4 on the totalBuild commands from fixed arguments; do not interpolate untrusted strings into a shell.
- 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.
- 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.
- Direct script execution from GitHub raw URL≈ +4 on the totalPin versions and sources; vendor anything fetched at install time.