{"type":"mcp_server","name":"code-sandbox-mcp","description":"This repository provides a secure code execution environment using Docker containers, enabling AI applications to safely run code in isolated environments with features like flexible container management and real-time logging.","category":"Developer Tools","language":"Go","stars":324,"forks":13,"owner":"Automata-Labs-team","github_url":"https://github.com/Automata-Labs-team/code-sandbox-mcp","homepage":null,"setup":"## Setup\n\n### Prerequisites\n\n- Docker installed and running\n  - [Install Docker for Linux](https://docs.docker.com/engine/install/)\n  - [Install Docker Desktop for macOS](https://docs.docker.com/desktop/install/mac/)\n  - [Install Docker Desktop for Windows](https://docs.docker.com/desktop/install/windows-install/)\n\n### Quick Install\n\n#### Linux, MacOS\n```bash\ncurl -fsSL https://raw.githubusercontent.com/Automata-Labs-team/code-sandbox-mcp/main/install.sh | bash\n```\n\n#### Windows\n```powershell\n# Run in PowerShell\nirm https://raw.githubusercontent.com/Automata-Labs-team/code-sandbox-mcp/main/install.ps1 | iex\n```\n\nThe installer will:\n1. Check for Docker installation\n2. Download the appropriate binary for your system\n3. Create necessary configuration files\n\n### Manual Installation\n\n1. Download the latest release for your platform from the [releases page](https://github.com/Automata-Labs-team/code-sandbox-mcp/releases)\n2. Place the binary in a directory in your PATH\n3. Make it executable (Unix-like systems only):\n   ```bash\n   chmod +x code-sandbox-mcp\n   ```","tools":"## Available Tools\n\n1.  Flexible Container Management: Create and manage isolated Docker containers for code execution.\n2.  Custom Environment Support: Use any Docker image as your execution environment.\n3.  File Operations: Easy file and directory transfer between host and containers.\n4.  Command Execution: Run any shell commands within the containerized environment.\n5.  Real-time Logging: Stream container logs and command output in real-time.\n6.  Auto-Updates: Built-in update checking and automatic binary updates.\n7.  Multi-Platform: Supports Linux, macOS, and Windows.\n8. `sandbox_initialize`: Initialize a new compute environment for code execution.\n9. `copy_project`: Copy a directory to the sandboxed filesystem.\n10. `write_file`: Write a file to the sandboxed filesystem.\n11. `sandbox_exec`: Execute commands in the sandboxed environment.\n12. `copy_file`: Copy a single file to the sandboxed filesystem.\n13. `sandbox_stop`: Stop and remove a running container sandbox.\n14. Container Logs Resource: A dynamic resource that provides access to container logs.","faq":null,"created_at":"2025-01-26T08:18:21+00:00","updated_at":"2025-03-28T06:32:23+00:00","source_url":"https://model-context-protocol.com/servers/secure-code-execution-docker-sandbox","related_articles":[]}