4,500+ servers built on MCP Fusion
Vinkius
E2B logo
Vinkius
Cursor logo

How to Use the E2B MCP in Cursor

Execute generated code in secure E2B sandboxes directly from the Cursor Agent without risking your codebase.

See Vinkius in Action

Works with every AI agent you already use

…and any MCP-compatible client

E2B MCP on Cursor AI Code Editor MCP Client E2B MCP on Claude Desktop App MCP Integration E2B MCP on OpenAI Agents SDK MCP Compatible E2B MCP on Visual Studio Code MCP Extension Client E2B MCP on GitHub Copilot AI Agent MCP Integration E2B MCP on Google Gemini AI MCP Integration E2B MCP on Lovable AI Development MCP Client E2B MCP on Mistral AI Agents MCP Compatible E2B MCP on Amazon AWS Bedrock MCP Support
MCP Servers - Free for Subscribers
Cursor

Connect E2B MCP to Cursor

Create your Vinkius account to connect E2B to Cursor and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.

GDPR Free for Subscribers

Execute generated code via the Cursor MCP Server

`create_sandbox` lets the Cursor Agent spin up a fresh Firecracker VM in 150 milliseconds to run the code it just generated in your editor. The agent executes files within this secure boundary instead of testing code directly on your local codebase. You see the real-time execution output right inside the Cursor sidebar. If a generated script loops infinitely, the 300-second automatic timeout cuts the process before it slows down your editor.

Tear down active VMs directly from your editor

Invoke `kill_sandbox` to destroy the active VM and delete its workspace files immediately after Cursor finishes a test run. The editor coordinates this cleanup to keep your project directory free of temporary build artifacts. This direct integration keeps your Cursor coding session highly responsive. You never have to manually run docker kill commands to clean up your workspace.

Track your active VMs in the Cursor sidebar

Use `list_sandboxes` to get a real-time inventory of active microVMs associated with your Cursor project. Your editor agent reads this metadata to determine if it can reuse an active environment for subsequent edits. Having this visibility in Cursor prevents you from running redundant sandboxes. You keep your E2B API usage efficient while writing code.

Setup guide

Set up E2B MCP in Cursor

Prerequisites

  • Cursor installed (macOS, Windows, or Linux)
  • Active Vinkius subscription with a valid endpoint token
  1. 1

    Open MCP Settings

    Go to Cursor Settings → MCP or open the Command Palette (Cmd+Shift+P / Ctrl+Shift+P) and search for "MCP: Add Server".

  2. 2

    Add the E2B MCP

    Cursor will create or open .cursor/mcp.json in your project root. Paste the JSON snippet on the right. Replace [YOUR_TOKEN_HERE] with your endpoint token from cloud.vinkius.com.

  3. 3

    Enable Agent mode

    Open Composer (Cmd+I / Ctrl+I) and switch to Agent mode using the dropdown at the top. MCP tools are only available in Agent mode.

  4. 4

    Verify the connection

    Ask Cursor something like "List my recent E2B transactions." If the MCP tools are loaded correctly, Cursor will call the E2B tools automatically. You can also check Settings → MCP for a green status indicator.

.cursor/mcp.json
{
  "mcpServers": {
    "e2b-mcp": {
      "url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
    }
  }
}

Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by E2B. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.

Why Choose Vinkius

Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.

Real-time monitoring

Live

visibility into every interaction

Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.

Built-in savings

60%

lower AI costs

Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.

Single dashboard

One

place for every integration

Every tool your AI connects to, managed from a single screen. One account, complete control.

Common questions about E2B MCP in Cursor

Add the server definition to your `.cursor/mcp.json` file in your project root. Enable Agent mode in the chat interface, and the editor will automatically discover the sandbox tools.
Yes, the agent can call `list_sandboxes` to find active environments. It can then run subsequent commands inside that specific VM instead of creating a new one.
Your agent can choose Python, Node, or base Linux templates during the `create_sandbox` call. This gives you instant access to pre-configured packages for testing code.
Every sandbox has a default 300-second lifespan. If a script in Cursor exceeds this limit, the MCP server kills the VM to prevent hanging processes.
All code snippets and API keys sent to the sandbox are isolated in an ephemeral, zero-trust microVM. E2B enforces strict network rules to prevent unauthorized outbound traffic, and we never write your proprietary code to persistent storage.

Start using the E2B MCP today

We host it, we monitor it, we maintain it. You just paste one token.

Built & Managed by Vinkius 30s setup 3 tools

We've already built the connector for E2B. Just plug in your AI agents and start using Vinkius.

No hosting. No infrastructure. No complex setup.
All 3 tools are live and waiting. You're up and running in seconds.

Claude Claude
ChatGPT ChatGPT
Cursor Cursor
Gemini Gemini
Windsurf Windsurf
VS Code VS Code
JetBrains JetBrains
Vercel Vercel
+ other MCP clients

Vinkius gives your AI agents access to the full catalog of app connectors, all fully managed, secure, and enterprise-ready. One subscription, every tool you need.

Zero hosting required Full MCP catalog included Enterprise-grade security Auto-updated by Vinkius

Built, hosted, and secured by Vinkius. You just connect and go.