In short.
E2B's MCP Gateway Quickstart is a guide for Python and TypeScript developers connecting AI clients to sandbox tools, but several snippets assume an existing sandbox and no completed tool call is demonstrated. It shows sandbox configuration, bearer-token authentication, tool discovery and connection patterns for Claude, OpenAI Agents and official MCP clients. Runtime behavior has not been assessed.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete supplied page at [https://docs.e2b.dev/mcp-gateway/quickstart.md]: external and internal connections, Claude, OpenAI Agents, official MCP clients and Inspector debugging. The linked documentation index [https://docs.e2b.dev/llms.txt], E2B Cookbook [https://github.com/e2b-dev/e2b-cookbook] and MCP Inspector repository [https://github.com/modelcontextprotocol/inspector] are excluded. No code or commands were executed. Connection success, tool execution, compatibility and performance remain unassessed; costs and reuse rights remain unknown.
The overview
identity
This E2B documentation page explains how to connect clients to MCP servers running inside an E2B sandbox. MCP means Model Context Protocol; the examples use it to discover available tools through a gateway. The original page is [https://docs.e2b.dev/mcp-gateway/quickstart.md].
assessment
The guide is useful for understanding the connection sequence: create a sandbox with integrations, obtain its gateway address and token, connect an MCP client, and list tools. Its opening examples include sandbox creation and cleanup.
It provides less help with preparing a development environment or completing an agent task. Later Python snippets reference a sandbox variable without creating it, and the examples stop at connection or tool discovery. Successful integration is not established by the documentation.
users
The guide fits developers adding sandbox-hosted tools to an AI application or connecting an existing MCP client to E2B. Python and TypeScript examples provide routes for both language communities.
Beginners will need familiarity with package imports, environment variables, asynchronous code and API credentials. Experienced developers can use the page to identify endpoint methods, authentication headers and client transport classes.
capabilities
The examples configure browserbase, exa and notion integrations when creating a sandbox. They show external gateway access, an internal localhost endpoint, bearer-token authentication and listing available tools.
Additional snippets cover Claude MCP configuration, OpenAI Agents SDK connections and official MCP clients. The page also supplies an MCP Inspector command for browsing tools, trying calls, inspecting payloads and investigating connection issues. These are documented capabilities; their operation was not assessed.
Using it
requirements
The TypeScript examples import e2b and @modelcontextprotocol/sdk. The opening Python example imports e2b, mcp and dotenv alongside standard-library modules. OpenAI Agents examples additionally use @openai/agents or agents.mcp. The Claude route uses the claude command-line tool (claude mcp add), and the Inspector debugging route runs through npx, which needs Node.js; the page specifies no versions for these tools.
The demonstrated configuration reads BROWSERBASE_API_KEY, GEMINI_API_KEY, BROWSERBASE_PROJECT_ID, EXA_API_KEY and NOTION_API_KEY from environment variables. The page does not explain how to obtain these credentials or configure E2B access. Supported runtime versions, dependency versions and installation instructions are unspecified.
mechanism
For external connections, the SDK exposes the gateway address through sandbox.getMcpUrl() in JavaScript and sandbox.get_mcp_url() in Python. The examples retrieve a token through getMcpToken() or get_mcp_token() and send it in an Authorization: Bearer header.
The official client examples use Streamable HTTP. Python initializes a ClientSession before listing tools; TypeScript connects a Client through StreamableHTTPClientTransport. Inside the sandbox, the documented endpoint is [http://localhost:50005/mcp], which also requires the authorization header.
setup
The opening examples provide the fullest starting point: supply credentials for the configured integrations, create the sandbox with its mcp configuration, retrieve the gateway URL and token, and connect the chosen client. The client then lists available tools.
The TypeScript example closes the client and kills the sandbox. Python exits its client context managers and then kills the sandbox. Cleanup is shown for normal completion; cleanup after exceptions and retry behavior are not explained.
example
A concrete example creates a sandbox configured with Browserbase credentials, an Exa API key and a Notion integration token. It connects an official MCP client to the sandbox gateway, requests the tool list and prints each tool's name before cleanup.
This illustrates tool discovery. It does not show a browser action, search request, Notion operation or an AI agent choosing and invoking a tool. Actual tool names and returned output are not supplied.
Assessment & evidence
limitations
Several connection snippets depend on variables created elsewhere. In particular, the later Python examples use sandbox without constructing it, and the Claude command contains URL and token placeholders. These excerpts require surrounding setup.
The page does not establish supported dependency versions, token expiry, access scope, service limits, tool-call reliability or performance. It supplies no execution results or benchmarks. Compatibility and operational behavior remain unassessed.
reasoning
The guide's practical value comes from showing the same connection pattern across multiple clients: obtain a sandbox endpoint, attach its bearer token and discover tools. This makes it useful when a developer already has an E2B sandbox workflow and needs a client integration reference.
That fit is an inference from the examples. The page does not demonstrate reduced development effort, better agent performance or an advantage over other gateway designs.
alternatives
The page offers Claude's MCP configuration command, OpenAI Agents SDK examples and official MCP client examples as alternative ways to connect to the same gateway. The official client examples explicitly show tool discovery.
No competing gateway is described or compared. The evidence does not establish differences in cost, latency, reliability or ease of use between these client choices.
evidence
The evidence is the complete E2B Quickstart page at [https://docs.e2b.dev/mcp-gateway/quickstart.md]. It contains connection examples, authentication details, a localhost endpoint and an Inspector command, but no observed outputs or completed task results.
The page references a documentation index, the E2B Cookbook and MCP Inspector. Their linked contents are outside the supplied evidence and do not establish additional capabilities here.
Access & freshness
costs
The page provides no prices, free allowances, billing units or usage estimates. E2B sandbox costs and any charges associated with the configured services are unknown from this evidence.
The Python examples set a 600-second client timeout. That setting does not establish sandbox lifetime, billable duration or a cost ceiling.
rights
The selected page contains no explicit license or redistribution permission for its prose or code examples. Reuse rights are unknown from this evidence.
Terms governing E2B, the client libraries and the configured third-party services are not included. The page does not establish data ownership, retention terms or permitted uses for those services.
freshness
The supplied page was captured on 12 November 2026 at 21:49 UTC. The text gives no publication date, update date or supported SDK versions.
The client version value 1.0.0 appears in example client metadata; it does not establish the installed E2B or MCP SDK version. Present compatibility and maintenance status are unknown from this page.
actions
For an initial evaluation, use an opening sandbox-creation example as the base and obtain setup instructions and credentials for the integrations you intend to configure. Establish compatible package versions before adapting the shorter client snippets.
After connecting, inspect the available tools and verify a representative task. The page's MCP Inspector command offers a documented route for examining calls and payloads. Obtain pricing and applicable terms separately before committing to ongoing use.
