Brandrail
Give AI coding tools your design tokens, components and a brand checker, locally
Brandrail is an MCP server for developer tools. It runs locally on your machine and is started by your AI client.
- Platforms
- CLI, macOS, Windows
- Runs
- Locally
- What it can do
- Read-only
- Version
- 0.10.6
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add brandrail --env BRANDRAIL_KEY='<BRANDRAIL_KEY>' -- npx -y brandrailAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"brandrail": {
"command": "npx",
"args": [
"-y",
"brandrail"
],
"env": {
"BRANDRAIL_KEY": "<BRANDRAIL_KEY>"
}
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"brandrail": {
"command": "npx",
"args": [
"-y",
"brandrail"
],
"env": {
"BRANDRAIL_KEY": "<BRANDRAIL_KEY>"
}
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"brandrail": {
"command": "npx",
"args": [
"-y",
"brandrail"
],
"env": {
"BRANDRAIL_KEY": "<BRANDRAIL_KEY>"
}
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"brandrail": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"brandrail"
],
"env": {
"BRANDRAIL_KEY": "<BRANDRAIL_KEY>"
}
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add brandrail --env BRANDRAIL_KEY='<BRANDRAIL_KEY>' -- npx -y brandrailOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.brandrail]
command = "npx"
args = ["-y", "brandrail"]
env = { BRANDRAIL_KEY = "<BRANDRAIL_KEY>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"brandrail": {
"command": "npx",
"args": [
"-y",
"brandrail"
],
"env": {
"BRANDRAIL_KEY": "<BRANDRAIL_KEY>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "brandrail": { "command": "npx", "args": [ "-y", "brandrail" ], "env": { "BRANDRAIL_KEY": "<BRANDRAIL_KEY>" } } } }Or run: gemini mcp add -s user -e BRANDRAIL_KEY='<BRANDRAIL_KEY>' brandrail npx -- -y brandrail
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "brandrail": { "command": "npx", "args": [ "-y", "brandrail" ], "env": { "BRANDRAIL_KEY": "<BRANDRAIL_KEY>" } } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "brandrail": { "command": "npx", "args": [ "-y", "brandrail" ], "env": { "BRANDRAIL_KEY": "<BRANDRAIL_KEY>" } } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "brandrail": { "command": "npx", "args": [ "-y", "brandrail" ], "env": { "BRANDRAIL_KEY": "<BRANDRAIL_KEY>" } } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "brandrail": { "command": "npx", "args": [ "-y", "brandrail" ], "env": { "BRANDRAIL_KEY": "<BRANDRAIL_KEY>" } } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "brandrail": { "command": "npx", "args": [ "-y", "brandrail" ], "env": { "BRANDRAIL_KEY": "<BRANDRAIL_KEY>" } } } }The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.
Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "brandrail": { "command": "npx", "args": [ "-y", "brandrail" ], "env": { "BRANDRAIL_KEY": "<BRANDRAIL_KEY>" } } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "brandrail": { "command": "npx", "args": [ "-y", "brandrail" ], "env": { "BRANDRAIL_KEY": "<BRANDRAIL_KEY>" } } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
Configuration
BRANDRAIL_KEYOptional. API key from Brandrail Dashboard > Connect, to load your organisation's Brand Kit. Without it, the repo's brandrail.config.json or starter tokens are used.
About Brandrail
The goal is that an assistant asks about your design system before it writes UI, then checks its own output. The npm CLI runs locally, and one command per repo sets things up.
brandrail connect shows a code, opens a browser to approve, detects your framework from package.json (React, Angular, Vue, Svelte, Solid, Web Components or plain HTML) and writes files: a config, a tokens CSS file, and rule files for Claude Code, Codex, Cursor, Copilot, Windsurf and Gemini.
The MCP tools return guidelines, tokens, component docs, templates and migration maps, and can validate a snippet against the brand.
Tools this server provides (7)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, all 7 tools only read data.
From the server's own tool labels and tool names; not verified by us.
- validate_snippetName suggests: reads
- Validates a snippet against the design system.
- get_guidelinesName suggests: reads
- Returns design guidelines.
- get_design_tokensName suggests: reads
- Returns design tokens.
- find_componentName suggests: reads
- Finds a component.
- get_component_docsName suggests: reads
- Returns component docs.
- get_templateName suggests: reads
- Returns a template.
- get_migration_mapName suggests: reads
- Returns a migration map.
What it does
- Design tokens
- Brand Kit as CSS variables.
- Component lookup
- Find components and read docs.
- Snippet validation
- Check code against the brand.
- Multi-tool rules
- Writes rules for several AI coding tools.
- Framework detection
- Reads package.json.
- Runs locally
- Over stdio.
Good for
- Keep AI-generated UI on brand
- Migrate old components
- Share tokens across tools
- Onboard a repo in one command
Brandrail FAQ
How do I set Brandrail up?
Run npx brandrail connect in the repo.
Which tools get rules?
Claude Code, Codex, Cursor, Copilot, Windsurf and Gemini.
Which frameworks?
React, Angular, Vue, Svelte, Solid, Web Components, HTML.
How do I add Brandrail to Claude Code?
Run this command in your terminal: claude mcp add brandrail --env BRANDRAIL_KEY='<BRANDRAIL_KEY>' -- npx -y brandrail
What are the best alternatives to Brandrail?
The closest alternatives to Brandrail are REA, HyperFrames by HeyGen, Context7, Chrome DevTools MCP and Codebase Memory.
Where this comes from
- Description: written from the project's README and the project's website.
- Install steps: from the official MCP Registry entry.


