E2B MCP
by E2B
Secure cloud sandboxes for AI code execution in JavaScript and Python
code Node.js Beginner
β 381 stars π
Updated: 1mo ago
Description
MCP server that enables AI assistants to execute code in secure, isolated E2B cloud sandboxes. Supports JavaScript and Python with a simple interface for creating sandboxes, running code, and managing execution environments. Each sandbox runs in its own isolated container, ensuring that AI-generated code cannot affect the local system or other sandboxes. Ideal for scenarios where LLMs need to run untrusted code safely, such as data analysis, prototyping, or educational coding exercises.
β Best for
AI workflows that need safe, sandboxed code execution without local system risk
βοΈ Skip if
You need offline code execution or support for languages beyond JavaScript and Python
π‘ Use cases
- Running AI-generated code safely without risking the local system
- Executing data analysis scripts in isolated Python sandboxes
- Prototyping JavaScript solutions in disposable cloud environments
- Teaching and learning scenarios where code execution must be sandboxed
π Pros
- β Fully isolated cloud sandboxes eliminate local security risks
- β Supports both JavaScript and Python out of the box
- β Simple three-tool interface makes integration straightforward
- β Free tier available for getting started quickly
π Cons
- β Requires an API key and internet connection for all operations
- β Limited to JavaScript and Python (no support for other languages)
- β Cloud-dependent β no offline or local execution option
π§ Exposed tools (3 tools)
| Tool | Category | Description |
|---|---|---|
| execute_code | code-execution | Execute JavaScript or Python code in an isolated cloud sandbox |
| create_sandbox | management | Create a new isolated sandbox environment |
| list_sandboxes | management | List all active sandbox environments |
β‘ Installation
Prerequisites:
- β’ Node.js v18+
- β’ E2B API key required (free tier available at e2b.dev)
- β’ API key required
Check Claude Code documentation to configure this MCP server.
π‘ Tips & tricks
Sign up at e2b.dev to get a free API key. Use the Smithery CLI for quick setup: npx @smithery/cli install e2b --client claude. Sandboxes are ephemeral by default, so save any important outputs before the session ends.
Quick info
- Author
- E2B
- License
- Apache-2.0
- Runtime
- Node.js 18+
- Transport
- stdio
- Category
- code
- Difficulty
- Beginner
- Self-hostable
- β
- Auth
- β
- Docker
- β
- Version
- latest
- Updated
- Feb 28, 2026
Client compatibility
- β Claude Code
- β Cursor
- β VS Code Copilot
- β Gemini CLI
- β Windsurf
- β Cline
- β JetBrains AI
- β Warp
Platforms
π macOS π§ Linux πͺ Windows