CT

carbonodev/tailwindcss-mcp-server

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

41 stars 4 forks 品質 65 トレンド 0MIT

carbonodev/tailwindcss-mcp-serverは[https://github.com/carbonodev/tailwindcss-mcp-server.からインポートされたMCPサーバー候補です

概要

carbonodev/tailwindcss-mcp-serverは[https://github.com/carbonodev/tailwindcss-mcp-server.からインポートされたMCPサーバー候補です

概要(AI 翻訳)

TailwindCSSユーティリティ、ドキュメント、変換ツール、テンプレート生成機能を提供する包括的なモデルコンテキストプロトコル(MCP)サーバー。 このサーバーは、AIアシスタントがインテリジェントなツーリングとリアルタイムのアシスタンスを通じて、TailwindCSSの開発を支援できるようにします。

OST の特徴

情報ツール(4ツール)

-[get_tailwind_utilities - カテゴリ、プロパティ、または検索による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 - tailwindCSSクラスでHTMLコンポーネントのテンプレートを生成する

サポートされているフレームワーク

  • React (React App、Next.js の作成)

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

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 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

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

GitHub で README 全文を見る

インストール

npx -y tailwindcss-mcp-server
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "tailwindcss-server": { "command": "tailwindcss-server" } } }