Skip to main content
Glama

🚀 VibeCraft MCP (vibecraft-mcp)

Deterministic UI/UX Intelligence & Systems Performance Engine for AI Vibe-Coding.

npm version License: MIT Build Status

VibeCraft MCP is an open-source Model Context Protocol (MCP) server that embeds real-world UI Engineering, UX Product Psychology, and Backend Performance Auditing directly into your AI coding agent sessions (Google Antigravity, Cursor, Windsurf, Claude Code).

It permanently eliminates AI Slop—generic, un-styled, un-accessible, N+1 query-heavy code—by enforcing proven design principles and component engineering automatically.


⚡ Quickstart Setup

Add vibecraft-mcp to your IDE's mcp_config.json (Cursor, Antigravity, Windsurf, Claude Code):

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

Related MCP server: vibecraft-mcp

🛠 The 7 Core MCP Tools

1. get_layout_blueprint

Retrieves Nielsen Norman Group (NN/g) Information Architecture macro layout scaffolds:

  • saas-dashboard — Collapsible sidebar, top utility header, stat grid, filterable data table.

  • saas-settings — Task-oriented vertical tabs with sticky unsaved changes bar.

  • ai-generation-pattern — AI co-pilot streaming prompt container and action bar.

  • destructive-confirm-pattern — Double-confirmation safety dialog with undo ledges.

2. get_ux_guidelines

Queries embedded design principles & product psychology rules:

  • Frank Chimero's TSOD: 3 Levers (Message, Tone, Format), How vs Why Balance.

  • Nir Eyal's Hook Model: Habit loops ($B=MAT$ action friction reduction, variable rewards, investment).

  • Interaction Design Foundation (IxDF): Morville 7 Factors Honeycomb, Quesenberry 5 Cs.

  • Laws of UX & Growth.design: Hick's Law, Fitts's Law (44px touch targets), Doherty Threshold (<400ms skeleton UI).

3. audit_ux_compliance

