TailwindPlus MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
TailwindPlus MCP Server
An MCP (Model Context Protocol) server for TailwindPlus UI components.
Quick Start
Obtain a TailwindPlus components JSON file using the TailwindPlus Downloader.
Install
uvforuvx.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
Optionally, set your project's TailwindPlus settings by adding them to the command, for example
--framework react --tailwind-version 4 --mode system. The server tells Claude to use them, and offers them first when completing resource URIs. See Project Settings.
Shared config (team)
Add with project scope and the project's settings, 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 --framework react --tailwind-version 4 --mode system
This will allow .mcp.json to be commited to the repository, and but different component files can be used if necessary.
Related MCP server: Systra Tools
Other clients
To configure it in another MCP client:
{
"mcpServers": {
"tailwindplus": {
"command": "uvx",
"args": [
"git+https://github.com/richardkmichael/mcp-tailwindplus@latest",
"--tailwindplus-data",
"/path/to/tailwindplus-components.json"
]
}
}
}Or, to run directly:
uvx git+https://github.com/richardkmichael/mcp-tailwindplus@latest --tailwindplus-data /path/to/tailwindplus-components.jsonClaude Desktop
Claude Desktop requires HTTPS for HTTP-based MCP servers and does not permit localhost URLs. Use ngrok to expose the server:
# Terminal 1: start the MCP server over HTTP, accepting requests the tunnel forwards
mcp-tailwindplus --transport http --allowed-host "*.ngrok-free.app"
# Terminal 2: tunnel via ngrok (terminates TLS at its edge)
ngrok http 8000Then 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. Over HTTP, the server
rejects requests naming a host other than its bind address, localhost, or a host given with
--allowed-host, so a web page cannot reach it through DNS rebinding.
The tunnel makes the server, and so your licensed TailwindPlus components, reachable by anyone who has the URL, without authentication. Stop the tunnel when you are done.
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.
// 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-002529Example usage
Ask for UI:
> 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", mode: "light")
⎿ {
"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", mode: "light")
⎿ {
"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")
⎿ [
{
"full_name": "Application UI.Forms.Input Groups.Input with inset label",
"prose": ["Name", "Jane Smith"],
… +60 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", mode: "light")
⎿ {
"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)MCP_TAILWINDPLUS_FRAMEWORK,MCP_TAILWINDPLUS_TAILWIND_VERSION,MCP_TAILWINDPLUS_MODE: The project settings below (alternatives to--framework,--tailwind-version,--mode)
Project Settings
Set the project's framework (html, react, vue), Tailwind CSS version (3, 4), and theme
mode (light, dark, system) with --framework, --tailwind-version, and --mode. When a
client completes a resource URI, these values are offered first, so accepting the first suggestion
for each fills in the project's settings. The server's instructions also name them, so the model
uses them when retrieving components. eCommerce components still use mode none.
Available Tools
list_component_names- List component names, all or those under a branch such asApplication UI.Formsget_component_by_full_name- Get component code (HTML/React/Vue)get_component_preview_by_full_name- Get component preview HTMLsearch_component_names- Search components by name, visible text, named parts (icons, UI components, HTML elements, labeled sections), and category description; returns the best matches with their textsearch_components_by_code- Find the components code was copied from, by its classes and elements, also after edits or when only part was copied; returns the best matches with their closest Tailwind version and mode
Available Resources
MCP resources provide direct URI access to components. Each level of a component's dotted name is its own path segment:
Component Code(JSON):twplus://components/{product}/{category}/{subcategory}/{component}/{framework}/{tailwind_version}/{mode}Component Preview(HTML): the same URI followed by/preview
For example, the HTML code of Application UI.Forms.Input Groups.Input with leading icon for
Tailwind CSS 4 in light mode:
twplus://components/Application UI/Forms/Input Groups/Input with leading icon/html/4/light⚠️ Note: Resources require MCP clients that support "resource templates". Not all clients support this feature.
Parameters
product,category,subcategory,component: The four levels of the component's dotted nameframework:html,react, orvuetailwind_version:3or4(Tailwind CSS version)mode:light,dark, orsystemfor Application UI and Marketing components;nonefor Ecommerce components
Component Organization
Components are organized hierarchically:
Categories: Marketing, Application UI, Ecommerce, etc.
Full Names: Use dot-separated paths like
Marketing.Hero Sections.Simple centeredSearch: Matches words, including partial words, in names, visible text, named parts, and subcategory descriptions
Development
# 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 . --fixRunning 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 listThe 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:
{
"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-tailwindplusData Source
Requires a TailwindPlus components JSON file. Obtain one using the TailwindPlus Downloader.
Configure via:
Command line:
--tailwindplus-data /path/to/data.jsonEnvironment:
MCP_TAILWINDPLUS_DATA=/path/to/data.json
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Search and pull 620+ React and Tailwind sections into your project over MCP.
Find UI components and themes, retrieve code, and generate with hosted 21st AI when enabled.
Mzizi design system MCP: search and execute over components, tokens, crates, skills and docs. Free.
Read-only catalog of app-building materials: fonts, APIs, MCP servers, libraries, templates, data.
Related MCP Servers
- FlicenseNot gradedqualityBmaintenanceEnables AI coding assistants to search, discover, and retrieve UI HUB components, source code, dependencies, templates, and animations via MCP.-
- AlicenseNot gradedqualityBmaintenanceSearch and pull 620+ React and Tailwind sections into your project over MCP.MIT
- AlicenseNot gradedqualityBmaintenanceMCP server for the NS UI React component registry. Search components, inspect source and details, list categories, get install commands, and retrieve design-token conventions.46MIT
- AlicenseAqualityCmaintenanceEnables MCP clients to browse, customize, and compose UI components, design tokens, site content, and a UI/UX spec into standalone pages. Also supports searching components and retrieving specs, resources, and prompts for page generation.7MIT