Grades are a hygiene check, not a security guarantee.

MCP, MCP server

Mcp Stata

mcp-stata - an agentic toolkit for empirical researchers.

Compatibility: Not stated.

Grade D

Two or more Medium findings, or a High finding. Only try it in a sandbox.

Graded by PlugVetRubric v2

Not a guarantee. A hygiene check of the source at the commit shown, not a security audit.

Rescanned at commit a2f9c4abc2c7, unchanged since the check below.

INSTALL_REMOTE_SCRIPT SECRETS_PATH_CREDENTIAL

Why this grade

  • INSTALL_REMOTE_SCRIPT High

    Fetches a script from the network and runs it (a pipe to a shell, or an install hook with a URL).

    plugin/install.ps1, line 43 Write-Host " curl -fsSL ${InstallUrlSh} | bash" -ForegroundColor Cyan

  • SECRETS_PATH_CREDENTIAL Medium

    Mentions a credential store path (~/.ssh, id_rsa, .npmrc, .aws/credentials, credentials.json, .netrc).

    src/mcp_stata/server.py, line 1912 ".netrc",

Any High, or two or more Medium findings, give D. One Medium gives C. Low findings or a security Note give B. Each code names a finding behind the letter.

If you think this grade is wrong, email [email protected] with the entry link and your evidence. We aim to acknowledge within two working days and decide within seven. If we confirm an error, we aim to correct it within 24 hours of confirming it. These are aims, not guarantees.

Grades are a hygiene check of the source at the commit shown, on the date checked, not a security audit or a guarantee. The free directory grades are automated. Before release, a PlugVet engineer reviews every paid report and any grade we hold back, including all F grades, against the source code and the evidence we quote.

What was checked

