# Evalsmith MCP

> Evalsmith MCP is an open-source MCP server for knowledge and memory. Score RAG retrieval, compare configs, audit agent tool calls and catch prompt regressions. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/diegoperezg7/evalsmith-mcp
- **MCP Registry name:** io.github.diegoperezg7/evalsmith-mcp
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory), [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

Everything is computed deterministically and offline, so the same input gives the same verdict. Retrieval is scored from relevance judgements and a ranked run using recall@k, precision@k, nDCG@k, hit rate and MRR. Two or three configurations can be ranked with seeded paired-bootstrap confidence intervals, which shows whether a gap is real. Tool-call traces in evalsmith, Anthropic Messages, OpenAI Chat or Responses formats are checked against expected calls in strict or lax order, and golden sets compare baseline and candidate prompt outputs.

An LLM judge exists for a second opinion but is off by default and never decides the verdict. It points at any OpenAI-compatible endpoint, defaulting to Ollama on localhost with llama3.1:8b.

The same core runs four ways: MCP over stdio, MCP over stateless Streamable HTTP, a CLI that can fail a build with a threshold such as recall@5=0.8, and a GitHub Action. Reports come out as a terminal table, Markdown, JSON, JUnit XML or HTML. Twelve synthetic example datasets are served as resources.

## Features

- **Retrieval metrics:** Recall, precision, nDCG, hit rate and MRR at several cutoffs.
- **Significance testing:** Seeded paired bootstrap shows if one config really beats another.
- **Tool-call audit:** Compare a trace with expected calls using argument matchers.
- **Prompt regression checks:** Golden-set comparison of baseline and candidate outputs.
- **CI gates:** CLI exit codes, JUnit XML and a GitHub Action.
- **Optional judge:** LLM second opinion that never sets the verdict.

## Good for

- Check whether a new retriever beats the current one
- Fail a pull request when recall drops under a threshold
- Audit whether an agent called the right tools in order
- Review a prompt change against a golden set

## Install

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

```sh
claude mcp add evalsmith-mcp --env EVALSMITH_JUDGE_API_KEY='<EVALSMITH_JUDGE_API_KEY>' -- npx -y evalsmith-mcp
```

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": {
    "evalsmith-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "evalsmith-mcp"
      ],
      "env": {
        "EVALSMITH_JUDGE_API_KEY": "<EVALSMITH_JUDGE_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "evalsmith-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "evalsmith-mcp"
      ],
      "env": {
        "EVALSMITH_JUDGE_API_KEY": "<EVALSMITH_JUDGE_API_KEY>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "evalsmith-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "evalsmith-mcp"
      ],
      "env": {
        "EVALSMITH_JUDGE_API_KEY": "<EVALSMITH_JUDGE_API_KEY>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "evalsmith-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "evalsmith-mcp"
      ],
      "env": {
        "EVALSMITH_JUDGE_API_KEY": "<EVALSMITH_JUDGE_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 evalsmith-mcp --env EVALSMITH_JUDGE_API_KEY='<EVALSMITH_JUDGE_API_KEY>' -- npx -y evalsmith-mcp
```

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

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

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

```json
{
  "mcpServers": {
    "evalsmith-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "evalsmith-mcp"
      ],
      "env": {
        "EVALSMITH_JUDGE_API_KEY": "<EVALSMITH_JUDGE_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e EVALSMITH_JUDGE_API_KEY='<EVALSMITH_JUDGE_API_KEY>' evalsmith-mcp npx -- -y evalsmith-mcp

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

```json
{
  "mcpServers": {
    "evalsmith-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "evalsmith-mcp"
      ],
      "env": {
        "EVALSMITH_JUDGE_API_KEY": "<EVALSMITH_JUDGE_API_KEY>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "evalsmith-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "evalsmith-mcp"
      ],
      "env": {
        "EVALSMITH_JUDGE_API_KEY": "<EVALSMITH_JUDGE_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": {
    "evalsmith-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "evalsmith-mcp"
      ],
      "env": {
        "EVALSMITH_JUDGE_API_KEY": "<EVALSMITH_JUDGE_API_KEY>"
      }
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "evalsmith-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "evalsmith-mcp"
      ],
      "env": {
        "EVALSMITH_JUDGE_API_KEY": "<EVALSMITH_JUDGE_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": {
    "evalsmith-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "evalsmith-mcp"
      ],
      "env": {
        "EVALSMITH_JUDGE_API_KEY": "<EVALSMITH_JUDGE_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": {
    "evalsmith-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "evalsmith-mcp"
      ],
      "env": {
        "EVALSMITH_JUDGE_API_KEY": "<EVALSMITH_JUDGE_API_KEY>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "evalsmith-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "evalsmith-mcp"
      ],
      "env": {
        "EVALSMITH_JUDGE_API_KEY": "<EVALSMITH_JUDGE_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": {
    "evalsmith-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "evalsmith-mcp"
      ],
      "env": {
        "EVALSMITH_JUDGE_API_KEY": "<EVALSMITH_JUDGE_API_KEY>"
      }
    }
  }
}
```

## Tools

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

- `evaluate_retrieval`: Scores retrieval from qrels and a ranked run.
- `compare_configs`: Ranks 2-3 configurations with bootstrap intervals.
- `check_tool_calls` (name suggests: reads): Compares a tool-call trace with expected calls.
- `detect_prompt_regression`: Compares baseline and candidate outputs against a golden set.
- `generate_report`: Renders results as Markdown, JSON or JUnit.
- `run_suite` (name suggests: changes): Runs an evalsmith.yaml suite from files.

## FAQ

### Does Evalsmith MCP call an LLM?

Not by default. The judge is optional and does not decide the verdict.

### Which trace formats work?

evalsmith, Anthropic Messages, OpenAI Chat and OpenAI Responses.

### Where can run_suite read files?

Only inside the workspace root, which defaults to the directory the server started in.

### How is Evalsmith MCP installed?

As the npm package evalsmith-mcp, run over stdio.

### Is Evalsmith MCP free?

Yes. Evalsmith MCP is open source, so you can use and self-host it for free.

### How do I add Evalsmith MCP to Claude Code?

Run this command in your terminal: claude mcp add evalsmith-mcp --env EVALSMITH_JUDGE_API_KEY='<EVALSMITH_JUDGE_API_KEY>' -- npx -y evalsmith-mcp

### What are the best alternatives to Evalsmith MCP?

The closest alternatives to Evalsmith MCP 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/evalsmith-mcp
