# MCP Eval Runner

> MCP Eval Runner is an MCP server for developer tools. Run YAML-defined regression tests against MCP servers from your MCP client. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/dbsectrainer/mcp-eval-runner
- **MCP Registry name:** io.github.dbsectrainer/mcp-eval-runner
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

Test cases are plain YAML (or JSON) files kept in version control: a list of steps, each naming a tool, its input and what to expect. In live mode the runner spawns a real MCP server over stdio and calls the tools; in simulation mode it checks assertions against a literal expected_output, which suits authoring and CI dry runs.

Assertions include output_contains, output_not_contains, output_equals, output_matches, schema_match against JSON Schema, tool_called and latency_under, and a step can reference an earlier step's output. Results come with pass/fail and diffs, runs are stored in SQLite for regression reports and run-to-run comparison, and there is a deployment gate that fails when the recent pass rate drops below a threshold. A GitHub Action is included and a watch mode reruns affected fixtures.

One caveat from the README: fixtures made with create_test_case run in simulation mode until you add a server block by hand. It needs Node 22.5 or newer.

## Features

- **YAML fixtures:** Diffable test cases with steps, inputs and expectations.
- **Live and simulation modes:** Spawn a real server or check static expected output.
- **Composable assertions:** Seven assertion types per step, including JSON Schema and latency.
- **Output piping:** Feed one step's output into the next.
- **Regression reports:** Compare a run with past runs and show what changed.
- **Deployment gate:** Fail CI when the pass rate falls below a threshold.
- **Watch mode:** Rerun the affected fixture on file changes.

## Good for

- Catching regressions in an MCP server before release
- Gating a deployment on eval pass rate
- Writing quick scaffolds for new test cases
- Sharing an HTML report of a test run

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mcp-eval-runner --env YOUR_API_KEY='<YOUR_API_KEY>' -- npx -y mcp-eval-runner
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcp-eval-runner": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-eval-runner"
      ],
      "env": {
        "YOUR_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-eval-runner": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-eval-runner"
      ],
      "env": {
        "YOUR_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp-eval-runner": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-eval-runner"
      ],
      "env": {
        "YOUR_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcp-eval-runner": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-eval-runner"
      ],
      "env": {
        "YOUR_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp-eval-runner --env YOUR_API_KEY='<YOUR_API_KEY>' -- npx -y mcp-eval-runner
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp-eval-runner]
command = "npx"
args = ["-y", "mcp-eval-runner"]
env = { YOUR_API_KEY = "<YOUR_API_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mcp-eval-runner": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-eval-runner"
      ],
      "env": {
        "YOUR_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e YOUR_API_KEY='<YOUR_API_KEY>' mcp-eval-runner npx -- -y mcp-eval-runner

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-eval-runner": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-eval-runner"
      ],
      "env": {
        "YOUR_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-eval-runner": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-eval-runner"
      ],
      "env": {
        "YOUR_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mcp-eval-runner": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-eval-runner"
      ],
      "env": {
        "YOUR_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp-eval-runner": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-eval-runner"
      ],
      "env": {
        "YOUR_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mcp-eval-runner": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-eval-runner"
      ],
      "env": {
        "YOUR_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mcp-eval-runner": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-eval-runner"
      ],
      "env": {
        "YOUR_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mcp-eval-runner": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-eval-runner"
      ],
      "env": {
        "YOUR_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp-eval-runner": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-eval-runner"
      ],
      "env": {
        "YOUR_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 3 of 10 tools change data; 6 names don't say. From the server's own tool labels and tool names; not verified by us.

- `run_suite` (name suggests: changes): Run all fixtures and return a pass/fail summary
- `run_case` (name suggests: changes): Run one named fixture
- `list_cases` (name suggests: reads): List fixtures with step counts
- `create_test_case` (name suggests: changes): Create a YAML fixture (simulation mode)
- `scaffold_fixture`: Generate a boilerplate fixture
- `regression_report`: Compare current state with the last run
- `compare_results`: Diff two runs by run ID
- `generate_html_report`: Single-file HTML report for a run
- `evaluate_deployment_gate`: CI gate on recent pass rate
- `discover_fixtures`: Find fixture files across directories

## FAQ

### Where are fixtures loaded from?

./evals in the working directory by default, or a path set with --fixtures.

### What is the difference between the modes?

Live mode spawns the server in a server block; simulation mode runs assertions on expected_output only.

### Is there CI support?

Yes. A GitHub Action is included and evaluate_deployment_gate acts as a gate.

### Which Node version is needed?

Node.js 22.5.0 or newer.

### How do I add MCP Eval Runner to Claude Code?

Run this command in your terminal: claude mcp add mcp-eval-runner --env YOUR_API_KEY='<YOUR_API_KEY>' -- npx -y mcp-eval-runner

### What are the best alternatives to MCP Eval Runner?

The closest alternatives to MCP Eval Runner are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/mcp-eval-runner
