Skip to main content
Glama

Code Sandbox MCP Server

by philschmid
MIT License
67

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CONTAINER_IMAGENoCustom container image to use for code execution
PASS_THROUGH_ENVNoComma-separated list of environment variables to pass through to the sandbox (e.g., 'API_KEY,SECRET_TOKEN')
CONTAINER_LANGUAGENoLanguage to use in the container (python or javascript), required when using custom container image

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
environment_detailsResource containing detailed information about the environments. Returns: str: The details of the languages

Tools

Functions exposed to the LLM to take actions

NameDescription
run_python_code

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

run_javascript_code

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

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