# Brandrail

> Brandrail is an MCP server for developer tools. Give AI coding tools your design tokens, components and a brand checker, locally. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI, macOS, Windows, Linux
- **Website:** https://www.brandrail.com.au/docs/connect
- **Repository:** https://github.com/brandrail-app/brandrail/tree/HEAD/packages/cli
- **MCP Registry name:** au.com.brandrail/brandrail
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [design and media](https://ai-powered.com/categories/design-and-media)
- **Listing updated:** 2026-11-23

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add brandrail --env BRANDRAIL_KEY='<BRANDRAIL_KEY>' -- npx -y brandrail
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "brandrail": {
      "command": "npx",
      "args": [
        "-y",
        "brandrail"
      ],
      "env": {
        "BRANDRAIL_KEY": "<BRANDRAIL_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "brandrail": {
      "command": "npx",
      "args": [
        "-y",
        "brandrail"
      ],
      "env": {
        "BRANDRAIL_KEY": "<BRANDRAIL_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```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.

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add brandrail --env BRANDRAIL_KEY='<BRANDRAIL_KEY>' -- npx -y brandrail
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.brandrail]
command = "npx"
args = ["-y", "brandrail"]
env = { BRANDRAIL_KEY = "<BRANDRAIL_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```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 (~/.config/devin/mcp_config.json)

```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 (cline_mcp_settings.json)

```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 (Zed settings.json)

```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 (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "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.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```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 (~/.kiro/settings/mcp.json)

```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.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "brandrail": {
      "command": "npx",
      "args": [
        "-y",
        "brandrail"
      ],
      "env": {
        "BRANDRAIL_KEY": "<BRANDRAIL_KEY>"
      }
    }
  }
}
```

## Tools

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_snippet` (name suggests: reads): Validates a snippet against the design system.
- `get_guidelines` (name suggests: reads): Returns design guidelines.
- `get_design_tokens` (name suggests: reads): Returns design tokens.
- `find_component` (name suggests: reads): Finds a component.
- `get_component_docs` (name suggests: reads): Returns component docs.
- `get_template` (name suggests: reads): Returns a template.
- `get_migration_map` (name suggests: reads): Returns a migration map.

## 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.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [HyperFrames by HeyGen](https://ai-powered.com/mcp/hyperframes-by-heygen): HyperFrames by HeyGen is a freemium MCP server for design and media.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/brandrail
