MCP server · Audited from source
Stata MCP server
by hanlulong/stata-mcpMIT licenceAudited 30 Sep 2026 · source 265c09938fbb
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
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 →
- sepinetam/stata-mcp★ 263!CAUTION
- hanlulong/stata-mcp★ 500✕BLOCK
- tmonk/mcp-stata★ 86✕BLOCK
Trust audit
Audit 0.4.1 · full source read 30 Sep 2026
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
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
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
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
'/usr/local/bin/uv',
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMPrompt injectionscope.undeclared_system · <declared scope>
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
streamable-http
- Why
- a network transport with no auth environment variable found
- Fix
- require a token
LOWInsecure cryptocrypto.weak_hash · src/session_manager.py:97
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
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
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
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
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
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
- Get full access to `ServerSession`
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWSupply chainprompt.pipe_to_shell · README.md:446
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
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
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
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
curl -LsSf https://astral.sh/uv/install.sh | sh
- Why
- No further detail recorded for this rule.
- Fix
- —
INFOInventory / provenanceinv.oversize · images/demo.mp4
images/demo.mp4
- Why
- 23698233 bytes not read
- Fix
- —
INFOInventory / provenanceinv.oversize · images/demo_2x.gif
images/demo_2x.gif
- Why
- 20576384 bytes not read
- Fix
- —
INFOInventory / provenanceinv.oversize · images/pystata.png
images/pystata.png
- Why
- 1419901 bytes not read
- Fix
- —
Tools it exposes
1 declared in source · 0 destructive
| Tool | What it does | Risk |
|---|---|---|
stata_run_selection | Stata 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
- ✕BLOCK F 58 / 100
First audit ·
265c09938fbb
README badge
Badges show the current verdict, BLOCK included
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?
What tools does Stata expose?
Is Stata safe to connect to an agent?
What credentials does Stata need?
How does Stata run?
How current is this page?
Which Stata MCP server is the right one?
I already installed Stata. What should I do?
Can the verdict change?
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.
- What is the Stata MCP server?
- What tools does Stata expose?
- Is Stata safe to connect to an agent?