Utilizes Docker to provide secure, isolated code execution environments with features like container pooling, resource limits, and network isolation.
Enables the secure execution of JavaScript code within isolated sandboxes, supporting persistent sessions and file system operations.
Supports numerical computing and mathematical operations via the pre-installed NumPy library within the Python execution environment.
Provides data manipulation and analysis capabilities through the pandas library pre-installed in the Python sandbox.
Provides a secure environment for executing Python code, featuring persistent state sessions and a pre-configured machine learning runtime.
Allows for the secure execution of Rust code within an isolated, containerized environment.
Supports executing and testing TypeScript code in an isolated sandbox with features for package installation and state persistence.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Multi-Language SandboxRun a Python script using numpy to calculate the mean of [10, 20, 30, 40]"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Multi-Language Sandbox
Execute code securely in 6 programming languages with Docker isolation, designed for Claude Code via Model Context Protocol (MCP).
What is this?
A local MCP server that lets Claude execute code in isolated Docker containers. Think of it as your own private code sandbox - 100% free, 100% local, no cloud dependencies.
Why use this instead of cloud sandboxes?
Free: No per-execution costs (vs ~$0.10/run on cloud services)
Fast: 0ms container acquisition with pooling (vs 2-5s cold starts)
Private: Code never leaves your machine
Customizable: Add your own languages, packages, security rules
Features
6 Languages: Python, TypeScript, JavaScript, Go, Rust, Bash
Container Pooling: Pre-warmed containers for instant execution
Package Caching: Install once, reuse forever (SHA256-based)
ML Runtime: numpy, pandas, sklearn, torch, mlx pre-installed
Security: Seccomp profiles, capability dropping, audit logging
Sessions: Persistent state with TTL and auto-cleanup
Quick Start
Prerequisites
Node.js >= 18.0.0
Claude Code CLI (optional, for MCP integration)
Installation
Add to Claude Code
Manual Configuration
Add to your Claude settings (~/.claude.json or VS Code settings):
Usage
Once configured, Claude can use these tools:
Execute Code
Persistent Sessions
File Operations
System Stats
MCP Tools Reference
Tool | Description |
| Execute code in any supported language |
| Create/list/pause/resume/destroy sessions |
| Install packages with caching |
| Read/write/list/delete files in sessions |
| View system stats (pool, cache, sessions) |
| View audit logs and security events |
Architecture
Security
6 Layers of Protection
Code Validation - Pattern blocklist (os, subprocess, eval, exec)
Seccomp Profiles - Syscall filtering per language
Capability Dropping - CAP_DROP ALL
Network Isolation - NetworkMode: none
Resource Limits - Memory, CPU, PIDs, ulimits
Audit Logging - All operations tracked
Blocked Syscalls
ptrace, mount, umount, kexec_load, init_module, delete_module, reboot, bpf, userfaultfd, and more
Performance
Metric | Value |
Pool hit (warm) | 0ms |
Pool miss (cold) | ~80-100ms |
Session create | ~85ms |
Package cache hit | <1ms |
Python execution | ~60ms |
Bash execution | ~35ms |
Development
Project Structure
Contributing
Issues and PRs welcome! This started as a personal project to replace cloud sandboxes with something local and free.
License
MIT
Credits
Built with @modelcontextprotocol/sdk, Dockerode, and Zod.