Audits React & Tailwind code for UX anti-patterns:

  • Competing primary CTA buttons (bg-primary on 3+ adjacent controls).

  • Hardcoded hex colors (bg-[#121212]) missing HSL semantic design tokens.

  • Touch targets smaller than 44x44px.

  • Icon-only buttons lacking aria-label.

4. audit_system_performance

Audits backend code and database queries:

  • N+1 DB Query Elimination: Refactors loop queries to ORM include / JOIN FETCH.

  • Sequential Promise Waterfalls: Parallelizes independent calls with Promise.all().

  • Transaction Safety: Wraps multi-step mutations in db.$transaction() with automatic rollback.

  • OWASP IDOR Security: Validates tenant/user ownership checks (WHERE id = params.id AND tenantId = user.tenantId).

5. search_ui_components

Searches 21st.dev and curated component registry by keyword, category, or tag (Glowing cards, Floating magnetic docks, Bento grids).

6. get_component_code

Retrieves copy-paste ready React + Tailwind CSS + Framer Motion code with shadcn CLI install commands. Supports live HTTP fallback fetching.

7. get_design_tokens

Provides ready-to-copy globals.css light & dark mode HSL CSS variables, typography scales, spatial grid, icon stroke rules, and spring animation parameters.


📚 Embedded Design & Engineering Frameworks

Framework

Core Concept

Purpose in Vibe-Coding

Frank Chimero's TSOD

3 Levers (Message, Tone, Format)

Ensures design choices match user context & utility.

Nir Eyal's Hook Model

Trigger $\rightarrow$ Action $\rightarrow$ Reward $\rightarrow$ Investment

Builds habit-forming SaaS features and delight loops.

Nielsen Norman Group

Information Architecture (IA)

Prevents broken, chaotic SaaS page layouts.

Apple HIG & WCAG AAA

Touch targets & Access

Mandates 44x44px touch targets and screen-reader accessibility.

transitions.dev

Shared Element Motion

Physics spring timing (stiffness: 300, damping: 30).

21st.dev & shadcn

Component Registry

Production-grade UI code primitives.


👤 Author & Contribution

Developed by Satyam (@satyamuiux-byte).

Contributions, issues, and feature requests are welcome!

git clone https://github.com/satyamuiux-byte/vibecraft-mcp.git
cd vibecraft-mcp
npm install
npm run build

📄 License

MIT © satyamuiux-byte

Available Tools

7 tools
audit_system_performanceA

Audits backend API code, database queries, network waterfalls, and frontend rendering for performance bottlenecks, N+1 queries, un-transactional mutations, IDOR security issues, and slow OFFSET pagination.

Inputs: codeOrQuery (required), scope.

audit_ux_complianceB

Audits UI code or prompt specs against AI-slop prevention matrix, competing primary CTAs, TSOD levers, Design System 13-state matrix, Laws of UX, Apple HIG, Hook Model habit loops, IxDF principles, hardcoded hex colors, and icon accessibility.

Inputs: codeOrPrompt (required), componentType.

get_component_codeA

Retrieves complete React, Tailwind, Framer Motion source code, demo, and dependencies for a component. Supports fallback live fetching.

Inputs: slug (required), registryUrl.

get_design_tokensA

Provides HSL CSS color variables, globals.css setup, typography scales, spatial grid, icon stroke rules, shadows, and spring animation parameters.

Inputs: category.

get_layout_blueprintA

Retrieves Nielsen Norman Group (NN/g) Information Architecture (IA) macro page layout scaffolds and Design System Task Patterns (AI Co-pilot generation, Destructive actions, SaaS Dashboards, Settings, Onboarding, Pricing).

Inputs: id, type.

get_ux_guidelinesC

Queries UX Intelligence Rules: AI-Slop Prevention Matrix, Source of Truth Hierarchy, Frank Chimero's TSOD 3 Levers, Design System 13-State Matrix, Apple HIG, Laws of UX, Nir Eyal's Hook Model, IxDF Foundations, NN/g IA, and transitions.dev rules.

Inputs: topic, category.

search_ui_componentsB

Searches 21st.dev & curated high-craft UI component registry by keyword, category, or tag.

Inputs: tag, query, category.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 7 tools

    Disambiguation4/5

    Tools are mostly distinct: audits target performance vs UX compliance, and get_component_code/search_ui_components form a clear pair. The only real ambiguity is between get_layout_blueprint and get_ux_guidelines, since both reference NN/g IA and design guidance.

    Naming Consistency5/5

    All seven tools follow the same lowercase snake_case verb_noun convention: audit_, get_, search_. No mixed styles or vague generic verbs.

    Tool Count5/5

    Seven tools is well-scoped for a design/UX assistant: guidance retrieval, component discovery/code retrieval, token retrieval, and two complementary audit paths. Each tool has a clear role.

    Completeness5/5

    The set covers the core workflow of a design-system copilot: retrieve guidelines/layouts/tokens, find and fetch components, and audit both UX compliance and system performance. No obvious dead ends or missing lifecycle steps for this domain.

    Maintenance

    ActivitySlowing
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      B
      maintenance
      Enables AI coding agents to inspect a project's design tokens and component catalog, audit React/Tailwind files against seven static UI quality rules, score overall UI health, and apply auto-fixes that are re-audited and reverted on regression. It works both locally over filesystem access and remotely on raw TSX/JSX or CSS snippets passed directly as strings.
      -
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI coding agents to enforce UI/UX best practices and backend performance auditing, providing design guidelines, compliance checks, component search, and performance optimizations to eliminate generic or sloppy code.
      7
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI coding agents to audit rendered web pages for design and UI defects by measuring geometry, styles, contrast and motion in a local browser and judging them against evidence-tiered rules. Findings come back as short, fixable items expressed in the project's own design tokens, while only sanitized numeric measurements leave the machine.
      Apache 2.0
    • 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 npm
      1
      MIT