MCP server

Pattern MCP: Make AI Agents Reuse Your Design System Components

Pattern MCP checks what an AI coding agent is about to build against your registered design system, then says whether to reuse a component or build only the gap.

Run
npx pattern-mcp init
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is Pattern MCP?

Pattern, published as pattern-mcp, is an MCP server that judges a UI need against your own registered design system, in code or in Figma. It tells the agent to use an existing component or build a custom one, and an auditable ledger records each decision.

Pattern's pitch is a question asked before the build starts: does your design system already cover this need? It scores the request against components you registered, so the agent reuses what exists and builds only what is missing.

Since version 0.18 it scores only against a design system you register. That system can be a Figma file, a components folder or a manifest, and without one the recommendation call returns an error asking you to register.

The verdicts it returns

  • use_existing: a registered component covers the need.
  • custom_build: nothing fits, and the unmet requirements show what to build.
  • no_candidates_found: kept separate from a low coverage result.
  • skip_list: the need is a simple primitive that does not need scoring.
  • ledger_cache_hit: a recent matching judgment was reused.

How the check works in practice

  1. Register your design system once with register_design_system.
  2. Pattern turns the request into specific requirements, or uses a checklist you supply.
  3. It checks each registered component's props, descriptions and Figma data against them.
  4. The server calculates coverage itself from the individual requirements, instead of trusting a model's percentage.
  5. After the build, verify_component checks the file against the checklist and records the result.

Optional enforcement and a decision ledger

An opt-in hook, pattern-check-gate-hook, and a CI gate, pattern-check-gate, can make the check required instead of optional. Every decision lands in a ledger you can verify later, which suits teams that need an audit trail.

Who it is for

Best for

  • Teams with a real design system, in code or Figma, whose agents keep rebuilding components that already exist.
  • Projects that pair component registries such as the shadcn MCP server with a check that the registered library is used first.
  • Readers who write requirement checklists in the style of a component spec skill and want a server to score against them.

Not for

  • Projects with no design system yet. Pattern has nothing to judge against until you register one.
  • Trivial primitives and small edits, which the server's own instructions say to skip.

Use it with UiChemy

Pattern keeps agent-written interfaces consistent with your component library. For a WordPress result, UiChemy's AI to WordPress imports an AI build, and Composer edits it inside Elementor or Gutenberg. Click Get Started on uichemy.com.