
SandboxAPI
io.github.MichielDeRuiterPublished by GitHub account MichielDeRuiterv1.0.0Updated Oct 24, 2026
Execute code in 8 languages (Python, JS, TS, Go, Java, C++, C, Bash) in gVisor sandboxes.
Overview
SandboxAPI lets an AI assistant run code in eight languages inside isolated gVisor sandboxes, either through a hosted remote endpoint or a self-hosted Docker…
- What you can do
- Run code in Python, JavaScript, TypeScript, Go, Java, C++, C or Bash with optional timeout and stdin
- Run several snippets in one batch, each in its own isolated sandbox
- List supported languages with versions and example code
- When to use it
- Useful when an assistant needs to actually execute or test code rather than reason about it, and you want that execution isolated from your machine and network. Good for quick script checks, language comparisons and batch experiments.
- Requirements
- Either the hosted remote endpoint with OAuth or a bearer API key, or a local Docker image or Go build. Self-hosting needs SANDBOXAPI_API_KEY; MCP_API_KEY, MCP_PORT and SANDBOXAPI_URL are optional. An API key is obtained from the vendor site or RapidAPI.
Installation
In SourceWeft
- Open SandboxAPI in the dashboard and add it to a workspace.
- Connect the required credentials. They are stored privately and never shown on public pages.
- Enable the server for the chats that should use its tools.
Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.
Use with an agent
Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.
Read https://sourceweft.com/mcp/io.github.MichielDeRuiter%2Fsandboxapi-mcp/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.Other MCP clients
Add this to your client's mcpServers config. The client completes OAuth sign-in on first connect.
{
"mcpServers": {
"sandboxapi": {
"type": "http",
"url": "https://mcp.sandboxapi.dev/mcp"
}
}
}README
SandboxAPI MCP Server
Give your AI agent the ability to execute code in 8 programming languages, safely.
SandboxAPI 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.
Quick Start
Option 1: Remote Server (No Setup)
Connect directly to the hosted endpoint. No local installation required.
Claude Desktop (claude_desktop_config.json):
VS Code (.vscode/mcp.json):
Cursor (~/.cursor/mcp.json):
Option 2: Docker
Then point your client to http://localhost:8081/mcp.
Option 3: Build from Source
Available Tools
execute_code
Execute code in a sandboxed container.
execute_batch
Execute multiple code snippets. Each runs in its own isolated sandbox.
list_languages
List all supported programming languages with versions and example code. No parameters.
Supported Languages
Environment Variables
Security
Every code execution is isolated with defense-in-depth:
- gVisor (runsc) — User-space kernel intercepts all syscalls
- Network isolation — Executed code cannot make outbound connections
- Resource limits — CPU, memory, and disk usage are capped
- Ephemeral containers — Destroyed immediately after execution
- Read-only filesystem — No persistent writes between executions
- Code size limits — Source code capped at 1MB
- Timeout enforcement — Hard kill after configured timeout
API Key
Get your API key at sandboxapi.dev or through RapidAPI.
Links
License
MIT
Source: README.md at commit edb9d15
Tools
0Version history
1- v1.0.0LatestSep 16, 2026
Score
85% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 daysRequired25 pts
- Auth declaredRequired10 pts
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts