# brandmd [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/yuvrajangadsingh/brandmd  
**GitHub Stars:** 74  
**npm Downloads (last month):** 1471  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/brandmd

## Description
Stop Claude Code/Cursor from guessing UI. Extract any website's design system into a spec-valid DESIGN.md that passes the official @google/design.md linter.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

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

## Documentation

## What brandmd does

brandmd turns rendered website pages into design-system documentation that coding agents can consume. Its primary output is a `DESIGN.md` file following the official Google DESIGN.md structure: YAML frontmatter provides machine-readable tokens, while Markdown sections describe the observed visual evidence and rationale. Generated files are intended to pass the `@google/design.md` linter.

The extractor examines visual properties such as color palettes, font roles, type scale, spacing, shadows, radii, component styles, layout patterns, and call-to-action buttons. Multiple URLs can be supplied to combine observations from a site’s homepage, pricing page, documentation, or other relevant routes. A dark-theme pass can be requested separately.

## How it works

The CLI and MCP tool render pages in Playwright’s headless Chromium, inspect the resulting pages, and produce structured design information. The MCP entry point is started with `brandmd mcp` and exposes one tool, `extract_design_md`. That tool accepts one or more page URLs through `urls` and an optional `dark` flag, then returns the extracted DESIGN.md content for use within an agent task.

The CLI can write the default Markdown format or alternative representations. `--json` emits brandmd’s internal token structure, `--css` produces CSS custom properties, `--tailwind` creates a Tailwind v4 `@theme` block, and `--html` creates a visual brand guide. The `--agent` option additionally writes a Cursor rule and skills files under the agent skills locations used by Claude Code, Cursor, Codex, Gemini CLI, and related tools.

Optional `--vision` analysis uses a Gemini model to inspect a screenshot for illustration style, photography mood, copywriting voice, and microcopy patterns. It requires `GEMINI_API_KEY` or `GOOGLE_API_KEY`; `BRANDMD_VISION_MODEL` can select a different model.

## Setup and configuration

Run the CLI with npm without a global install:

```bash
npx brandmd https://example.com -o DESIGN.md
```

For MCP clients that launch stdio commands, configure `npx -y brandmd mcp` as the command and pass `mcp` as its argument. Claude Code can register it with:

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

A Chromium installation is required for page rendering. If the browser is unavailable, an MCP call reports the installation command. MCP calls run for up to 180 seconds by default, and no more than two run concurrently. Set `BRANDMD_MCP_TIMEOUT` to change the timeout in seconds.

## Tools and capabilities

- Extract a site design system from one or more rendered URLs.
- Return a linter-compatible `DESIGN.md` with YAML tokens and explanatory sections.
- Merge brand observations across multiple pages.
- Generate CSS custom properties, Tailwind v4 theme declarations, raw JSON, or HTML guides.
- Include dark-mode tokens with the `--dark` option.
- Add agent-specific rules and skills with `--agent`.
- Add visual and writing-style observations through optional Gemini vision analysis.

## Limitations and notes

Pages that are access-denied screens, bot-protection pages, or login walls are refused rather than treated as the target design. The same refusal behavior applies to MCP calls and CLI runs. A request can take up to the configured timeout, and a third simultaneous MCP call receives an error asking the caller to retry.

Cancelling or timing out a run closes its browser on macOS and Linux. On Windows, the process is ended outright and the browser may remain open. Vision analysis is optional; if its screenshot or model request fails, the CSS-based DESIGN.md is still written and the command exits with status 1. The JSON output describes brandmd’s internal token shape, which may change within a 1.x release line.

_Full upstream README: https://allmcps.com/mcp/brandmd/readme_

