Brandmd logo

Brandmd

Extracts website design systems into lint-valid DESIGN.md files for coding agents and MCP clients.

Install Brandmd

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "brandmd": {
      "command": "npx",
      "args": [
        "-y",
        "brandmd"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

The install command installed and started the server, which then stopped for configuration (such as an API key) that our sandbox does not have — expected for servers that connect to your account.

npx -y brandmd

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

brandmd extracts a website’s visual system through Playwright and exposes the result as a spec-valid DESIGN.md file or MCP tool response. It captures colors, typography, spacing, shadows, components, layout rules, and other observed patterns from one or more pages. Use the MCP mode when an agent needs brand context during a coding task, or use the CLI to generate files, CSS, Tailwind tokens, JSON, or an HTML guide. Optional dark-mode and Gemini-powered vision analysis extend the output beyond CSS-derived tokens.

Use cases

  • Extract a public website’s tokens before implementing a matching interface
  • Generate DESIGN.md context for Claude Code, Cursor, or another coding agent
  • Merge visual rules from a homepage, pricing page, and documentation site
  • Export observed styles as CSS custom properties or Tailwind v4 theme tokens
  • Inspect a site’s dark theme and broader visual voice

Key features

  • Spec-valid DESIGN.md generation
  • Playwright-based website rendering
  • Multi-page token extraction and merging
  • CSS, Tailwind, JSON, and HTML output modes
  • Optional dark-mode and Gemini vision analysis
  • Single-tool MCP interface

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.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 2d ago via OSV.dev · brandmd (npm)

Adoption & maintenance

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

GitHub stars74Stargazers on the source repository.
npm downloads1.5kPackage downloads in the last 30 days.
Last commit11d agoMost recent push to the default branch.
Install checkRunsOur sandbox started it; it then asked for an API key or config.

How Brandmd works

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:

Terminal
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:

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

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 Brandmd

brandmd is an MCP server that connects AI coding agents to rendered website pages through Playwright. Its main tool, extract_design_md, accepts one or more URLs and an optional dark-mode flag, then returns a DESIGN.md design-system specification containing observed colors, typography, spacing, components, and layout rules.

Install it by configuring `npx -y brandmd mcp` as an MCP stdio server command. In Claude Code, run `claude mcp add brandmd -- npx -y brandmd mcp`; other clients can use an `mcpServers` entry with `command: npx` and arguments `-y`, `brandmd`, and `mcp`.

Yes, brandmd works with Cursor through its standard MCP configuration. Add the server with `npx -y brandmd mcp`, or use Cursor’s MCP installation link, and Cursor can call `extract_design_md` while working on a task.

The tool accepts one or more website pages in the `urls` argument and an optional `dark` flag. It renders those pages in headless Chromium and extracts a DESIGN.md specification, while refusing block pages and login walls.

No, the default extraction runs without an API key. A `GEMINI_API_KEY` or `GOOGLE_API_KEY` is required only when using the optional `--vision` mode for illustration, photography, copywriting, and microcopy observations.

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 PreviewBrandmd AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/brandmd?style=directory)](https://allmcps.com/mcp/brandmd)
HTML Embed
<a href="https://allmcps.com/mcp/brandmd"><img src="https://allmcps.com/api/badge/brandmd?style=directory" alt="Brandmd on AllMCPs" /></a>