Tailwind Context Resolver MCP logo

Tailwind Context Resolver MCP

Resolves Tailwind v3 tokens and checks utility classes against a local Tailwind configuration.

Install Tailwind Context Resolver MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "tailwind-context-resolver-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "tailwind-context-resolver-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 7 tools correctly ().

Overview

The tailwind-context-resolver-mcp MCP server loads a project's Tailwind v3 configuration and exposes its resolved theme to AI agents. It provides tools for querying design tokens, validating utility class strings, identifying conflicting utilities, and summarizing configuration details. The server uses jiti and Tailwind's resolveConfig without running the full PostCSS or JIT pipeline. Use it when agents need project-specific Tailwind classes instead of relying on default theme assumptions.

Use cases

  • Inspect project-specific color and spacing tokens before generating components
  • Validate Tailwind class strings against a local configuration
  • Detect conflicting layout or positioning utilities
  • Summarize a Tailwind v3 project's theme extensions and plugins

Key features

  • Resolve Tailwind theme namespaces into token values
  • Validate utility classes against the resolved configuration
  • Report invalid classes and configured prefixes
  • Detect conflicting Tailwind utilities
  • Summarize Tailwind version, extensions, and plugins

Tools7

What Tailwind Context Resolver MCP lets your agent do. Expand a tool for its parameters.

Verified live~1.1k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

16/16 checks healthy over the last 76d

What it can do

From the 7 tools this server returned when we ran it.

Handles credentials · 5Read-only tools · 7
Network at startup3 connections
Files written at startupNone
Install scriptsprepare
npm provenanceNot published
Package age174 days
Maintainers1

Observed 2026-11-07 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 12d ago via OSV.dev · tailwind-context-resolver-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads217Package downloads in the last 30 days.
Last commit6mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed7Callable tools this server registers over MCP.

How Tailwind Context Resolver MCP works

What tailwind-context-resolver-mcp does

The tailwind-context-resolver-mcp MCP server gives AI agents access to the resolved design system in a local Tailwind CSS v3 project. It reads tailwind.config.js or tailwind.config.ts, including custom colors, spacing, font families, prefixes, theme extensions, and configured plugins.

Agents can query token namespaces such as colors.brand, spacing, or fontFamily, then use those results when generating components. They can also submit a complete Tailwind class string for validation. The validation result separates recognized and unrecognized classes, reports a configured prefix, and can identify conflicts such as using both flex and grid on one element.

How it works

At startup, the server loads the project configuration with jiti, so TypeScript configuration files do not require ts-node. It then uses Tailwind CSS's resolveConfig to combine project settings with Tailwind defaults and produce the resolved theme.

The tailwind-context-resolver-mcp MCP server performs token-based checks rather than executing the complete PostCSS or JIT processing pipeline. For example, it can determine whether a color or spacing token exists and whether a utility maps to that token. This makes the workflow suitable for inspecting configuration and checking generated class names before code is committed.

A practical sequence is to call get_config_summary first, query relevant namespaces with resolve_theme_tokens, validate the proposed class string with validate_class_string, and finish with detect_css_conflicts.

Setup and configuration

Run the package through npx from an MCP client configuration:

config.json
{
  "tailwind-context-resolver": {
    "command": "npx",
    "args": ["-y", "tailwind-context-resolver-mcp"]
  }
}

The README provides this format for Claude Desktop, Cursor, VS Code, and other MCP clients. The project must contain a tailwind.config.js or tailwind.config.ts, and Node.js 18 or newer is required. No environment variables are documented.

Tailwind CSS v3 is required. Tailwind CSS v4's CSS-based configuration format is not supported; the server reports this limitation when encountered.

Tools and capabilities

  • resolve_theme_tokens returns the values in a requested resolved-theme namespace as flat key-value pairs.
  • validate_class_string checks a className string and returns valid classes, invalid classes, conflict warnings, and the configured prefix.
  • detect_css_conflicts reports conflicting utilities, including multiple layout models or incompatible positioning utilities.
  • get_config_summary reports the Tailwind version, prefix, customized theme sections, active plugins, and counts such as colors and spacing values.

Together, these tools let an agent inspect the project's actual tokens before generating code and check its proposed utilities afterward. The tailwind-context-resolver-mcp MCP server is therefore most relevant to projects with custom Tailwind themes, non-default scales, or prefixes.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Tailwind Context Resolver MCP

tailwind-context-resolver-mcp is an MCP server that connects AI agents to a local Tailwind CSS v3 project configuration. Its main tools resolve theme tokens, validate utility class strings, detect conflicting utilities, and summarize the loaded Tailwind setup, including prefixes, theme extensions, and plugins.

Install it by adding an MCP configuration that runs `npx -y tailwind-context-resolver-mcp`. The project needs Node.js 18 or newer and a `tailwind.config.js` or `tailwind.config.ts` file.

Yes, tailwind-context-resolver-mcp works with Cursor through the documented `npx` MCP command configuration. Add the server entry with `command` set to `npx` and arguments set to `-y` and `tailwind-context-resolver-mcp`.

No, tailwind-context-resolver-mcp supports Tailwind CSS v3, not v4. Tailwind v4 uses a CSS-based configuration format that this server does not support.

Use the `validate_class_string` tool to check a className string against the project's resolved Tailwind configuration. It returns valid classes, invalid classes, conflict warnings, and the configured prefix.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewTailwind Context Resolver MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/tailwind-context-resolver-mcp?style=directory)](https://allmcps.com/mcp/tailwind-context-resolver-mcp)
HTML Embed
<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>