Skip to main content
Glama

Code Sandbox MCP Server

by philschmid
MIT License
128

run_python_code

Execute Python code in a secure containerized environment to capture output and errors. Supports libraries like numpy, pandas, matplotlib, scikit-learn, requests, and google-genai for efficient scripting and data processing.

Instructions

Execute Python code in the sandbox environment and captures the standard output and error.

Input Schema

NameRequiredDescriptionDefault
codeYesThe Python code to execute, included libraries are numpy, pandas, matplotlib, scikit-learn, requests, google-genai

Input Schema (JSON Schema)

{ "properties": { "code": { "description": "The Python code to execute, included libraries are numpy, pandas, matplotlib, scikit-learn, requests, google-genai", "title": "Code", "type": "string" } }, "required": [ "code" ], "title": "run_python_codeArguments", "type": "object" }
Install Server

Other Tools from Code Sandbox 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/philschmid/code-sandbox-mcp'

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