SandboxAPI MCP MCP server
An official MCP server provided by SandboxAPI that enables AI agents to execute code safely in gVisor sandboxes across 8 languages. It supports stateful sessions with persistent files and packages, streaming output via SSE, async polling, and batch execution, allowing agents to validate generated code, run benchmarks, or grade assignments without local Docker.
Endpoint and access
API key: create a key with the vendor first; your client sends it as an authorization header on every request.
API keyEndpoint checked 2026-10-05
MCP endpoint (Streamable HTTP)
https://mcp.sandboxapi.dev/mcpWhat you can do with it
- Validate LLM-generated code against test harnesses
- Run stateful code interpreter loops for debugging agents
- Benchmark solution performance and time complexity
- Auto-grade student assignments with weighted rubrics
Connect from your client
Each snippet registers the same endpoint; pick the client you use.
Claude Code
Claude Code configuration
claude mcp add --transport http sandboxapi-mcp https://mcp.sandboxapi.dev/mcpCodex
Codex configuration
codex mcp add sandboxapi-mcp --url https://mcp.sandboxapi.dev/mcpCursor
Cursor configuration
{
"mcpServers": {
"sandboxapi-mcp": {
"url": "https://mcp.sandboxapi.dev/mcp"
}
}
}Cline
Cline configuration
{
"mcpServers": {
"sandboxapi-mcp": {
"type": "streamableHttp",
"url": "https://mcp.sandboxapi.dev/mcp",
"disabled": false
}
}
}VS Code
VS Code configuration
{
"servers": {
"sandboxapi-mcp": {
"type": "http",
"url": "https://mcp.sandboxapi.dev/mcp"
}
}
}Gemini CLI
Gemini CLI configuration
gemini mcp add --transport http sandboxapi-mcp https://mcp.sandboxapi.dev/mcpClaude Desktop
Claude Desktop configuration
{
"mcpServers": {
"sandboxapi-mcp": {
"url": "https://mcp.sandboxapi.dev/mcp"
}
}
}Windsurf
Windsurf configuration
{
"mcpServers": {
"sandboxapi-mcp": {
"serverUrl": "https://mcp.sandboxapi.dev/mcp"
}
}
}Other developer tools servers
Do you run SandboxAPI MCP?
Prove ownership with a DNS record, a well-known file, or your Official MCP Registry entry, and your edits publish immediately. Proofs are re-checked weekly; admins can still hide or remove a listing.