basecoat-ui
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.
claude mcp add --transport stdio sorbh-basecoat-ui-mcp npx -y basecoat-ui-mcp
How to use
Basecoat MCP Server provides programmatic access to Basecoat CSS components and their usage documentation, enabling AI-assisted coding and dynamic retrieval of component HTML, usage guides, setup snippets, and search capabilities. You can query the server to get specific component variants (e.g., button-primary), list components by category, fetch full usage documentation, or obtain setup code and theme toggle scripts. The server exposes a concise API of tools such as get_component, list_components, get_usage, get_setup, get_theme_script, search_components, and get_category, making it easy to integrate Basecoat components into your development workflow and AI helper agents.
To run the MCP server via NPX (recommended), use the provided npx command, or clone the repository and run locally for development. Once running, you can request HTML snippets for particular components, browse available components by category, or retrieve usage docs to embed into editors or chat-assisted coding sessions. The server supports accessibility attributes and ARIA-ready patterns, ensuring that the generated code adheres to accessible standards. This setup is especially useful for AI-assisted UI generation, design system exploration, and rapid prototyping with Basecoat CSS.
How to install
Prerequisites:
- Node.js >= 18.x installed
- npm (comes with Node.js) installed
- Basic familiarity with running commands in your terminal
Install and run from the repository:
- Clone the MCP repository:
git clone https://github.com/Sorbh/basecoat-ui-mcp.git
cd basecoat-ui-mcp
- Install dependencies:
npm install
- Start the MCP server locally (if you want to run via node locally):
# If you want to run directly with Node.js once cloned
node server.js
If you prefer to use NPX (recommended for quick start and if published on npm):
- Ensure the package is published as basecoat-ui-mcp on npm.
- Run:
npx -y basecoat-ui-mcp
Configuration for Claude Desktop or other MCP clients:
- NPX approach uses: {"mcpServers": {"basecoat-ui": {"command": "npx", "args": ["-y","basecoat-ui-mcp"]}}}
- Local development (clone mode) uses the Node server path and working directory, e.g.,
"mcpServers": {
"basecoat-ui": {
"command": "node",
"args": ["/path/to/basecoat-ui-mcp/server.js"],
"cwd": "/path/to/basecoat-ui-mcp"
}
}
Verifying installation:
- If using npm/pnpm/yarn, ensure dependencies install without errors.
- Access the server endpoints via your MCP client and test a couple of commands like get_component or list_components to confirm connectivity.
Additional notes
Notes and tips:
- The MCP server provides a catalog of 30+ Basecoat components, including variants for forms, navigation, feedback, interactive, and layout categories. Use list_components to view available options and get_category to filter by category.
- For best results with npX, keep the package name accurate as published (basecoat-ui-mcp). If you modify locally, point your client to the local server.js or start script path.
- If you encounter path or cwd issues in local development, ensure the repository clone path matches the configured working directory in your MCP client settings.
- When using get_setup or get_theme_script, you’ll receive ready-to-use CDN links and a theme-switcher snippet suitable for quick integration.
- Maintain Node.js v18+ to satisfy the server’s runtime expectations and compatibility with the SDK.
Related MCP Servers
ios-simulator-skill
An IOS Simulator Skill for ClaudeCode. Use it to optimise Claude's ability to build, run and interact with your apps, without using up any of the available token/context budget.
claude-talk-to-figma
A Model Context Protocol (MCP) that allows Claude Desktop and other AI tools (Claude Code, Cursor, Antigravity, etc.) to read, analyze, and modify Figma designs
building-an-agentic-system
An in-depth book and reference on building agentic systems like Claude Code
rtfmbro
rtfmbro provides always-up-to-date, version-specific package documentation as context for coding agents. An alternative to context7
diy-tools
An MCP server that allows users to dynamically add custom tools/functions at runtime
Hybrid-CLI-Agent
Multi-agent CLI orchestrator combining Claude Code, Gemini CLI, and OpenRouter.