Tailwindcss Mcp Server — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Tailwindcss Mcp Server (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
<p align="center"> <img src="tailwindcss-clarity-mcp-server-with-v3-and-v4.png" alt="TailwindCSS MCP Server" width="720" /> </p>
Actively maintained with up-to-date dependencies, compatibility fixes, and new features. Contributions are welcome!
A comprehensive Model Context Protocol (MCP) server that provides TailwindCSS utilities, documentation, conversion tools, and template generation capabilities. This server enables AI assistants to help with TailwindCSS development through intelligent tooling and real-time assistance.
Every tool now accepts an optional version parameter ("v3" or "v4", defaults to "v4") so you get accurate guidance for your project's TailwindCSS version.
| Feature | v3 | v4 |
|---|---|---|
| CSS entry | @tailwind base/components/utilities | @import "tailwindcss" |
| Config file | tailwind.config.js (required) | Not needed (CSS-first) |
| PostCSS plugin | tailwindcss + autoprefixer | @tailwindcss/postcss |
| Dependencies | tailwindcss autoprefixer postcss | tailwindcss @tailwindcss/postcss |
| Customization | JS config theme.extend | CSS @theme { } block |
| Docs URL | v3.tailwindcss.com | tailwindcss.com |
// Get v4 installation guide (default)
install_tailwind({ framework: "react" })
// Get v3 installation guide
install_tailwind({ framework: "react", version: "v3" })
// Works on all 8 tools
search_tailwind_docs({ query: "dark mode", version: "v4" })
generate_color_palette({ baseColor: "#6366F1", name: "brand", version: "v3" })bun add -g @clarity-contrib/tailwindcss-mcp-servernpm install -g @clarity-contrib/tailwindcss-mcp-server# With bun
bunx @clarity-contrib/tailwindcss-mcp-server
# With npx
npx @clarity-contrib/tailwindcss-mcp-servergit clone https://github.com/clarity-contrib/tailwindcss-mcp-server.git
cd tailwindcss-mcp-server
bun install
bun run buildAdd to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%/Claude/claude_desktop_config.json
#### Option 1: Using global installation
{
"mcpServers": {
"tailwindcss-server": {
"command": "tailwindcss-server"
}
}
}#### Option 2: Using bunx
{
"mcpServers": {
"tailwindcss-server": {
"command": "bunx",
"args": ["@clarity-contrib/tailwindcss-mcp-server"]
}
}
}#### Option 3: Using npx
{
"mcpServers": {
"tailwindcss-server": {
"command": "npx",
"args": ["-y", "@clarity-contrib/tailwindcss-mcp-server"]
}
}
}#### Option 4: Using local build
{
"mcpServers": {
"tailwindcss-server": {
"command": "/path/to/tailwindcss-mcp/build/index.js"
}
}
}# Using bunx
claude mcp add tailwindcss-mcp-server -- bunx @clarity-contrib/tailwindcss-mcp-server
# Using npx
claude mcp add tailwindcss-mcp-server -- npx -y @clarity-contrib/tailwindcss-mcp-serverAdd to your ./windsurf/mcp_servers.json:
{
"mcpServers": {
"tailwindcss-server": {
"command": "bunx",
"args": ["@clarity-contrib/tailwindcss-mcp-server"]
}
}
}Or with npx:
{
"mcpServers": {
"tailwindcss-server": {
"command": "npx",
"args": ["-y", "@clarity-contrib/tailwindcss-mcp-server"]
}
}
}Add to your .cursor/mcp.json:
{
"mcpServers": {
"tailwindcss-server": {
"command": "bunx",
"args": ["@clarity-contrib/tailwindcss-mcp-server"]
}
}
}Or with npx:
{
"mcpServers": {
"tailwindcss-server": {
"command": "npx",
"args": ["-y", "@clarity-contrib/tailwindcss-mcp-server"]
}
}
}#### get_tailwind_utilities Retrieve TailwindCSS utility classes with flexible filtering options.
Parameters:
category (optional): Filter by category (e.g., 'layout', 'typography', 'colors')property (optional): Filter by CSS property (e.g., 'margin', 'color', 'font-size')search (optional): Search term to find specific utilitiesversion (optional): TailwindCSS version — "v3" or "v4" (default: "v4")Example Usage:
// Get all layout utilities
get_tailwind_utilities({ category: "layout" })
// Get margin-related utilities
get_tailwind_utilities({ property: "margin" })
// Search for flex utilities
get_tailwind_utilities({ search: "flex" })#### get_tailwind_colors Access TailwindCSS color palette with complete shade information.
Parameters:
colorName (optional): Specific color name (e.g., 'blue', 'red')includeShades (optional): Include all color shades (default: true)version (optional): TailwindCSS version — "v3" or "v4" (default: "v4")Example Usage:
// Get all colors with shades
get_tailwind_colors({ includeShades: true })
// Get specific color information
get_tailwind_colors({ colorName: "blue" })#### get_tailwind_config_guide Get configuration guides and best practices for different frameworks.
Parameters:
topic (optional): Configuration topic (e.g., 'installation', 'customization')framework (optional): Target framework (e.g., 'react', 'vue', 'nextjs')version (optional): TailwindCSS version — "v3" or "v4" (default: "v4")Example Usage:
// Get React-specific configuration
get_tailwind_config_guide({ framework: "react" })
// Get customization guides
get_tailwind_config_guide({ topic: "customization" })#### search_tailwind_docs Search TailwindCSS documentation with intelligent filtering.
Parameters:
query (required): Search query for TailwindCSS documentationcategory (optional): Filter by documentation categorylimit (optional): Limit number of results (default: 10)version (optional): TailwindCSS version — "v3" or "v4" (default: "v4")Example Usage:
// Search for responsive design information
search_tailwind_docs({
query: "responsive design",
limit: 5
})
// Search in specific category
search_tailwind_docs({
query: "dark mode",
category: "customization"
})#### install_tailwind Generate complete installation commands and configuration files for any framework.
Parameters:
framework (required): Target framework ('react', 'nextjs', 'vue', 'vite', 'laravel', 'angular', 'svelte')packageManager (optional): Package manager ('npm', 'yarn', 'pnpm', 'bun') - default: 'npm'includeTypescript (optional): Include TypeScript configuration (default: false)version (optional): TailwindCSS version — "v3" or "v4" (default: "v4")Example Usage:
// Install for Next.js with npm
install_tailwind({
framework: "nextjs",
packageManager: "npm"
})
// Install for React with TypeScript and yarn
install_tailwind({
framework: "react",
packageManager: "yarn",
includeTypescript: true
})#### convert_css_to_tailwind Convert traditional CSS to TailwindCSS utility classes with intelligent suggestions.
Parameters:
css (required): CSS code to convert to TailwindCSS utilitiesmode (optional): Output format ('classes', 'inline', 'component') - default: 'classes'version (optional): TailwindCSS version — "v3" or "v4" (default: "v4"). v4 applies renamed utilities automatically.Example Usage:
// Convert CSS to utility classes
convert_css_to_tailwind({
css: ".button { padding: 1rem; background-color: #3B82F6; color: white; }"
})
// Convert with inline format
convert_css_to_tailwind({
css: ".card { margin: 16px; border-radius: 8px; }",
mode: "inline"
})
// Convert for @apply directive
convert_css_to_tailwind({
css: ".component { display: flex; justify-content: center; }",
mode: "component"
})#### generate_color_palette Create custom color palettes with multiple shades from a base color.
Parameters:
baseColor (required): Base color in hex, rgb, or hsl formatname (required): Name for the color paletteshades (optional): Array of shade values (default: [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950])version (optional): TailwindCSS version — "v3" or "v4" (default: "v4"). v3 outputs JS config (module.exports), v4 outputs CSS @theme { } block.Example Usage:
// Generate brand color palette
generate_color_palette({
baseColor: "#6366F1",
name: "brand"
})
// Generate custom shades
generate_color_palette({
baseColor: "rgb(59, 130, 246)",
name: "primary",
shades: [100, 300, 500, 700, 900]
})
// Generate from HSL
generate_color_palette({
baseColor: "hsl(217, 91%, 60%)",
name: "accent"
})#### generate_component_template Generate HTML component templates with TailwindCSS classes and customization suggestions.
Parameters:
componentType (required): Component type ('button', 'card', 'form', 'navbar', 'modal', 'alert', 'badge', 'breadcrumb')style (optional): Visual style ('minimal', 'modern', 'playful') - default: 'modern'darkMode (optional): Include dark mode support (default: false)responsive (optional): Include responsive design classes (default: true)version (optional): TailwindCSS version — "v3" or "v4" (default: "v4")Example Usage:
// Generate a modern button
generate_component_template({
componentType: "button",
style: "modern",
responsive: true
})
// Generate a modal with dark mode
generate_component_template({
componentType: "modal",
style: "minimal",
darkMode: true
})
// Generate a playful card component
generate_component_template({
componentType: "card",
style: "playful",
responsive: true
})# Clone the repository
git clone https://github.com/clarity-contrib/tailwindcss-mcp-server.git
cd tailwindcss-mcp-server
# Install dependencies
bun install
# Build the project
bun run build
# Run tests
bun test
# Start development with watch mode
bun run watch# Run all tests
bun test
# Run tests with coverage
bun run test:coverage
# Run tests in watch mode
bun run test:watch
# Run tests with UI
bun run test:uiUse the MCP Inspector for debugging and development:
bun run inspectorThis will start the inspector and provide a URL for browser-based debugging.
Originally created by Marco Rivadeneyra / CarbonoDev. Thanks for the great foundation!
MIT License - see LICENSE file for details.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.