Python REPL MCP Server

execute_python

Execute Python code and return the output. Variables persist between executions.

Input Schema

NameRequiredDescriptionDefault
codeYesPython code to execute
resetNoReset the Python session (clear all variables)

Input Schema (JSON Schema)

{ "properties": { "code": { "description": "Python code to execute", "type": "string" }, "reset": { "default": false, "description": "Reset the Python session (clear all variables)", "type": "boolean" } }, "required": [ "code" ], "type": "object" }

You must be authenticated.

Other Tools