ui2vibe-mcp
Parses CSS rulesets, inline styles, transitions, @keyframes, and cubic-bezier curves, and emits CSS Custom Properties, :root/.dark themes, and responsive layout styles.
Accepts HTML markup and DOM snapshots and emits semantic HTML5 landmarks and vanilla HTML5 components with design-token CSS.
Generates React/Next.js TSX output with Tailwind v3/v4 theme extensions and tokenized CSS variables.
Parses React JSX/TSX UI references and synthesizes zero-dependency React components using Tailwind or CSS variables.
Generates Svelte components with CSS/token themes from absorbed UI references.
Click on "Deploy 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., "@ui2vibe-mcp Extract design tokens and motion from this Tailwind hero, then audit WCAG contrast"
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.
@kr-pro-labs/ui2vibe-mcp
UI Design Token, Responsive Layout Skeleton, Motion Physics & Interactive Component Absorption MCP Server for Vibe Coding
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:
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.
Semantic Responsive & Container Query Skeletons: Prunes redundant wrapper
divchains ("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.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(...)).Chameleon Multi-Framework Synthesis: Emits production-ready, zero-dependency components for
react-tailwind,react-css-vars,vanilla-css,vue-tailwind, orsvelte-csscomplete with container query classes, subgrid styles,:root/.darkCSS Custom Properties, andtailwind.configtheme extensions.Automated WCAG & Fidelity Auditing: Verifies WCAG 2.1 AA (
>= 4.5:1) and AAA (>= 7.0:1) contrast ratios, minimum44x44pxinteractive touch targets,@media (prefers-reduced-motion: reduce)accessibility guardrails,@supportsscroll-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 --> TargetRelated MCP server: Better Design
MCP Tools & Resources
6 Core Tools
Tool Name | Description |
| Parses HTML/JSX/Vue markup, inline styles, CSS rulesets, and Tailwind utilities into a normalized |
| Converts colors into perceptual OKLCH space, synthesizes dark-mode counterparts, classifies semantic roles ( |
| Collapses redundant single-child wrapper |
| Extracts CSS transitions, |
| Generates a self-contained, zero-dependency UI component for |
| Audits WCAG 2.1 contrast ratios, 44x44px touch targets, |
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 buildMCP Client Configuration
{
"mcpServers": {
"ui2vibe": {
"command": "node",
"args": ["/path/to/ui2vibe-mcp/dist/index.js"]
}
}
}License
MIT © KR-PRO-Labs & @sjdhfjdj30-hash
Available Tools
6 toolsaudit_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
Scored across 6 tools
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.
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.
Six tools is well-scoped for a focused UI transformation pipeline. Each tool corresponds to a necessary analysis or synthesis stage without redundant operations.
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
Related MCP Connectors
Live React design-system APIs, patterns, and code validation so AI agents build real UI, not slop.
Give your agent a real design system: tokens, measured WCAG contrast, and rules to follow.
UI design from prompts, screenshots, and URLs for AI coding agents and theme tokens.
Run accessibility, contrast, and design token audits and file QA issues from your AI coding tool.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceEnables 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.-
- AlicenseAqualityCmaintenanceA 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.48603MIT
- AlicenseNot gradedqualityBmaintenanceEnables 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.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables 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 npm3MIT