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

MCP server · Audited from source

Python REPL MCP server

by hdresearch/mcp-pythonMIT licenceAudited 8 Oct 2026 · source 4c6eb554a97a

PyPI mcp-pythonstdio★ 42
✕BLOCKGrade D · 69/100 · 8 Oct 2026 · 4c6eb55

Is it safe? No — BLOCK, grade D (69/100). It exposes 3 tools: 1 read, 2 write and 0 destructive. The audit recorded 3 findings (0 critical, 3 high, 0 medium, 0 low). Maintainer's description: A python repl for MCP

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “Python REPL MCP server (hdresearch/mcp-python)”. Retrieved 8 Oct 2026. https://modelsatlas.com/mcp/hdresearch/python-repl

Why this is BLOCK. The audit found 0 critical and 3 high findings; the most severe is Code injection at src/mcp_python/server.py:105. 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.

Trust audit

Audit 0.4.1 · full source read 8 Oct 2026

Trust score69/100✕BLOCK D
0 critical3 high0 medium0 low0 info

3 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

  • FilesystemNone observedNothing seen in the source
  • NetworkNone observedNothing seen in the source
  • ShellDeclared3 observations
  • DependenciesPinnedNothing floats
  • SecretsNone foundNo keys in source

Findings (3)

Sorted by severity

HIGHCode injectioncode.eval_exec · src/mcp_python/server.py:105
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
exec(code, self.global_namespace)
Why
evaluates text as code
Fix
remove; use a parser or a dispatch table
HIGHCode injectioncode.eval_exec · src/mcp_python/server.py:121
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
last_value = eval(last_line, self.global_namespace)
Why
evaluates text as code
Fix
remove; use a parser or a dispatch table
HIGHCode injectioncode.eval_exec · src/mcp_python/server.py:176
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
exec(f"import {package.split('[')[0]}", self.global_namespace)
Why
evaluates text as code
Fix
remove; use a parser or a dispatch table

Tools it exposes

3 declared in source · 0 destructive

1 read2 write0 destructive
ToolWhat it doesRisk
execute_pythonExecute Python code and return the output. Variables persist between executions.write
install_packageInstall a Python package using uvwrite
list_variablesList all variables in the current sessionread

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 D 69 / 100

    First audit · 4c6eb554a97a

Questions about Python REPL MCP server

What is the Python REPL MCP server?
A python repl for MCP
What tools does Python REPL expose?
3 in total: 1 read-only, 2 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Python REPL safe to connect to an agent?
No — not without reading the findings first. The audit graded it D (69/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 Python REPL need?
No credential environment variables were found in its source, so it appears to need none.
How does Python REPL run?
It speaks stdio, so it runs as a local process your client starts. It is published on PyPI as mcp-python.
How current is this page?
The grade is for one exact copy of the source (4c6eb554a97a), read on 2026-10-08. The repository is watched and re-audited when it changes.
I already installed Python REPL. 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

  • hdresearch/mcp-python on GitHub — the source we read, its licence, stars and activityObserved · 8 Oct 2026
  • ModelsAtlas trust audit — BLOCK verdict for commit 4c6eb554a97aObserved · 8 Oct 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.