The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the MCP Adr Analysis Server listing page.
Your ADRs are lying to you. This MCP server catches it — live drift detection validates architectural decisions against your actual code. Plus content safety, decision memory, and 64 tools powered by your host LLM via CE-MCP.
The Model Context Protocol (MCP) is an open standard that enables seamless integration between AI assistants and external tools and data sources. Think of it as a universal adapter that lets AI assistants like Claude, Cline, and Cursor connect to specialized servers. This server gives your AI assistant the ability to detect ADR drift against live code, mask sensitive content before it leaks, and remember architectural decisions across conversations.
What: MCP server that validates architectural decisions against your actual code — drift detection, content safety, and decision memory
Who: AI coding assistants (Claude, Cline, Cursor, Windsurf), enterprise architects, development teams
Why: Catch stale ADRs before they cause production incidents — live validation against code evidence, no API key required
How: npm install -g mcp-adr-analysis-server → Add to your MCP client → Start analyzing
Key Features: Tree-sitter AST analysis • Security content masking • Drift detection • CE-MCP orchestration directives • Deployment readiness validation
| Term | Definition |
|---|---|
| ADR | Architectural Decision Record — A document that captures an important architectural decision along with its context, alternatives considered, and consequences. |
| MCP | Model Context Protocol — An open standard enabling AI assistants to connect to external tools and data sources. |
| CE-MCP | Claude-Enriched MCP — Execution mode where tools return orchestration directives for the host LLM instead of making their own AI calls. Default since v2.14. |
| Tree-sitter | An incremental parsing library that provides AST (Abstract Syntax Tree) analysis for 50+ languages. Used for semantic code understanding, extracting function signatures, and identifying architectural patterns. |
| Session & Tool-Usage Tracker | Project-local tracking of session intents, tool executions, and ADR registrations, with keyword-scored retrieval over JSON snapshots. Supports workflow continuity and tool-usage evidence — not a graph database. |
| Smart Code Linking | Discovery of code files related to ADRs and architectural decisions, using keyword extraction and ripgrep search. |
| ADR Aggregator | Optional SaaS integration for syncing and sharing ADR context across teams (ADR_AGGREGATOR_API_KEY). |
Author: Tosin Akinosho | Repository: GitHub
🔄 Drift Detection - Validate ADR decisions against live code and infrastructure evidence 🛡️ Content Safety - Detect and mask secrets, PII, and sensitive content automatically 🧠 Decision Memory - Session & tool-usage tracking with keyword-scored retrieval 🏗️ Technology Detection - Identify any tech stack and architectural patterns 📋 ADR Management - Generate, suggest, and maintain Architectural Decision Records 🔗 Smart Code Linking - Discovery of code files related to ADRs and decisions 🚀 Deployment Readiness - Zero-tolerance test validation with hard blocking
📖 View Full Capabilities → · 📜 Release policy → · 🗒️ Changelog →
Before installing, verify you have:
Required:
npm install for native module compilation (tree-sitter incremental code parsers for YAML and TypeScript)HTTP_PROXY and HTTPS_PROXY environment variablesNote: When installing from source,
npm run buildis required before running the server since thebinentry points to./dist/src/index.js.
📖 Detailed Installation Guide → | RHEL Setup →
npm install -g mcp-adr-analysis-serverThat's it. The server runs in CE-MCP mode by default — your host LLM (Claude, GPT, etc.) executes the analysis using orchestration directives returned by the tools. No external API key needed.
Claude Desktop users: Save this JSON to
~/Library/Application Support/Claude/claude_desktop_config.json(macOS) or%APPDATA%\Claude\claude_desktop_config.json(Windows).
| Client | Config file location |
|---|---|
| Claude Desktop (macOS) | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Claude Desktop (Windows) | %APPDATA%\Claude\claude_desktop_config.json |
| Cline (VS Code) | VS Code Settings → Cline → MCP Servers (or .vscode/cline_mcp_settings.json) |
| VS Code (native MCP) | .vscode/mcp.json in workspace root |
| Cursor | Cursor Settings → MCP → Add Server |
📖 VS Code Integration Guide → — step-by-step setup for Cline, Continue, and VS Code native MCP with example configs.
If you want the server to make its own AI calls (bypassing the host LLM), add an OpenRouter API key:
Sign up at OpenRouter.ai/keys. This mode is not recommended — CE-MCP produces equivalent results using your existing host LLM context.
Get your API key at adraggregator.com
📖 Full Configuration Guide → | Client Setup →
| CE-MCP (default) | Full Mode (legacy) | Prompt-Only | |
|---|---|---|---|
| Requires API key? | No | Yes (OPENROUTER_API_KEY) | No |
| Returns | Orchestration directives for the host LLM to execute | Server-side AI analysis results | Prompts you can paste into any AI chat |
| Set via | Default (no env var needed) | EXECUTION_MODE=full | EXECUTION_MODE=prompt-only |
| Best for | All users — recommended | Legacy workflows with dedicated API budget | Offline exploration |
| Tools available | All 64 tools with annotated MCP metadata | All 64 tools | Analysis prompts, templates, local file operations, ADR discovery |
What are CE-MCP directives? When a tool is called, it returns a structured orchestration directive that tells your host LLM what to analyze, what data to gather, and how to format results. The host LLM (e.g. Claude in Claude Desktop, or GPT in Cursor) executes the directive using its existing context window. This means zero additional API costs and better results because the LLM already has your conversation context.
Just ask your MCP client in natural language — no code required:
"Analyze this React project's architecture and suggest ADRs for any implicit decisions"
"Generate ADRs from the PRD.md file and create a todo.md with implementation tasks"
"Check this codebase for security issues and provide masking recommendations"
The server returns structured analysis and orchestration directives that your host LLM executes in context.
If you're integrating the server into your own tooling via the MCP SDK:
📖 Complete Usage Guide → | API Reference →
Try it out: This repo includes a
sample-project/directory with example ADRs and source code. PointPROJECT_PATHat it to experiment without affecting your own codebase.Note: The sample project is only available when cloning from source (Option 3 above). If you installed via npm (Option 1 or 2), create your own test project or clone the repo separately to access the sample:
git clone --depth 1 https://github.com/tosin2013/mcp-adr-analysis-server.git sample-test
👨💻 AI Coding Assistants - Enhance Claude, Cline, Cursor with architectural intelligence
💬 Conversational AI - Answer architecture questions with confidence scoring
🤖 Autonomous Agents - Continuous analysis and rule enforcement
🏢 Enterprise Teams - Portfolio analysis and migration planning
Runtime: Node.js 20+ • Language: TypeScript • Framework: MCP SDK • Testing: Vitest (~49% statements, enforced floor) Search: ripgrep (fast recursive text search) + fast-glob (file matching) • AI Integration: CE-MCP orchestration directives (host LLM) • Code Analysis: tree-sitter (incremental code parser) + Smart Code Linking
📖 Technical Details → | CE-MCP Migration Playbook →
ADR Aggregator is a platform for cross-team ADR visibility and governance. It provides:
Note: ADR Aggregator is optional. All core analysis features work without it.
| Tool | Description | Free | Pro+ | Team |
|---|---|---|---|---|
sync_to_aggregator | Push local ADRs to platform | ✅ | ✅ | ✅ |
get_adr_context | Pull ADR context from platform | ✅ | ✅ | ✅ |
get_staleness_report | Get ADR governance/health reports | ✅ | ✅ | ✅ |
get_adr_templates | Retrieve domain-specific templates | ✅ | ✅ | ✅ |
get_adr_diagrams | Get Mermaid diagrams for ADRs | — | ✅ | ✅ |
validate_adr_compliance | Validate ADR implementation | — | ✅ | ✅ |
get_knowledge_graph | Cross-repository knowledge graph | — | — | ✅ |
Benefits: Cross-team visibility • Staleness alerts • Compliance tracking • Organization-wide knowledge graph
📖 ADR Aggregator Guide → | 📖 MCP Integration Guide →
Quality Standards: TypeScript strict mode • ESLint • enforced coverage floor • Pre-commit hooks
API documentation is generated with TypeDoc:
Then open http://localhost:8080 in your browser. Markdown documentation lives in docs/ and can be browsed directly on GitHub.
📖 Development Guide → | Contributing →
Common Issues:
EXECUTION_MODE=full + OPENROUTER_API_KEYnpm install && npm run build📖 Complete Troubleshooting Guide →
Security: Automatic secret detection • Content masking • Local processing • Zero trust
Performance: Multi-level caching • Incremental analysis • Parallel processing • Memory optimization
📖 Security Guide → | Performance →
Found a security issue? Please read our Security Policy for responsible disclosure procedures. Do not create public issues for security vulnerabilities.
We welcome contributions! Whether you're fixing bugs, adding features, or improving documentation, your help is appreciated.
git clone https://github.com/YOUR_USERNAME/mcp-adr-analysis-server.gitgit checkout -b feature/your-feature-namenpm test (do not drop below the coverage floor)Work is tracked in GitHub milestones, and milestone membership is what marks an issue as admitted.
Architectural direction lives in docs/adrs/; release cadence is in
RELEASES.md.
Looking for a good first issue? Check out our good first issues - these are beginner-friendly tasks perfect for getting started!
New to open source? Our Contributing Guide walks you through the entire process step-by-step.
Use our issue templates when reporting bugs or requesting features. Templates help us understand and resolve issues faster.
Standards: TypeScript strict • enforced coverage floor • ESLint • Security validation • MCP compliance
📖 Full Contributing Guide → | Code of Conduct →
Official: MCP Specification • MCP SDK
Community: MCP Registry • Discord
Project: ADRs • Progress • Publishing Guide
MIT License - see LICENSE file for details.
Built with ❤️ by Tosin Akinosho for AI-driven architectural analysis
Empowering AI assistants with drift detection, content safety, and decision memory via CE-MCP orchestration directives.