For AI agents: the complete documentation index is available at https://wallarm.github.io/design-system/llms.txt, the full documentation bundle is available at https://wallarm.github.io/design-system/llms-full.txt, and this page is available as Markdown at https://wallarm.github.io/design-system/ai/mcp.md.

MCP server

@wallarm-org/mcp is a Model Context Protocol server that gives AI coding assistants the design system's component and token metadata: props, variants, sub-components, import paths and token values, plus the design guidelines: foundations (spacing, color, typography) and patterns for whole screens. With it, an assistant looks components up instead of guessing their API, and reads the pattern before composing a screen.

The server runs locally over stdio and reads the metadata shipped with the installed @wallarm-org/design-system package, so the answers match the version your project uses.

Requirement

Run the assistant in a project that has @wallarm-org/design-system installed: the server looks for it in node_modules, walking up from the working directory, then in apps/*/node_modules and packages/*/node_modules. Elsewhere, pass the metadata file explicitly with --metadata-path <path-to>/components.json. If nothing is found, the server uses the snapshot bundled into @wallarm-org/mcp, and every answer says so: it may differ from your installed version.

Set up

Every client uses the same server key, @wallarm-org/mcp, and the same command, npx -y @wallarm-org/mcp.

Claude Code

claude mcp add @wallarm-org/mcp -- npx -y @wallarm-org/mcp

Cursor

Add to Cursor, or add the server to .cursor/mcp.json in the project:

.cursor/mcp.json
{
  "mcpServers": {
    "@wallarm-org/mcp": {
      "command": "npx",
      "args": ["-y", "@wallarm-org/mcp"]
    }
  }
}

VS Code

Add the server to .vscode/mcp.json in the project. VS Code uses a servers key:

.vscode/mcp.json
{
  "servers": {
    "@wallarm-org/mcp": {
      "command": "npx",
      "args": ["-y", "@wallarm-org/mcp"]
    }
  }
}

Other clients

Any MCP client with stdio transport works: register the command npx with the arguments ["-y", "@wallarm-org/mcp"].

Tools

ToolInputReturns
search_component{ query: string }Components matching the words of a name, description, prop name or variant, a sub-component name, or a common alias (modal → Dialog, date picker → DateInput), sorted by relevance (top 10), with import paths. Weak matches are dropped, so a miss returns nothing rather than noise. Then up to five examples across all components that match the query (row selection → Table's RowSelection), as get_example arguments.
get_component{ name: string, section?: string, page?: number }Without section, an overview: import, props, variants, sub-component names, example names, usage docs and related guidelines. With section: props, subcomponents, examples, docs/<Name> or one sub-component (TableColumnMenu) in full. The name is case-insensitive; a sub-component name (PageHeader) returns that section of its parent; unknown names get suggestions.
get_example{ component: string, example: string, page?: number }The code of one example from the overview, such as WithPagination or AreaChart/Default. Close names match; a miss lists every example.
search_token{ query: string }Tokens matching a name (spacing-8), Tailwind class (bg-bg-surface-2), value (#ff6633) or category, with the classes to write, sorted by relevance (top 20).
search_icon{ query: string }Icons from @wallarm-org/design-system/icons matching what the glyph draws (arrow up right), an action (delete → Trash, add user → UserPlus) or a gallery category (security), with the import to write (top 20).
get_token_category{ name: string, page?: number }Every token in a category, such as spacing, colors-primary or shadow, with its Tailwind classes. Unknown names list the available categories.
list_guidelines{ kind?: 'foundation' | 'pattern' | 'template' }Foundations, patterns and templates (complete example screens) with slug, title, a one-line "use when" description and the components each uses.
get_guideline{ slug: string, section?: string, page?: number }One guideline as Markdown, such as patterns/empty-states, or a single section of it (rules, example). A pattern's or template's overview lists its live stories; section: 'stories' returns their full code, paginated. Unknown slugs get the nearest matches.

Every tool only reads the design system's metadata and is marked read-only, so clients can run it without asking.

get_component also names the guidelines that use the component or any of its sub-components, and so does a sub-component's section. Every response stays under 40,000 characters, below Claude Code's limit for MCP output; a longer one is split into pages, and its last line tells the assistant which page to ask for next.

When a client connects, the server sends its instructions: the design-system rules digest, which tool to use for what, and where the metadata came from. Clients such as Claude Code add them to the assistant's context.

Resources

URIContent
ds://componentsAll components with their import paths, as a Markdown table.
ds://tokensAll design tokens, grouped by category.
ds://components/{name}The overview of one component, as get_component returns it.

Without MCP

The same metadata is published as JSON at components.json; the installed package also ships the guidelines as Markdown in dist/guidelines/ and as JSON at @wallarm-org/design-system/guidelines, and every page of this site is available as Markdown; see llms.txt.