Pattern Intelligence MCP
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., "@Pattern Intelligence MCPAnalyze a design case where retries cause duplicate charges in payments."
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.
Pattern Intelligence MCP
Evidence-aware design-pattern decision support for AI coding agents.
Most pattern tools are searchable glossaries. This server is a decision system: it identifies forces, asks what is missing, scores options transparently, penalizes unjustified complexity, recommends a direct solution when appropriate, and tells the agent how to prove or reverse the decision.
It is implemented in strict TypeScript and speaks the 2026-07-28 Model Context Protocol through the official v2 SDK.
What makes it intelligent
Problem-first: starts from a concrete case rather than a pattern name.
No-pattern baseline: adding an abstraction must beat a direct solution.
Transparent scoring: lexical, force, structured-context, cost, and contradiction terms are exposed.
Layer-aware: language idioms, GoF patterns, domain patterns, messaging, distributed systems, concurrency, testing, and architectures are not treated as interchangeable.
Counterfactual: scenario mutations reveal when the recommendation changes.
Anti-cargo-cult: expensive patterns are penalized when scale, team, or evidence does not support them.
Evidence-gated: every candidate carries measurements, experiments, rejection criteria, and deletion triggers.
Deterministic: no model API, embeddings service, database, or hidden session is required.
Related MCP server: Design-Pattern-MCP
MCP surface
Tool | Use it when | Distinguishing output |
| The solution space is open | Forces, questions, scores, rejections, direct baseline, compound |
| Two to six options are genuinely plausible | Contextual winner or no winner, plus tipping points |
| A pattern is proposed or already present | Cargo-cult risk, contradictions, simpler alternatives |
| Scale, consistency, delivery, or team assumptions may change | Decision flips and sensitivity |
| One candidate deserves a trial | Reversible stages, exit criteria, rollback |
| The reasoning must survive the conversation | Proposed ADR with uncertainty and reversal triggers |
| A recommendation needs proof | Hypothesis, measures, experiment, rejection and removal criteria |
| Discovery should stay bounded to a force or seed | Contextual nodes and relationships with layer/cost filters |
Resources expose the full catalog (pattern://catalog), decision ontology
(pattern://ontology), individual patterns (pattern://pattern/{patternId}), and layers
(pattern://layer/{layer}). Prompts provide design-review, architecture-decision, safe-refactor, and
incident-to-pattern workflows.
The 110-pattern knowledge graph
Layer | Count | Examples |
TypeScript-native | 8 | Discriminated Union, Result, Composition Root |
GoF creational | 5 | Factory Method, Builder, Singleton |
GoF structural | 7 | Adapter, Bridge, Composite, Decorator |
GoF behavioral | 11 | Command, State, Strategy, Visitor |
Enterprise/domain | 17 | Domain Model, Aggregate, CQRS, Event Sourcing |
Messaging/integration | 18 | Router, Aggregator, Idempotent Receiver, Outbox |
Distributed/resilience | 18 | Timeout, Circuit Breaker, Saga, Sharding, Cells |
Concurrency/async | 8 | Mutex, Actor, Reactor, Optimistic Concurrency |
Testing | 8 | Characterization, Contract, Property-Based, Mutation |
Architecture | 10 | Ports and Adapters, Modular Monolith, Event-Driven |
Each record contains the problem, realistic system context, mechanism, simpler alternative, misuse, evidence, TypeScript-specific concerns, adoption cost, operational cost, signals, and graph relations.
Quick start
Requirements: Node.js 22 or newer.
npm install
npm run check
npm run build
node dist/cli.jsThe server uses stdio. Do not write application logs to stdout; protocol-safe diagnostics go to stderr.
Configure an MCP client with an absolute path:
{
"mcpServers": {
"pattern-intelligence": {
"command": "node",
"args": ["/absolute/path/to/pattern-intelligence-mcp/dist/cli.js"]
}
}
}After the package is published, the same shape can use npx and the package name. The repository does
not assume publication has already happened.
A representative decision
Input:
{
"case": {
"problem": "Payment provider timeouts and at-least-once delivery cause duplicate charges after retries.",
"failureModes": ["provider outage", "duplicate delivery"],
"goals": ["never charge twice", "contain provider latency"],
"delivery": "at-least-once",
"evidence": ["0.3% provider timeouts", "17 duplicate attempts last week"]
}
}The response does not simply say “Retry.” It treats idempotency as a prerequisite, distinguishes Timeout, Idempotent Receiver, Retry with Backoff and Jitter, and related supporting responsibilities, asks which operations are safe to repeat, and supplies measurements and rejection criteria.
Architecture
flowchart TD
Client["MCP client"] --> Surface["Tools, resources, prompts"]
Surface --> App["Decision use cases"]
App --> Engine["Force detection and scoring"]
Engine --> Graph["110-pattern graph and ontology"]
Engine --> Evidence["Evidence and reversal planner"]The MCP adapter contains no decision logic. The core works as a normal TypeScript library, making the reasoning independently testable. See Architecture and Scoring model.
Development
npm run typecheck
npm run lint
npm test
npm run test:coverage
npm run buildThe test suite includes catalog integrity, relation validation, misuse cases, comparisons, counterfactuals, 15 cross-layer decision benchmarks, and end-to-end MCP calls over the official in-memory transport.
Important limitations
Scores are calibrated heuristics, not probabilities or proof of architectural correctness.
The concept ontology is intentionally explicit and reviewable; novel vocabulary can lower recall.
Pattern relationships are currently curated as related concepts rather than typed causal edges.
There is no codebase parser yet. Agents must supply an honest case and evidence.
The benchmark corpus is a regression suite, not an independent scientific evaluation.
These are product boundaries, not excuses to hide uncertainty. See the roadmap for the work required before making stronger accuracy claims.
Principles for contributors
Add a force before adding a fashionable pattern.
Every recommendation must expose its cost, simpler alternative, and falsification path.
Prefer a deterministic rule that can be tested over an opaque score that merely sounds intelligent.
Keep protocol code thin and domain code transport-independent.
Do not add infrastructure until a measured requirement needs it.
See CONTRIBUTING.md. Licensed under the MIT License.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenancePersistent decision memory and contradiction detection for AI coding agents. Enforces architectural consistency across sessions — the agent cannot code until it loads prior decisions. Human resolves conflicts on a dashboard or in chat.1MIT
- AlicenseAqualityDmaintenanceProvides design pattern templates and anti-pattern guidance to AI coding agents for correct pattern implementation.2MIT
- AlicenseNot gradedqualityAmaintenanceThe decision system for agentic engineering: keeps your project's decisions, rationale, and rejected paths in plain files and surfaces them to AI coding agents before they plan or change code.10Apache 2.0
- AlicenseNot gradedqualityAmaintenanceEnforces structured, evidence-guided software engineering tasks with cognitive actions (investigate, plan, verify, remember) and persistent state for LLM-based coding agents.1MIT
Related MCP Connectors
AI Agent with Architectural Memory. Impact analysis (free), tests and code from the graph (pro).
Design intelligence for coding agents: audits, design systems, and a taste profile agents consult.
Evidence-backed x402 web verification for AI agents, with auditable decisions for every condition.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mateusdcc/pattern-intelligence-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server