Tailwind MCP Server

Resolves and validates Tailwind classes against the actual local project config

Local serverstdio

What is the Tailwind MCP Server?

Resolves and validates Tailwind classes against the actual local project config

What you get

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.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
resolve_theme_tokensQuery any namespace in the resolved Tailwind theme. Returns all design tokens as flat key-value pairs.
validate_class_stringValidates a Tailwind className string against the project's resolved config. Returns valid classes, invalid (hallucinated) classes, and conflict warnings.
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.

How to install the Tailwind MCP Server

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

From the project documentation. Replace placeholders and example paths before connecting.

Example prompts to try

  • “Use Tailwind to resolve theme tokens.”
  • “Use Tailwind to validate class string.”
  • “Use Tailwind to detect css conflicts.”

Frequently asked questions

Resolves and validates Tailwind classes against the actual local project config Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.