{
  "markdown": "# SandboxAPI MCP Server\n\n[![MCP](https://img.shields.io/badge/MCP-1.0-blue)](https://modelcontextprotocol.io)\n[![Languages](https://img.shields.io/badge/languages-8-green)](https://sandboxapi.dev)\n[![License](https://img.shields.io/badge/license-MIT-orange)](LICENSE)\n\n**Give your AI agent the ability to execute code in 8 programming languages, safely.**\n\nSandboxAPI MCP Server connects any MCP-compatible AI client (Claude, Cursor, VS Code, Windsurf, etc.) to secure code execution. Every execution runs inside a gVisor-sandboxed Docker container with no network access, strict resource limits, and ephemeral filesystems.\n\n## Quick Start\n\n### Option 1: Remote Server (No Setup)\n\nConnect directly to the hosted endpoint. No local installation required.\n\n**Claude Desktop** (`claude_desktop_config.json`):\n\n```json\n{\n  \"mcpServers\": {\n    \"sandboxapi\": {\n      \"url\": \"https://mcp.sandboxapi.dev/mcp\",\n      \"headers\": {\n        \"Authorization\": \"Bearer YOUR_API_KEY\"\n      }\n    }\n  }\n}\n```\n\n**VS Code** (`.vscode/mcp.json`):\n\n```json\n{\n  \"servers\": {\n    \"sandboxapi\": {\n      \"url\": \"https://mcp.sandboxapi.dev/mcp\",\n      \"headers\": {\n        \"Authorization\": \"Bearer YOUR_API_KEY\"\n      }\n    }\n  }\n}\n```\n\n**Cursor** (`~/.cursor/mcp.json`):\n\n```json\n{\n  \"mcpServers\": {\n    \"sandboxapi\": {\n      \"url\": \"https://mcp.sandboxapi.dev/mcp\",\n      \"headers\": {\n        \"Authorization\": \"Bearer YOUR_API_KEY\"\n      }\n    }\n  }\n}\n```\n\n### Option 2: Docker\n\n```bash\ndocker run -d \\\n  -p 8081:8081 \\\n  -e SANDBOXAPI_API_KEY=your_sandboxapi_key \\\n  -e MCP_API_KEY=your_mcp_auth_key \\\n  sandboxapi/mcp:latest\n```\n\nThen point your client to `http://localhost:8081/mcp`.\n\n### Option 3: Build from Source\n\n```bash\ngit clone https://github.com/sandboxapi/sandboxapi-mcp.git\ncd sandboxapi-mcp\ngo build -o sandboxapi-mcp .\n\nexport SANDBOXAPI_API_KEY=your_key\nexport MCP_API_KEY=optional_auth_key\n./sandboxapi-mcp\n```\n\n## Available Tools\n\n### `execute_code`\n\nExecute code in a sandboxed container.\n\n| Parameter  | Type   | Required | Description |\n|------------|--------|----------|-------------|\n| `language` | string | Yes      | `python3`, `javascript`, `typescript`, `bash`, `java`, `cpp`, `c`, `go` |\n| `code`     | string | Yes      | Source code to execute (max 1MB) |\n| `timeout`  | number | No       | Timeout in seconds (default: 10, max: 300) |\n| `stdin`    | string | No       | Standard input to pass to the program |\n\n### `execute_batch`\n\nExecute multiple code snippets. Each runs in its own isolated sandbox.\n\n| Parameter    | Type  | Required | Description |\n|--------------|-------|----------|-------------|\n| `executions` | array | Yes      | Array of `{language, code, timeout?, stdin?}` objects |\n\n### `list_languages`\n\nList all supported programming languages with versions and example code. No parameters.\n\n## Supported Languages\n\n| Language   | Version  | Aliases |\n|------------|----------|---------|\n| Python     | 3.12     | `python3`, `python`, `py` |\n| JavaScript | Node 22  | `javascript`, `js`, `node` |\n| TypeScript | 5.4      | `typescript`, `ts` |\n| Go         | 1.22     | `go`, `golang` |\n| Java       | 21       | `java`, `jdk` |\n| C++        | GCC 14   | `cpp`, `c++` |\n| C          | GCC 14   | `c`, `gcc` |\n| Bash       | 5.2      | `bash`, `sh`, `shell` |\n\n## Environment Variables\n\n| Variable            | Required | Description |\n|---------------------|----------|-------------|\n| `SANDBOXAPI_API_KEY` | Yes     | API key for the SandboxAPI backend |\n| `MCP_API_KEY`       | No       | Auth key for the MCP endpoint (omit for open access) |\n| `MCP_PORT`          | No       | Port to listen on (default: `8081`) |\n| `SANDBOXAPI_URL`    | No       | API base URL (default: `https://api.sandboxapi.dev`) |\n\n## Security\n\nEvery code execution is isolated with defense-in-depth:\n\n- **gVisor (runsc)** — User-space kernel intercepts all syscalls\n- **Network isolation** — Executed code cannot make outbound connections\n- **Resource limits** — CPU, memory, and disk usage are capped\n- **Ephemeral containers** — Destroyed immediately after execution\n- **Read-only filesystem** — No persistent writes between executions\n- **Code size limits** — Source code capped at 1MB\n- **Timeout enforcement** — Hard kill after configured timeout\n\n## API Key\n\nGet your API key at [sandboxapi.dev](https://sandboxapi.dev) or through [RapidAPI](https://rapidapi.com/sandboxapidev/api/sandboxapi).\n\n## Links\n\n- [Website](https://sandboxapi.dev)\n- [Playground](https://sandboxapi.dev/playground)\n- [RapidAPI Listing](https://rapidapi.com/sandboxapidev/api/sandboxapi)\n- [MCP Specification](https://modelcontextprotocol.io)\n\n## License\n\nMIT\n",
  "bytes": 4644,
  "sha": "840e11cd4f0030870b0e9c918ea95e9b1c9e481f4b5156687ba99196a0d3548d",
  "repo_slug": "sandboxapi/sandboxapi-mcp",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_michielderuiter_sandboxapi_mcp_67fa264c/readme"
}