Purpose
mcp-adr-analysis-server is an MCP (Model Context Protocol) server designed to solve the problem of architectural decision records (ADRs) becoming disconnected from actual code. Through real-time drift detection, it compares architectural decisions against code and infrastructure evidence, helping teams discover inconsistencies before stale ADRs cause production incidents.
Main Capabilities
- Drift Detection: Validates ADR decisions against actual code and infrastructure evidence.
- Content Security: Automatically detects and masks secrets, PII, and sensitive content.
- Decision Memory: Session and tool usage tracking, with keyword-scored retrieval.
- Technology Detection: Identifies arbitrary technology stacks and architectural patterns.
- ADR Management: Generates, suggests, and maintains architectural decision records.
- Intelligent Code Linking: Discovers code files related to ADRs and decisions.
- Deployment Readiness Validation: Zero-tolerance test validation, with hard blocking support.
- Provides a total of 63 tools, driven by the host LLM through CE-MCP.
Usage
- Install:
npm install -g mcp-adr-analysis-server - Configure the client: Add the server to the MCP configuration of Claude Desktop, Cline, Cursor, or Windsurf; no API key is required.
- By default, it runs in CE-MCP mode: tools return structured orchestration instructions, and the host LLM uses existing context to perform analysis, with no additional API cost.
- If you need the server to initiate AI calls itself, you can set
EXECUTION_MODE=fulland configureOPENROUTER_API_KEY(not recommended; CE-MCP mode is equally effective). - Use it by asking questions to the MCP client in natural language, for example: "Analyze the architecture of this React project and suggest ADRs for any implicit decisions."
Applicable Scenarios
- AI coding assistants (Claude, Cline, Cursor, Windsurf) enhance architectural intelligence.
- Conversational AI answers architectural questions with confidence scores.
- Autonomous agents perform continuous analysis and rule enforcement.
- Enterprise teams perform portfolio analysis and migration planning.
Limitations and Requirements
- Requires Node.js 20.0.0 or higher, and npm 9.0.0 or higher.
- Requires an MCP-compatible client.
- Requires internet access during npm installation to compile native modules (tree-sitter parsers); if the native build fails, the server will run in reduced mode, without tree-sitter code analysis.
- Enterprise proxy environments require setting the
HTTP_PROXYandHTTPS_PROXYenvironment variables. - When installing from source, you need to run
npm run buildbefore running the server. - Optionally integrates with the ADR Aggregator platform, providing cross-repository knowledge graphs, governance dashboards, template libraries, and team collaboration; all core analysis features are available without this platform.
- Security: automatic secret detection, content masking, local processing, zero trust.
- Performance: multi-level caching, incremental analysis, parallel processing, memory optimization.
- License: MIT.
- Version: 2.14.12.
- Author: Tosin Akinosho.