About Code Execution Mode
Code Execution Mode is an MCP server published by elusznik in the Developer Tools category: 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. Conduid read 1 tool from its source: run_python. No package is published for it, so it installs from a source checkout.
The repository has 346 stars and 33 forks, is licensed GPL-3.0, and its last commit was on 5 Dec 2025. Conduid has no tagged release on record for it. It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass No dynamic code execution and Scoped permissions. Its topics include devtools, docker and code-execution.
Install
git clone https://github.com/elusznik/mcp-server-code-execution-modeTools (1)
run_pythonThe Code Execution MCP engine. Executes Python code in a stateful, persistent rootless sandbox environment similar to a Jupyter notebook. Variables, functions, and imports are preserved across calls. Use this tool for general code execution, data analysis, or when the user asks to 'run code'. Supports loading additional MCP servers via the 'servers' array.| Parameter | Type | Description |
|---|---|---|
| code * | string | Python source code to execute. Call runtime.capability_summary() inside the sandbox for this digest. |
| servers | array | Optional list of MCP servers to make available as mcp_<name> proxies |
| timeout | integer | Execution timeout in seconds |
Security checks
Static checks derived from the repository yesterday. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 3.8K words.
- ✓License declaredThe repository declares the GPL-3.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock.
- !No dynamic code executionScanned 2 source files and found 1 call to eval or shell execution, in mcp_server_code_execution_mode.py:1456. Review how tool inputs reach them before granting credentials.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdiomcp_server_code_execution_mode.py:117
- Starts other programs
- 4 callsmcp_server_code_execution_mode.py:1483, mcp_server_code_execution_mode.py:1647, mcp_server_code_execution_mode.py:1857
- Outbound network calls
- No outbound network calls
- Writes or deletes files
- 4 callsmcp_server_code_execution_mode.py:943, mcp_server_code_execution_mode.py:998, mcp_server_code_execution_mode.py:1039
- Lockfile
- uv.lock
Pattern matches on the source text of 2 files: places to read, not proof of what the code does at run time.
README
The repository's README runs to about 3.8K words, fetched yesterday. The original in the repository is authoritative.
Read full README