Tailwind Context Resolver MCP server
Resolves Tailwind CSS design tokens and validates utility classes against the local project config.
0 stars
Reviews
Write oneNobody has reviewed Tailwind Context Resolver yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Tailwind Context Resolver tools (7)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
audit_theme_usageIdentifies dead design tokens by scanning the project files.
detect_css_conflictsDetects conflicting Tailwind utility classes in a className string — e.g. applying both 'flex' and 'grid',
get_config_summaryReturns a compact overview of the project's Tailwind configuration: version, prefix,
resolve_theme_tokensQueries the resolved Tailwind CSS theme for a specific namespace and returns all design tokens.
resolve_v4_theme_variablesParses the project's root CSS file (Tailwind CSS v4) and extracts all design tokens defined in @theme blocks.
simulate_jit_compilationValidates Tailwind utility classes against the JIT engine by programmatically compiling them.
validate_class_stringValidates a Tailwind CSS className string against the project's actual config.
Public scan report
scanner v0.1.9 · 2026-09-27 · same rubric, same numbers if you re-run it
- Code scan14 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 130 days ago8/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How Tailwind Context Resolver compares
Against every graded Media MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 82/100
- higher than 65% of 1,337 Media servers
- Tools
- 7
- the typical Media server has 7
- Tools that change things
- 0%
- typical: 5%. Fewer write tools means less an agent can break
What its tools let an agent do: 7 read
Install Tailwind Context Resolver in Claude Code, Cursor or VS Code
Runs npx -y tailwind-context-resolver-mcp on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add tailwind-context-resolver-mcp -- npx -y tailwind-context-resolver-mcp
What the publisher says
From the Tailwind Context Resolver repository's README, as published. We do not edit it. Read it on GitHub
tailwind-context-resolver-mcp 🎨🐸
An MCP server that loads your project's tailwind.config.ts/js and exposes its actual design system to AI agents — so they stop hallucinating class names.
🤔 The Problem
AI agents generate Tailwind classes based on training data — the default Tailwind docs. Your project is not the default docs.
You have a custom color palette. A non-standard spacing scale. Maybe a prefix like tw-. Brand tokens like bg-brand-primary. The agent doesn't know any of this. It guesses.
The result:
// Agent confidently generates this:
<div className="bg-primary-500 text-brand p-18 tw-flex-center">
// Your project has:
// - bg-brand-primary (not bg-primary-500)
// - no "text-brand" token
// - spacing.18 = 4.5rem (ok actually)
// - no "flex-center" utility
// - no "tw-" prefixThe agent can't validate what it writes because it has no access to your resolved config. It's working from memory of the default theme — not yours.
✅ The Fix
This MCP server runs the Tailwind resolver locally and gives agents a typed, queryable interface to your actual config. Before writing a component, the agent can ask:
- "What brand colors exist in this project?"
- "Is p-18 a valid spacing value here?"
- "Does this project use a custom prefix?"
- "Is bg-brand-primary flex grid a valid class string?"
🛠️ Tools
resolvethemetokens
Query any namespace in the resolved Tailwind theme. Returns all design tokens as flat key-value pairs.
namespace: "colors.brand" → { primary: "#3b82f6", secondary: "#8b5cf6", danger: "#ef4444" }
namespace: "spacing" → { "1": "0.25rem", "2": "0.5rem", "18": "4.5rem", ... }
namespace: "fontFamily" → { sans: ["Inter", "sans-serif"], mono: [...] }Use before generating components to discover what tokens actually exist.
validateclassstring
Validates a Tailwind className string against the project's resolved config. Returns valid classes, invalid (hallucinated) classes, and conflict warnings.
{
"valid_classes": ["bg-brand-primary", "text-white", "p-4", "hover:bg-brand-secondary", "flex"],
"invalid_classes": ["bg-fake-token", "text-brand"],
"warnings": ["Conflicting multiple layout models: flex, grid"],
"config_prefix": ""
}Use to catch hallucinated design tokens before writing code.
detectcssconflicts
Detects conflicting Tailwind utilities — e.g. flex + grid, or absolute + fixed on the same element.
{
"conflicts": [{ "classes": ["flex", "grid"], "reason": "multiple layout models" }],
"has_conflicts": true
}getconfigsummary
Returns a compact overview: Tailwind version, prefix, which theme sections are customized, active plugins.
{
"tailwind_version": "3.4.19",
"prefix": "",
"theme_extensions": ["colors", "spacing", "fontFamily"],
"total_colors": 142,
"total_spacing": 34,
"plugins": ["@tailwindcss/forms"]
}Use first to understand the project's design system before querying specific tokens.
🚀 Setup
Claude Desktop
Add to your claudedesktopconfig.json:
{
"mcpServers": {
"tailwind-context-resolver": {
"command": "npx",
"args": ["-y", "tailwind-context-resolver-mcp"]
}
}
}Cursor / VS Code / Any MCP client
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Tailwind Context Resolver: common questions
- Is Tailwind Context Resolver MCP server safe?
- Mostly: it is graded B (82/100). Read the Tailwind Context Resolver safety report
- How do I install Tailwind Context Resolver?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Tailwind Context Resolver need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Tailwind Context Resolver maintained?
- The last commit was 166 days ago (2026-05-20). The latest release is v0.2.0.
- What can I use instead of Tailwind Context Resolver?
- Servers from other publishers that do the same job: Dembrandt MCP server, melta UI MCP server and AINDF MCP server.
- How does Tailwind Context Resolver compare with other Media MCP servers?
- safety score 82/100 (higher than 65% of 1,337 Media servers); tools 7 (the typical Media server has 7); tools that change things 0% (typical: 5%. Fewer write tools means less an agent can break). Full comparison.
Alternatives to Tailwind Context Resolver
Same job from other publishers: the closest match first, then the best rated.
- DembrandtDesign tokens from any live site: colours, type, spacing, components, drift against a baseline.not reviewedWidely usedB
- melta UIAI-Ready design system MCP: melta UI tokens, component contracts, 107 rules, check_html self-verifynot reviewedEstablishedA
- AINDFRead-only MCP server for one AINDF design-system bundle: look up what it offers, validate screens.not reviewedEstablishedA
- BuoyThe design system your coding agents check before they ship: tokens plus exact UI fixes.not reviewedGrowingA
- Mimic AIBuilds Figma from your design system: real components and tokens, enforced, learning every build.not reviewedGrowingA