
carbonodev/tailwindcss-mcp-server
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
carbonodev/tailwindcss-mcp-server - кандидат на сервер MCP, импортированный из https://github.com/carbonodev/tailwindcss-mcp-server.
Обзор
carbonodev/tailwindcss-mcp-server - кандидат на сервер MCP, импортированный из https://github.com/carbonodev/tailwindcss-mcp-server.
Обзор (машинный перевод)
Комплексный сервер Model Context Protocol (MCP), который предоставляет утилиты TailwindCSS, документацию, инструменты преобразования и возможности генерации шаблонов. Этот сервер позволяет помощникам ИИ помогать в разработке TailwindCSS с помощью интеллектуальных инструментов и помощи в режиме реального времени.
Feature Особенности
###Информационные инструменты (4 инструмента)
get_tailwind_utilities — классы утилиты Retrieve TailwindCSS по категориям, свойствам или поиску
get_tailwind_colorsДоступ к полной цветовой палитре TailwindCSS со всеми оттенкамиget_tailwind_config_guide- Получите руководства по конфигурации для разных фреймворковsearch_tailwind_docs— Поиск документации TailwindCSS с интеллектуальной фильтрацией
Инструменты действия (4 инструмента)
install_tailwind — генерировать команды установки и конфигурации для любых фреймворков
convert_css_to_tailwind Преобразование традиционных CSS в классы утилит TailwindCSS
generate_color_palette — Создание пользовательских цветовых палитр с несколькими оттенками из базовых цветов
generate_component_template — Генерировать шаблоны HTML-компонентов с классами TailwindCSS
Поддерживаемые фреймворки
React (Create React App, Next.js)
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
TailwindCSS MCP Server
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
Information Tools (4 tools)
get_tailwind_utilities- Retrieve TailwindCSS utility classes by category, property, or searchget_tailwind_colors- Access the complete TailwindCSS color palette with all shadesget_tailwind_config_guide- Get configuration guides for different frameworkssearch_tailwind_docs- Search TailwindCSS documentation with intelligent filtering
Action Tools (4 tools)
install_tailwind- Generate installation commands and configurations for any frameworkconvert_css_to_tailwind- Convert traditional CSS to TailwindCSS utility classesgenerate_color_palette- Create custom color palettes with multiple shades from base colorsgenerate_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
⚙️ Configuration
Claude Desktop
Add 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 npx
{
"mcpServers": {
"tailwindcss-server": {
"command": "npx",
"args": ["-y", "tailwindcss-mcp-server"]
}
}
}
Option 3: Using local build
{
"mcpServers": {
"tailwindcss-server": {
"command": "/path/to/tailwindcss-mcp/build/index.js"
}
}
}
Claude Code
Add MCP Server using npx
claude mcp add tailwindcss-mcp-server -- npx tailwindcss-mcp-server
Windsurf IDE
Add to your ./windsurf/mcp_servers.json:
{
"mcpServers": {
"tailwindcss-server": {
"command": "npx",
"args": ["-y", "tailwindcss-mcp-server"]
}
}
}
Cursor IDE
Add to your .cursor/mcp.json:
{
"mcpServers": {
"tailwindcss-server": {
"command": "npx",
"args": ["-y", "tailwindcss-mcp-server"]
}
}
}
🛠️ Tool Reference
Information Tools
get_tailwind_utilities
Установка
npx -y tailwindcss-mcp-serverКонфигурация
{
"mcpServers": {
"tailwindcss-server": {
"command": "tailwindcss-server"
}
}
}