Skip to main content
Glama

Python REPL MCP Server

by hdresearch

execute_python

Execute Python code with persistent variables in a REPL environment. Reset the session to clear variables when needed.

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" }

Other Tools from Python REPL MCP Server

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hdresearch/mcp-python'

If you have feedback or need assistance with the MCP directory API, please join our Discord server