How to integrate E2b MCP with Antigravity

Connect Antigravity to E2b MCP. Run a python script to analyze csv data, execute javascript code to validate user input, and more using natural language, with authentication handled for you.

E2b logoE2b
Api Key

E2b is an open-source platform for running code in secure, sandboxed environments. It enables safe multi-language code execution for AI-powered apps.

59 Tools

How to integrate E2b MCP with Antigravity

Antigravity IDE is Google's agentic IDE, built on a VS Code-style editor and powered by models like Gemini 3.5 Flash, Gemini 3.1 Pro, Opus 4.6, and more. It treats the AI agent as a first-class teammate, planning, coding, and validating work through an Agent Manager dashboard with deep browser connectivity.

In this guide, I will explain the easiest and most secure way to connect your E2b account to Antigravity IDE via Composio Connect, so it can run a Python script to analyze CSV data, execute JavaScript code to validate user input, start a sandbox and list installed packages, and more without ever putting your account credentials at risk.

For exact tool slugs and parameter tables, see the tool catalog in the Composio docs.

Also integrate E2b with

Why use Composio?

Composio provides:

  • Access to 1,800+ managed apps from a single MCP endpoint. This makes it convenient for agents to run cross-app workflows.
  • Programmatic tool calling. Allows LLMs to write code in a remote workbench to handle complex tool chaining. Reduces to-and-fro with LLMs for frequent tool calling.
  • Large tool response handling outside the LLM context. This minimizes context bloat from large tool responses.
  • Dynamic just-in-time access to thousands of tools across hundreds of apps. Composio loads the tools your agent needs, so LLMs are not overwhelmed by tools they do not need.

Connect E2b to Antigravity

Antigravity does not ship with one-click custom MCP install links yet, so configuration goes through the IDE's raw config file. The process takes under a minute.

1. Open the MCP Config

Go to Antigravity Settings, open the Customizations tab, then click Open MCP Config to open mcp_config.json in the editor.

Antigravity Customizations settings with Open MCP Config button

2. Get your API key

Go to the Composio Dashboard and copy your API key.

Composio Dashboard showing where to get the API key

3. Add Composio to mcp_config.json

Paste the following configuration into the file:

bash
{
  "mcpServers": {
    "remote-composio": {
      "serverUrl": "https://connect.composio.dev/mcp",
      "headers": {
        "x-consumer-api-key": "your-composio-api-key"
      }
    }
  }
}

Note: Antigravity uses serverUrl, not url, for remote HTTP-based MCP servers. This differs from the url key used in Cursor and VS Code configs.

Save the file and click refresh in the Installed MCP Servers section.

Antigravity showing Composio tools after MCP setup

Connect your E2b account

Back in the Antigravity agent panel, ask the agent to connect to E2b or give it any E2b-related task.

For example, ask it to:

  • "Run a Python script to analyze CSV data"
  • "Execute JavaScript code to validate user input"
  • "Start a sandbox and list installed packages"

It will prompt you to authenticate and authorize access to E2b.

That is it. Composio tools are now available in Antigravity, and your E2b account is ready to use.

Conclusion

You have successfully connected E2b to Antigravity using Composio Connect. Your agent can now use E2b securely without exposing credentials in prompts or local scripts.

TOOLS

Supported Tools

Every E2b action and event your agent gets out of the box.

Assign Template Tags

Assign tags to an existing E2B template build identified by a name:tag target.

Check Template Alias

Check whether an E2B template alias exists and return its template ID and visibility.

Check Template Tag

Check whether an E2B template tag has at least one ready build.

Connect to Sandbox

Tool to connect to an existing E2B sandbox and retrieve its details.

Connect to Sandbox (V2)

Connect to an existing E2B sandbox and return its details, resuming it if paused.

Count Template Tags

Count distinct tags of an E2B template that have at least one ready build.

Create Secured Sandbox (V2)

Create a sandbox from a template using POST /v2/sandboxes.

Create Sandbox Snapshot

Create a persistent snapshot from an existing E2B sandbox's current state.

Create Template

Tool to create a new E2B template with specified configuration.

Create Volume

Create a new E2B team volume and return its identifier and content access token.

Create Webhook

Tool to register a new webhook to receive sandbox lifecycle events for the team.

Delete Sandbox

