Live survey304 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

MCP server · Audited from source

Stata MCP server

by hanlulong/stata-mcpMIT licenceAudited 30 Sep 2026 · source 265c09938fbb

npm stata-mcp 0.5.3streamable-http★ 500
✕BLOCKGrade F · 58/100 · 30 Sep 2026 · 265c099

Is it safe? No — BLOCK, grade F (58/100). It exposes 1 tool: 0 read, 1 write and 0 destructive. The audit recorded 24 findings (0 critical, 3 high, 5 medium, 13 low). Maintainer's description: Stata MCP Extension for VS Code, Cursor, and Antigravity IDE

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “Stata MCP server (hanlulong/stata-mcp)”. Retrieved 30 Sep 2026. https://modelsatlas.com/mcp/hanlulong/stata

Why this is BLOCK. The audit found 0 critical and 3 high findings; the most severe is Code injection at src/check-python.js:32. Each finding is listed below with its file and line.

Why this page is still public. People search for this server by name. Hiding it would leave them with the README's word alone; here they see what the code does. We list it so you can decide, and we do not show connect commands for BLOCK servers.

3 MCP servers are called Stata. You are viewing hanlulong/stata-mcp. Compare all 3 →

Trust audit

Audit 0.4.1 · full source read 30 Sep 2026

Trust score58/100✕BLOCK F
0 critical3 high5 medium13 low3 info

24 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.

What the source does

  • FilesystemDeclared3 observations
  • NetworkDeclared9 observations
  • ShellDeclared10 observations
  • DependenciesNot pinnedSome ranges float
  • SecretsNone foundNo keys in source

Findings (24)

Sorted by severity

