Browse/Web & Browser/Python Sandbox

Python Sandbox

by pydantic · Added 26d ago

15.7k

Install

npx -y @pydantic/mcp-run-python

About

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.

Tags

Web & Browsermcp-serverpythonnpm