MCP Run Python
https://ai.pydantic.dev/mcp/run-python/
#PydanticAI
It uses
Pyodide
to run Python code in a JavaScript environment with Deno, isolating execution from the host system.
PEP 723 – Inline script metadata
サポートもしている!
run_python_code is an MCP that let's you run python in a WebAssembly sandbox environment using @pyodide. Making it much more secure, but can be run locally!
サンプルスニペットあり
作者
MCP server to run Python code in a sandbox #1140
Weekend work - I've added an MCP server to @pydantic AI to run Python in a @pyodide sandbox.