code-sandbox-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@code-sandbox-mcprun Python code to calculate the factorial of 5"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Code Sandbox MCP
MCP (Model Context Protocol) server for E2B code sandbox. This server provides tools to create, manage, and execute code in secure E2B sandboxes.
Features
Create Sandbox: Create new E2B sandboxes with customizable timeout and template
Kill Sandbox: Terminate existing sandboxes by ID
Run Code: Execute Python code in sandboxes using Jupyter Notebook syntax
Run Command: Execute shell commands in sandboxes
Related MCP server: Kilntainers
Installation
pip install code-sandbox-mcpOr using uv:
uv pip install code-sandbox-mcpUsage
Configuration
Add the following configuration to your MCP client settings JSON file (e.g., ~/.config/claude_desktop/claude_desktop_config.json for Claude Desktop, or .cursor/mcp.json for Cursor):
{
"mcpServers": {
"code-sandbox-mcp": {
"command": "uv",
"args": ["run", "code-sandbox-mcp"],
"env": {
"E2B_API_KEY": "your_api_key_here",
"E2B_DOMAIN": "your_domain_here"
}
}
}
}Replace your_api_key_here and your_domain_here with your actual E2B credentials.
Restart your MCP client to load the configuration. The tools will be available in your MCP-enabled application!
License
MIT
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceAn MCP server to create secure code sandbox environment for executing code within Docker containers.326MIT

Kilntainersofficial
AlicenseAqualityFmaintenanceMCP server to give every agent an ephemeral Linux sandboxes for executing shell commands.148MIT- AlicenseAqualityDmaintenanceMCP server connecting Claude Code with E2B cloud sandboxes for working on any GitHub repo.29172MIT
- AlicenseNot gradedqualityCmaintenanceProduction-grade MCP server that enables AI assistants to execute code securely in isolated E2B sandboxes.Apache 2.0
Related MCP Connectors
MCP server exposing the Backtest360 engine API as tools for AI agents.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
An MCP server for Arcjet - the runtime security platform that ships with your AI code.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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