Files
higress/plugins/wasm-go/mcp-servers/mcp-e2bdev

E2BDev MCP Server

An implementation of the Model Context Protocol (MCP) server that integrates E2B Code Interpreter API, providing sandbox environment management capabilities, which enables execution of Python code.

Usage Guide

Get API-KEY

  1. Register for an E2B account Resigter Entry. Each new account will receive 100 credits for free.
  2. Generate API Key in Dashboard Manage API-KEY

Configure MCP Client

On the user's MCP Client interface, add E2BDev MCP Server configuration.

"mcpServers": {
    "e2bdev": {
      "url": "https://mcp.higress.ai/mcp-e2bdev/{generate_key}",
    }
}

Tools

  • create_sandbox: Create E2B sandbox environment

    • Parameters:
      • timeout: Sandbox timeout in seconds, sandbox will be terminated after timeout
    • Returns: Sandbox ID
  • execute_code_sandbox: Execute code in sandbox

    • Parameters:
      • sandbox_id: Sandbox ID, obtained from create_sandbox
      • code: Python code to execute
    • Returns: Execution result
  • kill_sandbox: Terminate sandbox environment

    • Parameters:
      • sandbox_id: Sandbox ID to terminate
    • Returns: Termination result