Tailwind Shades logo

Tailwind Shades

Generates Tailwind color palettes, finds matching Tailwind colors, retrieves defaults, and converts colors through MCP.

Install Tailwind Shades

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-shades": {
      "command": "npx",
      "args": [
        "-y",
        "tailwindshades-cli"
      ]
    }
  }
}

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

We couldn’t confirm it starts correctly

The install command installed and started the server, which then stopped for configuration (such as an API key) that our sandbox does not have — expected for servers that connect to your account.

npx -y tailwindshades-cli

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Tailwind Shades MCP server generates Tailwind palettes from input colors and exposes color utilities to AI coding agents. Its five tools create palettes, find the nearest Tailwind color, retrieve version-specific defaults, list color names, and convert colors between formats. It is available remotely over HTTP or locally as a stdio process, with support for Tailwind versions 1 through 4. Reach for it when an agent needs accurate Tailwind color data instead of guessing shade values.

Use cases

  • Generate a complete Tailwind palette from a brand color
  • Find the nearest built-in Tailwind color class
  • Retrieve exact default colors for a Tailwind version
  • Convert colors to OKLCH, hex, and RGB
  • List available Tailwind color names

Key features

  • Generate Tailwind palettes for versions 1 through 4
  • Find the closest Tailwind color and visibility of the difference
  • Retrieve version-specific default palettes
  • List Tailwind color names
  • Convert colors between OKLCH, hex, and RGB
  • Use remote HTTP or local stdio transport

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.

21/21 checks healthy over the last 46d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 13d ago via OSV.dev · tailwindshades-cli (npm)

Adoption & maintenance

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

GitHub stars79Stargazers on the source repository.
npm downloads174Package downloads in the last 30 days.
Last commit13d agoMost recent push to the default branch.
Install checkRunsOur sandbox started it; it then asked for an API key or config.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Tailwind Shades works

What Tailwind Shades MCP server does

Tailwind Shades MCP server gives AI coding agents access to the palette engine behind the Tailwind Shades project. It works with Tailwind CSS color data and supports versions 1, 2, 3, and 4. The server can generate a complete shade range from an input color, identify the nearest built-in Tailwind color, return Tailwind's predefined palettes, enumerate available color names, and convert colors between formats.

Palette generation follows the project's Tailwind-oriented shading method rather than a basic white-and-black mix. The input color remains unchanged at the shade where it best fits, and the remaining shades follow the reference Tailwind color's changes in lightness, saturation, and hue. Calculations use OKLCH, including the format used by Tailwind v4.

How it works

The MCP implementation exposes five tools:

  • generate_palette creates the same palette produced by the extension and CLI for a selected Tailwind version.
  • find_closest_tailwind_color returns the closest Tailwind class for a supplied color and indicates whether the difference is visible.
  • get_tailwind_palette returns Tailwind's own default colors for a selected version.
  • list_tailwind_colors lists the default color names available in a version.
  • convert_color converts an input color to OKLCH, hex, and RGB representations.

The generated ranges depend on the selected version: v4, v3, and v2 use shades 50 through 950 or 900 as defined by their palettes, while v1 uses 100 through 900.

Setup and configuration

The Tailwind Shades MCP server can be used as a hosted service at https://tailwindshades.bourhaouta.com/mcp, so no package installation is needed for the remote option. Claude Code, Cursor, and VS Code each have documented HTTP configuration examples using that endpoint.

For a local connection, run npx -y tailwindshades-mcp as a stdio server and register that command with the MCP client. The provided setup example uses Claude Code's claude mcp add command. The package is also listed in the MCP Registry as io.github.bourhaouta/tailwindshades.

No environment variables are documented as required.

Tools and capabilities

Use generate_palette when an agent needs a full custom color scale for a Tailwind project. Use find_closest_tailwind_color when selecting an existing utility such as a nearby red-500 value. get_tailwind_palette is intended for retrieving exact built-in values rather than relying on model memory, while list_tailwind_colors helps inspect the available names for a version.

convert_color is useful when a workflow needs the same input represented as OKLCH, hex, and RGB. Together, these tools cover custom palette creation, default palette lookup, color matching, name discovery, and format conversion.

Limitations and notes

The server exposes color and palette operations; it does not document file editing or direct modification of a project. The add_brand_color item described in the README is an MCP prompt shown by Claude Code, not one of the five tools.

Version selection matters because each Tailwind release has its own default palette and output conventions. The MCP excerpt does not specify automatic version detection behavior for standalone server calls, so clients should provide or otherwise determine the intended Tailwind version when that distinction matters. Remote and local transports are documented, but authentication and availability guarantees for the hosted endpoint are not described.

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 Shades

Tailwind Shades is an MCP server that connects AI coding agents to Tailwind CSS color data. Its main tools generate palettes, find the closest Tailwind color, retrieve default palettes, list Tailwind color names, and convert colors between OKLCH, hex, and RGB for Tailwind versions 1 through 4.

You can run it locally with `npx -y tailwindshades-mcp` as a stdio server, or connect to the hosted endpoint at `https://tailwindshades.bourhaouta.com/mcp` without installing it. Client-specific registration examples are provided for Claude Code, Cursor, and VS Code.

Yes, Tailwind Shades works with Cursor through its remote HTTP MCP endpoint. Add the server URL to `~/.cursor/mcp.json` or a project-level `.cursor/mcp.json` using the `tailwindshades` server name.

It provides five tools: `generate_palette`, `find_closest_tailwind_color`, `get_tailwind_palette`, `list_tailwind_colors`, and `convert_color`. These cover custom palette generation, nearest-color lookup, default palette retrieval, color-name listing, and color-format conversion.

Yes, it supports Tailwind v1, v2, v3, and v4. The version affects the reference palette, shade range, and output conventions, so the requested version should match the project being edited.

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 Shades AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/tailwind-shades?style=directory)](https://allmcps.com/mcp/tailwind-shades)
HTML Embed
<a href="https://allmcps.com/mcp/tailwind-shades"><img src="https://allmcps.com/api/badge/tailwind-shades?style=directory" alt="Tailwind Shades on AllMCPs" /></a>