Iconsult MCP
Iconsult MCP is an architecture consulting server for multi-agent systems. It analyzes codebases against a knowledge graph of 141 concepts and 462 relationships derived from Agentic Architectural Patterns for Building Multi-Agent Systems, delivering book-grounded recommendations with exact chapter/page citations.
Core Consultation Workflow
Match concepts: Embed a project description to rank relevant architectural patterns and create a tracked session
Plan consultation: Generate an adaptive step-by-step plan based on project complexity
Traverse the knowledge graph: BFS from seed concepts to discover prerequisites, conflicts, alternatives, and complements
Query the book: RAG search for exact passages with chapter numbers, page references, and section titles
Log pattern assessments: Record whether patterns are implemented, partial, missing, or not applicable — with code evidence
Score architecture: Compute a deterministic L1–L6 maturity scorecard with gap analysis and an implementation roadmap
Generate failure scenarios: Produce cascading failure walkthroughs for missing/partial patterns with recovery recommendations
Critique the consultation: Structural quality check for workflow completeness, traversal depth, and coverage gaps
Render an HTML report: Interactive before/after architecture review with SVG diagrams, tooltips, zoom controls, and animations
Coverage analysis: Compute concept/relationship coverage metrics and diff two consultation sessions
Supervision & Implementation Tracking
Supervise consultation progress across 9 workflow phases with recommended next steps
Generate phased implementation checklists classifying steps as mechanical or design decisions
Track plan step status (pending/in-progress/completed/skipped)
Multi-Agent Coordination
Shared key-value state store for subagent coordination
Typed, versioned blackboard facts with conflict detection, confidence scores, and TTL
Event-driven reactivity (emit/poll typed events like
gap_found,coverage_threshold_reached)Schema-validate subagent JSON responses
Quality & Analytics
Rate consultations (1–5) and surface quality trends across sessions
Browse and filter the full 141-concept catalogue with definitions
Health check with graph statistics
Uses Mermaid syntax to generate and render interactive architectural diagrams that visualize agent relationships, system flows, and recommended design improvements.
Integrates with OpenAI's API for generating embeddings to support RAG-based searches of architectural patterns and provides specialized analysis for systems built with the OpenAI Agents SDK.
Click on "Deploy 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., "@Iconsult MCP Review my multi-agent architecture for gaps and provide a maturity score."
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.
Iconsult MCP
Architecture consulting for multi-agent systems, grounded in the textbook.
Iconsult is an MCP server that reviews your multi-agent architecture against a knowledge graph of 141 concepts and 462 relationships extracted from Agentic Architectural Patterns for Building Multi-Agent Systems (Arsanjani & Bustos, Packt 2026). Every recommendation comes with chapter numbers, page references, and concrete code-level changes — not abstract advice.
This project was influenced by Piaget's theories of cognitive development in which learning occurs through the adaptation of schemas.
See It In Action
We pointed Iconsult at OpenAI's Financial Research Agent — a 5-stage multi-agent pipeline from their Agents SDK — and asked it to assess architectural maturity.
![]()
View the full interactive architecture review →
The agent's current architecture
The Financial Research Agent uses a 5-stage sequential pipeline orchestrated by FinancialResearchManager. Search is the only concurrent stage — everything else runs in sequence, and the verifier is a terminal dead end:
flowchart TD
User(["User Query"]) --> Manager["FinancialResearchManager"]
Manager --> Planner["PlannerAgent\no3-mini"]
Planner -->|"FinancialSearchPlan"| FanOut{"Parallel Fan-Out"}
FanOut --> S1["SearchAgent 1"]
FanOut --> S2["SearchAgent 2"]
FanOut --> SN["SearchAgent N"]
S1 --> Collect["Collect Results"]
S2 --> Collect
SN --> Collect
Collect --> Writer["WriterAgent\ngpt-5.4"]
Writer -.->|"as_tool"| Fundamentals["FundamentalsAnalystAgent"]
Writer -.->|"as_tool"| Risk["RiskAnalystAgent"]
Fundamentals -.-> Writer
Risk -.-> Writer
Writer -->|"FinancialReportData"| Verifier["VerifierAgent\ngpt-5.4"]
Verifier --> Output(["Print Report"])What Iconsult found
Solid foundation — and Iconsult's knowledge graph traversal identified key opportunities across 7 categories:
Category | Rating | Key Finding |
Coordination & Planning | Established | Solid supervisor + agent-as-tool delegation |
Human-Agent Interaction | Emerging | Agent delegation works; no HITL checkpoints |
Agent Capabilities | Emerging | WebSearchTool + structured outputs in place |
Robustness | Not Started | 0% failure chain coverage; no retry, no timeout |
Explainability | Not Started | No instruction anchoring or fidelity auditing |
Infrastructure | Not Started | No event system, no auth, no registry |
Continuous Improvement | Not Started | Verification is informational only |
Recommended architecture
The natural next evolution — adding retry logic, checkpointing, shared memory, and a verification feedback loop:
flowchart TD
User(["User Query"]) --> Manager["FinancialResearchManager"]
Manager --> Planner["PlannerAgent\no3-mini"]
Planner -->|"FinancialSearchPlan"| FanOut{"Parallel Fan-Out"}
FanOut --> S1["SearchAgent 1"]
FanOut --> S2["SearchAgent 2"]
FanOut --> SN["SearchAgent N"]
S1 --> Collect["Collect Results"]
S2 --> Collect
SN --> Collect
FanOut -.-> WD["Watchdog Timeout\nSupervisor"]:::opportunity
S1 -.-> RT["Adaptive Retry\n+ Prompt Mutation"]:::opportunity
S2 -.-> RT
SN -.-> RT
Collect --> CP1["Checkpoint\nSearch Results"]:::opportunity
CP1 --> SharedMem[("Shared Epistemic\nMemory")]:::newpattern
SharedMem --> Writer["WriterAgent\ngpt-5.4"]
Writer -.->|"as_tool"| Fundamentals["FundamentalsAnalystAgent"]
Writer -.->|"as_tool"| Risk["RiskAnalystAgent"]
Fundamentals -.-> Writer
Risk -.-> Writer
Writer -->|"FinancialReportData"| Verifier["VerifierAgent\ngpt-5.4\n+ Scoring Rubric"]:::newpattern
Verifier -->|"Pass"| Output(["Print Report"])
Verifier -->|"Fail + Feedback"| Writer
Verifier -.-> Metrics["Custom Evaluation\nMetrics"]:::opportunity
classDef opportunity fill:none,stroke:#E74C3C,stroke-dasharray:5 5,color:#E74C3C
classDef newpattern fill:#27AE60,stroke:#333,color:whiteHow it got there
The consultation followed Iconsult's 7-step guided workflow — view the visual workflow →
Step | Tool(s) | What happened |
1. Read codebase | — | Fetched |
2. Match concepts |
| Embedded the project description (OpenAI |
2b. Plan |
| Assessed complexity as complex (score 86/100 — 20 concepts, high relationship density). Generated 11-step adaptive plan. Complexity controls traversal depth: simple (3 concepts, 1 hop, 8 steps) → moderate (5 concepts, 2 hops, adds follow-up questions + optional critique, 10 steps) → complex (8 concepts, 2 hops, parallel subagents, second traversal round, mandatory critique, 11 steps). |
3. Traverse graph |
| 4 parallel subagents explored concept clusters across two traversal rounds (39 nodes, 45 edges). Logged 20 pattern assessments (7 implemented, 3 partial, 7 missing, 3 N/A). Emitted |
4. Retrieve passages |
| Book passages scoped to discovered concepts — returned chapter numbers, page ranges, and quotes grounding each recommendation. |
5. Coverage + Score + Stress test |
|
|
5b. Critique |
| No LLM — 7 rule-based checks against fixed thresholds (workflow completeness, traversal depth >= 3, assessments >= 5, coverage >= 50%, critical edges examined, etc.). Flagged 2 issues; backfilled 6 unexplored concepts. |
6. Render report |
| Generated the interactive HTML report server-side — scores, scenarios, and coverage pulled from DB, merged with narrative content. |
7. Implementation plan |
| Offered step-by-step phased checklist (mechanical code changes vs. design decisions). |
Related MCP server: Agent Skills API
What It Does
Point it at a codebase (or describe your architecture), and it runs a structured consultation: matching concepts, traversing the knowledge graph for prerequisites and conflicts, scoring maturity against a category-based rubric (7 categories × 3 levels from Ch. 12), and generating an interactive HTML review with before/after architecture diagrams.
Tools (25)
Consultation workflow:
Tool | Role | What it does |
| Entry point | Embeds a project description → deterministic concept ranking + |
| Planning | Assesses complexity (simple/moderate/complex) and generates an adaptive step-by-step plan |
| Graph traversal | Priority-queue BFS from seed concepts — discovers alternatives, prerequisites, conflicts, complements |
| Assessment | Records whether each pattern is implemented, partial, missing, or not applicable |
| Deep context | RAG search against the book — returns passages with chapter, page numbers, and full text |
| Coverage | Computes concept/relationship coverage, identifies opportunities, optionally diffs two sessions |
| Scoring | Category-based maturity scorecard (7 categories × 3 levels) from logged pattern assessments; pattern ID aliases bridge KG ↔ rubric IDs |
| Resilience analysis | Resilience scenarios for each opportunity — code-grounded or book-grounded, with Ch. 7 recovery chain mapping |
| Quality | Structural critique with actionable fix suggestions; multi-iteration mode (1-3 passes) with convergence detection |
| Report rendering | Server-side HTML rendering — pulls scores/scenarios/coverage from DB, merges with narrative content, writes complete HTML with CSS/JS/zoom/tooltips |
| Supervision | Tracks workflow progress across 9 phases, suggests next action with tool + params |
| Implementation | Phased markdown checklist from consultation results; classifies steps as mechanical or design decision |
| Implementation | Retrieve a previously generated plan with progress summary |
| Implementation | Update step status (pending/in_progress/completed/skipped); recomputes summary |
Coordination:
Tool | What it does |
| Shared key-value state for subagent coordination during traversal |
| Blackboard Knowledge Hub — typed, versioned facts with conflict detection, confidence scores, and TTL |
| Event-driven reactivity — emit events like |
Quality & utility:
Tool | What it does |
| Record user quality score (1-5) and/or feedback with metadata snapshot |
| Surface quality trends across consultations (avg rating, coverage, distribution) |
| Browse/filter the full 138-concept catalogue |
| Schema validation for subagent responses; optional semantic validation against the knowledge graph |
| Server health + graph stats |
Prompt
Prompt | What it does |
| Kick off a full architecture consultation — provide your project context and get the guided workflow |
The Knowledge Graph
141 concepts · 786 sections · 462 relationships · 1,248 concept-section mappingsRelationship types span uses, extends, alternative_to, component_of, requires, enables, complements, specializes, precedes, and conflicts_with.
How it was built
The graph was extracted from the book in 4 phases using Claude and OpenAI embeddings:
Phase | What it does | Output |
1a — Parse Index | Extract concept entries from the book's index (OCR-corrected) | 138 concepts with page references |
1b — Parse Book | Segment the book into sections by heading structure | 786 sections across 16 chapters |
2 — Tag Concepts | Claude maps each concept to relevant sections using index page numbers + semantic context | 1,248 concept-section mappings |
3a — Explicit Relationships | Claude identifies relationships between concepts within each chapter | Typed edges (uses, requires, extends, etc.) |
3b — Semantic Pairs | OpenAI embeddings find similar concepts across chapters; Claude validates and types the relationship | Cross-chapter semantic edges |
3c–3e — Cross-Chapter | Three additional passes: knowledge-based, cross-chapter semantic, and summary-based structural relationships | 462 total relationships at avg 0.695 confidence |
4 — Build Graph | Deduplicate edges, validate confidence thresholds, compute final embeddings from section content | Production-ready graph on MotherDuck |
See docs/development.md for pipeline commands and technical details.
Explore the interactive knowledge graph →
Setup
Prerequisites
Python 3.10+
A MotherDuck account (free tier works)
OpenAI API key (for embeddings used by
ask_book)Claude Code (optionally with the visual-explainer skill for ad-hoc diagrams outside consultations)
Database Access
The knowledge graph is hosted on MotherDuck and shared publicly. The server automatically detects whether you own the database or need to attach the public share — no extra configuration needed. Just provide your MotherDuck token and it works.
Install visual-explainer (optional)
The visual-explainer skill is no longer required for consultations — render_report now handles HTML rendering server-side. However, it remains useful for ad-hoc diagrams outside consultations:
git clone https://github.com/nicobailon/visual-explainer.git ~/.claude/skills/visual-explainer
mkdir -p ~/.claude/commands
cp ~/.claude/skills/visual-explainer/prompts/*.md ~/.claude/commands/Install
pip install git+https://github.com/marcus-waldman/Iconsult_mcp.gitFor development:
git clone https://github.com/marcus-waldman/Iconsult_mcp.git
cd Iconsult_mcp
pip install -e .Environment Variables
export MOTHERDUCK_TOKEN="your-token" # Required — database
export OPENAI_API_KEY="sk-..." # Required — embeddings for ask_bookMCP Configuration
Add to your Claude Desktop config (claude_desktop_config.json) or Claude Code settings:
{
"mcpServers": {
"iconsult": {
"command": "iconsult-mcp",
"env": {
"MOTHERDUCK_TOKEN": "your-token",
"OPENAI_API_KEY": "sk-..."
}
}
}
}Verify
iconsult-mcp --checkLicense
AGPL-3.0 — see LICENSE for details.
Available Tools
17 toolsask_bookA
DEEP CONTEXT — RAG search against book sections. Embeds a natural language question and returns the most relevant book passages with full text, chapter, page numbers, and section title. ALWAYS scope with concept_ids from get_subgraph for precision. Returns suggested_questions derived deterministically from graph edges. Pass consultation_id to log retrieval steps.
Inputs: question (required), concept_ids, max_passages, consultation_id.
consultation_reportA
COVERAGE CHECK — Compute coverage metrics for a consultation session. Concept coverage counts matched concepts that were either traversed (get_subgraph seeds) or assessed (log_pattern_assessment). Also shows relationship type coverage, passage diversity, prerequisite/conflict edge checks, and specific gaps. Call before synthesizing to ensure thorough coverage. Optionally compare two sessions with the same project fingerprint to see diffs.
Inputs: consultation_id (required), compare_to.
critique_consultationA
CRITIQUE — Deterministic quality critique of a consultation session. Analyzes logged steps for workflow completeness, traversal depth, pattern assessment coverage, passage diversity, and critical edge checks. Returns issues with severity (error/warning), categories, and actionable suggestions. No LLM calls — pure structural analysis.
Inputs: consultation_id (required).
emit_eventC
EVENT (emit) — Emit a consultation event for reactive processing. Valid types: gap_found, pattern_assessed, coverage_threshold_reached, coverage_dropped, plan_created, state_conflict. Returns a reactive suggestion based on the event type.
Inputs: consultation_id (required), event_type (required), data.
generate_failure_scenariosA
STRESS TEST — Generate concrete failure scenario walkthroughs for missing/partial patterns. Each scenario shows a realistic cascading failure: trigger event, step-by-step propagation through the architecture (with file:line references when code evidence is available), downstream impact, and book-cited recovery recommendation. Also maps coverage against Ch. 7's five-step failure recovery chain. Flags inverted pyramid warnings when advanced patterns depend on missing foundations. Deterministic — same consultation always produces same scenarios. Requires pattern_assessment steps from step 3.
Inputs: consultation_id (required), max_scenarios.
get_eventsA
EVENT (poll) — Poll consultation events with optional filters. Use since_id to get only new events since a previous poll. Use event_type to filter by type.
Inputs: consultation_id (required), since_id, event_type.
get_subgraphA
QUERY PLANNER — Bounded graph traversal from seed concepts. Given one or more concept IDs (from match_concepts or list_concepts), performs BFS up to max_hops and returns all reachable nodes and edges. Use relationship types to discover what the user is missing: alternative_to for competing approaches, requires for prerequisites, conflicts_with for incompatibilities, complements for synergies. Pass consultation_id to log traversal steps for coverage tracking.
Inputs: concept_ids (required), max_hops, confidence_threshold, max_edges, +2 more.
health_checkA
Check server health and graph scope. Returns database connection status, graph statistics (concept count, relationship count, avg confidence), and pipeline status. Call this first to understand how large the knowledge graph is and whether the database is reachable.
Inputs: no named parameters.
list_conceptsA
BROWSE — List all 138 concepts in the knowledge graph. Returns compact output (id, name, category) by default. Use search to filter by name, and include_definitions for full definition text. Use this to browse the catalogue; for consultation workflows, prefer match_concepts as the entry point.
Inputs: search, include_definitions.
log_pattern_assessmentA
LOG ASSESSMENT — Record a pattern assessment for a consultation session. Call this during graph traversal (step 3) for each architectural pattern you identify in the user's codebase or confirm is missing. These stored assessments are what score_architecture uses to compute deterministic maturity scores.
Inputs: consultation_id (required), pattern_id (required), pattern_name (required), status (required), +3 more.
match_conceptsA
ENTRY POINT — Deterministically match a project description to knowledge graph concepts via embedding similarity. Returns ranked concepts with scores and creates a consultation_id that tracks the session. The same description always produces the same concept ranking and fingerprint. Pass the returned consultation_id to get_subgraph and ask_book for step logging.
Inputs: project_description (required), max_results, similarity_threshold.
plan_consultationA
PLAN — Generate an adaptive consultation plan after match_concepts. Assesses project complexity (simple/moderate/complex) based on concept count, description keywords, and relationship density. Returns a step-by-step plan with tool names and parameters. Call once after match_concepts, then follow the generated plan.
Inputs: consultation_id (required).
read_stateA
SHARED STATE (read) — Read shared state from a consultation. Returns one entry if key is specified, or all entries if omitted. Use for subagent coordination and progress tracking.
Inputs: consultation_id (required), key.
score_architectureA
MATURITY SCORECARD — Deterministic architecture scoring from stored pattern assessments. Reads pattern_assessment steps logged during graph traversal and computes: maturity level (L1-L6), pattern status with goals (target status after recommendations), gap analysis with severity, recommended metrics from the book, and implementation roadmap. Same consultation always produces same results. Requires pattern_assessment steps to have been logged during step 3 (traverse graph).
Inputs: consultation_id (required), target_level, roadmap_levels.
supervise_consultationA
SUPERVISE — Track consultation progress and suggest the next action. Returns workflow phase progress (percent complete), the recommended next tool call with parameters, step summary, recent event alerts, and shared state entries. Call after each major step for guided workflow.
Inputs: consultation_id (required).
validate_subagentA
VALIDATE — Schema validation for subagent responses from scatter-gather graph traversal. Checks that a subagent response contains the required fields (concept, key_relationships, recommendation, discovered_ids) with correct types. Returns validation result with errors and warnings. No LLM calls — pure structural validation.
Inputs: response (required).
write_stateA
SHARED STATE (write) — Upsert a key-value pair in consultation shared state. Use for subagent coordination: store discovered concepts, current phase, conflict markers, or any JSON-serializable value. Logs a state_write step to the consultation.
Inputs: consultation_id (required), key (required), value (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
Most tools have distinct purposes, but some overlap exists. For example, 'consultation_report' and 'critique_consultation' both analyze consultation sessions, though 'consultation_report' focuses on coverage metrics while 'critique_consultation' focuses on quality critique. Similarly, 'get_events' and 'emit_event' both handle events but for different actions (polling vs. emitting). Descriptions help clarify these distinctions, but an agent might occasionally confuse them.
Naming conventions are mixed but generally readable. Most tools use snake_case (e.g., 'ask_book', 'get_subgraph'), but there are deviations like 'health_check' (underscored) and inconsistent verb styles (e.g., 'log_pattern_assessment' vs. 'validate_subagent'). Some names are clear (e.g., 'list_concepts'), while others are less intuitive (e.g., 'emit_event'). Overall, it's a mix that doesn't follow a strict pattern.
With 17 tools, the count is slightly high but reasonable for the server's purpose of architectural consultation and knowledge graph interaction. The tools cover various aspects like entry points, traversal, logging, analysis, and coordination, which aligns with the domain. It might feel a bit heavy, but each tool appears to serve a specific role in the workflow.
The tool set provides comprehensive coverage for the consultation domain. It includes entry points (match_concepts, plan_consultation), traversal and querying (get_subgraph, ask_book), logging and assessment (log_pattern_assessment, score_architecture), analysis and reporting (consultation_report, critique_consultation), event handling (emit_event, get_events), state management (read_state, write_state), and validation (validate_subagent). There are no obvious gaps; the tools support a full CRUD-like lifecycle for consultations.
Maintenance
Related MCP Connectors
AI Agent with Architectural Memory. Impact analysis (free), tests and code from the graph (pro).
Evidence-backed architecture-quality analysis for Python agent applications.
Patterns for designing and reviewing AI skills, agents, and multi-agent workflows. Find guidance on context economy, delegation, verification, and tool design; inspect claims, worked examples, maturity labels, and source references. Five read-only tools let agents discover relevant patterns, compare concise cards, read specific sections, and explore relationships. Hosted Streamable HTTP at https://agentic-atlas.dev/mcp/ — no installation, account, or API key required. Browse the atlas at https://agentic-atlas.dev/.
Multi-agent AI pipeline that generates professional Solution Architecture Documents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides comprehensive architectural expertise through specialized agents, resources, and tools for generating, evaluating, and modifying architectural designs.ISC
- FlicenseNot gradedqualityDmaintenanceA multi-agent system for code rules management using MCP, supporting search, generation, and architectural validation through specialized agents.1-
- AlicenseNot gradedqualityBmaintenanceProvides architecture design expertise to AI coding agents, analyzing requirements, selecting architecture patterns, generating concrete designs, and evaluating quality attributes.1MIT
- AlicenseAqualityBmaintenanceEnables AI coding agents to make evidence-aware design-pattern decisions by analyzing cases, comparing options, detecting misuse, stress-testing assumptions, planning adoption, writing ADRs, and generating evidence plans with transparent scoring.83MIT