Skip to main content

LLM Sandbox

io.github.vndee/llm-sandbox

v0.3.43Updated Aug 3, 2026stdio · PyPI

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

Install

Nothing to fill in: copy and run.

Run in your terminal

claude mcp add llm-sandbox -e BACKEND=docker -e NAMESPACE=default -e COMMIT_CONTAINER=true -e KEEP_TEMPLATE=true -- uvx llm-sandbox==0.3.43

The registry lists extra launch arguments or environment variables for this server that could change what runs. They are left out here; check its repository before adding any.

Configuration

13 settings.

  • --from
    Argument· required
    Install the MCP server extra. The base llm-sandbox package intentionally ships no container or MCP dependencies, so the extra is required for the server to start.
  • BACKEND
    Env var· optional
    Container backend to use. Must match the installed extra: mcp-docker, mcp-podman, or mcp-k8s.Default: docker
  • DOCKER_HOST
    Env var· optional
    Docker or Podman socket URL, e.g. unix:///var/run/docker.sock
  • KUBECONFIG
    Env var· optional
    Path to kubeconfig file when BACKEND=kubernetes.
  • NAMESPACE
    Env var· optional
    Kubernetes namespace used for sandbox pods when BACKEND=kubernetes.Default: default
  • COMMIT_CONTAINER
    Env var· optional
    Commit the container after a run so installed libraries persist between sessions.Default: true
Show 7 more
  • KEEP_TEMPLATE
    Env var· optional
    Keep the base image after the session ends to avoid re-pulling it on the next run.Default: true
  • SANDBOX_NETWORK_MODE
    Env var· optional
    Network mode for the sandbox container. Set to 'none' for hardened isolation. Docker and Podman backends only.
  • SANDBOX_READ_ONLY
    Env var· optional
    Mount the sandbox root filesystem read-only. Recommended: true. Docker and Podman backends only.
  • SANDBOX_CAP_DROP
    Env var· optional
    Comma-separated Linux capabilities to drop. Recommended: ALL. Docker and Podman backends only.
  • SANDBOX_SECURITY_OPT
    Env var· optional
    Comma-separated container security options, e.g. no-new-privileges. Docker and Podman backends only.
  • SANDBOX_MEMORY
    Env var· optional
    Memory limit for the sandbox container, e.g. 4g. Docker and Podman backends only.
  • SANDBOX_CPUS
    Env var· optional
    Fractional CPU allocation for the sandbox container, e.g. 1.5. Docker and Podman backends only.

Listed in the official MCP Registry since Aug 3, 2026. Mirrored daily; last checked Nov 26, 2026.