MCP server · Audited from source
Python Interpreter MCP server
by yzfly/mcp-python-interpreterNOASSERTION licenceAudited 7 Oct 2026 · source 858b5910b5f0
Is it safe? No — BLOCK, grade D (69/100). It exposes 10 tools: 5 read, 4 write and 1 destructive. The audit recorded 4 findings (0 critical, 2 high, 1 medium, 0 low). Maintainer's description: MCP Python Interpreter: run python code. Python-mcp-server, mcp-python-server, Code Executor
Cite
Cite this page
ModelsAtlas. “Python Interpreter MCP server (yzfly/mcp-python-interpreter)”. Retrieved 7 Oct 2026. https://modelsatlas.com/mcp/yzfly/python-interpreter
Why this is BLOCK. The audit found 0 critical and 2 high findings; the most severe is Code injection at mcp_python_interpreter/server.py:97. 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 7 Oct 2026
4 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
- FilesystemDeclared1 observation
- NetworkNone observedNothing seen in the source
- ShellDeclared2 observations
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Findings (4)
Sorted by severity
HIGHCode injectioncode.eval_exec · mcp_python_interpreter/server.py:97
result_value = eval(code, self.locals)
- Why
- evaluates text as code
- Fix
- remove; use a parser or a dispatch table
HIGHCode injectioncode.eval_exec · mcp_python_interpreter/server.py:102
exec(code, self.locals)
- Why
- evaluates text as code
- Fix
- remove; use a parser or a dispatch table
MEDIUMFilesystem / pathmcp.destructive_tools
clear_session
- Why
- 1 tool(s) can delete or overwrite
- Fix
- prefer a read-only mode or scoped tokens; the page states the blast radius
INFOSupply chainprompt.pipe_to_shell · README.md:89
curl -LsSf https://astral.sh/uv/install.sh | sh
- Why
- No further detail recorded for this rule.
- Fix
- —
Tools it exposes
10 declared in source · 1 destructive
1 tool can delete or overwrite. An agent that can be talked into calling a tool can be talked into calling this one, so give it a token scoped to what you need.
| Tool | What it does | Risk |
|---|---|---|
clear_session | No description in the source | destructive |
install_package | No description in the source | write |
run_python_code | No description in the source | write |
run_python_file | No description in the source | write |
write_file | No description in the source | write |
list_directory | No description in the source | read |
list_installed_packages | No description in the source | read |
list_python_environments | List all available Python environments (system Python and conda environments). | read |
list_sessions | List all active REPL sessions. | read |
read_file | No description in the source | read |
Safer alternatives
modelcontextprotocol/ruby-sdk
The official Ruby SDK for the Model Context Protocol servers and clients.
wildcard-official/deepcontext-mcp
DeepContext is an MCP server that adds symbol-aware semantic search to Claude Code, Codex CLI, and other agents for faster, smarter context on large codebases.
mcp-use/mcp-use-ts
mcp-use is the framework for MCP with the best DX - Build AI agents, create MCP servers with UI widgets, and debug with built-in inspector. Includes client SDK, server SDK, React hooks, and powerful dev tools.
Audit history
- ✕BLOCK D 69 / 100
First audit ·
858b5910b5f0
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 Python Interpreter MCP server
What is the Python Interpreter MCP server?
What tools does Python Interpreter expose?
Is Python Interpreter safe to connect to an agent?
What credentials does Python Interpreter need?
How does Python Interpreter run?
How current is this page?
I already installed Python Interpreter. What should I do?
Can the verdict change?
Sources
- yzfly/mcp-python-interpreter on GitHub — the source we read, its licence, stars and activityObserved · 7 Oct 2026
- ModelsAtlas trust audit — BLOCK verdict for commit 858b5910b5f0Observed · 7 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.
- What is the Python Interpreter MCP server?
- What tools does Python Interpreter expose?
- Is Python Interpreter safe to connect to an agent?