mcp-pyodide

execute-python

Execute Python code using Pyodide with output capture. When generating images, they will be automatically saved to the output directory instead of being displayed. Images can be accessed from the saved file paths that will be included in the output.

Input Schema

NameRequiredDescriptionDefault
codeYesPython code to execute
timeoutNoExecution timeout in milliseconds (default: 5000)

Input Schema (JSON Schema)

{ "properties": { "code": { "description": "Python code to execute", "type": "string" }, "timeout": { "description": "Execution timeout in milliseconds (default: 5000)", "type": "number" } }, "required": [ "code" ], "type": "object" }