MCP Failure Lab

io.github.cloudlabworks/mcp-failure-lab

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

Connect this server

Add this to your MCP client config — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor).Suits: Claude Desktop · Cursor.

{
  "mcpServers": {
    "mcp-failure-lab": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/cloudlabworks/mcp-failure-lab:0.1.2"
      ],
      "env": {
        "LAB_SCENARIO": "healthy",
        "LAB_DELAY_MS": "1000",
        "LAB_FAILURES": "2"
      }
    }
  }
}
Environment variables
  • LAB_SCENARIOFault to inject: healthy, tool-error, transient-error, delay, malformed, or disconnect
  • LAB_DELAY_MSDelay in milliseconds for the delay scenario (0 to 10000)
  • LAB_FAILURESFailing calls before success for the transient-error scenario (0 to 10)

A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.

Category
Developer Tools
Version
0.1.2
Registry
active
Published
11/3/2026
Browse all Developer Tools →

Add the badge to your site

Show visitors that MCP Failure Lab is listed here — it’s also the link we check for a free listing.

MCP Failure Lab — listed on Serverdex

HTML — for your website

<a href="https://serverdex.io/server/io-github-cloudlabworks-mcp-failure-lab?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="MCP Failure Lab — listed on Serverdex" width="123" height="40" loading="lazy"></a>

Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.

Markdown — for your README

[![MCP Failure Lab — listed on Serverdex](https://serverdex.io/brand/badge.svg)](https://serverdex.io/server/io-github-cloudlabworks-mcp-failure-lab?utm_source=badge)

Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.