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.
🚀 Features
MCP server for TailwindCSS utility classes, documentation, and project assistance
Sterne
40
Tools
—
Uptime
—
Information Tools (4 tools)
get_tailwind_utilities - Retrieve TailwindCSS utility classes by category, property, or search
get_tailwind_colors - Access the complete TailwindCSS color palette with all shades
get_tailwind_config_guide - Get configuration guides for different frameworks
search_tailwind_docs - Search TailwindCSS documentation with intelligent filtering
Action Tools (4 tools)
install_tailwind - Generate installation commands and configurations for any framework
convert_css_to_tailwind - Convert traditional CSS to TailwindCSS utility classes
generate_color_palette - Create custom color palettes with multiple shades from base colors
generate_component_template - Generate HTML component templates with TailwindCSS classes
Supported Frameworks
React (Create React App, Next.js)
Vue (Vue 3, Nuxt.js)
Angular
Svelte/SvelteKit
Laravel
Vite
Vanilla JavaScript/HTML
📦 Installation
Using npm (Recommended)
npm install -g tailwindcss-mcp-server
Using the package directly
npx tailwindcss-mcp-server
Local Development
git clone https://github.com/CarbonoDev/tailwindcss-mcp-server.git
cd tailwindcss-mcp-server
npm install
npm run build
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 utilities
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)
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.
darkMode (optional): Include dark mode support (default: false)
responsive (optional): Include responsive design classes (default: true)
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
})
🎯 Use Cases
1. Learning TailwindCSS
Explore utility classes by category or property
Understand the color system and naming conventions
Get configuration examples for your framework
Search documentation for specific concepts
2. Converting Existing CSS
Convert legacy CSS to modern TailwindCSS utilities
Get suggestions for unsupported properties
Learn TailwindCSS equivalents for common CSS patterns
Optimize existing stylesheets
3. Design System Creation
Generate custom color palettes that match your brand
Create consistent component templates
Export color variables for CSS or JavaScript
Maintain design consistency across projects
4. Framework Integration
Get framework-specific installation guides
Set up TailwindCSS with TypeScript support
Configure build tools and development workflows
Learn best practices for your tech stack
🔧 Development
Prerequisites
Node.js 18+
npm, yarn, or pnpm
Setup
# Clone the repository
git clone https://github.com/CarbonoDev/tailwindcss-mcp-server.git
cd tailwindcss-mcp-server
# Install dependencies
npm install
# Build the project
npm run build
# Run tests
npm test
# Start development with watch mode
npm run watch
Testing
# Run all tests
npm test
# Run tests with coverage
npm run test:coverage
# Run tests in watch mode
npm run test:watch
# Run tests with UI
npm run test:ui
Debugging
Use the MCP Inspector for debugging and development:
npm run inspector
This will start the inspector and provide a URL for browser-based debugging.
Noch keine Tool-Liste. Remote-Server erhalten eine nach dem ersten Health-Check.
FAQ
Fragen
Wie installiere ich Tailwindcss?
Kopieren Sie auf dieser Seite die stdio-Konfiguration für Cursor, Claude Desktop, Claude Code oder VS Code. Sie nutzt die Installation des Herausgebers, keinen PlugMCP-Proxy.
Benötigt Tailwindcss einen API-Schlüssel?
In diesem Eintrag ist keine erforderliche Umgebungsvariable aufgeführt.
Welchen Transport verwendet Tailwindcss?
Tailwindcss läuft lokal über stdio.
Wann wurde Tailwindcss zuletzt geprüft?
Zuletzt geprüft: 2026-10-28. MCP server for TailwindCSS utility classes, documentation, and project assistance