Python execute
π§MCP ServerSTUzhy/py_execute_mcp
MCP stdio server that executes Python code inside Pyodide (WebAssembly) using Bun as the runtime, with support for dependency installation and stdout/stderr streaming.
Overview
Python execute is an MCP server that runs Python code inside a Pyodide (WebAssembly) sandbox using Bun as the runtime. It allows AI assistants to execute Python scripts safely with dependency installation support and stdout/stderr streaming, without needing a local Python installation.
Key Features
- WebAssembly sandboxing β Executes Python code inside Pyodide (WASM) for safe, isolated execution
- Dependency installation β Supports inline script metadata for automatic package installation (e.g., pydash, numpy) before execution
- stdout/stderr streaming β Streams output in real-time and returns expression results under RESULT when present
- Standalone packaging β Can be compiled into a single executable with
bun build --compilefor easy deployment, with optional offline Pyodide support
Who is this for?
Developers using Claude Desktop, Cherry Studio, or any MCP-compliant AI client who need a lightweight way to execute Python code without managing a local Python environment. Particularly useful for quick computations, data manipulation, and testing code snippets within AI-assisted workflows.