AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
MCP verified Apache-2.0 Self-run

E2bgateway

mcp-e2bgateway-e2bgateway · by e2bgateway

E2BGateway is a unified gateway that enables the official E2B client to interoperate with multiple agent runtimes including agent-sandbox and OpenSandbox, delivering standardized sandbox APIs for AI agents.

No reviews yet
0 installs
19 views
0.0% view→install

Install

$ agentstack add mcp-e2bgateway-e2bgateway

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access Used
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets Used
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/mcp-e2bgateway-e2bgateway)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude DesktopCursorWindsurf

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of E2bgateway? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

E2BGateway

[](LICENSE) [](https://github.com/e2bgateway/e2bgateway/blob/main/go.mod) [](https://github.com/e2bgateway/e2bgateway/releases) [](https://github.com/e2bgateway/e2bgateway/stargazers)

E2BGateway acts as an abstraction gateway layer for AI agent sandboxes. It provides a fully compatible interface aligned with the official E2B client protocol, transparently routing requests to diverse underlying agent runtime implementations such as agent-sandbox and OpenSandbox.

Why E2BGateway?

  • Eliminate vendor lock-in — Write once, run against any sandbox backend
  • Zero-code migration — Existing E2B SDK users connect with only a URL change
  • Multi-backend routing — Dynamic routing, load balancing, and failover between sandbox clusters
  • Production ready — Auth, rate limiting, audit logging, and OpenTelemetry observability built-in

Quick Start

import os

# Point E2B SDK at your E2BGateway instance
os.environ["E2B_API_URL"] = "https://sandbox.example.com"
os.environ["E2B_API_KEY"] = "your-api-key"

from e2b_code_interpreter import Sandbox

# Standard E2B code — no modifications needed
sbx = Sandbox.create(template="code-interpreter")
result = sbx.run_code("print('Hello from E2BGateway!')")
print(result.text)
sbx.kill()

Supported Backends

| Backend | Type | Status | Description | |---|---|---|---| | E2B Cloud | SaaS passthrough | ✅ Supported | Transparent proxy to official E2B API | | agent-sandbox | K8s CRD-based | ✅ Supported | Kubernetes-native sandbox via SandboxClaim CRDs with warm pool | | OpenSandbox | Container-based | ✅ Supported | Alibaba's open-source container sandbox runtime |

Architecture

E2B SDK Client (Python/JS)
        │
        │  HTTPS (E2B Protocol)
        ▼
┌─────────────────────────────┐
│       E2BGateway            │
│  ┌───────────────────────┐  │
│  │ Auth → RateLimit →    │  │
│  │ Router → Translator   │  │
│  └───────────┬───────────┘  │
│              │              │
│  ┌───────────┴───────────┐  │
│  │   Backend Adapters    │  │
│  │  ┌─────┐ ┌─────┐      │  │
│  │  │E2B  │ │K8s  │ ...  │  │
│  │  └──┬──┘ └──┬──┘      │  │
│  └─────┼───────┼──────-──┘  │
└────────┼───────┼─────-──────┘
         │       │
         ▼       ▼
    E2B Cloud  K8s Cluster

See the [full architecture design](docs/design/README.md) for details.

API Compatibility

E2BGateway implements the complete E2B REST API:

  • POST/GET/DELETE /api/v1/sandboxes — Sandbox lifecycle
  • POST /api/v1/sandboxes/{id}/code — Code execution
  • POST /api/v1/sandboxes/{id}/commands — Shell commands
  • POST/GET /api/v1/sandboxes/{id}/files/* — Filesystem operations
  • GET/POST/DELETE /api/v1/templates — Template management
  • WebSocket channels for streaming code execution, terminals, and port forwarding

Build & Run

# Build
make build

# Run locally
make run

# Run tests
make test

# Docker
make docker-build

# Helm
helm install e2bgateway deploy/helm/e2bgateway

Configuration

See [configs/e2bgateway-default.yaml](configs/e2bgateway-default.yaml) for the default configuration and [configs/e2bgateway-example.yaml](configs/e2bgateway-example.yaml) for a full example with all backends.

Documentation

  • [Architecture Design](docs/design/README.md)
  • [Getting Started Guide](docs/guides/getting-started.md)
  • [Backend Setup](docs/guides/backend-setup.md)
  • [Migration Guide](docs/guides/migration.md)
  • [OpenAPI Specification](docs/api/openapi.yaml)

Related Projects

License

Apache License 2.0. See [LICENSE](LICENSE).

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.