# tosin2013/mcp-adr-analysis-server [Health: Active]

**Category:** 📊 Data Visualization  
**Repository:** https://github.com/tosin2013/mcp-adr-analysis-server  
**GitHub Stars:** 35  
**npm Downloads (last month):** 3504  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/tosin2013-mcp-adr-analysis-server

## Description
AI-powered architectural analysis server for software projects. Provides technology stack detection, ADR management, security checks, enhanced TDD workflow, and deployment readiness validation with support for multiple AI models.

## Tools
Capabilities this server exposes over MCP:

- **analyze_project_ecosystem** — Comprehensive recursive project ecosystem analysis with advanced prompting techniques (Knowledge Generation + Reflexion)
- **get_architectural_context** — Get detailed architectural context for specific files or the entire project, automatically sets up ADR infrastructure if missing, and provides outcome-focused workflow for project success
- **generate_adrs_from_prd** — Generate Architectural Decision Records from a Product Requirements Document with advanced prompting techniques (APE + Knowledge Generation)
- **compare_adr_progress** — Compare TODO.md progress against ADRs and current environment to validate implementation status
- **analyze_content_security** — Analyze content for sensitive information using AI-powered detection with optional memory integration for security pattern learning
- **generate_content_masking** — Generate masking instructions for detected sensitive content
- **configure_custom_patterns** — Configure custom sensitive patterns for a project
- **apply_basic_content_masking** — Apply basic content masking (fallback when AI is not available)
- **validate_content_masking** — Validate that content masking was applied correctly
- **manage_cache** — Manage MCP resource cache (clear, stats, cleanup)
- **configure_output_masking** — Configure content masking for all MCP outputs
- **suggest_adrs** — Suggest architectural decisions with advanced prompting techniques (Knowledge Generation + Reflexion). TIP: Read @.mcp-server-context.md first for project history, patterns, and previous ADRs to ensure consistency.
- **generate_adr_from_decision** — Generate a complete ADR from decision data. TIP: Reference @.mcp-server-context.md to align with existing architectural patterns and decisions.
- **generate_adr_bootstrap** — Generate bootstrap.sh and validate_bootstrap.sh scripts to ensure deployed code follows ADR requirements. **CRITICAL**: Before generating scripts, use WebFetch to query the base code repository (e.g., https://github.com/validatedpatterns/common for OpenShift) and authoritative pattern documentation (e.g., https://play.validatedpatterns.io/). Merge the base repository code into your project and have bootstrap.sh call the pattern's scripts rather than generating everything from scratch. This ensures compliance with validated deployment patterns.
- **bootstrap_validation_loop** — **GUIDED EXECUTION MODE**: This tool guides you through an interactive, step-by-step deployment validation workflow. It does NOT execute commands internally - instead, it tells YOU what commands to run and processes the results iteratively. **Workflow**: (1) First call with iteration=0: Detects platform (OpenShift/K8s/Docker), validates environment connection, and requests human approval for target platform. (2) Subsequent calls: After running each command and reporting back with output, the tool provides next steps. **Environment Validation**: Before deployment, the tool verifies connection to the target platform (e.g., `oc status` for OpenShift, `kubectl cluster-info` for K8s) and requires explicit human confirmation. **Validated Patterns Integration**: Automatically identifies base code repositories (e.g., validatedpatterns/common for OpenShift) and guides you to merge them into your project. **Deployment Cleanup**: Supports CI/CD-style workflows with deployment teardown/restart guidance. **Call this tool iteratively**, passing previous command output back each time.
- **discover_existing_adrs** — Discover and catalog existing ADRs in the project
- **analyze_adr_timeline** — Analyze ADR timeline with smart time tracking, adaptive thresholds, and actionable recommendations. Auto-detects project context (startup/growth/mature) and generates prioritized work queue based on staleness, implementation lag, and technical debt.
- **review_existing_adrs** — Review existing ADRs against actual code implementation with cloud/DevOps expertise. TIP: After review, call get_server_context to update @.mcp-server-context.md with findings.
- **validate_adr** — Validate an existing ADR against actual infrastructure reality using research-driven analysis. TIP: Compare findings against patterns in @.mcp-server-context.md for consistency checks.
- **validate_all_adrs** — Validate all ADRs in a directory against actual infrastructure reality
- **incorporate_research** — Incorporate research findings into architectural decisions
- **create_research_template** — Create a research template file for documenting findings
- **request_action_confirmation** — Request confirmation before applying research-based changes
- **generate_rules** — Generate architectural rules from ADRs and code patterns
- **validate_rules** — Validate code against architectural rules
- **create_rule_set** — Create machine-readable rule set in JSON/YAML format
- **analyze_environment** — Analyze environment context and provide optimization recommendations with optional memory integration for environment snapshot tracking
- **generate_research_questions** — Generate context-aware research questions and create research tracking system
- **perform_research** — Perform research using cascading sources: project files → session/tool-usage tracker → environment resources → web search (fallback)
- **search_codebase** — Atomic tool for searching codebase files based on query patterns. Returns raw file matches with relevance scores. Extracted from ResearchOrchestrator per ADR-018.
- **analyze_deployment_progress** — Analyze deployment progress and verify completion with outcome rules
- **get_workflow_guidance** — Get intelligent workflow guidance and tool recommendations based on your goals and project context to achieve expected outcomes efficiently
- **get_development_guidance** — Get comprehensive development guidance that translates architectural decisions and workflow recommendations into specific coding tasks, implementation patterns, and development roadmap
- **generate_deployment_guidance** — Generate deployment guidance and instructions from ADRs with environment-specific configurations
- **smart_git_push** — AI-driven security-focused git push with credential detection, file filtering, and deployment metrics tracking. Tests should be run by calling AI and results provided.
- **deployment_readiness** — Comprehensive deployment readiness validation with test failure tracking, deployment history analysis, and hard blocking for unsafe deployments. Integrates with smart_git_push for deployment gating.
- **release_tracking** — Track releases mapped to ADR decisions. Generates changelogs, manages milestones, compares releases, and assesses release readiness. Supports greenfield and brownfield projects. Writes CHANGELOG.md, creates GitHub Releases and Milestones.
- **generate_adr_todo** — Generate TODO.md from ADRs with comprehensive task breakdown. Decomposes each ADR into paired test+production tasks (TDD), links tasks to release milestones, and preserves manual edits via a bounded HTML-comment section. Re-runs are idempotent; tasks for deleted/superseded ADRs move to a Stale Tasks section.
- **troubleshoot_guided_workflow** — Structured failure analysis and test plan generation with memory integration for troubleshooting session tracking and intelligent ADR/research suggestion capabilities - provide JSON failure info to get specific test commands
- **smart_score** — Central coordination for project health scoring system - recalculate, sync, diagnose, optimize, and reset scores across all MCP tools
- **mcp_planning** — Enhanced project planning and workflow management tool - phase-based project management, team resource allocation, progress tracking, risk analysis, and executive reporting
- **interactive_adr_planning** — Interactive guided ADR planning and creation tool - walks users through structured decision-making process with research integration, option evaluation, and automatic ADR generation. TIP: Start by reading @.mcp-server-context.md to understand project context and previous decisions.
- **memory_loading** — Advanced memory loading tool for the memory-centric architecture. Query, explore, and manage memory entities and relationships. Load ADRs into memory system and perform intelligent queries.
- **expand_analysis_section** — Retrieve full analysis content from tiered responses. Expand entire analysis or specific sections stored in memory. Use this when a tool returns a summary with an expandable ID.
- **tool_chain_orchestrator** — AI-powered dynamic tool sequencing - intelligently analyze user requests and generate structured tool execution plans
- **expand_memory** — Phase 3: Retrieve and expand stored content from a tiered response using its expandable ID
- **query_conversation_history** — Phase 3: Search and retrieve conversation sessions based on filters
- **get_conversation_snapshot** — Phase 3: Get current conversation context snapshot for resumption or analysis
- **get_memory_stats** — Phase 3: Get statistics about stored conversation memory
- **update_knowledge** — ADR-018: Simple CRUD operations for project session state. Not a graph database — keyword retrieval over local JSON snapshots. Add/remove entities (intents, ADRs, tools, code) and relationships. Use knowledge://graph resource to read current state (zero token cost).
- **get_server_context** — Generate a comprehensive context file showing the server's current state, memory, and capabilities. Creates .mcp-server-context.md that can be @ referenced in conversations for instant LLM awareness
- **set_project_path** — Dynamically set the active project path for the current session. Call this at the start of a session to switch between projects without restarting the server or modifying environment variables. All subsequent tool calls will use this path as the default.
- **sync_to_aggregator** — Sync ADRs to ADR Aggregator platform (https://adraggregator.com) for centralized tracking, visualization, and team collaboration. Supports incremental and full sync modes with optional metadata.
- **get_adr_context** — Fetch ADR context from ADR Aggregator including summaries, diagrams, timeline data, and code links. Useful for getting a consolidated view of architectural decisions.
- **get_staleness_report** — Get ADR staleness report from ADR Aggregator with review compliance metrics. Identifies stale ADRs that need attention and provides governance insights.
- **get_adr_templates** — Get domain-specific ADR templates and anti-patterns from ADR Aggregator. Includes best practices for web applications, microservices, APIs, and more. No authentication required.
- **get_adr_diagrams** — Get Mermaid diagrams for ADRs from ADR Aggregator. Includes workflow, relationship, and impact diagrams. Requires Pro+ tier.
- **validate_adr_compliance** — Validate ADR compliance against implementation via ADR Aggregator. Checks that code actually implements documented decisions. Requires Pro+ tier.
- **get_knowledge_graph** — Get cross-repository knowledge graph from ADR Aggregator with analytics and insights. Visualize ADR relationships across repositories. Requires Team tier.
- **update_implementation_status** — Update the implementation status of synced ADRs directly from the IDE. Supports statuses: not_started, in_progress, implemented, deprecated, blocked. Requires Pro+ tier.
- **get_adr_priorities** — Get ADR priorities for roadmap and backlog planning from ADR Aggregator. Returns prioritized ADRs with scores, dependencies, blockers, implementation status, and gap counts.
- **analyze_gaps** — Scan local codebase and compare with ADRs to detect bi-directional gaps. Finds: (1) ADR-to-code gaps: file references in ADRs that do not exist, (2) Code-to-ADR gaps: technologies in package.json and architectural patterns without ADR coverage. Reports gaps to ADR Aggregator for tracking.
- **get_gaps** — Get current code gaps from ADR Aggregator. Returns gaps with their status (open, dismissed, resolved) for tracking and management.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "mcp-adr-analysis-server": {
    "command": "npx",
    "args": ["-y","mcp-adr-analysis-server"],
    "env": {
      "PROJECT_PATH": ""
    }
  }
}
```

**Requires environment variables:** `PROJECT_PATH` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What tosin2013/mcp-adr-analysis-server does

tosin2013/mcp-adr-analysis-server gives an MCP client tools for examining a software project’s architecture and maintaining Architectural Decision Records. It detects technology stacks and architectural patterns, discovers existing ADRs, links decisions to relevant code, and checks whether recorded decisions still match implementation and infrastructure.

The server also covers the surrounding engineering workflow. It can create ADRs from product requirements or decision data, suggest new decisions, generate rules from ADRs and code patterns, and validate code against those rules. Timeline analysis identifies stale decisions, implementation lag, and technical-debt priorities.

Security-oriented tools analyze content for secrets, personal information, and other sensitive material. They can create masking instructions, apply basic masking when AI analysis is unavailable, validate the result, and configure project-specific patterns or output-wide masking.

## How it works

The server runs through MCP and uses the host model in CE-MCP mode by default. Tools return analysis instructions and orchestration guidance for the connected assistant rather than requiring a separate model API key. Project operations use the configured project path and can inspect files, search code, track ADR-related activity, and use context files such as `.mcp-server-context.md` to preserve architectural history and patterns.

Research follows a cascading approach: project files are checked first, followed by session and tool-usage records, environment resources, and web search when needed. Several workflows are designed for repeated calls. For example, deployment validation starts by detecting a platform and requesting approval, then provides the next command to run after each reported result. It does not execute those commands internally.

## Setup and configuration

Use Node.js 20 or newer and npm 9 or newer. Install globally with:

```bash
npm install -g mcp-adr-analysis-server
```

You can also start it with `npx`, build it from a cloned source tree, or use the RHEL installer. Source installations require `npm run build` before startup. Native parser modules may need internet access during installation; `HTTP_PROXY` and `HTTPS_PROXY` can be set for corporate proxy environments. If native builds fail, the server falls back to reduced operation without tree-sitter code analysis.

Configure an MCP client with the server command and a `PROJECT_PATH` value pointing to the project being analyzed:

```json
{
  "mcpServers": {
    "adr-analysis": {
      "command": "mcp-adr-analysis-server",
      "env": {
        "PROJECT_PATH": "/path/to/your/project"
      }
    }
  }
}
```

The documented client setup covers Claude Desktop, Cline, Cursor, and Windsurf. An optional ADR Aggregator connection uses `ADR_AGGREGATOR_API_KEY` for shared ADR context.

## Tools and capabilities

- Analyze project ecosystems, environments, architectural context, and code searches.
- Discover, generate, review, validate, compare, and research ADRs.
- Create ADR-derived rules and check code against machine-readable rule sets.
- Detect, mask, configure, and validate sensitive content.
- Generate bootstrap and validation scripts for deployment patterns.
- Guide interactive OpenShift, Kubernetes, or Docker validation loops with explicit human approval.
- Manage cached MCP resources and maintain project session or tool-usage context.

## Limitations and notes

Tree-sitter analysis depends on successful native-module installation; the fallback mode has reduced code-analysis coverage. Deployment validation is guided execution: the assistant must run the suggested commands and return their output between iterations. Bootstrap generation is intended to incorporate authoritative base repositories and pattern documentation before scripts are produced. The server’s default CE-MCP workflow relies on the host LLM to carry out the returned orchestration directives.

_Full upstream README: https://allmcps.com/mcp/tosin2013-mcp-adr-analysis-server/readme_

