MCP server for E2B code sandbox - Execute code and commands in secure E2B sandboxes
Code MCP server is a locally run integration for AI assistants that speak the Model Context Protocol. MCP server for E2B code sandbox - Execute code and commands in secure E2B sandboxes.
MCP (Model Context Protocol) server for E2B code sandbox. This server provides tools to create, manage, and execute code in secure E2B sandboxes.
Installation goes through your MCP client rather than a global install: point it at code-sandbox-mcp on PyPI and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.
Once Code is connected, these are the calls the assistant has available:
Configuration — Add the following configuration to your MCP client settings JSON file (e.g., ~/.config/claude_desktop/claude_desktop_config.json for Claude DesktopYou will need 2 environment variables: E2B_API_KEY, E2B_DOMAIN. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Code's toolset — Configuration — is a fair guide to whether it matches your workflow.
This entry was verified against Code's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.
| Tool | What it does |
|---|---|
| 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"
}
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| E2B_API_KEY | Credential the server authenticates with. | Yes |
| E2B_DOMAIN | Configuration value read at startup. | Optional |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.