Secure Grid Genesis Execution
Click on "Deploy 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., "@Secure Grid Genesis Executionexecute Python to compute factorial of 10"
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.
Secure Grid Genesis Execution
An open-source, lightweight, and ultra-secure Model Context Protocol (MCP) Server designed to run arbitrary Python, JavaScript (Node.js), and Bash code in a highly restricted local Docker container.
This repository allows AI agents (like Claude Desktop, Antigravity, or Cursor) to test and run code locally without risking damage to the host system.
🔒 Security Features (Strict Sandbox Isolation)
When an AI agent requests to execute code, the server:
Air-Gaps Execution: Disables all network access (
network_mode="none") inside the container to prevent data exfiltration, reverse shells, or local network scanning.Mounts Read-Only Workspace: Mounts the host directory as a read-only (
ro) volume, ensuring that scripts can read workspace context but cannot delete, rewrite, or modify host files.Applies CPU & Memory Caps: Caps memory consumption to 256MB and restricts compute resources to 1 CPU core to prevent denial-of-service (DoS) exploits or memory leaks.
Runs as Non-Root User: Forces execution as a restricted user (
sandboxuserwith UID10001) inside the container to prevent container breakout vulnerabilities.
Related MCP server: Docker MCP Server
🚀 Setup & Installation
1. Prerequisites
Python 3.10+
Docker Desktop (Make sure the Docker daemon is running on your system)
2. Clone and Install Dependencies
git clone https://github.com/yourusername/secure-grid-genesis-execution.git
cd secure-grid-genesis-execution
pip install -r requirements.txt3. Build the Sandbox Container
Build the isolated environment image:
docker build -t secure-grid-sandbox -f Dockerfile.sandbox .4. Run Automated Containment Tests
Run the test script to verify that the sandbox correctly blocks file writes and network connections:
python test_sandbox.py🛠️ Registering the MCP Server
Add the following to your AI client's configuration file to register the server.
For Claude Desktop
Add this to %APPDATA%\Claude\claude_desktop_config.json (Windows) or ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
{
"mcpServers": {
"secure-grid-genesis-execution": {
"command": "python",
"args": [
"C:\\path\\to\\secure-grid-genesis-execution\\secure_executor.py"
]
}
}
}(Make sure to replace the path with the absolute path where you cloned the repo)
For Google Antigravity
Add this to ~/.gemini/config/mcp_config.json:
{
"mcpServers": {
"secure-grid-genesis-execution": {
"command": "python",
"args": [
"C:\\path\\to\\secure-grid-genesis-execution\\secure_executor.py"
]
}
}
}🛠️ Exposed MCP Tools
The server exposes three tools to the AI agent:
execute_python(code): Safely executes a Python snippet.execute_node(code): Safely executes JavaScript code inside Node.js.execute_bash(command): Runs shell commands in a sandboxed Linux environment.
This server cannot be deployed
Maintenance
Related MCP Connectors
- mcp-serverOAuthai.cdbx
Build Apps and run code in 30 languages — sandboxed, with persistent sessions for agent loops.
Execute code in 8 languages (Python, JS, TS, Go, Java, C++, C, Bash) in gVisor sandboxes.
Remote Linux boxes for coding agents: Docker, a browser, screenshots, logs, human takeover.
Linux microVM sandboxes for AI agents: run commands, files, processes, pause and wake.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceProvides sandboxed code execution for AI agents with support for Python, JavaScript, and shell commands. Includes comprehensive safety features like destructive pattern blocking, timeout protection, and restricted file access for secure production use.7 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to safely execute code in isolated Docker containers with resource limits and security controls, supporting session management and automatic dependency installation.MIT
- AlicenseNot gradedqualityBmaintenanceA throwaway Docker sandbox for agents to run code and shell commands safely.24 npmMIT
- AlicenseAqualityBmaintenanceEnables AI coding agents to safely execute commands, run tests, and modify project files inside disposable, policy-enforced Docker sandboxes that are isolated from the host machine and its credentials.15MIT