MCPdir β€” MCP Server Directory
πŸ‡¬πŸ‡§ πŸ‡ͺπŸ‡Έ

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)

ToolCategoryDescription
execute_codecode-executionExecute JavaScript or Python code in an isolated cloud sandbox
create_sandboxmanagementCreate a new isolated sandbox environment
list_sandboxesmanagementList 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