Skip to content

MCP Run Python

Caution

Run Python code in a secure sandbox via MCP tool calls

by pydantic 15,495 MIT Python Beginner stdio

Install

No auto-install command available for this server.

Check the GitHub repository for setup instructions

Safety Report

43% Caution
3 passed 4 warnings
Security
Authentication
details

No authentication on the sandbox execution endpoint by default; relies on caller trust

Warning
CORS Policy
details

HTTP transport mode available; CORS configuration not documented

Info
Rate Limiting
details

No rate limiting documented for the sandbox execution endpoint

Warning
Known CVEs
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.

Warning
Code Quality
Dependency Audit
details

Minimal dependencies; runs Python in Pyodide/Deno WebAssembly sandbox. NOTE: project retired — arbitrary JavaScript execution possible via Pyodide. Maintainers now recommend Monty instead.

Pass
Code Source
details

Open source; originally in pydantic/pydantic-ai, now at pydantic/mcp-run-python (archived/retired)

Pass
License
details

MIT License (Pydantic organization)

Pass
Community
Maintenance Status
details

Project has been retired by maintainers. Replacement is pydantic/monty.

Warning

Learn about our security methodology →

Compatibility

Claude CodeMCP stdio transport works; project retired so no ongoing support
Partial
CursorStandard MCP stdio config should work; not explicitly documented
Partial
VS CodeNo documented VS Code integration
Not Tested
WindsurfNo documented Windsurf integration
Not Tested
Claude DesktopShould work via stdio transport; project is retired
Partial

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