Logo di MCP Tailwindplus

MCP Tailwindplus

Community
richardkmichael

TailwindPlus MCP server

Autorerichardkmichael
Repositorymcp-tailwindplus
LinguaPython
Fork
4
Stelle
42
Strumenti disponibili
0
Tipo di trasportostdio
Categorie
Link
  • Collega gli strumenti ai flussi di lavoro IA

    MCP Tailwindplus mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • 0 strumenti disponibili

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni quando forniti dal server.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse open source

    42 stelle e 4 fork nel repository collegato.

TailwindPlus MCP Server

An MCP (Model Context Protocol) server for TailwindPlus UI components.

Quick Start

  1. Obtain a TailwindPlus components JSON file using the TailwindPlus Downloader.

  2. Install uv for uvx.

  3. Add to Claude Code:

claude mcp add tailwindplus uvx -- git+https://git@github.com/richardkmichael/mcp-tailwindplus@latest --tailwindplus-data /path/to/tailwindplus-components.json

  1. Store your TailwindPlus settings in Claude's memory. This teaches Claude to use the tool and resource filters properly.

Shared config (team)

Add with project scope and set env MCP_TAILWINDPLUS_DATA=/path/to/tailwindplus-components.json:

claude mcp add -s project tailwindplus uvx -- git+https://git@github.com/richardkmichael/mcp-tailwindplus@latest

This will allow .mcp.json to be commited to the repository, and but different component files can be used if necessary.

claude
# Use TailwindPlus react for TailwindCSS v4
  ⎿  Got it.

Other clients

To configure it in another MCP client:

json
{
  "mcpServers": {
    "tailwindplus": {
      "command": "uvx",
      "args": [
        "git+https://github.com/richardkmichael/mcp-tailwindplus@latest",
        "--tailwindplus-data",
        "/path/to/tailwindplus-components.json"
      ]
    }
  }
}

Or, to run directly:

bash
uvx git+https://github.com/richardkmichael/mcp-tailwindplus@latest --tailwindplus-data /path/to/tailwindplus-components.json

Claude Desktop

Claude Desktop requires HTTPS for HTTP-based MCP servers and does not permit localhost URLs. Use ngrok to expose the server:

bash
# Terminal 1: start the MCP server over HTTP
mcp-tailwindplus --transport http

# Terminal 2: tunnel via ngrok (terminates TLS at its edge)
ngrok http 8000

