Resolves Tailwind CSS design tokens and validates utility classes against the local project config.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
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.
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:
The 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.
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:
p-18 a valid spacing value here?"bg-brand-primary flex grid a valid class string?"resolve_theme_tokensQuery any namespace in the resolved Tailwind theme. Returns all design tokens as flat key-value pairs.
Use before generating components to discover what tokens actually exist.
validate_class_stringValidates a Tailwind className string against the project's resolved config. Returns valid classes, invalid (hallucinated) classes, and conflict warnings.
Use to catch hallucinated design tokens before writing code.
detect_css_conflictsDetects conflicting Tailwind utilities β e.g. flex + grid, or absolute + fixed on the same element.
get_config_summaryReturns a compact overview: Tailwind version, prefix, which theme sections are customized, active plugins.
Use first to understand the project's design system before querying specific tokens.
Add to your claude_desktop_config.json:
tailwind.config.js or tailwind.config.ts in your projectThe server uses the same config loading strategy as the Tailwind CLI:
jiti loads your tailwind.config.ts at runtime β no ts-node requiredtailwindcss/resolveConfig merges your config with Tailwind defaults to produce the full resolved themebg-brand-primary maps to an actual colors.brand.primary token β without running the full PostCSS/JIT pipelineThis approach is fast, stable, and works with any Tailwind v3 project without additional configuration.
Built alongside:
MIT
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/tailwind-context-resolver-mcp)<a href="https://allmcps.com/mcp/tailwind-context-resolver-mcp"><img src="https://allmcps.com/api/badge/tailwind-context-resolver-mcp?style=directory" alt="Tailwind Context Resolver MCP on AllMCPs" /></a>