home / mcp / nearest tailwind colors mcp server
Exposes a single tool to find the closest Tailwind CSS palette colors to any CSS color.
Configuration
View docs{
"mcpServers": {
"brunocpf-nearest-tailwind-colors-mcp": {
"command": "node",
"args": [
"/absolute/path/to/nearest-tailwind-colors-mcp/dist/index.js"
]
}
}
}You can use this MCP server to quickly find the nearest Tailwind CSS palette colors to any CSS color. It exposes a single tool that analyzes your color input and returns a list of closely matching Tailwind colors, helping you design consistent palettes and fast UI iterations.
You interact with the MCP server through an MCP client. Provide a color as input, and optionally specify how many matches you want and which color space to compare in. The server returns the closest Tailwind colors by name and their hex values, making it easy to pick colors that align with Tailwind’s palette.
Practical usage patterns you can try:
Example command flow in your MCP client configuration will typically involve calling the tool with a color string and optional parameters for the number of results and the color space.
{
"tool": "nearest_tailwind_colors",
"color": "#1e90ff",
"n": 5,
"space": "lab",
"excludeColors": ["white", "black"]
}Finds the closest Tailwind colors to a given CSS color. Parameters include color (the input CSS color), n (number of results, default 5, max 50), excludeColors (Tailwind color names to skip), and space (color comparison space such as lab or rgb; default is lab).