Then add the ngrok URL (https://<id>.ngrok-free.app/mcp) as a custom connector in Claude Desktop (Settings > Connectors > Add custom connector).

ngrok handles TLS termination, so the MCP server itself runs plain HTTP.

Claude Desktop also supports MCP Apps, which renders component previews visually in the conversation (rather than returning raw HTML). This activates automatically when using the get_component_preview_by_full_name tool.

Tips

The TailwindPlus components JSON file has a version.

To perform future markup maintenance easily, tell Claude to add the component name and version as a comment in source code.

javascript
// Start: Application UI > Forms > Input Groups > Input with leading icon | v.2025-07-15-002529

// code

// End: Application UI > Forms > Input Groups > Input with leading icon | v.2025-07-15-002529

Example usage

Ask for UI:

claude
> I need a simple one-line search input to put in the app header.

 mcp-tailwindplus - Get Component by Full Name (MCP)(full_name: "Application UI.Forms.Input Groups.Input with leading icon", framework: "react", tailwind_version: "4")
  ⎿  {
       "version": "2025-07-14-204017",
       "full_name": "Application UI.Forms.Input Groups.Input with leading icon",
     … +15 lines (ctrl+r to expand)

 mcp-tailwindplus - Get Component by Full Name (MCP)(full_name: "Application UI.Forms.Input Groups.Input with keyboard shortcut", framework: "react", tailwind_version: "4")
  ⎿  {
       "version": "2025-07-14-204017",
       "full_name": "Application UI.Forms.Input Groups.Input with keyboard shortcut",
     … +16 lines (ctrl+r to expand)


 Perfect! Here are two ideal options for a header search input:

  1. Input with Leading Icon

  Application UI.Forms.Input Groups.Input with leading icon
  - Simple search input with magnifying glass icon
  - Just swap the EnvelopeIcon for MagnifyingGlassIcon
  - Clean, compact design perfect for headers

  2. Input with Keyboard Shortcut

  Application UI.Forms.Input Groups.Input with keyboard shortcut
  - Shows "⌘K" shortcut hint
  - Modern search UX that users expect
  - Great for power users

  For a header, I'd recommend the first one with a search icon - it's the most recognizable and space-efficient.

Claude appreciates other types of help too:

# Referring to "component" means TailwindPlus component.
  ⎿  Got it.

Ask for code for a use-case, help with a sketch:

> Show me the code for an input component we can use for a URL with the schema, e.g., `https:// [INPUT]`

⏺ I'll search for a TailwindPlus input component that would work well for URL input with a schema prefix.

⏺ mcp-tailwindplus - Search Component Names (MCP)(search_term: "input")
  ⎿  [
       "Application UI.Forms.Input Groups.Input with leading icon",
       "Application UI.Forms.Input Groups.Input with overlapping label",
     … +22 lines (ctrl+r to expand)

⏺ Perfect! Let me get the "Input with inline leading add-on" component, which would be ideal for showing a URL schema
  prefix like "https://".

⏺ mcp-tailwindplus - Get Component by Full Name (MCP)(full_name: "Application UI.Forms.Input Groups.Input with inline add-on", framework: "react", tailwind_version: "4")
  ⎿  {
       "version": "2025-07-14-204017",
       "full_name": "Application UI.Forms.Input Groups.Input with inline add-on",
     … +15 lines (ctrl+r to expand)

⏺ Here's a TailwindPlus React component for URL input with the "https://" schema prefix:

   <Claude shows React code>

Environment Variables

  • MCP_TAILWINDPLUS_DATA: Path to TailwindPlus component data file (alternative to --tailwindplus-data)

Available Tools

  1. list_component_names - List all available components
  2. get_component_by_full_name - Get component code (HTML/React/Vue)
  3. get_component_preview_by_full_name - Get component preview HTML
  4. search_component_names - Search components by keyword

Available Resources

MCP resources provide direct URI access to components:

  • Component Code: twplus://{component_full_name}/{framework}/{version}
  • Component Preview: twplus://{component_full_name}/{framework}/{version}/preview

⚠️ Note: Resources require MCP clients that support "resource templates". Not all clients support this feature.

Parameters

  • framework: html, react, or vue
  • version: 3 or 4 (Tailwind CSS version)
  • component_full_name: Dot-separated path (e.g., Application UI.Forms.Input Groups.Label with leading icon)

Component Organization

Components are organized hierarchically:

  • Categories: Marketing, Application UI, E-commerce, etc.
  • Full Names: Use dot-separated paths like Marketing.Hero Sections.Simple centered
  • Search: Supports partial matching with keywords

Development

bash
# Setup
uv sync

# Run server
uv run mcp-tailwindplus --tailwindplus-data /path/to/data.json

# Test
uv run pytest tests/ -v

# Format
uv run ruff format .
uv run ruff check . --fix

Running in this project

This project is configured to use itself, see: .mcp.json.

e.g.,

export MCP_TAILWINDPLUS_DATA=/path/to/data.json
claude mcp list

The data file is not specified in the MCP settings (neither via CLI argument nor env) to provide flexibility in the local development environment.

Set the env to whatever is needed for development or testing. A "short" (--debug-short-test) from the downloader is helpful.

Running a development version in another project

To test a development version of this MCP in another project, add to the other project's .mcp.json:

claude mcp add -s project tailwindplus -- uv --directory $( readlink -fn path/to/mcp-tailwindplus/development ) run mcp-tailwindplus

Resulting in .mcp.json similar to:

json
{
  "mcpServers": {
    "tailwindplus": {
      "type": "stdio",
      "command": "uv",
      "args": [
        "--directory",
        "/absolute/path/to/mcp-tailwindplus/development",
        "run",
        "mcp-tailwindplus"
      ],
      "env": {}
    }
  }
}

Inspecting the server directly

Use the MCP Inspector to execute MCP commands interactively, review MCP schema for Tools and Resources, etc.:

MCP_TAILWINDPLUS_DATA=/path/to/data.json npx @modelcontextprotocol/inspector uv run mcp-tailwindplus

Data Source

Requires a TailwindPlus components JSON file. Obtain one using the TailwindPlus Downloader.

Configure via:

  • Command line: --tailwindplus-data /path/to/data.json
  • Environment: MCP_TAILWINDPLUS_DATA=/path/to/data.json

Installazione

TypingMind
{
  "mcpServers": {
    "mcp-tailwindplus": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/richardkmichael/mcp-tailwindplus@latest",
        "mcp-tailwindplus",
        "--tailwindplus-data",
        "{{config.MCP_TAILWINDPLUS_DATA}}"
      ],
      "env": {
        "MCP_TAILWINDPLUS_DATA": "<MCP_TAILWINDPLUS_DATA>"
      }
    }
  }
}

Usa MCP MCP Tailwindplus con più modelli IA

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso MCP Tailwindplus, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Questa integrazione MCP viene eseguita localmente sul tuo dispositivo tramite il connettore MCP di TypingMind.

Guida alla configurazione del connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura MCP.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura MCP e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con Questo dispositivo selezionato
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

Aggiungi MCP Tailwindplus come server

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di MCP Tailwindplus.
  4. Salva l'elenco dei server.
  5. Aggiorna per verificare che il connettore sia ancora pronto.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "mcp-tailwindplus": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di MCP Tailwindplus, poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di MCP Tailwindplus.
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare MCP Tailwindplus per aiutarmi con questa attività?
MCP Tailwindplus
Certo. Ho letto.
Ecco cosa ho trovato con MCP Tailwindplus.

Domande frequenti

A cosa serve il server MCP MCP Tailwindplus?

MCP Tailwindplus è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare MCP Tailwindplus MCP con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare MCP Tailwindplus con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP MCP Tailwindplus con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando MCP Tailwindplus, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego MCP Tailwindplus MCP a TypingMind?

MCP Tailwindplus funziona tramite il connettore MCP locale di TypingMind. È la soluzione ideale quando il server MCP deve accedere a file locali, app desktop, strumenti da riga di comando o risorse private sul tuo computer.

Quali strumenti offre MCP Tailwindplus MCP in TypingMind?

MCP Tailwindplus mette a disposizione funzionalità MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare MCP Tailwindplus MCP?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se MCP Tailwindplus richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