This MCP server provides AI-powered architectural analysis and automated development workflows for comprehensive project management.
Core Capabilities: • Architectural Analysis - Perform recursive project ecosystem analysis, technology stack detection, and generate architectural insights using OpenRouter.ai integration • ADR Management - Generate, suggest, discover, and manage Architectural Decision Records from PRDs, code changes, or project context • Enhanced TDD Workflows - Create two-phase Test-Driven Development tasks from ADRs, linking tests and production code with dependency tracking • Security & Compliance - Detect and mask sensitive content, configure custom security patterns, validate architectural rules, and ensure compliance • Deployment Readiness - Perform zero-tolerance validation, track deployment history, generate environment-specific guidance, and hard-block unsafe deployments • Smart Git Operations - AI-driven, security-focused git pushes with integrated deployment readiness checks and credential detection • Research Integration - Generate context-aware research questions and incorporate findings into architectural decisions • Project Health Scoring - Central coordination system for calculating health metrics across task completion, deployment readiness, and security posture • Workflow Automation - Generate intelligent development guidance, recommend tool sequences, and translate architectural decisions into actionable coding tasks • Content Management - Read, write, and list files and directories with multi-level caching for performance optimization • Failure Analysis - Structured troubleshooting with test plan generation and guided workflow analysis
Provides GitHub integration for repository management, including smart git push operations with deployment readiness validation and GitHub Actions CI/CD automation
Enables automated testing, building, and publishing workflows through GitHub Actions integration for continuous integration and deployment
Integrates with OpenAI's GPT models via OpenRouter for AI-powered architectural analysis, providing intelligent code generation, decision tracking, and development workflow automation
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-adr-analysis-serveranalyze our authentication system and generate ADRs for any implicit decisions"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP (Model Context Protocol) ADR (Architectural Decision Record) Analysis Server
AI-powered architectural analysis for intelligent development workflows. Returns actual analysis results, not prompts to submit elsewhere.
What is 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 analysis servers. This server enhances AI assistants with deep architectural analysis capabilities, enabling intelligent code generation, decision tracking, and development workflow automation.
Related MCP server: DependencyMCP Server
TL;DR
What: MCP server that provides AI-powered architectural decision analysis and ADR (Architectural Decision Record) management
Who: AI coding assistants (Claude, Cline, Cursor), enterprise architects, development teams
Why: Get immediate architectural insights instead of prompts, with 95% confidence scoring
How: npm install -g mcp-adr-analysis-server → Configure with OpenRouter API → Start analyzing
Key Features: Tree-sitter AST analysis • Security content masking • Test-driven development • Deployment readiness validation
Author: Tosin Akinosho | Repository: GitHub
✨ Core Capabilities
🤖 AI-Powered Analysis - Immediate architectural insights with OpenRouter.ai integration 🏗️ Technology Detection - Identify any tech stack and architectural patterns 📋 ADR Management - Generate, suggest, and maintain Architectural Decision Records 🔗 Smart Code Linking - AI-powered discovery of code files related to ADRs and decisions 🛡️ Security & Compliance - Detect and mask sensitive content automatically 🧪 TDD Integration - Two-phase Test-Driven Development with validation 🚀 Deployment Readiness - Zero-tolerance test validation with hard blocking
Prerequisites
Node.js 20.0.0 or higher — Download
npm 9.0.0 or higher (included with Node.js)
An MCP-compatible client — Claude Desktop, Cline, Cursor, or Windsurf
Verify your versions:
📦 Quick Installation
Note: 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 →
⚡ Quick Setup (3 Steps)
Get API Key: Sign up at OpenRouter.ai/keys — OpenRouter is an API gateway that provides access to multiple AI models (Claude, GPT, etc.) through a single key. No API key? The server still works in prompt-only mode — see
Set Environment:
OPENROUTER_API_KEY=your_key+EXECUTION_MODE=fullConfigure Client: Add to Claude Desktop, Cline, Cursor, or Windsurf
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) |
|
Claude Desktop (Windows) |
|
Cline (VS Code) | VS Code Settings → Cline → MCP Servers (or |
Cursor | Cursor Settings → MCP → Add Server |
Get your API key at adraggregator.com
📖 Full Configuration Guide → | Client Setup →
Execution Modes
Full Mode | Prompt-Only Mode | |
Requires API key? | Yes ( | No |
Returns | Actual analysis results with confidence scores | Prompts you can paste into any AI chat |
Set via |
|
|
Best for | Production use, automation | Trying it out, no-cost exploration |
Tip: Start with prompt-only mode to explore, then add an API key when you're ready for full analysis.
🚀 Usage Examples
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 actual analysis results instead of prompts to submit elsewhere!
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. (Only available when cloning from source — not included in the npm package.)
🎯 Use Cases
👨💻 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
🛠️ Technology Stack
Runtime: Node.js 20+ • Language: TypeScript • Framework: MCP SDK • Testing: Jest (>80% coverage) Search: ripgrep (fast text search) + fast-glob (file matching) • AI Integration: OpenRouter.ai • Web Research: Firecrawl • Code Analysis: tree-sitter (code parser) + Smart Code Linking
📁 Project Structure
🧪 Testing
🔥 Firecrawl Integration (Optional)
Enhanced web research capabilities for comprehensive architectural analysis.
When is this useful?
ADR research — automatically pull best practices from official docs when generating ADRs
Technology evaluation — compare frameworks by crawling their documentation and changelogs
Security audits — check CVE databases and security advisories for your dependencies
Migration planning — gather migration guides and breaking-change notes from upstream projects
Benefits: Real-time research • Enhanced ADRs • Best practices discovery • Intelligent web scraping
🌐 ADR Aggregator Integration (Optional)
Sync your ADRs to
Available Tools
Tool | Description | Tier |
| Push local ADRs to platform | Free |
| Pull ADR context from platform | Free |
| Get ADR governance/health reports | Free |
| Retrieve domain-specific templates | Free |
| Get Mermaid diagrams for ADRs | Pro+ |
| Validate ADR implementation | Pro+ |
| Cross-repository knowledge graph | Team |
Workflow for New Repos
Benefits: Cross-team visibility • Staleness alerts • Compliance tracking • Organization-wide knowledge graph
🔧 Development
Quality Standards: TypeScript strict mode • ESLint • >80% test coverage • Pre-commit hooks
Viewing Documentation Locally
The documentation site is built with Docusaurus:
Then open http://localhost:3000/mcp-adr-analysis-server/ in your browser.
📖 Development Guide → | Contributing →
🔧 Troubleshooting
Common Issues:
RHEL Systems: Use special installer script
Tools return prompts: Set
EXECUTION_MODE=full+ API keyModule not found: Run
npm install && npm run buildPermission denied: Check file permissions and project path
📖 Complete Troubleshooting Guide →
🔒 Security & Performance
Security: Automatic secret detection • Content masking • Local processing • Zero trust
Performance: Multi-level caching • Incremental analysis • Parallel processing • Memory optimization
📖 Security Guide → | Performance →
🔐 Security Vulnerability Reporting
Found a security issue? Please read our Security Policy for responsible disclosure procedures. Do not create public issues for security vulnerabilities.
🤝 Contributing
We welcome contributions! Whether you're fixing bugs, adding features, or improving documentation, your help is appreciated.
🌟 Quick Start for Contributors
Fork the repository
Clone your fork:
git clone https://github.com/YOUR_USERNAME/mcp-adr-analysis-server.gitCreate a branch:
git checkout -b feature/your-feature-nameMake your changes with tests
Test:
npm test(maintain >80% coverage)Submit a Pull Request
👶 First Time Contributing?
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.
📝 Reporting Issues
Use our issue templates when reporting bugs or requesting features. Templates help us understand and resolve issues faster.
Standards: TypeScript strict • >80% coverage • ESLint • Security validation • MCP compliance
📖 Full Contributing Guide → | Code of Conduct →
🔗 Resources
Official: MCP Specification • MCP SDK
Community: MCP Registry • Discord
Project: ADRs • Progress • Publishing Guide
📄 License
MIT License - see LICENSE file for details.
🙏 Acknowledgments
Anthropic for creating the Model Context Protocol
The MCP Community for inspiration and best practices
Contributors who help make this project better
Built with ❤️ by
Empowering AI assistants with deep architectural intelligence and decision-making capabilities.