adr-skills
Generates and manages Architecture Decision Records (ADRs) as structured Markdown files, enabling version-controlled architectural documentation following the Michael Nygard format.
Stores conversation history, ADR metadata, and relationship mappings in a local database to power keyword searching, timeline views, and dependency graph visualization.
adr-skills
adr-skills is an MCP server for Claude Code that automatically captures development conversations and uses Claude Opus to generate, review, and manage Architecture Decision Records (ADRs).
TL;DR: Install once, and every Claude Code session ends with a structured ADR saved to
~/.adr-mcp/adrs/— no manual writing required.
What problem does this solve?
Engineering teams make dozens of architectural decisions every week — which database to use, how to handle auth, whether to go monolith or microservices — but rarely write them down. Months later, nobody remembers why Redis was chosen over Memcached, or why the team avoided GraphQL.
adr-skills solves this by turning your existing Claude Code conversations into permanent, searchable ADR documents automatically.
Related MCP server: memory-mcp
How it works
You have a normal development conversation in Claude Code
When the session ends, the Stop Hook captures the transcript
Claude Opus analyzes the conversation and extracts the architectural decision
A structured markdown ADR is saved to
~/.adr-mcp/adrs/ADR-0001-*.mdUse
review_adrto score quality,link_adrsto map dependencies,check_stale_adrsto surface outdated decisions
Features
Auto session capture — Stop Hook saves conversations automatically on Claude Code exit; no manual steps
AI-powered ADR generation — Claude Opus extracts context, decision, and consequences from raw conversation
AI quality review — Scores ADR completeness 0–100 and flags missing context, unconsidered alternatives, or optimistic consequences
Duplicate detection — Warns when a new decision overlaps with a past one before saving
Markdown export — Every ADR exported as
ADR-NNNN-slug.md, ready to commit alongside your codeStatus lifecycle — Track decisions through
Proposed → Accepted → Deprecated → SupersededDependency graph — Link ADRs with
related_to,conflicts_with,depends_onand visualize relationshipsStale ADR alerts — Surface
Accepteddecisions older than N months that may need revisitingKeyword search — Find past decisions by technology name (e.g. Redis, JWT, PostgreSQL)
Timeline view — Full decision history per project, correlated with git commits
How is this different from existing ADR tools?
Tool | Auto-capture from chat | AI generation | Quality review | MCP server |
adr-skills | ✅ | ✅ Claude Opus | ✅ | ✅ |
adr-tools (CLI) | ❌ | ❌ | ❌ | ❌ |
mcp-adr-analysis-server | ❌ | ✅ OpenRouter | ❌ | ✅ |
claude-historian-mcp | ✅ | ❌ | ❌ | ✅ |
log4brains | ❌ | ❌ | ❌ | ❌ |
No existing tool combines automatic conversation capture with AI-powered ADR generation in a single MCP server. There is an open feature request on the Anthropic repo for native ADR support — adr-skills fills that gap today.
Installation
git clone https://github.com/wooxogh/adr-mcp-setup.git
cd adr-mcp-setup
npm installRegister with Claude Code
claude mcp add adr-skills node /absolute/path/to/adr-mcp-setup/index.jsEnvironment setup
cp .env.example .env
# Add your ANTHROPIC_API_KEY to .envWithout the API key,
generate_adrfalls back to keyword-based extraction andreview_adris unavailable..envis in.gitignore— your key will never be committed.
Enable auto session capture (Stop Hook)
Add to ~/.claude/settings.json:
{
"hooks": {
"Stop": [{
"matcher": "",
"hooks": [{
"type": "command",
"command": "node /absolute/path/to/adr-mcp-setup/hook.js"
}]
}]
}
}Tools (9 total)
Tool | Description | Requires API key |
| Save a conversation to the database | ❌ |
| Auto-generate an ADR from a session | ❌ (AI mode: ✅) |
| Score ADR quality and get improvement suggestions | ✅ |
| Transition ADR through its lifecycle | ❌ |
| Create relationships between ADRs | ❌ |
| Visualize the ADR dependency graph | ❌ |
| Find old Accepted ADRs that need revisiting | ❌ |
| Keyword search across all past decisions | ❌ |
| Decision history for a project | ❌ |
generate_adr example output
# ADR-1: Adopt Redis as the caching layer
## Status
Accepted
## Context
We needed pub/sub support for real-time notifications.
Memcached only handles simple key-value caching and could not meet this requirement.
## Decision
We adopted Redis as both cache and message broker.
It supports pub/sub, TTL, and persistence, and the team already has operational experience with it.
## Consequences
Real-time features can now be implemented without a separate message broker.
We must account for Redis operational costs and treat it as a potential single point of failure.review_adr example output
## ADR-1 Review — Score: 62/100
Good context, but decision rationale and risk coverage need work.
### Issues
🔴 [decision] No alternatives were considered before choosing Redis
🟡 [consequences] Risks are mentioned but mitigation strategies are missing
### Suggestions
1. Explicitly document why Memcached was rejected
2. Add a rollback plan if Redis becomes a bottleneckget_adr_graph example output
## ADR Dependency Graph
### depends on
ADR-5 "Use JWT for auth" → ADR-2 "Adopt Redis as cache"
### conflicts with
ADR-7 "Move to stateless sessions" ✕ ADR-2 "Adopt Redis as cache"FAQ
Q: Do I need an Anthropic API key?
No. Without a key, generate_adr uses keyword extraction as a fallback. With a key, Claude Opus produces significantly more accurate ADRs and review_adr becomes available.
Q: Where are ADRs stored?
Two places: SQLite database at ~/.adr-mcp/sessions.db and markdown files at ~/.adr-mcp/adrs/. The markdown files are git-committable.
Q: Can I use this without the Stop Hook?
Yes. Call save_session manually with your conversation text, then generate_adr with the returned session ID.
Q: Does this work with other AI assistants besides Claude? The MCP server protocol is open, but the Stop Hook is Claude Code-specific. The database and markdown exports are tool-agnostic.
Q: How does duplicate detection work? When generating an ADR, adr-skills extracts significant keywords from the title and decision text and queries for overlapping past ADRs. Matches are shown as warnings — the new ADR is still saved.
Q: What ADR format does this use? The Michael Nygard ADR format (Title, Status, Context, Decision, Consequences), which is the most widely adopted format in the software industry.
Project structure
adr-mcp-setup/
├── index.js ← MCP server — 9 tool definitions and routing
├── db.js ← SQLite CRUD (sessions, adrs, adr_relations tables)
├── adr.js ← ADR extraction and AI review logic (Claude Opus)
├── hook.js ← Claude Code Stop Hook for automatic session capture
├── .env.example ← Environment variable template
└── package.jsonDatabase: ~/.adr-mcp/sessions.db
ADR files: ~/.adr-mcp/adrs/ADR-NNNN-slug.md
Requirements
Node.js 18+
Claude Code CLI
Anthropic API Key (optional — required for AI generation and review)
Available Tools
9 toolscheck_stale_adrsB
Find Accepted ADRs that have not been reviewed in a while and may need revisiting
Inputs: months.
generate_adrB
Analyze a saved session and auto-generate an ADR. Exports a markdown file and warns about similar past decisions.
Inputs: session_id (required).
get_adr_graphB
Visualize ADR dependency graph. Optionally scope to a single ADR.
Inputs: adr_id.
get_timelineC
Get the decision timeline for a project
Inputs: project.
link_adrsB
Create a relationship between two ADRs: related_to, conflicts_with, or depends_on
Inputs: from_id (required), to_id (required), relation (required).
review_adrB
AI quality review of an ADR — scores completeness, flags missing context, unconsidered alternatives, and optimistic consequences
Inputs: adr_id (required).
save_sessionC
Save a Claude Code development session to the database
Inputs: project (required), conversation (required), git_commit, summary.
search_decisionsC
Search past architectural decisions by keyword
Inputs: query (required).
update_adr_statusC
Update the status of an ADR: Proposed → Accepted → Deprecated → Superseded
Inputs: adr_id (required), status (required), superseded_by.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Most tools have distinct purposes focused on different aspects of ADR management, but there is some potential overlap between 'search_decisions' and 'check_stale_adrs' since both involve finding ADRs based on criteria. The descriptions clarify their differences well, with only minor ambiguity.
All tool names follow a consistent verb_noun pattern using snake_case, such as 'check_stale_adrs', 'generate_adr', and 'update_adr_status'. This predictability makes it easy for agents to understand and select the right tool without confusion.
With 9 tools, this server is well-scoped for managing architectural decision records (ADRs), covering creation, review, search, visualization, and lifecycle updates. Each tool serves a clear purpose, and the count aligns well with the domain's complexity.
The tool set provides comprehensive coverage for ADR workflows, including generation, review, status updates, linking, visualization, search, and session management. There are no obvious gaps, as it supports the full lifecycle from creation to maintenance and analysis.
Maintenance
Related MCP Connectors
AI code governance and code review for Claude Code, Copilot and Cursor. Checks rules and security.
AI Agent with Architectural Memory. Impact analysis (free), tests and code from the graph (pro).
Turn calls and notes into process flow diagrams in Claude, ChatGPT, VS Code, Cursor, and Teams.
Multi-brand AI code review for Claude: up to 12 reviewers and a judge, no install.
Related MCP Servers
- AlicenseCqualityAmaintenanceTransform your codebase into professional architectural decision records with intelligent AI analysis63653 npm35MIT
- AlicenseAqualityDmaintenancePersistent memory and automatic git snapshots for Claude Code, capturing decisions, patterns, and architecture across sessions.10121 npm100MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to create, manage, diagram, and export Architecture Decision Records (ADRs) directly from conversation.15MIT
- AlicenseBqualityCmaintenanceAutomatically captures technical and product decisions from Claude Mac app sessions and writes them into project files, enabling seamless context transfer between strategy and coding sessions.31ISC