Plain notes from the hygiene checks.

  • Permissions

    Concern

    can delete files.

    PERMISSION_DELETE_FILES

    plugin/install.ps1, line 577

    Invoke-WithRetry { Invoke-RestMethod https://astral.sh/uv/install.ps1 | Invoke-Expression }

    scripts/benchmarks/run_e2e_benchmark.py, line 69

    result = subprocess.run(cmd, capture_output=True, text=True)

    scripts/install/setup_toolkit.py, line 102

    result = subprocess.run(

    Show more

    scripts/install/setup_toolkit.py, line 591

    shutil.rmtree(link)

    scripts/install/setup_toolkit.py, line 702

    subprocess.run(

    scripts/maintenance/check_server_version.py, line 19

    subprocess.check_output(["hatch", "version"], cwd=ROOT, text=True)

    scripts/maintenance/sync_server_version.py, line 40

    return subprocess.check_output(

    scripts/maintenance/sync_server_version.py, line 177

    subprocess.check_call([sys.executable, str(CATALOG_GENERATOR)], cwd=ROOT)

    src/mcp_stata/discovery.py, line 709

    res = subprocess.run(

    src/mcp_stata/utils.py, line 58

    shutil.rmtree(p, ignore_errors=True)

  • Install and update

    Serious

    install fetches a script from the network. The docs document an installer that pipes a download into a shell.

    INSTALL_REMOTE_SCRIPT INSTALL_DOCUMENTED_INSTALLER

    README.md, line 28

    curl -LsSf https://mcp-stata-install.tdmonk.com/install.sh | bash

    plugin/install.ps1, line 43

    Write-Host " curl -fsSL ${InstallUrlSh} | bash" -ForegroundColor Cyan

    plugin/install.ps1, line 44

    Write-Host " (Fallback: curl -fsSL ${InstallFallbackSh} | bash)" -ForegroundColor DarkGray

    Show more

    plugin/install.sh, line 140

    printf " %b%s%b\n" "${CYAN}" "curl -LsSf ${INSTALL_URL_SH} | bash" "${RESET}"

    plugin/install.sh, line 141

    detail "Fallback: curl -LsSf ${INSTALL_FALLBACK_SH} | bash"

    plugin/install.sh, line 296

    curl -fsSL ${INSTALL_URL_SH} | bash

    plugin/install.sh, line 297

    # Fallback: curl -fsSL ${INSTALL_FALLBACK_SH} | bash

    plugin/install.sh, line 668

    curl -fsSL --retry 5 --retry-delay 2 --retry-connrefused https://astral.sh/uv/install.sh | sh || err "Could not install uv via astral.sh" "$@"

    worker/src/index.js, line 339

    curl -fsSL https://${host}/install.sh | bash

    plugin/hooks/hooks.json, line 9

    "command": "claude plugin marketplace update mcp-stata-marketplace 2>/dev/null; claude plugin update mcp-stata@mcp-stata-marketplace 2>/dev/null; echo 'mcp-stata loaded. Use /stata

  • Network

    Concern

    can reach a host that is not written as a fixed address.

    NETWORK_NO_FIXED_HOST

    plugin/install.sh, line 42

    if command -v curl >/dev/null 2>&1; then

    plugin/install.sh, line 43

    DYNAMIC_CONFIG=$(curl -fsSL --max-time 2 "${GITHUB_RAW_URL}/installer.json" 2>/dev/null || true)

    plugin/install.sh, line 521

    http="$(curl -sS -m "$TELEMETRY_TIMEOUT_SECS" -X POST "$TELEMETRY_URL" \

    Show more

    plugin/install.sh, line 535

    if curl -fsS -m "$TELEMETRY_TIMEOUT_SECS" -X POST "$TELEMETRY_URL" \

    plugin/install.sh, line 648

    curl -fsSL --retry 5 --retry-delay 2 --retry-

    scripts/benchmarks/js_benchmark/benchmark.js, line 30

    const response = await fetch(ARROW_ENDPOINT, {

    worker/dashboard/server.py, line 99

    with urllib.request.urlopen(req, timeout=15) as resp:

    worker/dashboard/server.py, line 127

    with urllib.request.urlopen(req, timeout=15) as resp:

  • Secrets

    Concern

    reads a credential or environment file.

    SECRETS_ENV_READ SECRETS_PATH_CREDENTIAL

    scripts/install/setup_toolkit.py, line 220

    r'(?ms)^\[mcp_servers\.(?:"?mcp-stata"?|"?mcp_stata"?)(?:\.env)?\]\n.*?(?=^\[|\Z)'

    scripts/install/setup_toolkit.py, line 231

    block_lines.append(f"[mcp_servers.{CANONICAL_SERVER_NAME}.env]")

    src/mcp_stata/server.py, line 1912

    ".netrc",

    Show more

    scripts/install/setup_toolkit.py, line 760

    r'(?ms)^\[mcp_servers\.(?:"?mcp-stata"?|"?mcp_stata"?)\](?:\.env)?\n.*?(?=^\[|\Z)'

    src/mcp_stata/server.py, line 1913

    "id_rsa",

    worker/dashboard/server.py, line 84

    api_token = os.environ.get("CF_API_TOKEN", "")

    worker/dashboard/server.py, line 119

    api_token = os.environ.get("CF_API_TOKEN", "")

    worker/dashboard/server.py, line 132

    api_token = os.environ.get("CF_API_TOKEN", "")

    worker/dashboard/server.py, line 207

    api_token = os.environ.get("CF_API_TOKEN", "")

  • Agent instructions

    Pass

    No instruction to ignore earlier instructions or to hide a step.

  • Obfuscation

    Note

    a file was over the read cap and was not fully read.

    OBFUSCATION_FILE_OVER_READ_CAP

    uv.lock, line 1

    version = 1

    src/mcp_stata/stata_client.py, line 1

    from __future__ import annotations

    src/mcp_stata/stata_client.py.bak, line 1

    from __future__ import annotations

  • Licence

    Pass

    A licence file is present (LICENSE).

  • Maintainer activity

    Pass

    The latest commit is within the last 365 days.

Note

Hygiene check of commit a2f9c4abc2c7. can delete files. install fetches a script from the network. The docs document an installer that pipes a download into a shell. can reach a host that is not written as a fixed address. reads a credential or environment file. a file was over the read cap and was not fully read.

Date and source

Date checked:

View source

github.com

Commit graded: a2f9c4abc2c7662e73684f8cf954895c6806ea27

This link goes to the original host. PlugVet does not host or check what you download from there, and installing it is your own decision and risk.

Read how this letter is chosen