What is 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. It features flexible container management, custom environment support, file operations, command execution, real-time logging, auto-updates, and multi-platform support.
Documentation
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
Auto-Updates: Built-in update checking and automatic binary updates
Multi-Platform: Supports Linux, macOS, and Windows
container_id (string, required): ID of the container returned from the initialize call
local_src_file (string, required): Path to a file in the local file system
dest_path (string, optional): Path to save the file in the sandbox environment
sandbox_stop
Stop and remove a running container sandbox.
Parameters:
container_id (string, required): ID of the container to stop and remove
Description:
Gracefully stops the specified container with a 10-second timeout and removes it along with its volumes.
Container Logs Resource
A dynamic resource that provides access to container logs.
Resource Path:containers://{id}/logs MIME Type:text/plain Description: Returns all container logs from the specified container as a single text resource.
🔐 Security Features
Isolated execution environment using Docker containers
Resource limitations through Docker container constraints
Separate stdout and stderr streams
🔧 Configuration# Claude Desktop
The installer automatically creates the configuration file. If you need to manually configure it: