Skip to main content
E2B provides a batteries-included MCP gateway that runs inside sandboxes, giving you type-safe access to 200+ MCP tools from the Docker MCP Catalog or custom MCPs through a unified interface. This integration gives developers instant access to tools like Browserbase, Exa, Notion, Stripe, or GitHub. The Model Context Protocol (MCP) is an open standard for connecting AI models to external tools and data sources. E2B sandboxes provide an ideal environment for running MCP tools, giving AI full access to an internet-connected Linux machine where it can safely install packages, write files, run terminal commands, and AI-generated code.
The example below gives Claude Code, running inside the sandbox, the tools of three servers. It needs E2B_API_KEY and ANTHROPIC_API_KEY in your environment, plus the keys of the three servers: BROWSERBASE_API_KEY, BROWSERBASE_PROJECT_ID, GEMINI_API_KEY, EXA_API_KEY and AIRTABLE_API_KEY. To try the gateway with only an E2B API key, start with the quickstart.

Documentation

Quickstart

Get started with MCP

Available servers

Browse 200+ pre-built MCP servers

Custom templates

Prepull MCP servers for faster runtime

Custom servers

Use custom MCP servers from GitHub

Examples

See examples