MCP Catalogs
Homesandbox-mcp screenshot

sandbox-mcp

by pottekkat·110·Score 41

Sandbox MCP enables secure code execution in isolated Docker containers through the MCP protocol.

developer-toolssecurityai-llm
23
Forks
8
Open issues
12 mo ago
Last commit
2d ago
Indexed

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:

you:Secure code execution to test LLM-generated code safely
you:Automated code testing and validation in various environments
you:Network troubleshooting and diagnostics in isolated environments
you:Educational coding with immediate feedback in safe environments
you:What languages are supported?
you:How secure is the code execution?
you:Do I need Docker installed?

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 README
  • run_shell

    Execute commands in a secure, isolated Linux environment

  • run_python

    Execute Python code in a secure, isolated environment

  • run_rust

    Compile and run Rust code in an isolated environment

  • run_network_tools

    Use various network utilities in an isolated Linux sandbox

  • run_go

    Run Go code securely in an isolated environment with network access

  • run_javascript

    Run JavaScript code in an isolated environment using Node.js

  • run_apisix

    Run a lightweight instance of Apache APISIX with network access

  • run_java

    Compile 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

codapireplit-apivm-essentials

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@latest

Build from Source

git clone https://github.com/pottekkat/sandbox-mcp.git
cd sandbox-mcp
make deps
make build

Configuration

{
    "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

GitHub →

Last updated · Auto-generated from public README + GitHub signals.