LLM Sandbox for Grok
io.github.vndee/llm-sandbox
Securely run LLM-generated code in isolated containers across 7 languages and 3 container backends.
client:Grok
transport:stdio
runtime:pypi
Install LLM Sandbox in Grok
.mcp.json (in your project root)
{
"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>"
}
}
}
}
Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs