Code Execution ModeSAFE
An MCP server that executes Python code in isolated rootless containers with optional MCP server proxying. Implementation of Anthropic's and Cloudflare's ideas for reducing MCP tool definitions context bloat.
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](https://mseep.ai/app/elusznik-mcp-server-code-execution-mode)
Stop paying 30,000 tokens per query. This bridge implements Anthropic's discovery pattern with rootless security—reducing MCP context from 30K to 200 tokens while proxying any stdio server.
[](https://www.anthropic.com/engineering/code-execution-with-mcp) [](https://blog.cloudflare.com/code-mode/) [](https://www.docker.com/blog/dynamic-mcps-stop-hardcoding-your-agents-world/) [](https://machinelearning.apple.com/research/codeact) [](https://modelcontextprotocol.io/) [](https://mseep.ai/app/4a84c349-1795-41fc-a299-83d4a29feee8)
Overview
This bridge implements the "Code Execution with MCP" pattern, a convergence of ideas from industry leaders:
- Apple's [CodeAct](https://machinelearning.apple.com/research/codeact): "Your LLM Agent Acts Better when Generating Code."
- Anthropic's [Code execution with MCP](https://www.anthropic.com/engineering/code-execution-with-mcp): "Building more efficient agents."
- Cloudflare's [Code Mode](https://blog.cloudflare.com/code-mode/): "LLMs are better at writing code to call MCP, than at calling MCP directly."
- Docker's [Dynamic MCPs](https://www.docker.com/blog/dynamic-mcps-stop-hardcoding-your-agents-world/): "Stop Hardcoding Your Agents’ World."
- **Terminal Bench's [Terminus](
3c15429b69d2OBSERVED · 2026-10-03Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add code-execution -- uvx code-execution
{
"mcpServers": {
"code-execution": {
"command": "uvx",
"args": [
"code-execution"
]
}
}
}Exposed tools (1)
1 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
echo | read | Echo the provided message |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (5)
exec(entrypoint, namespace)
result = eval(compiled, namespace, namespace)
mcp, toon-format, pytest, pytest-asyncio
- Ubuntu/Debian: `sudo apt-get install -y podman` or `curl -fsSL https://get.docker.com | sh`
curl -LsSf https://astral.sh/uv/install.sh | sh
Gates applied: no_behavioural_pass.
3c15429b69d2full audit observations/trust-audit/mcp-server/elusznik__code-execution-mode.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-03 | 3c15429b69d2 | SAFE | B | 89 | first audit |
Questions
What is the Code Execution Mode MCP server?
An MCP server that executes Python code in isolated rootless containers with optional MCP server proxying. Implementation of Anthropic's and Cloudflare's ideas for reducing MCP tool definitions context bloat.
What tools does Code Execution Mode expose?
1 in total: 1 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Code Execution Mode safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Code Execution Mode need?
No credential environment variables were found in its source, so it appears to need none.
How does Code Execution Mode run?
It speaks stdio, so it runs as a local process your client starts. It is published on PyPI as code-execution.
How current is this page?
The grade is for one exact copy of the source (3c15429b69d2), read on 2026-10-03. The repository is watched and re-audited when it changes.