Tool to terminate and permanently delete a running E2B sandbox instance.

Delete Template

Permanently delete an E2B template that is no longer needed.

Delete Template Tags

Delete multiple tags from a named E2B template.

Delete Volume

Delete an existing E2B team volume by its identifier.

Delete Webhook

Tool to unregister a webhook and stop receiving lifecycle events.

Fork Sandbox

Fork a running E2B sandbox by briefly pausing it, taking a full-memory snapshot, and resuming it with its ID and expiration unchanged.

Check API Health

Tool to check the health status of the E2B API.

Get Sandbox

Tool to retrieve detailed information about a specific sandbox by its ID.

Get Sandbox Logs

Tool to retrieve logs from a specific E2B sandbox instance.

Get Sandbox Lifecycle Events

Retrieve lifecycle events for a specific sandbox, with pagination and sort options.

Get Sandbox Logs V2

Retrieve structured logs for an existing E2B sandbox using the v2 API.

Get Sandbox Metrics

Tool to retrieve timestamped CPU, memory, and disk usage metrics for a sandbox.

Get Secret

Get an existing secret's metadata by identifier or canonical lower-case name.

Get Team Metrics

Retrieve timestamped team metrics, including concurrent sandbox counts and sandbox start rates, with optional time bounds.

Get Team Maximum Metrics

Tool to retrieve the maximum value for a specific team metric in a given interval.

Get Template Build Logs

Retrieve structured logs for an existing E2B template build.

Get Template Build Status

Tool to get the status of a template build.

Get Template Files

Tool to get an upload link for a tar file containing build layer files.

Get Volume

Get a team volume's ID, name, content auth token and optional BYOC domain.

Get Webhook Configuration

Tool to retrieve the current webhook configuration for a specific webhook.

Get Webhook Stats

Get aggregate delivery counts, failures, durations, and time buckets for an existing webhook.

List API Keys

List all API keys for the selected team, including masked key details.

List Default Templates

List platform default templates, ordered by template ID, excluding deleted templates.

List All Sandboxes

List team sandboxes with state and metadata filters, a page size, and an optional pagination token.

List Sandboxes Metrics

Retrieve timestamped CPU, memory, and disk usage metrics for multiple sandboxes, keyed by sandbox ID.

List Sandboxes V2

List a page of team sandboxes using GET /v2/sandboxes with optional filters.

List Secrets

List a page of the project's secret metadata, without stored secret values.

List Snapshots

List a page of team snapshots, optionally filtered by source sandbox or name.

List Teams

List all teams for the authenticated user, including their API keys.

List Team Sandbox Lifecycle Events

Tool to retrieve the latest lifecycle events across all sandboxes associated with the team.

List Template Builds

List a page of builds for an existing E2B template, including template metadata.

List All Templates

Tool to list all available E2B templates for your team.

List Templates V2

List a page of E2B templates using GET /v2/templates, optionally selecting a team.

List Template Tag Assignments

List one page of ready build assignments for an E2B template tag, newest first.

List Template Tag Groups

List a page of E2B template tags with their most recent ready assignments.

List Template Tags

List all tags for an existing E2B template, including build IDs and assignment times.

List Volumes

List all volumes belonging to the authenticated team.

List Webhook Deliveries

List a page of delivery attempts for an existing team webhook, grouped by event.

List All Webhooks

Tool to retrieve all registered webhooks for your team.

Pause Sandbox

Tool to pause a running E2B sandbox preserving its filesystem and memory state.

Create Sandbox

Tool to create a new E2B sandbox from a template.

Set Sandbox Timeout

Tool to set the timeout for an E2B sandbox.

Refresh Sandbox

Tool to refresh an E2B sandbox and extend its time to live.

Start Template Build

Start a build for an E2B template with specific configuration.

Update Sandbox Network

Replace the network configuration of a running E2B sandbox.

Update Template

Update an E2B template's public or private visibility by template ID.

Update Template (V2)

Update an existing E2B template's public or team-only visibility using the v2 API and return its names.

Update Webhook Configuration

Tool to update an existing webhook configuration including URL, enabled status, and subscribed events.

FAQ

Frequently asked questions

Start with E2b.It takes 30 seconds.

Managed auth, hosted MCP servers, and every E2b tool your agent needs.Free to start.

Start building