
sandbox-mcp
by pottekkat·★ 110·Score 41
Sandbox MCP enables secure code execution in isolated Docker containers through the MCP protocol.
Overview
Sandbox MCP is a Model Context Protocol server that allows LLMs to safely execute code in isolated Docker environments. It provides a secure sandbox for testing code without risking the host system, supporting multiple programming languages and specialized environments. The project actively maintains various pre-configured sandboxes including Python, Rust, Go, JavaScript, and network tools, making it highly versatile for different use cases.
Try asking AI
After installing, here are 7 things you can ask your AI assistant:
When to choose this
Choose Sandbox MCP when you need to safely execute code generated by LLMs in isolated environments, particularly for testing or educational purposes.
When NOT to choose this
Avoid Sandbox MCP if you need to execute code requiring persistent storage or network access beyond what the sandboxes provide, or if Docker is not available in your environment.
Tools this server exposes
8 tools extracted from the READMErun_shellExecute commands in a secure, isolated Linux environment
run_pythonExecute Python code in a secure, isolated environment
run_rustCompile and run Rust code in an isolated environment
run_network_toolsUse various network utilities in an isolated Linux sandbox
run_goRun Go code securely in an isolated environment with network access
run_javascriptRun JavaScript code in an isolated environment using Node.js
run_apisixRun a lightweight instance of Apache APISIX with network access
run_javaCompile and run Java code in an isolated sandbox
Note: Inferred tool names from the 'Available Sandboxes' section. The README shows sandbox types but doesn't explicitly list MCP tool names. Each tool is named 'run_<language>' based on the sandbox names.
Comparable tools
Installation
Installation
Download Binary
Download the appropriate binary for your OS from the [Releases page](https://github.com/pottekkat/sandbox-mcp/releases).
Install via Go
go install github.com/pottekkat/sandbox-mcp/cmd/sandbox-mcp@latestBuild from Source
git clone https://github.com/pottekkat/sandbox-mcp.git
cd sandbox-mcp
make deps
make buildConfiguration
{
"mcpServers": {
"sandbox-mcp": {
"command": "path/to/sandbox-mcp",
"args": [
"--stdio"
]
}
}
}FAQ
- What languages are supported?
- Sandbox MCP supports Python, Rust, Go, JavaScript, Java, and shell environments with network tools. You can also create custom sandboxes.
- How secure is the code execution?
- Code runs in isolated Docker containers that don't affect your host system. Each sandbox is specifically configured for its purpose.
- Do I need Docker installed?
- Yes, Docker is required to run the sandbox containers. Make sure Docker is installed and running before using Sandbox MCP.
Compare sandbox-mcp with
Last updated · Auto-generated from public README + GitHub signals.