Skip to content
MCP server
Registry

Krusch Frontend MCP Server

Canonical UI templates, WCAG color palettes, Tailwind CSS conversion, and responsive design MCP.

Krusch Frontend MCP scores 66 (Good), licensed MIT and written in JavaScript. It installs as a local process. It declares 13 tools. Filed under Databases. GitHub shows 0 stars. Package registries report about 647 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by kruschdevMITJavaScript0 stars
Trust score
66Good
Trust score 66 of 100, Good

Good trust

66 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 66 comes from

22 + 20 + 0 + 10 + 4 + 10 = 66. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity0 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 0 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "kruschdev-krusch-frontend-mcp": {      "command": "npx",      "args": [        "-y",        "krusch-frontend-mcp@1.1.2"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools13Tool docs quality grade C

All capabilities

About

krusch-frontend-mcp

Give your AI agent a design eye: MCP tools for color theory, layout analysis, canonical component templates, and design system enforcement.

Node.js 22+ License: MIT MCP: 12 Tools Storage: sqlite-vec + FTS5 Tests: 48 Passed M8ven Score AddonAudit

AI-powered styling assistant MCP server that provides deterministic design utilities, canonical HTML/SVG/Vercel layout primitives, and Hybrid RAG-backed design rule retrieval for autonomous frontend development.

Features

  • 12 MCP tools: deterministic CSS/color algorithms, canonical component & Vercel templates, provenance graph traversal, and LLM-assisted generation
  • 48 curated design rules: WCAG accessibility, Refactoring UI heuristics, Vercel Next.js App Router / Edge streaming patterns, typography, and spacing
  • Canonical template substrate (16 templates): bit-for-bit HTML/SVG brand primitives (article-shell, site-header, footer-deadbolt, deadbolt-svg, cyber-grid, nav-back) and @krusch/toolkit + Vercel Lego bricks (lego-vercel-nextjs-shell, lego-vercel-edge-sse, lego-vercel-json, etc.) preventing ad-hoc layout drift
  • Figma token ingestion: parse design system JSON directly into CSS custom properties or the RAG store
  • Hybrid sqlite-vec + SQLite FTS5 (BM25) RRF: combines 1024d cosine similarity with lexical BM25 search via Reciprocal Rank Fusion, with automatic zero-network FTS5 fallback when offline
  • Fleet-aware Ollama routing: optional multi-node load balancing for embeddings

Requirements

  • Node.js 22+
  • Ollama running locally (or on a remote host; optional for deterministic tools and offline FTS5 rule retrieval)
  • Recommended Ollama models:
    • snowflake-arctic-embed2: 8,192-ctx 1024-dim embedder for design rules and tokens (or configurable EMBED_MODEL)
    • qwen2.5-coder:7b: for layout analysis and component style generation (or configurable LLM_MODEL)
ollama pull snowflake-arctic-embed2
ollama pull qwen2.5-coder:7b

Installation

Agent-Assisted Setup

Ask your coding agent (Claude Code, Codex, Cursor, Windsurf, or Antigravity):

Read https://raw.githubusercontent.com/kruschdev/krusch-frontend-mcp/main/INSTALL.md and set up krusch-frontend-mcp on this machine.

Manual Setup

git clone https://github.com/kruschdev/krusch-frontend-mcp.git
cd krusch-frontend-mcp
npm install

Seed the RAG store

On first run, seed the database with 48 curated design rules:

npm run seed

This is idempotent, running it again safely replaces existing rules.

Configuration

All configuration is via environment variables. Create a .env file or export them directly:

VariableDefaultDescription
OLLAMA_URLhttp://localhost:11434Primary Ollama instance URL
OLLAMA_NODES(derived from OLLAMA_URL)Comma-separated host:port list for fleet routing
EMBED_MODELsnowflake-arctic-embed2Ollama model for embeddings
EMBED_DIMENSION1024Embedding vector dimension
LLM_MODELqwen2.5-coder:7bOllama model for layout and component style generation
DEBUGfalseEnable debug logging

Multi-node Ollama fleet

If you have multiple Ollama instances, set OLLAMA_NODES for round-robin load balancing on embedding operations:

export OLLAMA_NODES="localhost:11434,gpu-server:11434,inference-node:11434"

Usage with Claude Desktop / Cursor / etc.

Add to your MCP client configuration:

{
  "mcpServers": {
    "krusch-frontend-mcp": {
      "command": "node",
      "args": ["/absolute/path/to/krusch-frontend-mcp/src/index.js"]
    }
  }
}

Tools (12 Tools)

Deterministic & Canonical Primitives (no LLM required)

ToolDescription
generate_color_paletteHSL math palette generation from a base hex code with WCAG contrast scoring
css_to_tailwindAST-based CSS → Tailwind class mapping (~230 entries + shorthand expansion)
generate_css_variables_from_figmaParse Figma JSON tokens into a CSS :root block with custom properties
generate_responsive_breakpointsCSS media query generation with customizable breakpoint widths
get_canonical_templateRetrieve 16 authoritative HTML/SVG, Vercel Next.js/Edge, & @krusch/toolkit Lego templates (article-shell, site-header, footer-deadbolt, deadbolt-svg, cyber-grid, nav-back, lego-node-api, lego-mcp-server, lego-sse-route, lego-react-shell, lego-fastapi-app, lego-cloudflare-worker, lego-webhook-route, lego-vercel-nextjs-shell, lego-vercel-edge-sse, lego-vercel-json)
list_canonical_templatesList all 16 available canonical HTML/SVG brand primitives, Vercel bricks, and Lego code starter templates

RAG & Provenance Lineage (SQLite FTS5 + sqlite-vec)

ToolDescription
ingest_figma_tokensEmbed and store Figma JSON tokens in the vector database
query_design_rulesHybrid semantic + lexical BM25 search over 48 curated design rules with optional paradigm filter
frontend_get_provenanceTrace version history and provenance of a design rule or token in SQLite
frontend_traverse_graphTraverse parent/child lineage graphs for frontend design rules

LLM-assisted (requires Ollama for inference)

ToolDescription
analyze_layout_structureHTML → CSS layout analysis (Flexbox vs Grid recommendation)
generate_component_stylesRAG-enriched component style generation from natural language descriptions

Design Rule Paradigms

The query_design_rules and generate_component_styles tools support an optional paradigm filter:

  • universal (35 rules): WCAG accessibility, spacing scales, typography, color systems, layout patterns, animation timing
  • refactoring-ui (7 rules): Heuristics from Refactoring UI: hierarchy through weight, de-emphasized borders, visual alignment
  • vercel (6 rules): Vercel Next.js App Router SSR hydration safety (useMounted), unbuffered Edge SSE streaming (force-dynamic, no-transform), Web-Standards Edge runtime purity, zero-CLS font/SVG sizing, and vercel.json security headers

Development

# Run tests (48 cases)
npm test

# Seed RAG store (idempotent)
npm run seed

# Start MCP server (stdio mode)
npm start

Architecture

krusch-frontend-mcp/
├── src/
│   ├── index.js           # MCP server entrypoint (stdio transport)
│   ├── config.js           # Environment-based configuration
│   ├── rag-engine.js       # sqlite-vec vector store + paradigm-aware search
│   ├── lib/
│   │   ├── db.js           # Standalone better-sqlite3 wrapper
│   │   └── llm.js          # Minimal Ollama chat client
│   └── tools/
│       ├── color.js        # HSL/Hex math - palette generation + WCAG contrast
│       ├── tailwind.js     # AST-based CSS → Tailwind class mapping
│       ├── figma.js        # Figma JSON token ingestion + CSS variable generation
│       ├── design-rules.js # RAG-powered design rule retrieval
│       ├── layout.js       # LLM HTML → CSS layout analysis
│       ├── embed.js        # Ollama embedding client (fleet-aware)
│       ├── breakpoints.js  # Responsive breakpoint generator
│       └── component-styles.js # LLM-assisted component style generation
├── scripts/
│   ├── seed-utils.js              # Shared seeding utility
│   ├── seed-design-rules.js       # 29 universal baseline rules
│   ├── ingest-refactoring-ui.js   # 7 Refactoring UI aesthetic rules
│   └── ingest-universal-a11y.js   # 6 extended WCAG/ARIA rules
└── tests/                         # 27 test cases (node:test)

License

MIT

Frequently asked questions

What is Krusch Frontend MCP Server?

Canonical UI templates, WCAG color palettes, Tailwind CSS conversion, and responsive design MCP.

How do I install Krusch Frontend MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Krusch Frontend MCP Server runs locally from the npm package krusch-frontend-mcp with the command npx -y krusch-frontend-mcp@1.1.2.

Is Krusch Frontend MCP Server free and open source?

Yes. Krusch Frontend MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does Krusch Frontend MCP Server support remote (HTTP) connections?

No remote endpoint is listed for Krusch Frontend MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does Krusch Frontend MCP Server provide?

Krusch Frontend MCP Server provides 13 tools, including analyze_layout_structure, css_to_tailwind, frontend_get_provenance, and frontend_traverse_graph. See the full tool list for descriptions and parameters.

How is Krusch Frontend MCP Server's trust score calculated?

Krusch Frontend MCP Server scores 66 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server