# Dunstan

> Dunstan is an open-source MCP server for developer tools. Checks an agent's PR handback claims against GitHub's own record with no model involved. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, self-hosted
- **Website:** https://barglabs.ai/dunstan
- **Repository:** https://github.com/barglabs/dunstan
- **MCP Registry name:** io.github.BargLabs/dunstan
- **Categories:** developer tools, security
- **Listing updated:** 2026-11-14

## About

Dunstan targets a specific failure: a coding agent says it finished, and the report is wrong. The agent declares a small block in its pull request description, with head commit, files changed, referenced issues, test counts and times, and Dunstan compares each claim to what GitHub records.

Every claim comes back pass, fail or unverifiable with a reason code, and a claim the record cannot answer is never a pass. The result is an in-toto statement whose digests let anyone recompute each verdict offline. Dunstan only returns evidence; your branch protection decides what blocks, and it never comments, labels, reviews or merges. It does not check that the work matches what the issue asked for.

Use it as a GitHub Action, a CLI, or a Claude Code plugin with three MCP tools run over stdio from the dunstan npm package. A read-only GITHUB_TOKEN is optional; public repos can be read anonymously.

## Features

- **Deterministic checks:** No model decides pass or fail.
- **Five claim types:** Head commit, scope, references, counts and times.
- **Fail closed:** Unanswerable claims are unverifiable, not passes.
- **Re-runnable record:** In-toto statement with digests for offline verification.
- **GitHub Action:** Add a required status check named dunstan.
- **Claude Code plugin:** Three MCP tools plus a skill to declare and check handbacks.

## Good for

- Gate merges on accurate agent reports
- Audit whether an agent changed the files it claimed
- Verify test counts against CI
- Keep verifiable records of agent work

## Install

### Claude Code (Terminal)

```sh
claude mcp add dunstan --env GITHUB_TOKEN='<GITHUB_TOKEN>' -- npx -y dunstan
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "dunstan": {
      "command": "npx",
      "args": [
        "-y",
        "dunstan"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "dunstan": {
      "command": "npx",
      "args": [
        "-y",
        "dunstan"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "dunstan": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "dunstan"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "dunstan": {
      "command": "npx",
      "args": [
        "-y",
        "dunstan"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "dunstan": {
      "command": "npx",
      "args": [
        "-y",
        "dunstan"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
```

## FAQ

### Does it use an AI model?

No. The site states no model decides the verdict.

### Does it block merges itself?

No, you require the dunstan status check in branch protection.

### Do I need a token?

Optional; without one public repositories are read anonymously.

### What can it miss?

An accurate report of the wrong work passes.

### Is Dunstan free?

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

### How do I add Dunstan to Claude Code?

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

### What are the best alternatives to Dunstan?

The closest alternatives to Dunstan are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [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-2): 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.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/dunstan
