sandbox-mcp
Sandbox MCP is a Model Context Protocol server allowing secure and isolated code execution within Docker containers, primarily for use by large language models. It offers solutions for safe code testing, troubleshooting, and educational coding tasks, enhancing code accuracy and reliability.
Overview
Sandbox MCP is a Model Context Protocol (MCP) server that allows Large Language Models (LLMs) to execute code in secure, isolated Docker containers. This setup helps in preventing issues caused by running untested code directly on your machine. Sandbox MCP provides an execution environment that is easy to configure and use, and operates as an AI-native MCP server locally.
Key Features
- Secure Code Execution: Run LLM-generated code safely in isolated environments.
- Code Testing: Validate code across different languages and configurations.
- User Code Validation: Ensure safety and correctness of user-submitted code.
- Network Troubleshooting: Utilize isolated network tools for diagnosing connectivity issues.
- Educational Use: Immediate, safe feedback for coding education and interviews.
- Automated Code Review: Test and review code with LLMs for actionable insights.
Installation
- Download Binary: Available from the Releases page.
- Install via Go: Requires Go 1.24 or higher.
- Build from Source: Fork and clone the repository, install dependencies, and build the project.
Usage
- Initialization: Configure before use with LLMs.
- With MCP Hosts/Clients: Integrate with configurations for specific use cases like Claude Desktop.
Available Sandboxes
Includes environments for various languages and tools like Python, Rust, Go, JavaScript, and network tools.