This tool provides an MCP server designed for the secure execution of Python code. It leverages Pyodide running within a Deno environment, ensuring that code is executed in an isolated, sandboxed WebAssembly environment, completely separate from the host operating system. This robust setup makes it ideal for safely running untrusted or potentially risky Python scripts, while offering features like automatic dependency management, comprehensive output capture (stdout, stderr, return values), asynchronous code support, and detailed error reporting.
主要功能
01Asynchronous Support: Runs async code properly
02Complete Results: Captures standard output, standard error, and return values
03Package Management: Automatically detects and installs required dependencies
04Error Handling: Provides detailed error reports for debugging
0512 GitHub stars
06Secure Execution: Run Python code in a sandboxed WebAssembly environment
使用案例
01Integrating Python code execution capabilities into AI agents and applications (e.g., with Pydantic AI).
02Securely executing untrusted Python scripts in an isolated and controlled environment.
03Programmatically running and evaluating Python code blocks within other Python applications using a helper function.