Basecoat UI MCP Server
This MCP server gives AI assistants programmatic access to Basecoat UI component HTML, setup code, and usage documentation so they can generate correct Basecoat markup.
Retrieve HTML for specific components or variants by name.
List all available components organized by category.
Get usage documentation for a component, with variants falling back to base docs.
Get Basecoat CSS setup code with CDN links and theme-switcher JavaScript.
Search components by name or category.
Fetch all components in a category such as forms, navigation, feedback, interactive, or layout.
Provides programmatic access to Basecoat CSS components, including 30+ component variants (buttons, inputs, cards, dialogs, tabs), usage documentation, setup scripts with CDN links, and theme switching functionality for building HTML interfaces.
Integrates with Tailwind CSS through Basecoat CSS framework components that are built with Tailwind CSS integration.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Basecoat UI MCP Server show me the button variants with usage examples"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Basecoat MCP Server
Give your AI assistant the full Basecoat UI component library (the shadcn/ui look in plain HTML + Tailwind, no React), so it writes correct Basecoat markup instead of guessing class names.
Kept in sync with Basecoat releases. Basecoat 1.0.2 shipped with breaking API changes; this MCP was updated to it the same day.

Story
While building my hobby project — turning old devices into a Digital Photo Frame — I struggled with UI components. I wanted to use Basecoat CSS, the HTML port of ShadCN UI, but there was no MCP server to easily pull components and docs into AI-assisted coding.
So I built one.
This is my first MCP server, and it’s here to make working with Basecoat (and ShadCN-style components) effortless for everyone. Feedback and contributions are welcome!
A Model Context Protocol (MCP) server that provides programmatic access to Basecoat CSS components and their usage documentation. This server allows AI assistants to help developers build HTML interfaces using the Basecoat CSS framework.
Related MCP server: Basecoat UI MCP
Features
Basecoat 1.0.2: All markup follows the 1.0 API (
class="btn" data-variant="outline",.field, method-based JS).90+ Component Variants: Buttons, fields, input groups, cards, dialogs, command menus, drawers, charts and more.
Usage Documentation: Implementation guides for 30 components, including JS requirements and 0.x migration notes.
Setup Scripts: CDN links for any style pack (Vega, Nova, Maia, Lyra, Mira, Luma, Sera, Rhea) and the theme script.
Search & Discovery: Find components by name or category.
Accessibility Ready: All components include ARIA attributes and semantic HTML.
Quick Start
No install needed: every client runs the server with npx.
Claude Code
claude mcp add basecoat-ui -- npx -y basecoat-ui-mcpClaude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"basecoat-ui": {
"command": "npx",
"args": ["-y", "basecoat-ui-mcp"]
}
}
}Cursor
Click Install in Cursor above, or add to ~/.cursor/mcp.json:
{
"mcpServers": {
"basecoat-ui": {
"command": "npx",
"args": ["-y", "basecoat-ui-mcp"]
}
}
}VS Code (GitHub Copilot)
Click Install in VS Code above, or add to .vscode/mcp.json:
{
"servers": {
"basecoat-ui": {
"command": "npx",
"args": ["-y", "basecoat-ui-mcp"]
}
}
}Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"basecoat-ui": {
"command": "npx",
"args": ["-y", "basecoat-ui-mcp"]
}
}
}Codex CLI
Add to ~/.codex/config.toml:
[mcp_servers.basecoat-ui]
command = "npx"
args = ["-y", "basecoat-ui-mcp"]Other MCP clients
Run npx -y basecoat-ui-mcp as a stdio server.
Try it
Ask your assistant something like:
Build a sign-up page with Basecoat: a card with GitHub/Google buttons, email and password fields, and a dark mode toggle.
It will call get_setup, pull the matching components and usage docs, and return HTML that uses the real Basecoat 1.0 API.
Local Development
git clone https://github.com/Sorbh/basecoat-ui-mcp.git
cd basecoat-ui-mcp
npm installPoint your client at the local copy:
{
"mcpServers": {
"basecoat-ui": {
"command": "node",
"args": ["/path/to/basecoat-ui-mcp/server.js"]
}
}
}Available Tools
Tool | Description | Parameters |
| Get HTML code for a specific component variant |
|
| List all available components organized by category | None |
| Get usage documentation for a component |
|
| Get Basecoat CSS setup code with CDN links |
|
| Get theme switcher script for dark/light mode | None |
| Search for components by name or category |
|
| Get all components in a specific category |
|
Component Categories
Forms
Button: default, secondary, outline, ghost, link, destructive, sizes, icon, with-icon, loading
Button Group: horizontal, vertical
Field / Fieldset: label, description, invalid state, grouped fields
Input / Input Group: basic, with-label, invalid, with icon, with button
Select: native select, JS select
Checkbox, Radio Group, Switch: with labels and descriptions
Slider, Textarea, Label, Form container
Navigation
Tabs, Accordion, Breadcrumb, Sidebar
Feedback
Alert: default, success, error
Alert Dialog, Dialog: confirmation and modal forms
Badge: primary, secondary, destructive, outline
Toast, Empty, Progress, Spinner
Interactive
Command: inline and dialog palettes
Combobox: input-first searchable select
Dropdown Menu, Popover, Tooltip
Drawer (beta): bottom and side
Theme Switcher
Layout
Card, Avatar, Item, Kbd, Scroll Area
Skeleton, Table, Pagination
Chart (beta)
Combine
Composed examples: chat, login, settings, interactive pagination.
Upgrading from 1.x of this MCP
Version 2.0.0 of this MCP targets Basecoat 1.0.2, which has breaking changes from Basecoat 0.3.x:
Variant classes became data attributes:
btn-outline→class="btn" data-variant="outline",btn-sm-icon→data-size="icon-sm".The
.formwrapper was removed; wrap each label and control in<div class="field">.Document events (
basecoat:toast,basecoat:sidebar,basecoat:theme) were replaced by methods:toaster.toast(),sidebar.toggle(),window.basecoat.theme.toggle().dialog-alertwas renamed toalert-dialog.
If your project still has 0.x markup, load Basecoat's compatibility stylesheet after Basecoat while you migrate (@import "basecoat-css/compat";). See style-guide.md for the full migration guide.
Directory Structure
basecoat-mcp/
├── components/ # HTML component files
│ ├── combine/ # Composed page examples
│ ├── feedback/ # Alerts, badges, dialogs, toasts
│ ├── forms/ # Buttons, fields, inputs, selects
│ ├── interactive/ # Command, combobox, dropdowns, tooltips
│ ├── layout/ # Cards, tables, avatars, items
│ └── navigation/ # Tabs, accordion, sidebar
├── usage/ # Usage documentation (same categories)
├── scripts/ # Setup and theme scripts
├── style-guide.md # Full Basecoat 1.0 style and migration guide
├── server.js # MCP server implementation
├── package.json
└── README.mdCategories are read from disk, so adding a folder under components/ or usage/ is enough to expose it.
About Basecoat CSS
Basecoat CSS is a comprehensive CSS framework that provides:
Accessible, semantic components
Dark/light theme support
Tailwind CSS integration
JavaScript-enhanced interactions
Mobile-responsive design
Learn more at basecoatui.com
License
MIT License - see LICENSE file for details.
Contributing
Fork the repository
Create a feature branch:
git checkout -b feature/amazing-featureMake your changes following our coding standards
Test your changes thoroughly
Commit with clear messages:
git commit -m 'Add amazing feature'Push to your branch:
git push origin feature/amazing-featureOpen a Pull Request
Support
Issues: GitHub Issues
Available Tools
7 toolsget_categoryA
Get all components in a specific category
Inputs: category (required).
get_componentA
Get HTML code for a specific Basecoat component
Inputs: name (required).
get_setupB
Get Basecoat CSS setup code with CDN links
Inputs: style.
get_theme_scriptB
Get theme switcher script for dark/light mode
Inputs: no named parameters.
get_usageC
Get usage documentation for a component
Inputs: component (required).
list_componentsB
List all available Basecoat components organized by category
Inputs: no named parameters.
search_componentsC
Search for components by name or category
Inputs: query (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool has a fairly clear purpose, but three tools (list_components, get_category, search_components) all act as discovery entry points and could be confused by an agent. get_component vs get_usage is also a mild overlap since both take a component and return related content (markup vs docs).
All seven names follow a strict snake_case verb_noun pattern (get_*, list_*, search_*). The verbs map predictably to the return shape, making the set easy to scan.
Seven tools is well-scoped for a component-library documentation server; each tool covers a distinct facet (code, docs, setup, theming, discovery). Nothing feels padded or missing at the count level.
The surface covers discovery, component markup, usage docs, CSS setup, and theme script, which is solid for a UI library. Minor gaps: no way to retrieve full example pages or framework-specific snippets, and category listing partially duplicates list_components.
Maintenance
Related MCP Connectors
React + Tailwind UI components and recipes your AI coding tool can search and install.
React + Tailwind UI components and recipes your AI coding tool can search and install.
React, Tailwind CSS and shadcn/ui components, sections and landing pages for coding agents.
Find, read and install shadcn components with Salesforce Lightning's look, for Radix and Base UI.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides AI assistants with tools to grade, generate, and validate UI components against the components.build specification. Supports searching documentation, checking compliance, and generating framework-agnostic accessible components.1124 npmApache 2.0
- AlicenseAqualityDmaintenanceProvides access to 77 pre-built, accessible Basecoat CSS UI components across forms, navigation, feedback, interactive, and layout categories, enabling AI assistants to retrieve HTML components and usage documentation for building user interfaces.74MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to discover, install, and generate code examples for shadcn/ui components, providing installation commands and usage examples for 37+ React UI components.MIT
- FlicenseAqualityDmaintenanceProvides AI assistants with direct access to shadcn/ui components and blocks, enabling real-time fetching of component source code, documentation, and implementation examples.44-