designer-mcp

mcp
Security Audit
Fail
Health Pass
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Community trust — 13 GitHub stars
Code Fail
  • exec() — Shell command execution in src/a11y-audit.ts
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

MCP server for production-grade UI design — 27 tools covering design rules, OKLCH tokens with auto dark mode, WCAG 2.1 accessibility audit, React/Vue/HTML component output, vanilla CSS/SCSS/CSS Modules generation, anime.js v4 motion, anti-slop quality gates, and 328+ brand references.

README.md

The Designer MCP

Part of the HeLa MCP Ecosystem — This server is HeLa Phenotype (hela-phenotype) — the Design component of the HeLa cellular architecture. See the ecosystem docs for profiles, workflows, and multi-client setup.

MIT License
TypeScript

A Design-Theory-as-a-Service Model Context Protocol (MCP) server for production-grade UI design. Unlike standard code-retrieval MCPs, designer-mcp codifies subjective design principles—perceptual color math (OKLCH), motion physics, typographic scaling, and accessibility—into executable algorithms with strict anti-slop quality gates.

Featuring 17 design systems, 328+ brand references, motion.dev & anime.js motion integration, WCAG 2.1 accessibility auditing, React/Vue component output, and framework-agnostic CSS generation.

Blotcat at the design pipeline: scan → evaluate → rules → tokens, 17 systems

Table of Contents

Features

  • Anti-Slop Quality Gates — 31-gate slop test + 6-axis self-critique (P-H-E-S-R-V). Rejects anything < 3.
  • OKLCH Token System — 16 curated themes with auto dark-mode derivation (full_css field ships both :root and @media (prefers-color-scheme: dark) + [data-theme="dark"] overrides).
  • Design Rules Generator — 17 design systems + 4 palettes + 5 archetypes + hybrid combos.
  • Pre-Flight Scan — Detect existing project context: framework, font stack, palette tokens, motion libraries.
  • Framework-Native Components — Every component (button, card, navbar, hero, etc.) outputs HTML/Tailwind, React TSX (typed FC with prop interface), or Vue 3 SFC (script setup) via the framework param.
  • CSS Output Engine — Generate vanilla CSS, CSS Modules (Button/Card/Input with all 8 states), SCSS (variables + mixins + BEM), or a single tokens.css with auto dark-mode overrides.
  • WCAG 2.1 Accessibility Audit — 25-check static auditor: alt text, unlabeled inputs, empty buttons/links, heading order, focus-visible removal, skip links, landmark regions, viewport scale lock, and more. Returns 0-100 score + A–F grade + actionable fixes.
  • SOTA Motion System (motion.dev & anime.js) — Style-aware animation presets baked into components. generate_motion_snippet for on-demand snippets with React <motion.div> and vanilla physics support (8 categories, all reduced-motion guarded).
  • Color Palette Hunter — Live palettes from Color Hunt with format conversion.
  • Brand Design References — 328+ real-world brands (Stripe, Vercel, Notion, Claude, Tesla, etc.).

Tools

Blotcat balancing the full output stack — tokens.css, components, anime.js, WCAG audit — one prompt in, OKLCH out

Core Design Flow

Tool Description
evaluate_style Score 17 design systems against product context
detect_genre Classify brief into editorial / modern-minimal / atmospheric / playful
pre_flight_scan Scan existing project for framework, fonts, palette, motion libs
generate_rules Generate design rules for style + palette + archetype/hybrid
generate_tailwind_config Generate ready-to-use tailwind.config.js
get_cross_cutting_rules Get standalone rules (a11y, motion, icons, tokens, responsive)

Theme & Token System

Tool Description
generate_tokens Generate complete OKLCH token system. Returns css (light :root), full_css (light + dark @media + [data-theme="dark"] overrides), dark_css, dark_tokens
list_themes List all 16 themes with OKLCH values, fonts, axis metadata
build_custom_tokens Build custom OKLCH token system from paper/accent/font values — also emits dark mode derivation

Quality Gates

Tool Description
anti_pattern_check Run 31-gate slop test on HTML/CSS
self_critique Score output on 6 quality axes (P-H-E-S-R-V) — anything < 3 triggers revision
audit_accessibility 25-check WCAG 2.1 static auditor — alt text, unlabeled inputs/selects/textareas, empty buttons/links, heading order, focus-visible removal, skip links, landmark regions, viewport scale lock, and more. Returns 0–100 score, A–F grade, per-severity counts, fix instructions, and passed-check list

Component & Template

Tool Description
generate_template Full HTML starter page — ships with anime.js v3 animations
get_component Production-ready component. framework param: html (default) | react (TypeScript FC with motion/react physics) | vue (SFC with script setup)
generate_8state_component Standalone HTML preview with all 8 interactive states — animated via anime.js spring physics
generate_palette_variants Light/dark/high-contrast variants from hex colors
export_project Full project scaffold (config + HTML + components)

CSS Output

Tool Description
generate_css_output Framework-agnostic CSS generation from style + palette. Formats: vanilla (tokens.css + base.css + components.css) | css-modules (Button/Card/Input .module.css with all 8 states) | scss (_tokens + _mixins + _components + main.scss) | css-variables-only (tokens.css with auto dark mode). Returns named files array ready to save.

Motion (motion.dev & anime.js)

Tool Description
generate_motion_snippet Generate a ready-to-paste motion.dev or anime.js snippet matched to the current design style's physics and easing. Supports 8 categories: entrance, micro, stagger, scroll, loader, transition, counter, typewriter. Every snippet includes a prefers-reduced-motion guard.

Color & Palette

Tool Description
palette_fetch Fetch live palettes from Color Hunt
palette_convert Convert palette JSON to CSS / Tailwind / SCSS / Figma / Android / Swift

Brand References

