关于
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.
主要功能
- Asynchronous Support: Runs async code properly
- Complete Results: Captures standard output, standard error, and return values
- Package Management: Automatically detects and installs required dependencies
- Error Handling: Provides detailed error reports for debugging
- 12 GitHub stars
- Secure Execution: Run Python code in a sandboxed WebAssembly environment
使用案例
- Integrating Python code execution capabilities into AI agents and applications (e.g., with Pydantic AI).
- Securely executing untrusted Python scripts in an isolated and controlled environment.
- Programmatically running and evaluating Python code blocks within other Python applications using a helper function.