Krusch Frontend MCP
MCP server giving AI coding agents color palettes, Tailwind conversion and design-rule
Krusch Frontend MCP is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, Self-hosted, API
- Runs
- Locally
- Version
- 1.1.1
- Listing updated
Similar MCP servers
Install
Run in a terminal
claude mcp add krusch-frontend-mcp -- npx -y krusch-frontend-mcpAdd to claude_desktop_config.json
{
"mcpServers": {
"krusch-frontend-mcp": {
"command": "npx",
"args": [
"-y",
"krusch-frontend-mcp"
]
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"krusch-frontend-mcp": {
"command": "npx",
"args": [
"-y",
"krusch-frontend-mcp"
]
}
}
}Add to .vscode/mcp.json
{
"servers": {
"krusch-frontend-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"krusch-frontend-mcp"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"krusch-frontend-mcp": {
"command": "npx",
"args": [
"-y",
"krusch-frontend-mcp"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"krusch-frontend-mcp": {
"command": "npx",
"args": [
"-y",
"krusch-frontend-mcp"
]
}
}
}Using several servers? Build one config file with the MCP config generator.
About Krusch Frontend MCP
The README describes this as an MCP server that gives coding agents design-oriented utilities: palette generation with WCAG contrast scoring, CSS-to-Tailwind class mapping, responsive breakpoint generation, and conversion of Figma design tokens into CSS custom properties. Beyond those deterministic helpers, it ships a set of canonical HTML, SVG and Vercel layout templates that an agent can pull in instead of inventing new markup.
Design rules are stored in a local SQLite database with sqlite-vec embeddings and FTS5 full-text search, combined through reciprocal rank fusion. Semantic search depends on a local Ollama instance with an embedding model, while lexical search falls back to FTS5 when offline. Some tools, such as layout analysis and component style generation, call a local LLM through Ollama.
The project suits developers who use AI assistants to build frontend code and want those assistants to follow accessibility and layout conventions. It requires Node.js 22 or newer and is configured by adding the server to an MCP client's config file.
Tools this server provides (12)
Taken from the project documentation; the running server may differ.
- generate_color_palette
- HSL math palette generation from a base hex code with WCAG contrast scoring
- css_to_tailwind
- AST-based CSS to Tailwind class mapping
- generate_css_variables_from_figma
- Parse Figma JSON tokens into a CSS :root block with custom properties
- generate_responsive_breakpoints
- CSS media query generation with customizable breakpoint widths
- get_canonical_template
- Retrieve canonical HTML/SVG, Vercel and Lego templates
- list_canonical_templates
- List all available canonical templates
- ingest_figma_tokens
- Embed and store Figma JSON tokens in the vector database
- query_design_rules
- Hybrid semantic and lexical search over curated design rules
- frontend_get_provenance
- Trace version history and provenance of a design rule or token
- frontend_traverse_graph
- Traverse parent and child lineage graphs for design rules
- analyze_layout_structure
- HTML to CSS layout analysis with Flexbox vs Grid recommendation
- generate_component_styles
- RAG-enriched component style generation from natural language
What it does
- Color palette generation
- Builds palettes from a base hex value and scores contrast against WCAG thresholds.
- CSS to Tailwind mapping
- Converts CSS declarations into Tailwind utility classes using an AST-based mapper.
- Figma token ingestion
- Turns Figma design-system JSON into CSS custom properties or stores them for search.
- Canonical layout templates
- Provides a fixed set of HTML, SVG and Vercel starter templates to reduce layout drift.
- Hybrid design rule search
- Queries curated design rules with vector and full-text search, optionally filtered by paradigm.
- Offline lexical fallback
- Keeps rule retrieval working without network access by falling back to FTS5.
Good for
- Generating accessible color palettes for a new web interface
- Converting existing CSS into Tailwind classes during a refactor
- Importing Figma design tokens into a project as CSS variables
- Letting a coding agent look up WCAG or spacing guidance before writing UI code
- Scaffolding Vercel Next.js or Edge routes from canonical templates
Pricing
Open source
MIT licensed, self-hosted npm package
Krusch Frontend MCP FAQ
Does Krusch Frontend MCP need an LLM to run?
No. The README says the deterministic tools work without an LLM, and only layout analysis and component style generation require Ollama for inference.
What Node.js version is required?
The README lists Node.js 22 or newer as a requirement.
How many design rules are included?
The README states 48 curated design rules, seeded into the local database with npm run seed.
Which embedding model is recommended?
The README recommends snowflake-arctic-embed2 with a 1024-dimension embedding, configurable through the EMBED_MODEL variable.
Is Krusch Frontend MCP free?
Yes. Krusch Frontend MCP is open source, so you can use and self-host it for free.
How do I add Krusch Frontend MCP to Claude Code?
Run this command in your terminal: claude mcp add krusch-frontend-mcp -- npx -y krusch-frontend-mcp
What are the best alternatives to Krusch Frontend MCP?
The closest alternatives to Krusch Frontend MCP are Color Engine MCP, Figma Proxy MCP, Figma To Code MCP, tesserai and Struq MCP.
Where this comes from
- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.