Skip to content
Cursor

LLM Sandbox for Cursor

io.github.vndee/llm-sandbox

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

client:Cursor transport:stdio runtime:pypi

Install LLM Sandbox in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "llm-sandbox": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "llm-sandbox"
      ],
      "env": {
        "BACKEND": "<BACKEND>",
        "DOCKER_HOST": "<DOCKER_HOST>",
        "KUBECONFIG": "<KUBECONFIG>",
        "NAMESPACE": "<NAMESPACE>",
        "COMMIT_CONTAINER": "<COMMIT_CONTAINER>",
        "KEEP_TEMPLATE": "<KEEP_TEMPLATE>",
        "SANDBOX_NETWORK_MODE": "<SANDBOX_NETWORK_MODE>",
        "SANDBOX_READ_ONLY": "<SANDBOX_READ_ONLY>",
        "SANDBOX_CAP_DROP": "<SANDBOX_CAP_DROP>",
        "SANDBOX_SECURITY_OPT": "<SANDBOX_SECURITY_OPT>",
        "SANDBOX_MEMORY": "<SANDBOX_MEMORY>",
        "SANDBOX_CPUS": "<SANDBOX_CPUS>"
      }
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

LLM Sandbox in other clients