get_component
Get HTML code for a specific Basecoat component
name必填
io.github.Sorbh由 GitHub 帳號 Sorbh 發布v2.0.1更新於 Oct 29, 2026
Basecoat UI 1.0 components (shadcn/ui look in plain HTML + Tailwind) with usage docs and setup.
提供 Basecoat UI 元件的 HTML、用法文件與初始化程式碼,讓助理寫出正確的 Basecoat 標記,而不是自行猜測類別名稱。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
參照 儲存庫 中的啟動說明。
[npm version] [npm downloads] [Basecoat] [MCP Registry] [License: MIT]
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.
[Install in Cursor] [Install in VS Code]
[Demo: asking Claude for a Basecoat login page]
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.
class="btn" data-variant="outline", .field, method-based JS).No install needed: every client runs the server with npx.
Add to claude_desktop_config.json:
Click Install in Cursor above, or add to ~/.cursor/mcp.json:
Click Install in VS Code above, or add to .vscode/mcp.json:
Add to ~/.codeium/windsurf/mcp_config.json:
Add to ~/.codex/config.toml:
Run npx -y basecoat-ui-mcp as a stdio server.
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.
Point your client at the local copy:
Composed examples: chat, login, settings, interactive pagination.
Version 2.0.0 of this MCP targets Basecoat 1.0.2, which has breaking changes from Basecoat 0.3.x:
btn-outline → class="btn" data-variant="outline", btn-sm-icon → data-size="icon-sm"..form wrapper was removed; wrap each label and control in <div class="field">.basecoat:toast, basecoat:sidebar, basecoat:theme) were replaced by methods: toaster.toast(), sidebar.toggle(), window.basecoat.theme.toggle().dialog-alert was renamed to alert-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.
Categories are read from disk, so adding a folder under components/ or usage/ is enough to expose it.
Basecoat CSS is a comprehensive CSS framework that provides:
Learn more at basecoatui.com
MIT License - see LICENSE file for details.
git checkout -b feature/amazing-featuregit commit -m 'Add amazing feature'git push origin feature/amazing-featureBuilt with ❤️ by Claude Code - Monitored & Prompted by Saurabh K. Sharma
來源:README.md,提交 adab251
Get HTML code for a specific Basecoat component
name必填List all available Basecoat components organized by category
無需輸入參數。
Get usage documentation for a component
component必填Get Basecoat CSS setup code with CDN links
styleGet theme switcher script for dark/light mode
無需輸入參數。
Search for components by name or category
query必填Get all components in a specific category
category必填已滿足適用檢查項的 80%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
請在儲存庫或註冊中心條目中宣告授權條款。
claude mcp add basecoat-ui -- npx -y basecoat-ui-mcp{ "mcpServers": { "basecoat-ui": { "command": "npx", "args": ["-y", "basecoat-ui-mcp"] } }}{ "mcpServers": { "basecoat-ui": { "command": "npx", "args": ["-y", "basecoat-ui-mcp"] } }}{ "servers": { "basecoat-ui": { "command": "npx", "args": ["-y", "basecoat-ui-mcp"] } }}{ "mcpServers": { "basecoat-ui": { "command": "npx", "args": ["-y", "basecoat-ui-mcp"] } }}[mcp_servers.basecoat-ui]command = "npx"args = ["-y", "basecoat-ui-mcp"]git clone https://github.com/Sorbh/basecoat-ui-mcp.gitcd basecoat-ui-mcpnpm install{ "mcpServers": { "basecoat-ui": { "command": "node", "args": ["/path/to/basecoat-ui-mcp/server.js"] } }}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.md