
Tailwind Context Resolver Mcp
io.github.vola-treblaPublished by GitHub account vola-treblav0.2.0Updated Oct 24, 2026
Resolves Tailwind CSS design tokens and validates utility classes against the local project config.
The publisher's own server: Tailwind App
Overview
Lets an assistant read a project's resolved Tailwind CSS v3 theme and validate utility class strings against it.
- What you can do
- Loads the project's tailwind.config.js or .ts and exposes the resolved design system through four tools. resolve_theme_tokens returns tokens for a namespace such as colors.brand or spacing; validate_class_string splits a className string into valid and invalid classes and flags conflicts; detect_css_conflicts reports utilities that clash, such as flex with grid; get_config_summary reports Tailwind version, prefix, customized theme sections and plugins. Validation is token-based rather than a full PostCSS/JIT run.
- When to use it
- Useful when an assistant writes Tailwind classes in a project with a custom palette, spacing scale, prefix or brand tokens, and you want it to check names against the real config instead of the default theme. Best suited to component or UI work in an existing Tailwind v3 codebase.
- Requirements
- Runs locally over stdio, typically started with npx. Needs Node.js 18+ and a tailwind.config.js or tailwind.config.ts in the project. Tailwind CSS v3 only; v4's CSS-based config is not supported. No accounts, API keys or environment variables are declared.
Installation
In SourceWeft
- Open Tailwind Context Resolver Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
tailwind-context-resolver-mcp 🎨🐸
[npm version] [npm downloads] [CI] [License: MIT]
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:
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.
✅ 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-18a valid spacing value here?" - "Does this project use a custom prefix?"
- "Is
bg-brand-primary flex grida valid class string?"
🛠️ Tools
resolve_theme_tokens
Query 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_string
Validates 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_conflicts
Detects conflicting Tailwind utilities — e.g. flex + grid, or absolute + fixed on the same element.
get_config_summary
Returns 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.
🚀 Setup
Claude Desktop
Add to your claude_desktop_config.json:
Cursor / VS Code / Any MCP client
📋 Requirements
- Tailwind CSS v3 — v4 uses a CSS-based config format and is not supported (the server will tell you clearly)
- Node.js 18+
- A
tailwind.config.jsortailwind.config.tsin your project
🔧 How It Works
The server uses the same config loading strategy as the Tailwind CLI:
jitiloads yourtailwind.config.tsat runtime — nots-noderequiredtailwindcss/resolveConfigmerges your config with Tailwind defaults to produce the full resolved theme- Tools perform token-based class validation — checking that
bg-brand-primarymaps to an actualcolors.brand.primarytoken — without running the full PostCSS/JIT pipeline
This approach is fast, stable, and works with any Tailwind v3 project without additional configuration.
📖 Agent Workflow Example
🐸 Part of the MCP Toolbelt
Built alongside:
- playwright-network-chaos-mcp — network fault injection for Playwright tests
- v8-cpu-profile-decoder-mcp — V8 CPU profile analysis for AI agents
License
MIT
Source: README.md at commit 2e58837
Tools
0Version history
1- v0.2.0LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Other Tailwind integrations
Tailwind App
ai.tailwindOfficial publisher
Lets an assistant list Pinterest accounts and create, schedule, and manage Pinterest posts through Tailwind.
Tailwind Shades
Published by GitHub account bourhaouta
An MCP server that gives an assistant real Tailwind CSS palettes: generate a 50-950 palette from any color, find the closest default shade, and look up or list/

Tailwind V4 Upgrade Blocker Lint
Published by GitHub account jmshinhwa
A local MCP server that lints files for Tailwind v3 syntax removed or redefined in Tailwind v4, helping assistants flag upgrade blockers.