Skip to main content
Glama
PortPro-Technologies-Inc

MCP Python Interpreter

run_python_code

Execute Python code in a specified environment, save results, and manage workflows. Ideal for code testing, development, and automation tasks.

Instructions

Execute Python code and return the result. Code runs in the working directory. Args: code: Python code to execute environment: Name of the Python environment to use (default if custom path provided, otherwise system) save_as: Optional filename to save the code before execution (useful for future reference)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes
environmentNodefault
save_asNo

Latest Blog Posts

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/PortPro-Technologies-Inc/mcp-python-interpreter'

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