Local MCP code-execution sandbox · MIT

Run untrusted AI-agent code in a kernel-isolated sandbox on your own machine.

Free, local, and auditable — one runtime dependency, no cloud sandbox vendor, no per-second bill.

uv tool install vestibule-mcp
Configure for your OS & client ↓

Not a VM — shares the host kernel on Linux; sandboxes only code sent to run_code. Read SECURITY.md

Left: the same script runs directly on the host (reads a fake secret outside /workspace and connects to 1.1.1.1:80), then inside Vestibule (blocked on both, reporting isolation: native under WSL2). Right: vestibule-mcp ui shows the run live.

01 / Live Inspector

Local Inspector Preview (vestibule-mcp ui)

Interactive preview populated with sample audit records so you can explore the read-only local dashboard without installing anything. Run vestibule-mcp ui on your own machine to inspect live runs and /workspace on 127.0.0.1.

vestibule-mcp ui read-only sample data
ISOLATION 3 native · 1 blocked
MEDIAN WALL 170 ms
MEDIAN PEAK MEM 12 MiB
DENIED SYSCALLS 2 blocked

02 / Setup

Setup & Config Wizard

Pick your platform, MCP client, and optional limits for exact prerequisites, install commands, and config JSON. Runs offline with zero external requests.

Platform

MCP Client
Options
MiB
% of 1 core
s (max 60)

Default limits (256 MiB, 75%, 10 s) are omitted from config until changed. Timeout is clamped by VESTIBULE_MAX_TIMEOUT_S (default 60 s).

03 / Architecture

Inside the Isolation Chamber

Native Linux isolation below (no Docker, no root). On Windows, macOS, and stock Ubuntu 23.10+, Vestibule runs a locked-down throwaway container instead.

Clean MCP Server

Receives tool calls from your AI agent and never runs untrusted code in its own process.

  • Validates the language (Python, Node, or Bash), code size, and timeout before starting any sandbox.
  • Returns readable Blocked: replies instead of crashing your agent session.
  • Writes every call to a local audit log (code, isolation status, and usage — never output contents).

04 / Benchmarks

Measured Cold-Start Latency

Measured end-to-end through the MCP server (50 runs per backend on WSL2 Ubuntu with Docker Desktop).

Backend How it runs Median p95
native Linux kernel isolation (no Docker) 118 ms 141 ms
container Throwaway Docker container 895 ms 1002 ms

The container path here goes through Docker Desktop's VM, a hop a Docker Engine user on Linux doesn't pay, and each container run also starts one cleanup check (docker ps). So these are this host's numbers, not a speed-up factor.

05 / Security

Honest Threat Model

Clear boundaries on what Vestibule protects — and what it doesn't. Every run ends with an honest isolation: verdict.

What holds

For a run reporting native or container isolation, short of a kernel or container-runtime bug:

  • Host files stay private — files outside /workspace don't exist inside the sandbox.
  • No internet or network access — outbound connections are blocked at the kernel level.
  • Resource caps enforced — memory (no swap), CPU, process count, /tmp size, and timeout.
  • Honest status every run — clearly reports full isolation, degraded limits, or Blocked:.

What stays possible & what it isn't

Clear boundaries before trusting any sandbox with real credentials or projects:

  • Not a VM. On Linux, the sandbox shares your host kernel, so a kernel bug could in principle escape it.
  • Only run_code is sandboxed. Your agent's own shell and file tools still run on your machine unless you restrict them.
  • /workspace is writable (unless mounted read-only) and may contain symlinks created by code — Vestibule refuses symlinks, so keep it separate from real projects.
  • Output returns to your agent and is sent to its model provider.
  • Untested environments: arm64 Linux, Podman, and container runs on macOS.
Host vs Vestibule (isolation: native) + live vestibule-mcp ui
Expanded split-screen recording showing host probe vs Vestibule isolation: native and live vestibule-mcp ui.