Skip to main content
ClaudeWave

A chaos-engineering and resilience-testing toolkit for Model Context Protocol servers.

MCP ServersOfficial Registry0 stars0 forksTypeScriptMITUpdated today
ClaudeWave Trust Score
95/100
Verified
Passed
  • Open-source license (MIT)
  • Actively maintained (<30d)
  • Clear description
  • Topics declared
  • Documented (README)
Last scanned: 8/27/2026
Install in Claude Code / Claude Desktop
Method: NPX · mcp-failure-lab
Claude Code CLI
claude mcp add mcp-failure-lab -- npx -y mcp-failure-lab
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "mcp-failure-lab": {
      "command": "npx",
      "args": ["-y", "mcp-failure-lab"]
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
Use cases

MCP Servers overview

# MCP Failure Lab

[![npm version](https://img.shields.io/npm/v/mcp-failure-lab)](https://www.npmjs.com/package/mcp-failure-lab)
[![CI](https://github.com/anilloutombam/mcp-failure-lab/actions/workflows/ci.yml/badge.svg)](https://github.com/anilloutombam/mcp-failure-lab/actions/workflows/ci.yml)

A chaos-engineering and resilience-testing toolkit for Model Context Protocol servers.

[Documentation](https://mcplab.dev/docs/) ·
[Project page](https://mcplab.dev/failure)

![MCP Failure Lab demonstrating a bounded delay and an expected timeout](docs/demo.gif)

## Quick start

Run a real deterministic delay scenario without cloning the repository or installing the package globally:

```bash
npx mcp-failure-lab demo
```

Example output:

```text
MCP Failure Lab — Demo
Running a real 500ms delay scenario...

Scenario: Deterministic delay demo
Outcome: success
Duration: ~500 ms
Assertions: passed
```

The exact duration may vary slightly between runs. No API key or external MCP server is required.

Display the available commands:

```bash
npx mcp-failure-lab --help
```

Start the built-in MCP server over stdio:

```bash
npx mcp-failure-lab serve
```

## Purpose

MCP Failure Lab helps server authors reproduce delays, hanging tools, cancellation, and transport loss in a deterministic way.

It provides controlled failure behavior for testing timeout handling, cancellation cleanup, transport-loss recovery, assertions, and CI outcomes.

## Current scope

MCP Failure Lab runs deterministic JSON scenarios against its own built-in MCP server from the command line.

Available now:

- `ping`, `delay`, `hang`, and `disconnect` tools
- MCP communication over stdio
- Code-first and JSON scenario definitions
- Outcome and maximum-duration assertions
- MCP result assertions
- Sequential observer calls for post-condition verification
- Console and JSON reporting
- Machine-readable command errors
- CI-friendly exit codes
- Unit, integration, and end-to-end tests

Not implemented:

- External MCP client orchestration
- Target-client adapters
- Streamable HTTP
- JUnit reporting
- Malformed-message, duplicate-response, and session-loss faults

MCP Failure Lab is not currently a general-purpose proxy or an external MCP client test orchestrator.

## How it works

MCP Failure Lab runs deterministic scenarios through its built-in MCP client and server. A scenario invokes `ping`, `delay`, `hang`, or `disconnect`, records the observed outcome and duration, and evaluates the declared expectations.

Optional observer calls run sequentially on the same MCP client connection to verify post-conditions through a separate tool path.

See the [architecture documentation](https://mcplab.dev/docs/architecture/) for diagrams, responsibilities, and implementation boundaries.

## Documentation

Full guides and references are available at [mcplab.dev/docs](https://mcplab.dev/docs/).

- [Getting started](https://mcplab.dev/docs/getting-started/)
- [Scenarios](https://mcplab.dev/docs/scenarios/)
- [Fault tools](https://mcplab.dev/docs/fault-tools/)
- [CLI reference](https://mcplab.dev/docs/cli/)
- [Reporting](https://mcplab.dev/docs/reporting/)
- [Architecture](https://mcplab.dev/docs/architecture/)
- [Examples](https://mcplab.dev/docs/examples/)
- [Troubleshooting](https://mcplab.dev/docs/troubleshooting/)

## Requirements

- Node.js 22.19.0 or newer
- npm

## Protocol compatibility

MCP Failure Lab targets MCP `2026-07-28` by default. Its CLI server uses the SDK v2
era-aware stdio entry point, and its built-in scenario client pins `2026-07-28` so
modern behavior is exercised explicitly.

The server also accepts the `2025-11-25` initialization flow for compatibility.
That legacy path remains covered by integration tests, but new development targets
`2026-07-28`. The existing `ping`, `delay`, `hang`, and `disconnect` fault tools have
the same user-facing behavior in both eras; protocol features that rely on
server-initiated requests differ between eras and are outside these fault tools.

## Installation

Run the package directly with `npx`:

```bash
npx mcp-failure-lab demo
```

No global installation is required.

To install the command globally:

```bash
npm install -g mcp-failure-lab
```

## CLI

```bash
# Run the built-in demonstration
npx mcp-failure-lab demo

# Display command help
npx mcp-failure-lab --help

# Display the installed version
npx mcp-failure-lab --version

# Start the MCP server over stdio
npx mcp-failure-lab serve
```

The `serve` process waits for an MCP client. Press `Ctrl+C` to shut it down gracefully.

## Run a scenario

Scenario files use JSON:

```json
{
  "name": "bounded delay succeeds",
  "call": {
    "tool": "delay",
    "args": {
      "delayMs": 250
    }
  },
  "timeoutMs": 1000,
  "expect": {
    "outcome": "success",
    "maxDurationMs": 500
  }
}
```

From a repository checkout, run the included scenario:

```bash
npm run dev -- run examples/scenarios/delay-success.json
```

Generate machine-readable output:

```bash
npm run dev -- run examples/scenarios/delay-success.json --report json
```

The command exits with:

| Code | Meaning                                      |
| ---: | -------------------------------------------- |
|  `0` | All expectations passed                      |
|  `1` | The scenario could not be loaded or executed |
|  `2` | One or more assertions failed                |

For result assertions, observer calls, reporting formats, and timeout behavior, see the [scenario](https://mcplab.dev/docs/scenarios/) and [reporting](https://mcplab.dev/docs/reporting/) documentation.

## Fault tools

| Tool         | Behavior                                                     |
| ------------ | ------------------------------------------------------------ |
| `ping`       | Returns a deterministic health response                      |
| `delay`      | Waits for a bounded duration before returning                |
| `hang`       | Remains pending until the client cancels                     |
| `disconnect` | Interrupts the active transport while a request is in flight |

See the [fault tools reference](https://mcplab.dev/docs/fault-tools/) for arguments and behavior.

## Inspect the server

Launch MCP Inspector against the published package:

```bash
npx @modelcontextprotocol/inspector npx mcp-failure-lab serve
```

Connect over stdio, list the available tools, and invoke `ping`, `delay`, `hang`, or `disconnect`.

Do not share or commit temporary authentication tokens included in Inspector URLs.

## External integration validation

MCP Failure Lab was independently validated with a Future AGI simulation using an independent Python MCP client. The experiment invoked the real `hang` tool over stdio and applied a client-side timeout before evaluating simulated agent responses.

This is an external validation example, not an official Future AGI integration or endorsement.

See the [Future AGI example](https://mcplab.dev/docs/examples/#future-agi-experiment) for results and reproduction steps.

## Development

Clone the repository and install its dependencies:

```bash
git clone https://github.com/anilloutombam/mcp-failure-lab.git
cd mcp-failure-lab
npm install
```

Run the development CLI:

```bash
npm run dev -- --help
```

Before opening a pull request, run:

```bash
npm run format:check
npm run typecheck
npm test
npm run build
```

See [CONTRIBUTING.md](CONTRIBUTING.md) for the contribution workflow.

## Roadmap

Planned work is tracked in [GitHub Issues](https://github.com/anilloutombam/mcp-failure-lab/issues).

Roadmap items are not part of the current implementation unless explicitly documented as available.

## License

[MIT](LICENSE)
chaos-engineeringclifault-injectionmcp-servermcp-testingmodel-context-protocolresilience-testingtypescript

What people ask about mcp-failure-lab

What is anilloutombam/mcp-failure-lab?

+

anilloutombam/mcp-failure-lab is mcp servers for the Claude AI ecosystem. A chaos-engineering and resilience-testing toolkit for Model Context Protocol servers. It has 0 GitHub stars and its last recorded update is dated 2026-08-27.

How do I install mcp-failure-lab?

+

You can install mcp-failure-lab by cloning the repository (https://github.com/anilloutombam/mcp-failure-lab) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.

Is anilloutombam/mcp-failure-lab safe to use?

+

Our security agent has analyzed anilloutombam/mcp-failure-lab and assigned a Trust Score of 95/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.

Who maintains anilloutombam/mcp-failure-lab?

+

anilloutombam/mcp-failure-lab is maintained by anilloutombam. The last recorded GitHub activity is dated 2026-08-27, with 12 open issues.

Are there alternatives to mcp-failure-lab?

+

Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.

Deploy mcp-failure-lab to your cloud

Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.

Maintain this repo? Add a badge to your README

Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.

Featured on ClaudeWave: anilloutombam/mcp-failure-lab
[![Featured on ClaudeWave](https://claudewave.com/api/badge/anilloutombam-mcp-failure-lab)](https://claudewave.com/repo/anilloutombam-mcp-failure-lab)
<a href="https://claudewave.com/repo/anilloutombam-mcp-failure-lab"><img src="https://claudewave.com/api/badge/anilloutombam-mcp-failure-lab" alt="Featured on ClaudeWave: anilloutombam/mcp-failure-lab" width="320" height="64" /></a>

More MCP Servers

mcp-failure-lab alternatives