Cover image
Try Now
2025-04-14

Permitir que LLM ejecute cualquier código/configuración de forma segura en contenedores Docker aislados utilizando el Protocolo de contexto del modelo (MCP).

3 years

Works with Finder

10

Github Watches

1

Github Forks

10

Github Stars

Sandbox MCP

Sandbox MCP Logo

Sandbox MCP is a Model Context Protocol (MCP) server that lets LLMs (MCP hosts/clients) run code and configuration in secure, isolated Docker containers.

While LLMs are really good at generating code, most can't run the code they generate. This could result in you running untested code directly on your machine, which could have unintended consequences.

Sandbox MCP gives the LLMs an easy-to-use execution environment that anyone can create and configure through a simple, AI-native MCP server that runs locally.

Inspired by Codapi. Some sandboxes are the same as Codapi sandboxes.

Demo

The demo below shows how the MCP works with Claude Desktop. See the video if the GIF below isn't clear.

Sandbox MCP demo GIF

Installation

Download Binary

You can download and use the appropriate binary for your operating system and processor archetecture from the "Releases" page.

Install via Go

Prerequisites:

  • Go 1.24 or higher
go install github.com/pottekkat/sandbox-mcp/cmd/sandbox-mcp@latest

Get the path to the sandbox-mcp binary:

which sandbox-mcp

Build from Source

See Development section below.

Usage

Initilization

Before you use sandbox-mcp with LLMs, you need to initialize its configuration:

# Create the configuration directory and
# pull the default sandboxes from GitHub
sandbox-mcp --pull

# Build the Docker images for the sandboxes
sandbox-mcp --build

[!NOTE] Make sure you have Docker installed and running.

With MCP Hosts/Clients

Add this to your claude_desktop_config.json for Claude Desktop or mcp.json for Cursor:

{
    "mcpServers": {
        "sandbox-mcp": {
            "command": "path/to/sandbox-mcp",
            "args": [
                "--stdio"
            ]
        }
    }
}

[!NOTE] Make sure to replace path/to/sandbox-mcp with the actual path to the sandbox-mcp binary.

Available Sandboxes

shell

Run shell commands in a Linux environment with strict security and network constraints.

python

Run Python code with a set of pre-installed libraries.

[!IMPORTANT]

Your Own Sandbox

You can create your own sandboxes by creating a new directory in the sandboxes directory with your sandbox name and adding a Dockerfile and config.json to it. See /sandboxes/ for examples.

network-tools

Use various network tools in an isolated Linux sandbox. The container has network access.

See jonlabelle/docker-network-tools for a list of available tools.

go

Run simple Go code in an isolated sandbox.

javascript

Run JavaScript code using Node.js.

Development

Fork and clone the repository:

git clone https://github.com/username/sandbox-mcp.git

Change into the directory:

cd sandbox-mcp

Install dependencies:

make deps

Build the project:

make build

Update your MCP servers configuration to point to the local build:

{
    "mcpServers": {
        "sandbox-mcp": {
            "command": "/path/to/sandbox-mcp/dist/sandbox-mcp",
            "args": [
                "--stdio"
            ]
        }
    }
}

License

MIT License

相关推荐

  • av
  • Ejecute sin esfuerzo LLM Backends, API, frontends y servicios con un solo comando.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的 llM 资料总结(数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Resumen de los mejores recursos del mundo.

  • 1Panel-dev
  • 🔥 1Panel proporciona una interfaz web intuitiva y un servidor MCP para administrar sitios web, archivos, contenedores, bases de datos y LLM en un servidor de Linux.

  • rulego
  • ⛓️Rulego es un marco de motor de regla de orquestación de componentes de alta generación de alto rendimiento, de alto rendimiento y de alto rendimiento para GO.

  • hkr04
  • SDK liviano C ++ MCP (Protocolo de contexto del modelo)

  • sigoden
  • Cree fácilmente herramientas y agentes de LLM utilizando funciones Plain Bash/JavaScript/Python.

  • RockChinQ
  • 😎简单易用、🧩丰富生态 - 大模型原生即时通信机器人平台 | 适配 Qq / 微信(企业微信、个人微信) / 飞书 / 钉钉 / Discord / Telegram / Slack 等平台 | 支持 Chatgpt 、 Deepseek 、 DiFy 、 Claude 、 Gemini 、 Xai 、 PPIO 、 Ollama 、 LM Studio 、阿里云百炼、火山方舟、 Siliconflow 、 Qwen 、 Moonshot 、 Chatglm 、 SillyTraven 、 MCP 等 LLM 的机器人 / Agente | Plataforma de bots de mensajería instantánea basada en LLM, admite Discord, Telegram, WeChat, Lark, Dingtalk, QQ, Slack

  • evilsocket
  • El kit de desarrollo de agentes simples.

  • modelscope
  • Iniciar aplicaciones de múltiples agentes empoderadas con Building LLM de manera más fácil.

    Reviews

    2.5 (6)
    Avatar
    user_zeJG3xbI
    2025-04-25

    As a dedicated user of sandbox-mcp by pottekkat, I find this tool incredibly efficient and versatile. Its user-friendly interface and robust features make it ideal for both beginners and advanced users. Highly recommend for any project requiring a reliable MCP application!

    Avatar
    user_OXCK260J
    2025-04-25

    Sandbox-MCP is an outstanding tool created by pottekkat that efficiently meets all my requirements. It offers a seamless user experience straight from the start, with an intuitive welcoming message and user-friendly interface. This product exemplifies quality and reliability, making it an indispensable part of my toolkit. Highly recommended!

    Avatar
    user_WSpjOK32
    2025-04-25

    As a dedicated user of the sandbox-mcp by pottekkat, I must say it has dramatically improved my productivity. The interface is clean and intuitive, making it easy to navigate and utilize its features. Its functionality is impressive, and it seamlessly integrates with my workflow. Highly recommended for anyone looking for a reliable and efficient application!

    Avatar
    user_xpM5FEr4
    2025-04-25

    The sandbox-mcp by pottekkat is an exceptional application for managed content production. Its user-friendly interface and robust features make content management a breeze. I appreciate the seamless integration it offers, which has significantly improved my productivity. Highly recommend to anyone in need of a reliable MCP tool!

    Avatar
    user_98O358Ak
    2025-04-25

    Sandbox-MCP is an incredibly user-friendly tool that offers a seamless experience for managing MCP applications. Pottekkat has done an exceptional job in designing a platform that is both intuitive and efficient. The lack of unnecessary complexities makes it ideal for users of all levels. Highly recommended for anyone looking to streamline their MCP processes!

    Avatar
    user_6dbSgoZ1
    2025-04-25

    The sandbox-mcp by pottekkat is an exceptional tool for any MCP application enthusiast. Its intuitive interface and robust features make it a must-have for anyone looking to optimize their workflow. The seamless integration and comprehensive welcome information guide you through every step, ensuring a hassle-free experience. Highly recommended!