Skip to content
Grok

MCP Failure Lab for Grok

io.github.cloudlabworks/mcp-failure-lab

Deliberately faulty MCP server for testing how agent clients handle tool errors and disconnects.

client:Grok transport:stdio runtime:oci

Install MCP Failure Lab 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-failure-lab": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/cloudlabworks/mcp-failure-lab:0.1.2"
      ],
      "env": {
        "LAB_SCENARIO": "<LAB_SCENARIO>",
        "LAB_DELAY_MS": "<LAB_DELAY_MS>",
        "LAB_FAILURES": "<LAB_FAILURES>"
      }
    }
  }
}

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

MCP Failure Lab in other clients