design-system-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server describes the project's design system: its React components (props, variants, parts), design tokens and usage docs, and lints UI code against it. When writing or changing UI in this project:
Find components with search_components (by intent) or list_components.
Read get_component before using a component: use only the props and variant values it lists.
Style with tokens from get_tokens, never with hex/rgb colors, arbitrary px values or Tailwind's default palette. chart-* and sidebar-* tokens are for charts and the sidebar only: for a status color the theme has no token for (success, warning, info), add a token or keep the Tailwind color as check_ui says, and never use a chart-* or sidebar-* token for it.
Run check_ui on every snippet or file you write and fix all errors before you finish. In a monorepo served from its root, pass
path(the file you are editing) to list_components, get_component, search_components and get_tokens, andpathorfilenameto check_ui, so each answer comes from that file's own project.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
| completions | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_componentsA | List every component in the project design system with a one-line description, the native element it renders, its variant values, its parts and its import. Icons (components that render an ) are named on one line per import, or per folder for icons with a module each, five or more to a line. Call this before writing UI in this project. |
| get_componentA | Get the full contract of one component: import, props with types and defaults, cva variants and the classes each applies, parts (sub-components), design tokens it uses, usage guidelines and examples from its docs. Call it before using a component. Accepts "Button", "CardHeader" or "Card.Header". At a monorepo root, pass |
| search_componentsA | Find components by what you want to build, e.g. "confirm a destructive action", "status label", "text field with validation". Ranks names, descriptions, docs, props and variant values with BM25 (local, no API key). When no component clearly matches, it says so and lists the nearest, marked |
| get_tokensA | List design tokens with resolved values, dark-mode values and how to use each (Tailwind class or CSS variable). Filter by category (color, spacing, radius, typography, shadow, other) or a substring. Use these instead of hex codes, px values or Tailwind default palette classes. Chart and sidebar colors are listed under their own headings: they are for charts and the sidebar, not for status colors. |
| check_uiA | Lint TSX/JSX against the design system. Reports hardcoded colors, spacing and radius (with the nearest token), native elements that have a design-system component, unknown components, props and variant values, and icon-only buttons without an accessible name. Each diagnostic has line/column, a rule id, a message and a suggested fix. Run it on every snippet or file you write and fix all errors. Pass |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| build-with-design-system | Build a piece of UI using only design-system components and tokens, then verify it with check_ui. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| tokens | Every design token with resolved values, modes and usages, as JSON. |
| Button | "Triggers an action." |
| Checkbox | "A checkbox with its label." |
| Dialog | "A dialog's content, inside a `<Modal>` and a `<DialogTrigger>`." |
| DialogTitle | "The dialog's title, which also names it for assistive technology." |
| Label | Props, variants, parts, tokens, guidelines and examples for one component. |
| Description | Props, variants, parts, tokens, guidelines and examples for one component. |
| FieldError | Props, variants, parts, tokens, guidelines and examples for one component. |
| Input | Props, variants, parts, tokens, guidelines and examples for one component. |
| Modal | "The overlay a `<Dialog>` opens in." |
| Switch | "An on/off setting that applies at once." |
| TextField | "A labelled text input." |
| Badge | "A small status label: counts, states (\"Active\", \"Overdue\") or categories." |
| Button | "Triggers an action or event, such as submitting a form, opening a dialog or deleting a record." |
| Card | "A bordered surface that groups related content and actions." |
| CardHeader | "Top section of a card." |
| CardFooter | "Bottom section of the card, usually for actions." |
| CardTitle | "The card heading." |
| CardAction | "An action pinned to the top-right corner of the header, e.g. a menu button." |
| CardDescription | "Secondary text under the title." |
| CardContent | "The main body of the card." |
| Dialog | "A modal window that interrupts the user to confirm a decision or collect input." |
| DialogClose | "Closes the dialog." |
| DialogContent | "The dialog panel." |
| DialogDescription | "Explains what will happen." |
| DialogFooter | "Action row at the bottom of the dialog." |
| DialogHeader | "Holds `DialogTitle` and `DialogDescription`." |
| DialogOverlay | Props, variants, parts, tokens, guidelines and examples for one component. |
| DialogPortal | Props, variants, parts, tokens, guidelines and examples for one component. |
| DialogTitle | "Required: the accessible name of the dialog." |
| DialogTrigger | "The element that opens the dialog." |
| Input | "A single-line text field." |
| Badge | "A short status or count next to a label." |
| Button | "Triggers an action, such as saving a form or opening a dialog." |
| Card | "A surface that groups related content, built from flat parts." |
| CardHeader | Props, variants, parts, tokens, guidelines and examples for one component. |
| CardFooter | Props, variants, parts, tokens, guidelines and examples for one component. |
| CardTitle | Props, variants, parts, tokens, guidelines and examples for one component. |
| CardDescription | Props, variants, parts, tokens, guidelines and examples for one component. |
| CardContent | Props, variants, parts, tokens, guidelines and examples for one component. |
| Input | "A single-line text field." |
TDQS
Scored across 5 tools
Each tool has a clearly stated role: enumerate components, fetch one component's contract, intent-based search, list tokens, and lint code. The only blur is between list_components' `query` filter and search_components, which both narrow a component list; descriptions mitigate this by framing search as BM25 ranking by build intent, but an agent could still reach for the wrong one.
All five tools follow a strict verb_noun snake_case pattern (list_components, get_component, search_components, get_tokens, check_ui). The get_* pair is parallel and the remaining verbs clearly differ in intent.
Five tools maps cleanly onto the domain's jobs: discover (list/search), inspect (get_component), style (get_tokens), and verify (check_ui). No tool looks redundant or padded, and nothing obvious is missing at this size.
The surface covers the full agent workflow of finding, reading, styling and validating components, including monorepo path handling. Minor gaps remain: there is no dedicated way to retrieve docs/guidelines or examples alone, and no reverse lookup from an arbitrary class or hex value back to a token outside the lint diagnostics.