code-sandbox-mcp

code-sandbox-mcp

180

Code Sandbox MCP is a secure sandbox environment allowing AI applications to execute code within Docker containers safely. It offers features such as flexible container management, custom environment support, and real-time logging, supporting various platforms including Linux, macOS, and Windows.

Code Sandbox MCP 🐳

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.

🌟 Features

  • Flexible Container Management: Create and manage isolated Docker containers for code execution
  • Custom Environment Support: Use any Docker image as your execution environment
  • File Operations: Easy file and directory transfer between host and containers
  • Command Execution: Run any shell commands within the containerized environment
  • Real-time Logging: Stream container logs and command output in real-time
  • Multi-Platform: Supports Linux, macOS, and Windows

🚀 Installation

Prerequisites

  • Docker installed and running

🛠️ Available Tools

  • sandbox_initialize
  • copy_project
  • write_file
  • sandbox_exec
  • copy_file
  • sandbox_stop

🔐 Security Features

  • Isolated execution environment using Docker containers

🔧 Configuration

Claude Desktop

The installer automatically creates the configuration file.