Tool Description
brand_fetch_design_md Download DESIGN.md for a real brand
brand_list List all 328+ brands by category

Utility

Tool Description
list_options List all available systems, palettes, archetypes, hybrids
validate_combo Validate style + palette + hybrid combo
get_reference Pull full content of any reference doc
list_installed_skills Detect installed skill submodules

Motion Design

The MCP provides a dual-engine motion system: motion.dev (modern, physics-based, React-native) and anime.js v3 (lightweight vanilla JS).

When calling generate_motion_snippet or get_component (for React), the output is automatically calibrated to the design system's character:

System Easing / Physics Duration
glass easeOutQuart / [0.16, 1, 0.3, 1] 700ms
claymorphism spring(1, 80, 10, 0) / bounce: 0.4 600ms
neo-brutalism easeInOutExpo / [0.87, 0, 0.13, 1] 400ms
material cubicBezier(0.4, 0, 0.2, 1) 300ms
apple-hig spring(1, 100, 18, 0) / bounce: 0.2 550ms
swiss linear 200ms
m3-pastel spring(1, 80, 12, 0) / bounce: 0.3 450ms

Use generate_motion_snippet for standalone snippets targeting specific use cases across React, Vue, and HTML:

{
  "tool": "generate_motion_snippet",
  "arguments": {
    "category": "entrance",
    "style": "glass",
    "engine": "motion.dev",
    "framework": "react"
  }
}

Returns { cdn, snippet, easing, duration, usage_hint, reduced_motion_note }.

All snippets respect prefers-reduced-motion — animations are skipped entirely when the user has enabled reduced motion.

Examples

🔥 Live Demo: Ellis UI Collection

Ellis UI (examples/ellis-ui)
A comprehensive, anti-slop component library demonstrating the extreme versatility of designer-mcp's ruleset. The project takes a single romantic letter and renders it across 24 radically different, strictly enforced aesthetic systems (e.g., Swiss Archival, Vintage Airmail, Brutalist, UNIX Phosphor, 8-Bit Game Boy).

Each design acts as a fully standalone, reusable UI kit utilizing zero JS dependencies—relying entirely on strict structural typography, CSS geometry, and advanced CSS rendering techniques (clip-paths, custom filters, OKLCH gradients). Each of the 24 folders includes a design.md detailing the tokens and layout strategy, acting as an advanced template reference for designer-mcp.

Installation

git clone https://github.com/1999AZZAR/designer-mcp.git
cd designer-mcp
npm install
npm run build

Requirements: Node.js >= 18

Usage

npm start
npx @modelcontextprotocol/inspector node dist/index.js

Architecture

designer-mcp operates on a multi-tier architecture. An MCP server on its own is just an API; by pairing the MCP with three companion AI skills, the AI gets both the tools (the MCP) and the instruction manual (the skills).

  • ui-designer skill: Provides the design intelligence, heuristics, and brand context so the AI knows what to ask the MCP to generate.
  • color-palette-hunter skill: Handles external palette sourcing and feeds them into the OKLCH token engine.
  • motion-designer skill: Defines SOTA animation heuristics, spring physics logic, and motion.dev best practices.
src/
  index.ts              # MCP server entry, tool routing (27 tools)
  rules.ts              # 17 design systems, palettes, archetypes, hybrids
  anti-patterns.ts      # 31-gate slop test + 6-axis self-critique
  a11y-audit.ts         # 25-check WCAG 2.1 accessibility auditor (no deps, regex-only)
  tokens.ts             # 16 curated themes, OKLCH token generation, dark mode derivation
  css-output.ts         # vanilla CSS / CSS Modules / SCSS / css-variables-only generator
  anime-motion.ts       # anime.js v3 integration — style-aware presets, CDN helper, snippet generator
  components.ts         # Component library — HTML/React TSX/Vue 3 SFC output
  components-8state.ts  # 8-state component demo generator (anime.js micro-interactions)
  preflight.ts          # Project context scanner (framework, fonts, palette, motion)
  evaluate.ts           # Style scoring engine
  palette.ts            # Color Hunt palette fetcher
  palette-convert.ts    # Format converter
  palette-variants.ts   # Light/dark/high-contrast variant generator
  templates.ts          # HTML template generator (anime.js baked in)
  tailwind-config.ts    # Tailwind config generator
  export.ts             # Project scaffold exporter
skills/
  ui-designer/          # Reference docs + genre files (git submodule)
  color-palette-hunter/ # Palette CLI scripts (git submodule)

Anti-Slop Design Philosophy

Blotcat stamping the 31-gate checklist — HTML/CSS queued left, rejected crumpled right, score < 3 → revise

  • Locked tokens — every color/font references a named CSS variable, never inline values
  • No fabricated content — real metrics or labeled placeholders only
  • No re-drawn chrome — no fake browser bars, phone frames, or code window chrome
  • Typography purity — headings always roman, no italic display faces
  • Structural variety — different briefs produce structurally different pages
  • Mobile-responsiveness hard floor — 320/375/414/768px, overflow-x: clip, minmax(0, 1fr), no two-line clickable text
  • OKLCH-first — all new tokens defined in OKLCH for perceptual uniformity
  • Motion with restraint — animations are style-calibrated, spring-physics-grounded, and always gated on prefers-reduced-motion

Configuration

Variable Default Description
UI_DESIGNER_SKILL_PATH skills/ui-designer Path to the ui-designer skill references
COLOR_PALETTE_HUNTER_PATH skills/color-palette-hunter Path to the color palette hunter skill

Configuring with AI Assistants

{
  "mcpServers": {
    "designer-mcp": {
      "command": "node",
      "args": ["/path/to/designer-mcp/dist/index.js"],
      "env": {}
    }
  }
}

License

MIT

Reviews (0)

No results found