Skip to main content
Glama

@kr-pro-labs/ui2vibe-mcp

UI Design Token, Responsive Layout Skeleton, Motion Physics & Interactive Component Absorption MCP Server for Vibe Coding

English | 한국어 (Korean)

CI License: MIT Node.js MCP

ui2vibe-mcp is a flagship Model Context Protocol (MCP) server developed by KR-PRO-Labs (@sjdhfjdj30-hash). While clonevibe-mcp extracts and transplants backend/core algorithms from reference codebases, ui2vibe-mcp is its frontend counterpart: it absorbs any UI reference (HTML/CSS/Tailwind snippets, React JSX/TSX, Vue SFCs, or computed DOM snapshots) and distills it into:

  1. Perceptual Design Tokens: sRGB/Hex/HSL to OKLCH conversion, automatic Dark/Light mode token pairing, modular typography scales, 8pt grid spacing quantization, multi-layered box shadows, and glassmorphism blur tokens.

  2. Semantic Responsive & Container Query Skeletons: Prunes redundant wrapper div chains ("div-soup") into semantic HTML5 landmarks (header, nav, main, section, article, aside, footer), solves Flexbox/CSS Grid axes, responsive breakpoints (sm, md, lg, xl), Container Queries (@container), and CSS Subgrid inheritances.

  3. Motion Physics & Timeline Equations: Parses CSS transition, @keyframes, cubic-bezier(x1, y1, x2, y2), and Tailwind transition utilities, solving equivalent physical harmonic oscillator spring parameters (stiffness, damping, mass, settlingTimeMs), extracting modern Scroll-Driven Timelines (animation-timeline: view()), and synthesizing normalized SVG path morphing curves (d: path(...)).

  4. Chameleon Multi-Framework Synthesis: Emits production-ready, zero-dependency components for react-tailwind, react-css-vars, vanilla-css, vue-tailwind, or svelte-css complete with container query classes, subgrid styles, :root/.dark CSS Custom Properties, and tailwind.config theme extensions.

  5. Automated WCAG & Fidelity Auditing: Verifies WCAG 2.1 AA (>= 4.5:1) and AAA (>= 7.0:1) contrast ratios, minimum 44x44px interactive touch targets, @media (prefers-reduced-motion: reduce) accessibility guardrails, @supports scroll-timeline progressive fallbacks, and CLS layout stability.


Architecture Pipeline

flowchart TB
    subgraph Input["1. UI Reference Inputs"]
        R1["HTML / CSS / Tailwind Snippet"]
        R2["React JSX/TSX or Vue SFC"]
        R3["Computed Style / DOM Tree Snapshot"]
    end

    subgraph Engine["2. ui2vibe-mcp Core Pipeline (Node.js 22 Strict ESM)"]
        U1["capture_ui_reference\n(DOM & Style AST Normalizer)"]
        U2["extract_design_tokens\n(OKLCH Color / Type / 8pt Grid / Elevation)"]
        U3["decompose_layout_skeleton\n(Semantic Flex/Grid & Breakpoint Solver)"]
        U4["extract_motion_physics\n(Cubic-Bezier / Spring Physics / Keyframes)"]
        U5["synthesize_vibe_component\n(Chameleon Multi-Framework Synthesizer)"]
        U6["audit_ui_fidelity\n(WCAG Contrast / Touch Target / CLS Auditor)"]
    end

    subgraph Target["3. Host Project UI Assimilation"]
        T1["React / Next.js TSX + Tailwind v3/v4"]
        T2["Vanilla HTML5 + CSS Custom Properties"]
        T3["Vue 3 / Svelte Component + Token Theme"]
    end

    Input --> U1
    U1 --> U2 & U3 & U4
    U2 & U3 & U4 --> U5 --> U6 --> Target

Related MCP server: Better Design

MCP Tools & Resources

6 Core Tools

Tool Name

Description

capture_ui_reference

Parses HTML/JSX/Vue markup, inline styles, CSS rulesets, and Tailwind utilities into a normalized UiReferenceSnapshot with pseudo-state hooks (:hover, :focus-visible, :active, dark mode).

extract_design_tokens

Converts colors into perceptual OKLCH space, synthesizes dark-mode counterparts, classifies semantic roles (background, surface, text-primary, accent, border, glass), and quantizes 8pt grid spacing & typography scales.

decompose_layout_skeleton

Collapses redundant single-child wrapper div chains into semantic HTML5 containers and extracts Flex/Grid layout axes and responsive breakpoint rules.

extract_motion_physics

Extracts CSS transitions, @keyframes, and cubic-bezier curves, solving second-order spring physics parameters (stiffness, damping, mass, settlingTimeMs).

synthesize_vibe_component

