# brandmd

> brandmd is an open-source MCP server for developer tools. Turn any website into a DESIGN.md of colors, type and components for coding agents. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/yuvrajangadsingh/brandmd
- **MCP Registry name:** io.github.yuvrajangadsingh/brandmd
- **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

brandmd reads a live site's styles and writes a `DESIGN.md` in the official Google format, with YAML frontmatter holding machine-readable tokens and prose sections explaining the evidence. Output passes the `@google/design.md` linter. Pass several URLs to merge tokens across pages, and choose other outputs: raw JSON, CSS custom properties, a Tailwind v4 `@theme` block or a shareable HTML guide.

The MCP mode exposes one tool, `extract_design_md`, taking one or more `urls` and an optional `dark` flag, so an agent can pull a brand in the middle of a task such as matching another site's look. It renders with Playwright's headless Chromium, refuses block pages and login walls, runs at most 180 seconds per call by default, and allows two concurrent calls.

Default extraction is local with no API key. An optional `--vision` flag adds illustration style, photography mood and copy voice from a screenshot and needs a Gemini API key. The `--agent` flag also writes a Cursor rule and skill files. MIT licensed.

## Features

- **DESIGN.md output:** Writes a spec-valid file that passes the official linter.
- **Multi-page merge:** Combines tokens from several URLs into one file.
- **Other formats:** JSON, CSS variables, Tailwind v4 theme or HTML guide.
- **Dark mode tokens:** Optionally extracts dark theme values.
- **Vision pass:** Adds illustration, photo and voice notes with a Gemini key.
- **Agent skill files:** Writes Cursor rules and skills alongside the design file.

## Good for

- Make a new page match an existing site's brand
- Give a coding agent real design tokens before it writes UI
- Generate Tailwind or CSS variables from a live site
- Produce a shareable brand guide

## Install

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

```sh
claude mcp add brandmd -- npx -y brandmd
```

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": {
    "brandmd": {
      "command": "npx",
      "args": [
        "-y",
        "brandmd"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "brandmd": {
      "command": "npx",
      "args": [
        "-y",
        "brandmd"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "brandmd": {
      "command": "npx",
      "args": [
        "-y",
        "brandmd"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

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

```json
{
  "mcpServers": {
    "brandmd": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "brandmd"
      ]
    }
  }
}
```

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 brandmd -- npx -y brandmd
```

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

```toml
[mcp_servers.brandmd]
command = "npx"
args = ["-y", "brandmd"]
```

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

```json
{
  "mcpServers": {
    "brandmd": {
      "command": "npx",
      "args": [
        "-y",
        "brandmd"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user brandmd npx -- -y brandmd

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

```json
{
  "mcpServers": {
    "brandmd": {
      "command": "npx",
      "args": [
        "-y",
        "brandmd"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "brandmd": {
      "command": "npx",
      "args": [
        "-y",
        "brandmd"
      ]
    }
  }
}
```

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": {
    "brandmd": {
      "command": "npx",
      "args": [
        "-y",
        "brandmd"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "brandmd": {
      "command": "npx",
      "args": [
        "-y",
        "brandmd"
      ]
    }
  }
}
```

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": {
    "brandmd": {
      "command": "npx",
      "args": [
        "-y",
        "brandmd"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "brandmd": {
      "command": "npx",
      "args": [
        "-y",
        "brandmd"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "brandmd": {
      "command": "npx",
      "args": [
        "-y",
        "brandmd"
      ]
    }
  }
}
```

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": {
    "brandmd": {
      "command": "npx",
      "args": [
        "-y",
        "brandmd"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `extract_design_md`: Extracts a site's design system into a DESIGN.md from one or more URLs, with an optional dark flag.

## FAQ

### Does brandmd need an API key?

Not for default extraction, which runs locally. The optional `--vision` mode needs a Gemini or Google API key.

### What happens on blocked pages?

It refuses block pages and login walls instead of emitting a bad design system.

### What browser does the MCP tool need?

Playwright's headless Chromium; if missing, the call fails with the install command.

### Are there call limits?

A call runs at most 180 seconds by default and at most two run at once.

### Is brandmd free?

Yes. brandmd is open source, so you can use and self-host it for free.

### How do I add brandmd to Claude Code?

Run this command in your terminal: claude mcp add brandmd -- npx -y brandmd

### What are the best alternatives to brandmd?

The closest alternatives to brandmd are REA, HyperFrames by HeyGen, Context7, Chrome DevTools MCP and Codebase Memory.

## Where this comes from

- Description: written from the project's README.
- 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/brandmd
