Basecoat MCP 服务器 logo

Basecoat MCP 服务器

Community
Sorbh

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.

PublisherSorbh
Repositorybasecoat-ui-mcp
LanguageHTML
Forks
2
Stars
12
Available tools
7
Transport typestdio
Categories
Links
  • Connect tools to AI workflows

    Basecoat MCP 服务器 exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 7 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    12 stars and 2 forks from the linked repository.

Basecoat MCP Server

License: MIT Node.js Version

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

Installation

  1. Clone this repository:
    bash
    git clone https://github.com/Sorbh/basecoat-ui-mcp.git
    cd basecoat-mcp-server
  2. Install dependencies:
    bash
    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:

json
{
  "mcpServers": {
    "basecoat-ui": {
      "command": "npx",
      "args": ["-y","basecoat-ui-mcp"]
    }
  }
}

Other MCP Clients

Configure the server to run:

bash
npx basecoat-ui-mcp

Using Git Clone (Local Development)

For local development or if you want to modify the server:

  1. Clone and setup:

    bash
    git clone https://github.com/Sorbh/basecoat-ui-mcp.git
    cd basecoat-ui-mcp
    npm install
  2. Claude Desktop Configuration:

    json
    {
      "mcpServers": {
        "basecoat-ui": {
          "command": "node",
          "args": ["/path/to/basecoat-ui-mcp/server.js"],
          "cwd": "/path/to/basecoat-ui-mcp"
        }
      }
    }

    Replace /path/to/basecoat-ui-mcp with the actual path where you cloned the repository.

  3. Other MCP Clients:

    bash
    cd /path/to/basecoat-ui-mcp
    node server.js

Available Tools

ToolDescriptionParameters
get_componentGet HTML code for a specific component variantname: Component name (e.g., "button-primary", "card-basic")
list_componentsList all available components organized by categoryNone
get_usageGet comprehensive usage documentation for a componentcomponent: Base component name (e.g., "button", "card")
get_setupGet Basecoat CSS setup code with CDN linksNone
get_theme_scriptGet theme switcher script for dark/light modeNone
search_componentsSearch for components by name or categoryquery: Search term (e.g., "button", "form", "navigation")
get_categoryGet all components in a specific categorycategory: 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

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes following our coding standards
  4. Test your changes thoroughly
  5. Commit with clear messages: git commit -m 'Add amazing feature'
  6. Push to your branch: git push origin feature/amazing-feature
  7. Open a Pull Request

Support


Installation

TypingMind
{
  "mcpServers": {
    "basecoat-ui-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@basecoat-ui/mcp"
      ]
    }
  }
}

Available Tools

  • get_component

    Get HTML code for a specific Basecoat component

  • list_components

    List all available Basecoat components organized by category

  • get_usage

    Get usage documentation for a component

  • get_setup

    Get Basecoat CSS setup code with CDN links

  • get_theme_script

    Get theme switcher script for dark/light mode

  • search_components

    Search for components by name or category

  • get_category

    Get all components in a specific category

Use Basecoat MCP 服务器 MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Basecoat MCP 服务器 is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Basecoat MCP 服务器 as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Basecoat MCP 服务器 MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "basecoat-ui-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "basecoat-ui-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Basecoat MCP 服务器 MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Basecoat MCP 服务器 MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Basecoat MCP 服务器 to help me with this task?
Basecoat MCP 服务器
Sure. I read it.
Here is what I found using Basecoat MCP 服务器.

Frequently asked questions

What is the Basecoat MCP 服务器 MCP server used for?

Basecoat MCP 服务器 is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Basecoat MCP 服务器 MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Basecoat MCP 服务器 with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Basecoat MCP 服务器 MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Basecoat MCP 服务器 connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Basecoat MCP 服务器 MCP to TypingMind?

Basecoat MCP 服务器 runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Basecoat MCP 服务器 MCP provide in TypingMind?

Basecoat MCP 服务器 exposes 7 MCP tools that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Basecoat MCP 服务器 MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Basecoat MCP 服务器 requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