Skip to main content
Glama
feifeigood

code-sandbox-mcp

by feifeigood

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
E2B_DOMAINYesYour E2B domain
E2B_API_KEYYesYour E2B API key

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
create_sandboxA
Create a new E2B sandbox and return its ID.

Args:
    timeout: Timeout for the sandbox in seconds, default is 300 seconds
    template: Optional template name or ID to use for creating the sandbox. If not provided, the default template is used.

Returns:
    JSON string containing the sandbox ID
kill_sandboxA
Kill an E2B sandbox by its ID.

Args:
    sandbox_id: The ID of the sandbox to kill
    
Returns:
    JSON string containing error message if failed, empty string if successful
run_commandA
Run a shell command in an E2B sandbox.

Args:
    command: Shell command to execute
    sandbox_id: Optional sandbox ID to connect to an existing sandbox. If not provided, a new sandbox will be created.

Returns:
    JSON string containing stdout, stderr, and exit code from command execution
run_codeA
Run python code in a secure sandbox by E2B. Using the Jupyter Notebook syntax.

Args:
    code: Python code to execute
    sandbox_id: Optional sandbox ID to connect to an existing sandbox. If not provided, a new sandbox will be created.
    
Returns:
    JSON string containing stdout and stderr from code execution

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/feifeigood/code-sandbox-mcp'

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