Python Sandbox

Provides a browser-compatible Python execution environment with package management capabilities for running code snippets safely w

pydantic 19k ↓ 5.8k
Claude CodeClaude DesktopGeneric
View source ↗

MCP-Run-Python provides a sandboxed environment for executing Python code through a standardized interface. Built with TypeScript and Pyodide, it allows AI assistants to run Python snippets safely in a browser-compatible environment, supporting package installation through PEP 723 script metadata. The server offers both SSE and stdio transport options, handles dependency management automatically, and returns execution results in a structured XML format containing stdout, stderr, and return values. This implementation is particularly valuable for interactive code examples, educational tools, and AI assistants that need to demonstrate or test Python code without requiring a full backend Python environment.

Source

Repository: https://github.com/pydantic/pydantic-ai/tree/HEAD/mcp-run-python

Maintain Python Sandbox?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

Python Sandbox on getagentictools
[![Python Sandbox on getagentictools](https://getagentictools.com/badge/mcp/pydantic-pydantic-ai.svg)](https://getagentictools.com/mcp/pydantic-pydantic-ai?ref=badge)