MCP Run Python
CautionRun Python code in a secure sandbox via MCP tool calls
Install
No auto-install command available for this server.
Check the GitHub repository for setup instructionsSafety Report
details
No authentication on the sandbox execution endpoint by default; relies on caller trust
details
HTTP transport mode available; CORS configuration not documented
details
No rate limiting documented for the sandbox execution endpoint
details
Project explicitly retired due to security: 'no safe way to run Python within Pyodide safely' — Python code can execute arbitrary JavaScript. Consider Monty (github.com/pydantic/monty) as replacement.
details
Minimal dependencies; runs Python in Pyodide/Deno WebAssembly sandbox. NOTE: project retired — arbitrary JavaScript execution possible via Pyodide. Maintainers now recommend Monty instead.
details
Open source; originally in pydantic/pydantic-ai, now at pydantic/mcp-run-python (archived/retired)
details
MIT License (Pydantic organization)
details
Project has been retired by maintainers. Replacement is pydantic/monty.
Compatibility
Tools Provided (1)
run_python_code Executes Python code in a sandboxed WebAssembly environment (Pyodide/Deno). Automatically detects and installs required dependencies, captures stdout/stderr, handles async code, and returns detailed error reports. WARNING: project retired due to security issues — Pyodide allows arbitrary JavaScript execution.
Frequently Asked Questions
What is MCP Run Python?
Run Python code in a secure sandbox via MCP tool calls
What tools does MCP Run Python provide?
MCP Run Python provides 1 tools including run_python_code. Each tool can be called by AI agents to perform specific operations.
Is MCP Run Python safe to use?
MCP Run Python is rated Caution. Some security checks raised warnings. Review the safety report on this page for details before use.
What are alternatives to MCP Run Python?
Similar MCP servers include Serena, DesktopCommanderMCP, Container Use. Each serves a similar purpose but may differ in features, language, and compatibility.
Similar MCP Servers
Serena
CautionA fully-featured coding agent that relies on symbolic code operations by using language servers.
DesktopCommanderMCP
CautionA swiss-army-knife that can manage/execute programs and read/write/search/edit code and text files.
Container Use
UntestedContainerized environments for coding agents. Multiple agents can work independently, isolated in fresh containers and git branches. No conflicts, many experiments. Full execution history, terminal access to agent environments, git workflow. Any agent/model/infra stack.