drio

E2B

Source

Run code in secure sandboxes hosted by E2B

Catalog onlyCatalog onlySTDIO

Overview

E2B is a platform that provides secure coding environments where developers can run code safely in isolated sandboxes.

To use E2B, integrate the E2B MCP server into your Claude Desktop app and utilize the E2B Sandbox for executing code in either JavaScript or Python.

  • Secure environment for running code - Supports multiple programming languages (JavaScript and Python) - Integration with the Claude Desktop app
  1. Quickly test code snippets in a safe environment
  2. Develop educational tools for learning programming
  3. Run untrusted code securely without affecting the host system

Add to your AI client

Use these steps to connect E2B in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "e2b": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-e2b"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "e2b": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-e2b"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "e2b": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-e2b"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "e2b": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-e2b"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "e2b": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-e2b"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "e2b": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-e2b"
      ]
    }
  }
}

FAQ

What programming languages does E2B support?

E2B currently supports JavaScript and Python for running code.

Is there a demo available for E2B?

Yes! You can check out a demo of E2B's capabilities on the provided link.

Can I run untrusted code using E2B?

Yes, E2B is designed to securely execute untrusted code without affecting your local environment.