Brandrail logo

Brandrail

Local MCP tools for applying design-system tokens, components, templates, migrations, and validation to AI-generated UI.

Install Brandrail

Run the project’s own setup commands, in order.

Setup steps from the project

Brandrail installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Add to your MCP client
    npx brandrail connect
    

Overview

Brandrail MCP server provides AI coding tools with local design-system guidance for tokens, components, templates, and brand checks. It runs over stdio and exposes seven read-only MCP tools, including component lookup, migration guidance, and snippet validation. Use it when generated interfaces need to follow a project's Brand Kit across React, Angular, Vue, Web Components, plain HTML, and several template or stylesheet formats. A manual setup works without an account, while a Brandrail key loads an organisation's own Brand Kit.

Use cases

  • Apply approved design tokens while generating UI
  • Find the correct component for a requested interaction
  • Validate generated snippets before committing them
  • Map legacy UI-library components to brand-approved replacements
  • Generate page structures from existing project components

Key features

  • Seven read-only MCP tools
  • Local stdio execution
  • Design tokens and component documentation
  • Page templates for common screen types
  • Migration maps for major UI libraries
  • Brand scoring with individual fixes

Tools7

What Brandrail lets your agent do. Expand a tool for its parameters.

Self-reported~203 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars3Stargazers on the source repository.
Last commit11d agoMost recent push to the default branch.
Tools exposed7Callable tools this server registers over MCP.

How Brandrail works

What Brandrail does

Brandrail gives AI coding tools structured design-system context before they generate interface code. Its MCP server exposes seven read-only tools covering design rules, visual tokens, component selection, component documentation, page templates, library migrations, and code validation.

The server supports design-system workflows across React, Angular, Vue, Web Components, and plain HTML. Its checker can also inspect Svelte, CSS, PHP, Twig, Mustache, Handlebars, Nunjucks, and Liquid. This makes it useful for projects where UI code spans more than one framework or rendering format.

How it works

The server runs locally through stdio, so generated code is checked on the developer's machine. Without an account, it starts with starter tokens. Connecting a free Brandrail account or supplying an API key lets it load an organisation's Brand Kit.

A typical agent workflow begins with get_guidelines, which returns the project's component rules, permitted tokens, and the checks that will be applied. The agent can then retrieve tokens, locate a suitable component, read its full documentation, or request a page template. After code generation, validate_snippet returns a brand score and individual fixes.

The same npm package also provides a command-line checker. brandrail check --changed checks changes against origin/main, brandrail scan checks pages in a running application through a browser, and brandrail migrate reports remaining usage from supported UI libraries.

Setup and configuration

The quickest per-repository setup is:

Terminal
npx brandrail connect

This signs in through a browser and writes MCP configuration and rule files for supported coding tools. The generated files contain no key. A manual stdio configuration can be used instead:

config.json
{
  "mcpServers": {
    "brandrail": { "command": "npx", "args": ["-y", "brandrail", "mcp"] }
  }
}

To load an organisation's Brand Kit without running connect, set BRANDRAIL_KEY to an API key from the Brandrail dashboard. The key is sent only to www.brandrail.com.au or localhost. If BRANDRAIL_API_URL points elsewhere, the CLI reports that destination and does not send the key.

Tools and capabilities

  • get_guidelines returns framework component rules, allowed tokens, and checker coverage.
  • get_design_tokens returns colour, spacing, radius, and typography tokens with their CSS variables.
  • find_component matches a UI need to a component and provides its import, rules, and an example.
  • get_component_docs provides a component's import or tag, props, rules, and example.
  • get_template produces a page outline for list, detail, form, settings, dashboard, or sign-in screens.
  • get_migration_map maps Material, MUI, Bootstrap, Ant, Chakra, and PrimeNG pieces to replacements.
  • validate_snippet checks generated code and reports a brand score with fixes.

Limitations and notes

Brandrail's MCP server and CLI run locally, and code is not uploaded during checking. With a key, the tools fetch the Brand Kit. Optional --upload and --report operations send scores and messages to the dashboard, but not code. The Brand Kit hosting service, repository sync, GitHub App, and team features are separate from the local package.

The project is licensed under MIT. The repository includes the CLI, MCP server, and checker engine, and can be built with pnpm after installing dependencies.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Brandrail

Brandrail is an MCP server that connects AI coding tools to a project’s design system and Brand Kit. Its main tools provide guidelines, design tokens, component documentation, page templates, migration maps, and validation results for generated UI. It runs locally over stdio and can use starter tokens or an organisation’s configured Brand Kit.

Run `npx brandrail connect` inside each repository, or add a stdio MCP entry that runs `npx -y brandrail mcp`. The connect command signs in through a browser and writes MCP configuration and rule files for supported coding tools.

Yes, Brandrail works with Cursor. The connect command can write Cursor configuration and rule files, and the project also provides a Cursor install link for adding the MCP server.

Set `BRANDRAIL_KEY` to an API key from Dashboard → Connect. The MCP server then loads the organisation’s Brand Kit; without an account or key, it starts with starter tokens. The key is sent only to Brandrail’s service or localhost.

Yes, Brandrail checks code locally and does not upload it during normal validation. Use the `validate_snippet` MCP tool or the CLI commands `brandrail check --changed` and `brandrail scan` to inspect generated or running application code.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewBrandrail AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/brandrail?style=directory)](https://allmcps.com/mcp/brandrail)
HTML Embed
<a href="https://allmcps.com/mcp/brandrail"><img src="https://allmcps.com/api/badge/brandrail?style=directory" alt="Brandrail on AllMCPs" /></a>