Basecoat UI MCP Server
Provides programmatic access to 30+ Basecoat CSS (HTML port of ShadCN UI) components with usage documentation, setup scripts, and theme switching code. Enables AI assistants to help developers build accessible HTML interfaces with forms, navigation, feedback, interactive, and layout components.
README
<img width="1536" height="1024" alt="ChatGPT Image Aug 15, 2025, 10_10_22 AM" src="https://github.com/user-attachments/assets/a530dfa5-28dc-4f6f-832e-11d21a90d063" />
Basecoat MCP Server
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.
Features
- 30+ Component Variants: Access to buttons, inputs, cards, dialogs, tabs, and more.
- Usage Documentation: Complete implementation guides with examples for each component.
- Setup Scripts: Get CDN links and theme switching code instantly.
- Search & Discovery: Find components by name or category.
- Accessibility Ready: All components include ARIA attributes and semantic HTML.
Tech Stack
- Node.js - JavaScript runtime environment
- @modelcontextprotocol/sdk - For creating the MCP server
Installation
- Clone this repository:
git clone https://github.com/Sorbh/basecoat-ui-mcp.git cd basecoat-mcp-server - Install dependencies:
npm install
MCP Configuration
You can run this server either by using npx (if the package is published on npm) or by cloning the repository for local development.
Using NPX (Recommended)
This method is the easiest way to get started and doesn't require cloning the repository.
Claude Desktop
Update your claude_desktop_config.json:
{
"mcpServers": {
"basecoat-ui": {
"command": "npx",
"args": ["-y","basecoat-ui-mcp"]
}
}
}
Other MCP Clients
Configure the server to run:
npx basecoat-ui-mcp
Using Git Clone (Local Development)
For local development or if you want to modify the server:
-
Clone and setup:
git clone https://github.com/Sorbh/basecoat-ui-mcp.git cd basecoat-ui-mcp npm install -
Claude Desktop Configuration:
{ "mcpServers": { "basecoat-ui": { "command": "node", "args": ["/path/to/basecoat-ui-mcp/server.js"], "cwd": "/path/to/basecoat-ui-mcp" } } }Replace
/path/to/basecoat-ui-mcpwith the actual path where you cloned the repository. -
Other MCP Clients:
cd /path/to/basecoat-ui-mcp node server.js
Available Tools
| Tool | Description | Parameters |
|---|---|---|
get_component |
Get HTML code for a specific component variant | name: Component name (e.g., "button-primary", "card-basic") |
list_components |
List all available components organized by category | None |
get_usage |
Get comprehensive usage documentation for a component | component: Base component name (e.g., "button", "card") |
get_setup |
Get Basecoat CSS setup code with CDN links | None |
get_theme_script |
Get theme switcher script for dark/light mode | None |
search_components |
Search for components by name or category | query: Search term (e.g., "button", "form", "navigation") |
get_category |
Get all components in a specific category | category: Category name (forms, navigation, feedback, interactive, layout) |
Component Categories
Forms
- Buttons: primary, secondary, outline, destructive, ghost, link, icon variants
- Inputs: basic, with-label, invalid states
- Select: native, custom dropdowns
- Checkbox: basic, with-label, with-description
- Radio: single, group variations
- Switch: basic, with-description
- Textarea, Label, Form container
Navigation
- Tabs: horizontal, vertical with ARIA support
- Accordion: collapsible content sections
- Breadcrumb: navigation trails
- Sidebar: off-canvas navigation
Feedback
- Alert: success, error variants
- Badge: primary, secondary, destructive, outline
- Dialog: modal, alert dialog variations
- Toast: notification system
Interactive
- Dropdown: context menus with various item types
- Popover: rich content tooltips
- Tooltip: simple hover tooltips with positioning
- Combobox: searchable select dropdowns
- Theme Switcher: dark/light mode toggle
Layout
- Card: basic, with-icon variants
- Avatar: small, medium, large, fallback
- Skeleton: loading states for profile, card
- Table: responsive data display
- Pagination: navigation for large datasets
Directory Structure
basecoat-mcp/
├── components/ # HTML component files
│ ├── forms/ # Form elements
│ ├── navigation/ # Navigation components
│ ├── feedback/ # Alerts, badges, dialogs
│ ├── interactive/ # Dropdowns, tooltips
│ └── layout/ # Cards, tables, avatars
├── usage/ # Usage documentation
│ ├── forms/
│ ├── navigation/
│ ├── feedback/
│ ├── interactive/
│ └── layout/
├── scripts/ # Setup and utility scripts
├── server.js # MCP server implementation
├── package.json
└── README.md
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-feature - Make 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-feature - Open a Pull Request
Support
- Issues: GitHub Issues
<p align="center"> Built with ❤️ by Claude Code - Monitored & Prompted by Saurabh K. Sharma </p>
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。
mcp-server-qdrant
这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。