Code Sandbox MCP 🐳

by insecurepla

324 downloads
Not rated
GitHub

About

An MCP server to create secure code sandbox environment for executing code within Docker containers. This MCP server provides AI applications with a safe and isolated environment for running code while maintaining security through containerization.

Details

Author
insecurepla
Downloads
324
Categories
Developer Tools

- Multi-language support: Python, Go, Node.js, TypeScript.
- Automatic dependency detection and installation (pip, npm, go get).
- Real-time output and log streaming from containers.
- Background mode for long-running services.
- Volume mounting for project execution.
- Resource-limited, clean container cleanup after execution.

Install via the provided curl (Linux/Mac) or PowerShell (Windows) script, which checks for Docker, downloads the binary, and configures Claude Desktop automatically. Alternatively, manually download the binary from the releases page and add it to your PATH. Then use the run_code tool for snippets or run_project for full directory execution.

Code Sandbox MCP 🐳

smithery badge

A secure sandbox environment for executing code within Docker containers. This MCP server provides AI applications with a safe and isolated environment for running code while maintaining security through containerization.
Screenshot from 2025-01-26 02-37-42

🌟 Features

- Multi-Language Support: Run Python, Go, and Node.js code in isolated Docker containers
- TypeScript Support: Built-in support for TypeScript and JSX/TSX files
- Dependency Management: Automatic handling of project dependencies (pip, go mod, npm)
- Flexible Execution: Custom entrypoints for both single-file code and full projects
- Background Mode: Run long-running services in the background
- Real-time Output: Capture and stream container logs in real-time

🚀 Installation

Prerequisites

- Docker installed and running
- Install Docker for Linux
- Install Docker Desktop for macOS
- Install Docker Desktop for Windows

Quick Install

Linux, MacOS

curl -fsSL https://raw.githubusercontent.com/Automata-Labs-team/code-sandbox-mcp/main/install.sh | bash

Example output:

Downloading latest release...
Installing to /home/user/.local/share/code-sandbox-mcp/code-sandbox-mcp...
Adding to Claude Desktop configuration...
Added code-sandbox-mcp to /home/user/.config/Claude/claude_desktop_config.json
Installation complete!
You can now use code-sandbox-mcp with Claude Desktop or other AI applications.

Windows

```powershell
No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.