Krusch Frontend MCP

v1.1.2
dev.krusch/krusch-frontend-mcp Checked 2 hours ago Published 7 days ago

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

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

generate_color_palette

Generates a cohesive color palette (complementary, analogous, triadic) and contrast scores from a base hex code.

ParameterTypeDescription
baseHex *stringThe base color in #RRGGBB format

css_to_tailwind

Translates standard CSS properties into Tailwind utility classes.

ParameterTypeDescription
cssString *stringRaw CSS rules (e.g. 'display: flex; padding: 1rem;')

ingest_figma_tokens

Parses Figma JSON token exports, converts them to CSS variables/Tailwind configs, and indexes them into the RAG database.

ParameterTypeDescription
tokensJsonStr *string

generate_css_variables_from_figma

Parses Figma JSON token exports and returns a CSS string with a :root block defining CSS custom properties (variables) for each token. Use this to generate actual CSS rather than ingesting into the RAG.

ParameterTypeDescription
tokensJsonStr *string

query_design_rules

Semantic RAG search over specific design guidelines, CSS architecture, and accessibility standards.

ParameterTypeDescription
queryStr *string
paradigmstringOptional aesthetic paradigm to filter by (e.g. 'universal', 'refactoring-ui', 'vercel', 'apple-hig', 'material-design')

analyze_layout_structure

Accepts an HTML structure and returns the optimal CSS layout approach (Flexbox vs Grid) and the necessary CSS.

ParameterTypeDescription
htmlString *string

generate_component_styles

Given a component description (e.g. 'glassmorphism card with hover lift'), generates CSS custom properties and classes. Enriches output with RAG-retrieved design rules.

ParameterTypeDescription
description *stringNatural language description of the component aesthetic
paradigmstringOptional aesthetic paradigm to filter RAG rules by (e.g. 'refactoring-ui', 'universal', 'vercel')

generate_responsive_breakpoints

Generates standard CSS media queries for responsive breakpoints (e.g. sm, md, lg) with optional custom width overrides.

ParameterTypeDescription
customBreakpointsobjectOptional overrides for breakpoints. e.g. { '3xl': '1920px' }

frontend_get_provenance

Company Brain Substrate (SQLite): Interrogate why a piece of context or design rule exists by tracing its version history.

ParameterTypeDescription
id *numberThe ID of the frontend RAG item to trace.

frontend_traverse_graph

Company Brain Substrate (SQLite): Graph Traversal. Traverses parent/child memory lineage for frontend design rules.

ParameterTypeDescription
id *numberThe ID of the frontend RAG item to traverse from.
depthnumberDefault is 3.
directionstringDefault is 'all'.

get_canonical_template

Returns the authoritative bit-for-bit HTML/SVG component template or @krusch/toolkit & krusch_toolkit Lego starter brick for krusch.dev and homelab projects.

ParameterTypeDescription
templateKey *stringThe canonical template or Lego starter brick key to retrieve.

list_canonical_templates

Lists all available canonical HTML/SVG design templates and @krusch/toolkit & krusch_toolkit Lego starter bricks for homelab projects.