5 tools · 8 languages · MCP-native

Code execution for any MCP-compatible AI agent

SandboxAPI ships an MCP server at https://mcp.sandboxapi.dev/mcp. Drop the JSON config below into Claude Desktop, Cursor, VS Code, or any other MCP-compatible client. Your AI can now run code in 8 languages and install packages into existing sessions.

5 focused tools for safe code execution

The current MCP surface mirrors the highest-signal agent workflow: execute code, batch snippets, discover runtimes, inspect capabilities, and install packages into sessions.

execute_codeOne-shot synchronous execution
execute_batchRun up to 20 snippets in a single call
list_languagesDiscover available runtimes & versions
session_install_packagespip / npm
get_capabilitiesRuntime feature discovery

Set up in 30 seconds

Pick your client, paste the JSON, replace YOUR_API_KEY with your RapidAPI key. Done.

Claude Desktop macOS / Win

Edit the Claude Desktop config and restart the app.

{
  "mcpServers": {
    "sandboxapi": {
      "url": "https://mcp.sandboxapi.dev/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}
~/Library/Application Support/Claude/claude_desktop_config.json

Cursor All platforms

Add to your Cursor MCP config (Settings → MCP).

{
  "mcpServers": {
    "sandboxapi": {
      "url": "https://mcp.sandboxapi.dev/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}
Settings → MCP → Add server

VS Code Continue / Cline

Compatible with the Continue and Cline MCP integrations.

{
  "mcpServers": {
    "sandboxapi": {
      "url": "https://mcp.sandboxapi.dev/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}
~/.continue/config.json or via the extension UI

30-second demo

An agent in Claude Desktop runs code, installs pandas into an existing session when needed, and reports findings without leaving the chat.

Demo GIF coming soon — the visual assets team is producing it.
img/mcp-demo.gif (1280×720, ~10s loop)

What you can build

The MCP integration is the fastest way to ship one of these primitives in your AI agent product.

Code interpreter

Give your AI safe Python execution with file-backed state. The agent can pip install into an existing session and keep working with generated files.

execute_code, session_install_packages, get_capabilities

Autonomous debugger

Failing test? The agent runs the code, sees the traceback, edits the file, runs again. Tight loops via stateful sessions instead of restart-and-pray.

execute_code, execute_batch, get_capabilities

REPL agent

Build a lightweight code execution tool on your own stack and model. 8 languages, gVisor isolation, and a small MCP surface agents can reason about.

execute_code, execute_batch, list_languages

Ready to give your AI a code interpreter?

Get an API key, paste the JSON config, and your AI is running code in 30 seconds.

Get an API key Read MCP docs