brand-kit-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Why
Agents now write the proposal, build the deck and scaffold the landing page. Left alone they pick "a nice blue", a random Google font and redraw your logo as an emoji. The brand guidelines exist, but they live in a PDF the agent never sees.
brand-kit-mcp puts the brand where the agent can read it:
One source of truth in plain files. Each brand is a folder with a
brand.yamland its assets. Review it in pull requests like any other code.Answers agents can act on. Exact hex values, font stacks, approved logos (embedded so the model can actually see them) and the written rules.
Design tokens for free. Export to DTCG 2025.10 (
brand.json) or CSS custom properties for Style Dictionary, Figma plugins or your own UI.Safe by default. Read-only, no database, no outbound network, no code execution. Assets in quarantine are never served; assets pending review are clearly marked.
Related MCP server: frontend-design-mcp
Quickstart
Try it with the bundled fictional brand, Tidewren:
uvx brand-kit-mcp --demo # stdio MCP server with the example brands
uvx brand-kit-mcp validate ./brands # check your own brands folderThen point your client at your own brands folder (absolute paths work best).
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"brand-kit": {
"command": "uvx",
"args": ["brand-kit-mcp", "--brands-dir", "/absolute/path/to/brands"]
}
}
}Claude Code:
claude mcp add brand-kit -- uvx brand-kit-mcp --brands-dir /absolute/path/to/brandsCursor (.cursor/mcp.json in your project, or ~/.cursor/mcp.json):
{
"mcpServers": {
"brand-kit": {
"command": "uvx",
"args": ["brand-kit-mcp", "--brands-dir", "/absolute/path/to/brands"]
}
}
}Now ask: "Write a one-page proposal for Tidewren Trail, following its brand kit."
Brand folder
brands/
├── tidewren/
│ ├── brand.yaml
│ └── assets/
│ ├── logo-horizontal.svg
│ ├── logomark.svg
│ └── logomark-256.png
└── tidewren-trail/ # sub-brand: parent: tidewren
├── brand.yaml
└── assets/trail-mark.svgThe directory comes from --brands-dir, then the BRAND_KIT_DIR environment variable, then
./brands. Folder names are the brand slugs (a-z, 0-9, -). Folders starting with . or _
are ignored.
brand.yaml
schema_version: 1
name: Tidewren
description: Coastal outdoor gear. Calm, practical and warm; never loud.
website: https://tidewren.example # optional, metadata only
parent: null # slug of a parent brand (inherits tokens and guidelines)
tokens:
color:
primary:
$root: # "color.primary" is a token AND a group
$value: "#0F4C5C" # always quote hex colors: '#' starts a YAML comment
$description: Deep tide teal. Headers and large surfaces.
soft: "#3E7C8C" # color.primary.soft
accent: "#F2A541"
overlay: "#0F4C5CCC" # #RGB, #RRGGBB and #RRGGBBAA are accepted
font:
family:
heading: "Fraunces, Georgia, serif"
body: [Inter, system-ui, sans-serif]
weight:
bold: 700 # or a keyword: bold, semi-bold...
size:
body: 16px # px or rem
line-height:
body: 1.5
spacing: # "space.*" is accepted as an alias
sm: 8 # bare numbers are px
lg: 1.5rem
radius:
card: 12px
guidelines:
- Keep the amber accent under 10% of any layout.
- Never place the logo on busy photography.
assets:
- id: logomark
file: assets/logomark.svg # relative to the brand folder; must stay inside it
name: Logomark
category: logomark # logo | logomark | wordmark | icon | illustration |
# pattern | photo | template | other
status: approved # approved | review (default) | quarantined
tags: [primary, square]
description: Square mark for avatars and favicons.Tokens can be written nested (as above) or with dotted keys (color.primary.soft: "#3E7C8C").
A token can be a plain value or { $value, $description }.
Status | Behaviour |
| Served normally. |
| Served with |
| Never served, never counted, not even acknowledged as existing. |
Validate a folder before shipping it:
$ brand-kit-mcp validate examples/brands
ok tidewren: 21 tokens, 5 assets (1 pending review, 1 quarantined)
note: font.style.tagline is not exported to DTCG (unsupported_type: no DTCG mapping for this token family)
ok tidewren-trail (parent: tidewren): 22 tokens, 1 assets (0 pending review, 0 quarantined)
note: font.style.tagline is not exported to DTCG (unsupported_type: no DTCG mapping for this token family)
2 brands, 43 tokens, 6 usable assetsInvalid files stop the server at startup with every problem listed, for example
acme/brand.yaml: tokens: invalid tokens: color.ink: missing value (hint: quote hex colors; an unquoted '#' starts a YAML comment).
Tools
All tools are read-only (readOnlyHint: true).
Tool | What it returns |
| Every brand: slug, name, description, parent, children, counts. |
| Full profile: guidelines, every token (with |
|
|
|
|
| Logos, logomarks, wordmarks and icons, flagged |
| Filter by |
| Metadata plus content: PNG/JPEG/WebP up to 2 MB embedded as an MCP image, SVG as text. |
|
|
| CSS custom properties on |
| A markdown kit for a |
Resources: brand://{slug}/brand.json, brand://{slug}/tokens.css and brand://{slug}/kit.md.
Exports
DTCG (brand.json)
export_brand_json wraps a standard DTCG token tree with the brand's logos and rules. Values that
DTCG cannot express are never guessed: they are listed under omitted with a reason
(unsupported_type, unconvertible_value or path_collision).
{
"brand_json": "1.0",
"dtcg": "https://www.designtokens.org/TR/2025.10/format/",
"brand": { "slug": "tidewren", "name": "Tidewren", "parent": null },
"tokens": {
"color": {
"primary": {
"$root": {
"$type": "color",
"$value": { "colorSpace": "srgb", "components": [0.0588, 0.298, 0.3608], "hex": "#0F4C5C" },
"$description": "Deep tide teal. Headers, large surfaces, primary buttons."
},
"soft": {
"$type": "color",
"$value": { "colorSpace": "srgb", "components": [0.2431, 0.4863, 0.549], "hex": "#3E7C8C" }
}
},
"overlay": {
"$type": "color",
"$value": { "colorSpace": "srgb", "components": [0.0588, 0.298, 0.3608], "hex": "#0F4C5C", "alpha": 0.8 }
}
},
"font": { "family": { "heading": { "$type": "fontFamily", "$value": ["Fraunces", "Georgia", "serif"] } } },
"spacing": { "lg": { "$type": "dimension", "$value": { "value": 1.5, "unit": "rem" } } }
},
"logos": [{ "id": "logo-horizontal", "category": "logo", "status": "approved", "approved": true, "file": "assets/logo-horizontal.svg", "sha256": "3327…" }],
"guidelines": ["…"],
"omitted": [{ "name": "font.style.tagline", "reason": "unsupported_type", "detail": "no DTCG mapping for this token family" }]
}Token name | DTCG |
|
|
|
|
|
|
|
|
|
|
From the command line, --format dtcg prints the plain token tree (a valid .tokens.json) and
--format brand-json prints the full document:
brand-kit-mcp export tidewren --format dtcg > tidewren.tokens.jsonCSS
/* Tidewren (tidewren) design tokens. Generated by brand-kit-mcp 0.1.0; do not edit. */
:root {
--color-primary: #0F4C5C;
--color-primary-soft: #3E7C8C;
--color-accent: #F2A541;
--color-overlay: #0F4C5CCC;
--font-family-heading: "Fraunces", "Georgia", serif;
--font-family-body: "Inter", system-ui, sans-serif;
--font-weight-bold: 700;
--font-size-body: 16px;
--spacing-sm: 8px;
--spacing-lg: 1.5rem;
--radius-card: 12px;
}
/* Not exported: font.style.tagline (unsupported_type) */HTTP mode and Docker
stdio is the default. For a shared server, use streamable HTTP:
export BRAND_KIT_TOKEN="$(openssl rand -hex 32)" # optional; when set, every request needs it
brand-kit-mcp --transport http --host 127.0.0.1 --port 8000 --brands-dir ./brandsThe MCP endpoint is http://127.0.0.1:8000/mcp; GET /health answers without a token. Clients
send Authorization: Bearer <token>, for example:
claude mcp add --transport http brand-kit http://127.0.0.1:8000/mcp \
--header "Authorization: Bearer $BRAND_KIT_TOKEN"The Docker image runs in HTTP mode as a non-root user and ships the example brands in /brands.
Mount your own folder read-only over it:
docker run --rm -p 127.0.0.1:8000:8000 \
-e BRAND_KIT_TOKEN="$BRAND_KIT_TOKEN" \
-v "$PWD/brands:/brands:ro" \
ghcr.io/alejandro-cuautli/brand-kit-mcp:latestSetting | Flag | Environment | Default |
Brands folder |
|
|
|
Transport |
|
| |
Bind address |
|
| |
Port |
|
| |
Bearer token (HTTP) |
| none | |
Allowed |
| loopback only when bound to loopback |
Security
Read-only. No tool writes anything; there is no database and no outbound network access.
Files stay in their folder. Every asset path is resolved and must stay inside its brand folder:
.., absolute paths and symlinks that point outside are rejected at startup, and checked again on every read. Symlinked brand folders are rejected.Safe parsing. YAML is parsed with PyYAML's safe loader, with aliases disabled. File contents must match their extension (no
.pngthat is really something else).Limits.
brand.yamlup to 1 MiB, assets up to 50 MiB, embedded images up to 2 MB.SVG is data. SVGs are returned as text, never rendered. Files with scripts or event handlers are flagged so you can sanitize them before using them on a web page.
HTTP. Binds to
127.0.0.1by default. WithBRAND_KIT_TOKENset, requests need a matching Bearer token (constant-time comparison). Outputs never include absolute file paths.
See SECURITY.md to report a vulnerability.
Roadmap
Write tools (opt-in): propose token changes and upload assets for review.
Web panel to browse brands, preview assets and approve items in review.
Multi-tenant HTTP mode: per-token brand scopes for agencies and larger teams.
More DTCG types: shadows, gradients, composite typography.
Development
python -m venv .venv && . .venv/bin/activate
pip install -e ".[dev]"
pytest && ruff check . && ruff format --check .See CONTRIBUTING.md and the changelog.
Author
Made by Alejandro Cuautli: synaptic-ai.dev · GitHub
Released under the MIT License. Tidewren and Tidewren Trail are fictional brands created for the examples.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Give your agent a real design system: tokens, measured WCAG contrast, and rules to follow.
Your brand's Styles, logos and asset library in your AI app, for on-brand assets that match.
BrandPilot brands and design systems for coding agents: tokens, design context, repo rules.
Give AI agents your deeepSpace design system: components, tokens, styles and code mappings.
Related MCP Servers
AlicenseAqualityDmaintenanceEnables AI agents to create, manage, and publish brand kits with colors, typography, logos, and white-label branding via the BrandKity platform.228 npm2MIT- AlicenseAqualityBmaintenanceEnables AI coding agents to search public design-system catalogs and retrieve only the relevant tokens or sections for a chosen brand, so generated UI matches a specified visual style instead of generic AI output.825 npm1BSD 3-Clause
- AlicenseNot gradedqualityCmaintenanceEnables coding agents to retrieve accurate design system information, component APIs, design tokens, and coding standards, so they build with real specs rather than guessing.2MIT
- AlicenseAqualityBmaintenanceEnables AI agents to retrieve and compare current brand data, inspect colors and fonts, enrich transaction descriptors, and access approved private assets using fourteen shared tools across isolated named profiles.1420 npmAGPL 3.0