MCP server

Design System MCP: Serve Your Tokens, Patterns and Rules to Coding Agents

Design System MCP indexes a design-system Git repo and lets coding agents ask for tokens, patterns, component source and rule checks before they generate any UI.

Run
pnpm install && pnpm build
View on GitHub

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

What is Design System MCP?

Design System MCP is a single-process server that indexes a design-system Git repository of tokens, principles, patterns, voice guidance, prompts and rules. Coding agents query it for the right tokens and components, then validate generated UI against deterministic rules such as no raw hex colors.

The pitch is four questions an agent can now ask: which tokens belong on this button, which confirmation dialog pattern exists, what voice an empty state should use, and whether generated UI contains raw hex colors.

It is one Node.js process with no Redis, no database and no object store. The source of truth is a design-system Git repo, and the server rebuilds an in-memory bundle with a MiniSearch index on startup and refresh.

What the source repo contains

  • Tokens in tokens/*.tokens.json, resolved through Style Dictionary.
  • Principles, patterns and conventions as Markdown or MDX with frontmatter.
  • Components with component.json metadata, plus source files in many languages.
  • Prompt templates in prompts/*.prompt.md and validation rules in rules/*.json.
  • A manifest.json that declares content types and relations.

Token formats it accepts

Source styleSupportedNote
DTCG JSONYesResolved through Style Dictionary
Token Studio exportsYesToken-set order and contextual references
Markdown frontmatter tokensYesFull DTCG-shaped trees
Prose token tablesSearchable onlyNot used for deterministic resolution

Fit and limits

Best for

  • Design systems teams who want agents to use their tokens instead of inventing spacing and colors.
  • CI pipelines that need a validation command with JSON or SARIF output and a nonzero exit on error.
  • Readers comparing it with other design system servers or the DESIGN.md format.
  • Teams that keep tokens in a repo and follow a design token skill for naming.

Not for

  • Horizontal scaling, OAuth or persistent user state. The README treats those as a separate future proposal.
  • A quick start with no design system. It needs a content repo to index first.

Use it with UiChemy

This server keeps agents faithful to a design system. Teams that publish on WordPress can pair that discipline with UiChemy, which turns a Figma design into an editable page. Click Get Started on uichemy.com to try it.