MCP Directory

How to add E2B Code Interpreter MCP to Windsurf

Run model-generated code in a secure, isolated E2B cloud sandbox. Paste the config into ~/.codeium/windsurf/mcp_config.json and restart Windsurf.

Last updated June 15, 2026 · 400 · stdio · apikey · official

Windsurf config for E2B Code Interpreter MCP

npx -y @e2b/mcp-server
{
  "mcpServers": {
    "e2b-code-interpreter-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@e2b/mcp-server"
      ],
      "env": {
        "E2B_API_KEY": "<your-e2b-api-key>"
      }
    }
  }
}

Setup steps

  1. 1Open Windsurf → Cascade → the hammer/MCP icon → Configure (or edit ~/.codeium/windsurf/mcp_config.json).
  2. 2Paste the E2B Code Interpreter MCP config below.
  3. 3Fill in placeholder secrets, then save.
  4. 4Click Refresh in the MCP panel.
  5. 5E2B Code Interpreter MCP's tools become available to Cascade.

Before you start

  • Node.js with npx available (the server is launched via npx -y @e2b/mcp-server)
  • An E2B account and API key from e2b.dev (set via the E2B_API_KEY environment variable)
  • An MCP client such as Claude Desktop (config in claude_desktop_config.json)

What E2B Code Interpreter MCP can do in Windsurf

run_code

Run Python code in a secure, isolated E2B cloud sandbox and return the result/output.

Security

Code runs in E2B's remote sandbox rather than locally, which limits host exposure, but the E2B_API_KEY bills against your account and sandboxes can make outbound network calls. Keep the key secret and watch usage.

E2B Code Interpreter MCP + Windsurf FAQ

Where is the Windsurf config file?

Windsurf reads MCP servers from ~/.codeium/windsurf/mcp_config.json. Paste the E2B Code Interpreter MCP config there under the "mcpServers" key and restart the client.

Is E2B Code Interpreter MCP safe to use with Windsurf?

Code runs in E2B's remote sandbox rather than locally, which limits host exposure, but the E2B_API_KEY bills against your account and sandboxes can make outbound network calls. Keep the key secret and watch usage.

What language does run_code execute?

It runs Python inside the E2B Sandbox and returns the output, even though the package itself ships JavaScript and Python server editions.

Where do I get the API key?

Sign up at e2b.dev and create an API key, then set it as the E2B_API_KEY environment variable in your MCP client config.

Is this project maintained?

No. The mcp-server repository is archived and no longer actively maintained; refer to E2B's current MCP docs at e2b.dev/docs/mcp for supported integrations.

View repo Full E2B Code Interpreter MCP page