mcpbeat Sign in

LLM Sandbox MCP Server

local only

LLM Sandbox runs on your own machine — the client starts it, so there is no endpoint to ping. 93 684 installs a week from pypi. Last commit 14 Sep 2026.

Securely run LLM-generated code in isolated containers across 7 languages and 3 container backends.

Installs per day peak 31 217 · avg 13 874 · +12% w/w
a month agotoday
93 684
Installs / week
pypi · llm-sandbox
1121
Stars
19 open issues
14 Sep 2026
Last commit
0 releases in 90 days
MIT
License
Python

What the code does

We read the source, 18 h ago · rules 3dff92dd89df

Capabilities

What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.

File ships in the package but is absent from the source [пакет] llm_sandbox/security.py:1
этот файл ставится пользователю, но в репозитории его нет
Builds a database query by concatenation [пакет] .github/workflows/on-release-main.yml:48, .github/workflows/on-release-main.yml:48
      - name: Update CITATION.cff to the released version
        env:
          RELEASE_VERSION: ${{ github.event.release.tag_name }}

Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.

This code can reach further than it looks

We found places where it runs commands, builds paths or queries from values it is given. None of that is a flaw by itself — it becomes one when the code changes, and code changes quietly between releases. We re-read it on every one.

Three servers free · no card

Connect this server

This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.

run in your terminal
claude mcp add llm-sandbox -- uvx llm-sandbox
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "llm-sandbox": {
      "args": [
        "llm-sandbox"
      ],
      "command": "uvx"
    }
  }
}
~/.codex/config.toml
[mcp_servers.llm-sandbox]
command = "uvx"
args = ["llm-sandbox"]
.cursor/mcp.json
{
  "mcpServers": {
    "llm-sandbox": {
      "args": [
        "llm-sandbox"
      ],
      "command": "uvx"
    }
  }
}
.vscode/mcp.json
{
  "mcpServers": {
    "llm-sandbox": {
      "args": [
        "llm-sandbox"
      ],
      "command": "uvx"
    }
  }
}

This one needs environment variables set before it will start: BACKEND (Container backend to use. Must match the installed extra: mcp-docker, mcp-podman, or mcp-k8s.), DOCKER_HOST (Docker or Podman socket URL, e.g. unix:///var/run/docker.sock), KUBECONFIG (Path to kubeconfig file when BACKEND=kubernetes.), NAMESPACE (Kubernetes namespace used for sandbox pods when BACKEND=kubernetes.), COMMIT_CONTAINER (Commit the container after a run so installed libraries persist between sessions.), KEEP_TEMPLATE (Keep the base image after the session ends to avoid re-pulling it on the next run.), SANDBOX_NETWORK_MODE (Network mode for the sandbox container. Set to 'none' for hardened isolation. Docker and Podman backends only.), SANDBOX_READ_ONLY (Mount the sandbox root filesystem read-only. Recommended: true. Docker and Podman backends only.), SANDBOX_CAP_DROP (Comma-separated Linux capabilities to drop. Recommended: ALL. Docker and Podman backends only.), SANDBOX_SECURITY_OPT (Comma-separated container security options, e.g. no-new-privileges. Docker and Podman backends only.), SANDBOX_MEMORY (Memory limit for the sandbox container, e.g. 4g. Docker and Podman backends only.), SANDBOX_CPUS (Fractional CPU allocation for the sandbox container, e.g. 1.5. Docker and Podman backends only.). The author declared them in the registry entry; get the values from the project itself.

Alternatives to LLM Sandbox

same job, measured the same way
Cinch
by yusufkadry

Run AI-generated code safely. gVisor-isolated Python/JS sandboxes for any MCP client. Pay per run.

27 installs/wk local only
Cdbx
by cdbx

Build Apps and run code in 30 languages — sandboxed, with persistent sessions for agent loops.

answering
I
Hopx MCP
by hopx-ai

Execute code in isolated cloud containers. Supports Python, JavaScript, Bash, and Go.

local only
Agent Lsp
by blackwell-systems

Orchestrates language servers into 65 code-intelligence tools across 31 languages, token-optimized.

238 installs/wk local only
MetaEngine
by metaengine

Code generation from JSON recipes, linked type graphs, and API schemas across 11 languages.

143 installs/wk local only
E2b
by mcparmory

Create and manage secure sandboxes for running AI agent code

238 installs/wk local only
SandboxAPI
by michielderuiter

Execute code in 8 languages (Python, JS, TS, Go, Java, C++, C, Bash) in gVisor sandboxes.

answering
STUzhy Py Execute MCP
by smithery

Run Python code in a secure sandbox without local setup. Declare inline dependencies and execute s…

answering

LLM Sandbox — questions

Answers built from our own checks of this server.

Why is there no uptime for LLM Sandbox?
LLM Sandbox runs on your own machine over stdio — there is no network address to reach, so uptime cannot be measured for it by anyone. What can be measured is adoption: the pypi package llm-sandbox was installed 93 684 times last week.
How do I connect LLM Sandbox?
Copy the ready config from this page — we generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each with the file path that client actually reads. It runs locally, so the command pulls llm-sandbox straight from pypi; nothing to host, nothing to sign up for.
How many people use LLM Sandbox?
The pypi package llm-sandbox was installed 93 684 times in the last week. Week over week that is +12%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is LLM Sandbox open source?
Yes — it is published under the MIT licence, written in Python, 1 121 stars on GitHub and 19 open issues. The source link is on this page, so you can read exactly what it does with your data before you connect it.