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.43The 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.
--fromArgument· requiredInstall 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.BACKENDEnv var· optionalContainer backend to use. Must match the installed extra: mcp-docker, mcp-podman, or mcp-k8s.Default:dockerDOCKER_HOSTEnv var· optionalDocker or Podman socket URL, e.g. unix:///var/run/docker.sockKUBECONFIGEnv var· optionalPath to kubeconfig file when BACKEND=kubernetes.NAMESPACEEnv var· optionalKubernetes namespace used for sandbox pods when BACKEND=kubernetes.Default:defaultCOMMIT_CONTAINEREnv var· optionalCommit the container after a run so installed libraries persist between sessions.Default:true
Show 7 moreShow fewer
KEEP_TEMPLATEEnv var· optionalKeep the base image after the session ends to avoid re-pulling it on the next run.Default:trueSANDBOX_NETWORK_MODEEnv var· optionalNetwork mode for the sandbox container. Set to 'none' for hardened isolation. Docker and Podman backends only.SANDBOX_READ_ONLYEnv var· optionalMount the sandbox root filesystem read-only. Recommended: true. Docker and Podman backends only.SANDBOX_CAP_DROPEnv var· optionalComma-separated Linux capabilities to drop. Recommended: ALL. Docker and Podman backends only.SANDBOX_SECURITY_OPTEnv var· optionalComma-separated container security options, e.g. no-new-privileges. Docker and Podman backends only.SANDBOX_MEMORYEnv var· optionalMemory limit for the sandbox container, e.g. 4g. Docker and Podman backends only.SANDBOX_CPUSEnv var· optionalFractional CPU allocation for the sandbox container, e.g. 1.5. Docker and Podman backends only.
Links
Listed in the official MCP Registry since Aug 3, 2026. Mirrored daily; last checked Nov 26, 2026.