What does TailwindCSS MCP do?
TailwindCSS MCP gives AI agents access to your Tailwind configuration and documentation. Agents can look up utility classes, check your custom theme values (colors, spacing, fonts), and generate Tailwind-compliant code that matches your project settings.
Why do AI agents need TailwindCSS MCP?
AI models are trained on older Tailwind versions and often generate deprecated or incorrect classes. TailwindCSS MCP provides the agent with your actual Tailwind config and current docs, so generated code matches your project's version and customizations.
Is TailwindCSS MCP free?
Yes, completely free and open source. It is maintained by the Tailwind Labs team. No API keys or accounts are needed.
Does TailwindCSS MCP read my tailwind.config.js?
Yes. It parses your project's Tailwind configuration and exposes custom theme values, plugins, and content paths to the AI agent. This ensures generated code uses your custom color palette, breakpoints, and spacing scale.
How do I install TailwindCSS MCP?
Add npx @anthropic-ai/tailwindcss-mcp to your MCP client config. Point it at your project directory so it can find your tailwind.config.js or tailwind.config.ts. It works with Tailwind CSS v3 and v4.