LLM Sandbox
LLM Sandbox is an MCP server that adds developer tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Securely run LLM-generated code in isolated containers across 7 languages and 3 container backends. It has 1,137 GitHub stars, is released under the MIT license and runs locally with uvx llm-sandbox.
github.com/vndee/llm-sandbox (opens in a new tab)
Data as of from the GitHub API and the official MCP registry; description from the project's repository. Report an error
Install LLM Sandbox
Generated from the server's MCP registry entry. Replace your-value with your own values.
Claude Desktop
{
"mcpServers": {
"llm-sandbox": {
"command": "uvx",
"args": [
"llm-sandbox"
],
"env": {
"BACKEND": "your-value",
"DOCKER_HOST": "your-value",
"KUBECONFIG": "your-value",
"NAMESPACE": "your-value",
"COMMIT_CONTAINER": "your-value",
"KEEP_TEMPLATE": "your-value"
}
}
}
}Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.
Claude Code
claude mcp add --env BACKEND=your-value --env DOCKER_HOST=your-value --env KUBECONFIG=your-value --env NAMESPACE=your-value --env COMMIT_CONTAINER=your-value --env KEEP_TEMPLATE=your-value --transport stdio llm-sandbox -- uvx llm-sandboxCursor
{
"mcpServers": {
"llm-sandbox": {
"type": "stdio",
"command": "uvx",
"args": [
"llm-sandbox"
],
"env": {
"BACKEND": "your-value",
"DOCKER_HOST": "your-value",
"KUBECONFIG": "your-value",
"NAMESPACE": "your-value",
"COMMIT_CONTAINER": "your-value",
"KEEP_TEMPLATE": "your-value"
}
}
}
}Project file; use ~/.cursor/mcp.json to enable it in every project.
VS Code
{
"servers": {
"llm-sandbox": {
"type": "stdio",
"command": "uvx",
"args": [
"llm-sandbox"
],
"env": {
"BACKEND": "your-value",
"DOCKER_HOST": "your-value",
"KUBECONFIG": "your-value",
"NAMESPACE": "your-value",
"COMMIT_CONTAINER": "your-value",
"KEEP_TEMPLATE": "your-value"
}
}
}
}Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).
Environment variables
Variables the server reads at startup.
| Name | Required | Description |
|---|---|---|
BACKEND | No | Container backend to use. Must match the installed extra: mcp-docker, mcp-podman, or mcp-k8s. |
DOCKER_HOST | No | Docker or Podman socket URL, e.g. unix:///var/run/docker.sock |
KUBECONFIG | No | Path to kubeconfig file when BACKEND=kubernetes. |
NAMESPACE | No | Kubernetes namespace used for sandbox pods when BACKEND=kubernetes. |
COMMIT_CONTAINER | No | Commit the container after a run so installed libraries persist between sessions. |
KEEP_TEMPLATE | No | Keep the base image after the session ends to avoid re-pulling it on the next run. |
SANDBOX_NETWORK_MODE | No | Network mode for the sandbox container. Set to 'none' for hardened isolation. Docker and Podman backends only. |
SANDBOX_READ_ONLY | No | Mount the sandbox root filesystem read-only. Recommended: true. Docker and Podman backends only. |
SANDBOX_CAP_DROP | No | Comma-separated Linux capabilities to drop. Recommended: ALL. Docker and Podman backends only. |
SANDBOX_SECURITY_OPT | No | Comma-separated container security options, e.g. no-new-privileges. Docker and Podman backends only. |
SANDBOX_MEMORY | No | Memory limit for the sandbox container, e.g. 4g. Docker and Podman backends only. |
SANDBOX_CPUS | No | Fractional CPU allocation for the sandbox container, e.g. 1.5. Docker and Podman backends only. |
Tools (3)
Parsed from the Tools section of the README; check the repository for the current list.
execute_codeExecute code in a secure sandbox with automatic visualization capture
get_supported_languagesGet the list of supported programming languages
get_language_detailsGet detailed information about a specific language
About LLM Sandbox
Securely Execute LLM-Generated Code with Ease LLM Sandbox runs Large Language Model (LLM) generated code through a common API for container and local Linux and Windows sandbox backends. Choose an isolation backend for your deployment, configure its security controls, and reuse the same code execution and file APIs.
- code-generation
- code-interpreter
- large-language-models
- llm-sandbox
Similar MCP servers
More developer tools MCP servers
CPU Performance Engineering
usamahz/cpu-performance-engineering
A CPU performance engineering brain: a vetted reading list, benchmarks and cited source passages.
Too new to judge · created Sep 17, 2026
Developer toolsPythonSafeDep Vet MCP
safedep/vet
Protect your AI agents and IDEs from malicious open-source packages.
Active · last commit Oct 24, 2026
OfficialDeveloper toolsGoRef Tools MCP
ref-tools/ref-tools-mcp
Token-efficient search for coding agents over public and private documentation.
Maintained · last commit Sep 28, 2026
OfficialDeveloper toolsTypeScriptpyscn
ludo-technologies/pyscn
Python code analysis for AI agents: complexity, dead code, clones, coupling, and a health score.
Active · last commit Oct 26, 2026
Developer toolsGoToken Savior
Mibayy/token-savior
Structural codebase MCP server with persistent memory: navigate by symbol, recall across sessions.
Active · last commit Oct 15, 2026
Developer toolsPythonHOL Guard
hashgraph-online/hol-guard
Local-first AI agent security evidence and approval workflows through HOL Guard's stdio MCP server.
Active · last commit Oct 26, 2026
OfficialDeveloper toolsPython
How do I install the LLM Sandbox MCP server?
Add the command uvx llm-sandbox to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.
Is LLM Sandbox free?
The server is open source under the MIT license, so running it is free. It does not declare any required API key.
Is LLM Sandbox actively maintained?
The most recent commit was on Oct 26, 2026. The latest release is 0.3.46, published Oct 16, 2026. appsgit only lists MCP servers with a commit in the last six months.