HIGHCode injectioncode.eval_exec · src/check-python.js:32
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
exec(command, { maxBuffer: 1024 * 1024 * 10 }, (error, stdout, stderr) => {
Why
evaluates text as code
Fix
remove; use a parser or a dispatch table
HIGHCode injectioncode.eval_exec · src/start-server.js:264
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
serverProcess = exec(cmdString, {
Why
evaluates text as code
Fix
remove; use a parser or a dispatch table
HIGHPrivilege escalation / persistencepriv.escalate · src/check-python.js:66
F-06 Privilege escalation / persistenceCWE-269 · CWE-250Layer L1
console.log('Option 1 (may require sudo): curl -LsSf https://astral.sh/uv/install.sh | sudo sh');
Why
asks for elevated privileges
Fix
—
MEDIUMFilesystem / pathfs.system_paths · src/check-python.js:160
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
'/usr/local/bin/uv',
Why
No further detail recorded for this rule.
Fix
—
MEDIUMPrompt injectionprompt.hidden_style · docs/incidents/GRAPH_VIEWER_BLANK_PANEL.md:172
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
<div class="error" style="display:none;">Failed to load graph: graph1 (path: /Users/.../graph1.png)</div>
Why
No further detail recorded for this rule.
Fix
—
MEDIUMPrompt injectionprompt.hidden_style · docs/incidents/GRAPH_VIEWER_BLANK_PANEL.md:322
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
return '<!DOCTYPE html><html><body style="background:red;color:white;padding:20px"><h1>TEST</h1><p>graphs: ' + graphCount + '</p></body></html>';
Why
No further detail recorded for this rule.
Fix
—
MEDIUMPrompt injectionscope.undeclared_system · <declared scope>
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
system use found in code, not declared in the description
Why
the description does not admit a capability the code has
Fix
declare system use in the description, or remove it
MEDIUMAuth / authzmcp.remote_no_auth
F-10 Auth / authzCWE-287 · CWE-862Layer L3
streamable-http
Why
a network transport with no auth environment variable found
Fix
require a token
LOWInventory / provenanceinv.hidden_file · .vscodeignore
F-13 Inventory / provenanceCWE-1104Layer L0
.vscodeignore
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInsecure cryptocrypto.weak_hash · src/session_manager.py:97
F-09 Insecure cryptoCWE-327 · CWE-338Layer L1
digest = hashlib.sha1(raw_session_id.encode("utf-8", errors="replace")).hexdigest()[:10]
Why
No further detail recorded for this rule.
Fix
—
LOWInsecure cryptocrypto.weak_hash · src/stata_mcp_server.py:251
F-09 Insecure cryptoCWE-327 · CWE-338Layer L1
digest = hashlib.sha1(raw_session_id.encode("utf-8", errors="replace")).hexdigest()[:10]
Why
No further detail recorded for this rule.
Fix
—
LOWInsecure cryptocrypto.weak_hash · src/stata_worker.py:113
F-09 Insecure cryptoCWE-327 · CWE-338Layer L1
digest = hashlib.sha1(raw_value.encode("utf-8", errors="replace")).hexdigest()[:10]
Why
No further detail recorded for this rule.
Fix
—
LOWInsecure cryptocrypto.weak_hash · src/stata_worker.py:487
F-09 Insecure cryptoCWE-327 · CWE-338Layer L1
seed_hash = int(hashlib.md5(seed_input.encode()).hexdigest()[:8], 16)
Why
No further detail recorded for this rule.
Fix
—
LOWInsecure cryptocrypto.weak_hash · src/stata_worker.py:538
F-09 Insecure cryptoCWE-327 · CWE-338Layer L1
seed_hash = int(hashlib.md5(seed_input.encode()).hexdigest()[:8], 16) % 2147483647
Why
No further detail recorded for this rule.
Fix
—
LOWSupply chainsupply.unpinned · package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
adm-zip, axios, resolve, @types/glob, @types/mocha, @types/vscode, @typescript-eslint/eslint-plugin, @typescript-eslint/parser
Why
15 dependency range(s) float
Fix
pin exact versions or ship a lockfile
LOWPrompt injectionprompt.authority_framing · docs/incidents/STREAMING_IMPLEMENTATION_GUIDE.md:182
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
- Get full access to `ServerSession`
Why
No further detail recorded for this rule.
Fix
—
LOWSupply chainprompt.pipe_to_shell · README.md:446
F-08 Supply chainCWE-829 · CWE-1357Layer L2
curl -LsSf https://astral.sh/uv/install.sh | sh   # macOS/Linux
Why
No further detail recorded for this rule.
Fix
—
LOWSupply chainprompt.pipe_to_shell · README.md:578
F-08 Supply chainCWE-829 · CWE-1357Layer L2
curl -LsSf https://astral.sh/uv/install.sh | sh
Why
No further detail recorded for this rule.
Fix
—
LOWSupply chainprompt.pipe_to_shell · README.zh-CN.md:446
F-08 Supply chainCWE-829 · CWE-1357Layer L2
curl -LsSf https://astral.sh/uv/install.sh | sh   # macOS/Linux
Why
No further detail recorded for this rule.
Fix
—
LOWSupply chainprompt.pipe_to_shell · README.zh-CN.md:578
F-08 Supply chainCWE-829 · CWE-1357Layer L2
curl -LsSf https://astral.sh/uv/install.sh | sh
Why
No further detail recorded for this rule.
Fix
—
LOWSupply chainprompt.pipe_to_shell · docs/troubleshooting.md:56
F-08 Supply chainCWE-829 · CWE-1357Layer L2
curl -LsSf https://astral.sh/uv/install.sh | sh
Why
No further detail recorded for this rule.
Fix
—
INFOInventory / provenanceinv.oversize · images/demo.mp4
F-13 Inventory / provenanceCWE-1104Layer L0
images/demo.mp4
Why
23698233 bytes not read
Fix
—
INFOInventory / provenanceinv.oversize · images/demo_2x.gif
F-13 Inventory / provenanceCWE-1104Layer L0
images/demo_2x.gif
Why
20576384 bytes not read
Fix
—
INFOInventory / provenanceinv.oversize · images/pystata.png
F-13 Inventory / provenanceCWE-1104Layer L0
images/pystata.png
Why
1419901 bytes not read
Fix
—

Tools it exposes

1 declared in source · 0 destructive

0 read1 write0 destructive
ToolWhat it doesRisk
stata_run_selectionStata Run Selection Endpoint\n\nRun selected Stata code and return the output\n\n### Responses:\n\n**200**: Successful Response (Success Response)write

Safer alternatives

We could not match this server to a job, so we cannot suggest a like-for-like alternative. Read-only servers are the least-privilege place to start.

Audit history

  1. ✕BLOCK F 58 / 100

    First audit · 265c09938fbb

README badge

Badges show the current verdict, BLOCK included

ModelsAtlas: BLOCK FMODELSATLASBLOCK · F

A badge cannot be hidden by the maintainer while the verdict is BLOCK. Fix the findings, push, and the re-audit updates it.

Questions about Stata MCP server

What is the Stata MCP server?
Stata MCP Extension for VS Code, Cursor, and Antigravity IDE
What tools does Stata expose?
1 in total: 0 read-only, 1 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Stata safe to connect to an agent?
No — not without reading the findings first. The audit graded it F (58/100) and found 3 critical or high issues in the source. Each one is listed on this page with the file and line it is on.
What credentials does Stata need?
No credential environment variables were found in its source, so it appears to need none.
How does Stata run?
It speaks streamable-http, so it runs as a service you connect to over the network. It is published on npm as stata-mcp at 0.5.3.
How current is this page?
The grade is for one exact copy of the source (265c09938fbb), read on 2026-09-30. The repository is watched and re-audited when it changes.
Which Stata MCP server is the right one?
sepinetam/stata-mcp. 3 servers share the name; see the side-by-side comparison.
I already installed Stata. What should I do?
Remove it from your client's MCP configuration, then rotate any API keys and tokens that were in your environment while it ran.
Can the verdict change?
Yes. The repository is watched and re-audited when its source changes. If the findings are removed the verdict updates, and the history on this page shows it.

Sources

  • hanlulong/stata-mcp on GitHub — the source we read, its licence, stars and activityObserved · 30 Sep 2026
  • ModelsAtlas trust audit — BLOCK verdict for commit 265c09938fbbObserved · 30 Sep 2026

Spotted something wrong? Report a correction · Methodology

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.