Python REPL MCP Server

execute_python

Execute Python code in a persistent REPL environment, enabling variable retention between runs or session reset when needed. Ideal for iterative Python development and testing.

Instructions

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 from Python REPL MCP Server

Related Tools

ID: jsorljnhdl