E2B MCP Server
Developmentstdio
E2B's MCP server gives AI agents the ability to run arbitrary code in secure, isolated cloud sandboxes. Each sandbox is a fast-booting micro-VM where models can execute Python and shell commands, install packages, read and write files, and capture stdout/stderr — ideal for code interpretation, data analysis, and agentic workflows that need real execution.
Connect
Add this configuration to .claude/mcp.json
{
"mcpServers": {
"e2b": {
"command": "npx",
"args": [
"-y",
"@e2b/mcp-server"
],
"env": {
"E2B_API_KEY": "<YOUR_E2B_API_KEY>"
}
}
}
}Tools (1)
run_code
Execute code in a secure E2B sandbox and return stdout, stderr, and any results.
{
"type": "object",
"required": [
"code"
],
"properties": {
"code": {
"type": "string",
"description": "The code to execute in the sandbox"
},
"language": {
"type": "string",
"description": "Language to run (e.g., python, javascript, bash)"
}
}
}Resources
This server does not expose any resources.
Prompts
This server does not expose any prompts.
Server Information
- Author
- E2B (@e2b-dev)
- Repository
- https://github.com/e2b-dev/mcp-server
- License
- MIT
- Stars
- 0
- Last Updated
- June 12, 2026