claude-augur-mcp

Vvkmnn/claude-augur-mcp
0 starsMITCommunity

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Enables users to extract and review Claude's plan reasoning in Claude Code by reading plan files and providing a structured template for decisions, tradeoffs, and assumptions.

README.md

<img align="right" src="claude-augur.svg" alt="claude-augur-mcp" width="220">

claude-augur-mcp

A Model Context Protocol (MCP) server for plan reasoning summaries in Claude Code. Surfaces decisions, tradeoffs, and assumptions as scannable abstracts so you can correct Claude's reasoning at a glance.

<br clear="right">

!claude-augur-mcp

![npm version](https://www.npmjs.com/package/claude-augur-mcp) ![License: MIT](https://opensource.org/licenses/MIT) ![TypeScript](https://www.typescriptlang.org/) ![Node.js](https://nodejs.org/) ![Claude](#) ![GitHub stars](https://github.com/Vvkmnn/claude-augur-mcp)

---

Claude's reasoning about plans is invisible. When Claude writes a plan, its decisions, assumptions, and tradeoffs are buried in the document. You have to read the entire thing to find them. If Claude assumed the wrong approach or made a bad tradeoff, you won't know until implementation is underway and something breaks.

Augur reads the plan structure and returns a template that Claude fills with its actual reasoning, inline in the response rather than hidden in a collapsed tool result. You see decisions, assumptions, and tradeoffs at a glance and can correct them before a single line of code is written.

install

Requirements:

![Claude Code](https://claude.ai/code)

From shell:

claude mcp add claude-augur-mcp -- npx claude-augur-mcp

From inside Claude (restart required):

Add this to our global mcp config: npx claude-augur-mcp

Install this mcp: https://github.com/Vvkmnn/claude-augur-mcp

From any manually configurable mcp.json: (Cursor, Windsurf, etc.)

{
  "mcpServers": {
    "claude-augur-mcp": {
      "command": "npx",
      "args": ["claude-augur-mcp"],
      "env": {}
    }
  }
}

There is no npm install required: no external databases, no indexing, only Node.js built-ins for filesystem access.

However, if npx resolves the wrong package, you can force resolution with:

npm install -g claude-augur-mcp

features

1 tool. Plan structure extraction. Template seeding. Inline rendering.

augur_explain

Read a plan file and return a structured template for Claude to fill with its reasoning. Claude renders the abstract inline in its response, not hidden in a collapsed tool result.

Call after writing or editing a plan file:

augur_explain plan_path="/Users/you/.claude/plans/your-plan.md"

MCP returns two content blocks:

Block 1: one-line summary, visible even when the tool result is collapsed.

your-plan.md ยท 10/18 done

Block 2: template with pre-rendered header, progress, and [FILL] markers.

โ”Œ ๐Ÿ“ my-project ยท your-plan.md โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
โ”‚ Build a REST API with authentication, rate limiting,
โ”‚ and WebSocket support for real-time notifications.
โ”‚
โ”œ Progress โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
โ”‚ Done (10/18): Auth scaffold, Rate limiter + 1 more
โ”‚ Next: WebSocket layer + 1 more
โ”‚
โ”œ Decisions โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
โ”‚ [FILL: 2-4 decisions, format: "โœ“ choice โ€” reason"]
โ”‚ [child decisions use: "  โ”” choice โ€” reason"]
โ”‚
โ”œ Assumptions โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
โ”‚ [FILL: 1-2 assumptions, format: "? statement"]
โ”‚
โ”œ Tradeoffs โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
โ”‚ [FILL: 1-2 lines, "+" for pro, "โˆ’" for con]
โ”‚
โ”œ Reasoning โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
โ”‚ [FILL: 2-3 lines explaining WHY]
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

Claude fills the template inline:

โ”Œ ๐Ÿ“ my-project ยท your-plan.md โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
โ”‚ Build a REST API with authentication, rate limiting,
โ”‚ and WebSocket support for real-time notifications.
โ”‚
โ”œ Progress โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
โ”‚ Done (10/18): Auth scaffold, Rate limiter + 1 more
โ”‚ Next: WebSocket layer + 1 more
โ”‚
โ”œ Decisions โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
โ”‚ โœ“ Express over Fastify โ€” team familiarity, middleware ecosystem
โ”‚   โ”” Passport.js for auth โ€” proven, supports OAuth + JWT
โ”‚ โœ“ Redis for rate limiting โ€” atomic counters, TTL built-in
โ”‚ โœ“ ws over Socket.io โ€” lighter, no fallback polling needed
โ”‚
โ”œ Assumptions โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
โ”‚ ? Single Redis instance sufficient for current scale
โ”‚ ? WebSocket clients handle reconnection gracefully
โ”‚
โ”œ Tradeoffs โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
โ”‚ + Redis rate limiting: sub-ms response, horizontal scaling
โ”‚ โˆ’ Extra infrastructure dependency to operate
โ”‚
โ”œ Reasoning โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
โ”‚ Auth must be production-grade from day one โ€” Passport.js
โ”‚ handles OAuth/JWT without custom crypto. Redis rate limiting
โ”‚ chosen over in-memory because the API will be multi-process.
โ”‚ ws chosen over Socket.io to avoid 200KB bundle overhead.
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

What gets extracted from the plan file:

| Field | Source | Example | | --- | --- | --- | | Project name | H1 title before : | my-project | | Purpose | First Primary goal: line, or first prose paragraph | Full text, word-wrapped | | Sections | H2 headings (excluding Detail: sections) | Context, Architecture, ... | | Progress | ### Step N: headings with - [x] / - [ ] counts | Done (10/18): Auth, Rate limiter | | Done steps | Steps where all items are [x] | Capped at 2 names + N more | | Next steps | Steps with pending items | First name + N more |

methodology

How claude-augur-mcp reads plans:

                    ๐Ÿ“ claude-augur-mcp
                    โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

              Claude writes a plan
                augur_explain
                    โ”‚
                    โ–ผ
              โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
              โ”‚  read plan file โ”‚  from disk (read-only)
              โ”‚  (session.ts)   โ”‚
              โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                       โ”‚
                       โ”œโ”€โ”€ title โ†’ project name (before ":")
                       โ”œโ”€โ”€ purpose โ†’ **Primary goal**: or first prose
                       โ”œโ”€โ”€ sections โ†’ H2 headings
                       โ””โ”€โ”€ progress โ†’ ### Step N: with [x]/[ ] counts
                       โ”‚
              โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
              โ”‚ render template โ”‚  left-gutter format
              โ”‚ (render.ts)     โ”‚  [FILL] markers for Claude
              โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                       โ”‚
          โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
          โ–ผ                         โ–ผ
     block 1                   block 2
     summary                   template
     (visible collapsed)       (Claude renders inline)
          โ”‚                         โ”‚
          โ–ผ                         โ–ผ
     plan.md ยท 10/18 done      โ”Œ ๐Ÿ“ project ยท plan.md โ”€โ”€
                               โ”‚ purpose...
                               โ”œ Progress โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
                               โ”‚ Done (10/18): Auth + 1
                               โ”œ Decisions โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
                               โ”‚ [FILL]
                               โ”œ Assumptions โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
                               โ”‚ [FILL]
                               โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€


     TEMPLATE SEEDING:

     Regex extraction of Claude's thinking blocks produces garbage:
     free-form prose has no structured patterns to match.

     Augur takes a different approach: extract plan structure (the
     deterministic part), seed a template, let Claude fill reasoning
     (the part only Claude knows). Structure from MCP, content from
     Claude. Consistent format, accurate reasoning.

     MCP pre-renders              Claude fills
     โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€               โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
     header + purpose             decisions
     progress counts              assumptions
     section labels               tradeoffs
     formatting rules             reasoning

Two-block return: MCP tool results get collapsed in Claude Code UI. Block 1 is a one-line summary visible even when collapsed. Block 2 is the full template that Claude renders inline in its response, visible to the user without expanding.

Read-only: augur_explain only reads the plan file. No disk writes, no state, no side effects. Works in plan mode.

Architecture:

claude-augur-mcp/
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ tsconfig.json
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ index.ts       # MCP server, 1 tool
โ”‚   โ”œโ”€โ”€ types.ts       # PlanStructure interface
โ”‚   โ”œโ”€โ”€ session.ts     # Plan file parser + step progress extractor
โ”‚   โ””โ”€โ”€ render.ts      # Template generator with left-gutter format
โ””โ”€โ”€ demo/
    โ”œโ”€โ”€ demo.cast      # asciinema recording
    โ””โ”€โ”€ demo.gif       # animated demo

Design principles:

  • Template seeding over regex extraction: regex on thinking blocks produced garbage; template seeding lets Claude fill its own reasoning accurately
  • Inline over collapsed: tool results get collapsed in Claude Code UI; inline rendering keeps the abstract visible
  • Read-only: no disk writes, no state, works in plan mode
  • Single tool: augur_explain does one thing well; no CRUD, no storage, no insight management
  • Left-gutter format: โ”Œโ”‚โ”œโ”” vertical bar with no right border; can't misalign, renders cleanly in any terminal width
  • Never truncate: purpose and header always render in full; word-wrapped, never cut

Design influences:

  • Architecture Decision Records: structured format for capturing decisions with context and consequences
  • Y-Statement ADR variant: concise decision format: "In context X, facing Y, we decided Z, accepting C"
  • Roman Augurs: priests who interpreted signs and patterns to reveal meaning hidden from ordinary observation

development

git clone https://github.com/Vvkmnn/claude-augur-mcp && cd claude-augur-mcp
npm install && npm run build

Scripts:

| Command | Description | | --- | --- | | npm run build | TypeScript compilation (tsc && chmod +x dist/index.js) | | npm run dev | Watch mode (tsc --watch) | | npm start | Run MCP server (node dist/index.js) | | npm run clean | Remove build artifacts (rm -rf dist) | | npm run typecheck | TypeScript validation without emit | | npm test | Type-check |

Contributing:

  • Fork the repository and create feature branches
  • Follow TypeScript strict mode and MCP protocol standards

Learn from examples:

license

MIT

<hr>

<a href="https://en.wikipedia.org/wiki/Tomb_of_the_Augurs"><img src="logo/tomb-of-the-augurs.jpg" alt="Tomb of the Augurs" width="100%"></a>

<p align="center">

_Tomb of the Augurs, fresco (Tarquinia, ~530 BCE). Claudius, emperor, scholar, and member of the Augural College, wrote Tyrrenika, a lost 20-volume history of Etruscan civilization and their methods of divination. The augurs' role was not to predict the future, but to interpret the signs and reveal whether a proposed course of action had merit._

</p>

Related MCP servers

Browse all โ†’