Generates a self-contained, zero-dependency UI component for react-tailwind, react-css-vars, vanilla-css, vue-tailwind, or svelte-css along with :root/.dark CSS Custom Properties.

audit_ui_fidelity

Audits WCAG 2.1 contrast ratios, 44x44px touch targets, prefers-reduced-motion guardrails, CLS stability, and computes an overall UI fidelity score (0–100).

2 Built-in MCP Resources

  • ui2vibe://presets/motion-curves — Reference catalog of physical spring & cubic-bezier presets (snappy micro-interaction, fluid sheet transition, elastic bounce, decelerated enter).

  • ui2vibe://guide/ui-absorption-workflow — Step-by-step playbook for absorbing reference UI designs into host projects without external UI bloat.


Quick Start

git clone https://github.com/KR-PRO-Labs/ui2vibe-mcp.git
cd ui2vibe-mcp
npm install
npm run typecheck
npm test
npm run build

MCP Client Configuration

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

License

MIT © KR-PRO-Labs & @sjdhfjdj30-hash

Available Tools

6 tools
audit_ui_fidelityC

Audit WCAG 2.1 AA/AAA contrast ratios, >=44x44px touch targets, prefers-reduced-motion guardrails, CLS stability, and overall UI fidelity score (0-100).

Inputs: markup (required), css, componentName, targetFramework.

capture_ui_referenceC

Normalize HTML/JSX/Vue/Svelte markup, inline styles, CSS rules, and Tailwind utility classes into a structured UiReferenceSnapshot with pseudo-state hooks.

Inputs: markup (required), css, componentName, sourceFrameworkHint.

decompose_layout_skeletonC

Prune redundant wrapper div chains (div-soup) into semantic HTML5 landmarks and infer Flex/Grid axes and responsive breakpoints.

Inputs: markup (required), css.

extract_design_tokensC

Extract perceptual OKLCH color tokens, synthesized dark-mode counterparts, 8pt grid spacing tokens, typography scales, border radii, and glassmorphism elevations.

Inputs: markup (required), css, componentName.

extract_motion_physicsB

Extract CSS transitions, cubic-bezier curves, and @keyframes, solving physical spring parameters (stiffness, damping, mass, settlingTimeMs).

Inputs: markup (required), css.

synthesize_vibe_componentC

Synthesize a zero-dependency, accessible UI component for react-tailwind, react-css-vars, vanilla-css, vue-tailwind, or svelte-css with CSS Custom Properties.

Inputs: markup (required), css, componentName, targetFramework, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool maps to a distinct stage of the UI-to-component pipeline: capture, token extraction, layout decomposition, motion extraction, synthesis, and auditing. Although capture and layout decomposition both process markup, their outputs and purposes are clearly separated.

    Naming Consistency5/5

    All tool names follow a consistent snake_case verb_noun pattern: capture_ui_reference, extract_design_tokens, decompose_layout_skeleton, extract_motion_physics, synthesize_vibe_component, and audit_ui_fidelity. The convention is predictable and easy to scan.

    Tool Count5/5

    Six tools is well-scoped for a focused UI transformation pipeline. Each tool corresponds to a necessary analysis or synthesis stage without redundant operations.

    Completeness5/5

    The surface covers the full lifecycle from capturing a UI reference through token/layout/motion analysis to component synthesis and fidelity auditing. No obvious core step is missing for the stated domain.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables AI coding assistants to inspect frontend projects, search a curated design and motion recipe catalog, prepare and preview structured design plans, apply changes with backups and rollback, capture previews, audit UI accessibility and performance, and monitor activity via a web dashboard.
      -
    • A
      license
      A
      quality
      C
      maintenance
      A design harness for AI coding agents. Better Design gives an agent design systems, UI and UX principles, icons and UI review: it finds or creates a design system that fits the product and installs its components, explains how sign-up, forms and onboarding should work, and reviews finished screens for readability, accessibility and unclear copy.
      48
      603
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI coding assistants to generate bespoke design systems by synthesizing OKLCH color palettes, chamfer highlights and spring physics, teaching layout composition grammar, and returning micro-interaction primitives and component blueprints. Also audits JSX/TSX/HTML through a senior design director's lens to score and critique UI quality.
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI coding agents to act like a senior UI/UX team by reading an existing site's design DNA and tokens, proposing distinct art directions and motion mechanics that fit the brief, and validating changes in a live headless Chromium browser. Provides per-element accessibility and performance auditing (WCAG 2.2 contrast, focus, clipping, phone-menu behavior, LCP/CLS) at multiple viewport widths, plus baseline capture, before/after comparison, and one-command rollback for safe redesigns.
      95 npm
      3
      MIT