Skip to content
Grok

ScratchRun for Grok

dev.scratchrun/mcp

Ephemeral MicroVM-isolated code execution for AI agents. Fresh VM per call, hard-purged after.

client:Grok transport:stdio runtime:npm

Install ScratchRun in Grok

.mcp.json (in your project root)

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

{
  "mcpServers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@scratchrun/mcp-server"
      ],
      "env": {
        "SCRATCHRUN_API_KEY": "<SCRATCHRUN_API_KEY>"
      }
    }
  }
}

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

ScratchRun in other clients