Design Token Bridge MCP logo

Design Token Bridge MCP

by kenneives

Extracts design tokens from common formats and generates themes for Kotlin, SwiftUI, Tailwind, and CSS with contrast validation.

Install Design Token Bridge MCP

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": {
    "kenneives-design-token-bridge-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "design-token-bridge-mcp"
      ]
    }
  }
}

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

Automated check passedβ€” started and listed 9 tools correctly ().

Overview

This stdio MCP server converts tokens from Tailwind, CSS custom properties, Figma Variables JSON, or W3C DTCG JSON into a shared schema. It generates Material 3 Kotlin, SwiftUI, Tailwind configuration, and CSS variable output, and can validate WCAG contrast ratios. Use it when maintaining a design system across web, Android, and iOS platforms.

Use cases

  • Extract tokens from a Tailwind configuration
  • Convert Figma Variables JSON into a universal token schema
  • Generate a Material 3 theme for Jetpack Compose
  • Generate SwiftUI theme definitions
  • Check color pairs against WCAG AA or AAA

Key features

  • Extracts colors, typography, spacing, radii, and elevation tokens
  • Resolves aliases in Figma Variables and W3C DTCG JSON
  • Generates Material 3 Kotlin themes
  • Generates SwiftUI colors and fonts with optional Liquid Glass support
  • Generates Tailwind theme extensions and CSS variables
  • Reports WCAG contrast pass/fail results with ratios

Tools9

What Design Token Bridge MCP lets your agent do. Expand a tool for its parameters.

Verified live~828 tokens of context

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.

27/27 checks healthy over the last 112d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 11d ago via OSV.dev Β· design-token-bridge-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks β€” not a rating.

GitHub stars5Stargazers on the source repository.
npm downloads410Package downloads in the last 30 days.
Last commit3mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed9Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

From the project README

AgentAvow Trust β€” signed, offline-verifiable tool-safety grade

design-token-bridge-mcp


AgentGraph Trust Score

Verified on AgentGraph β€” trust infrastructure for AI agents. View profile

An MCP server that translates design tokens between platforms. Extract tokens from Tailwind, CSS, Figma, or W3C DTCG format β€” then generate native themes for Material 3 (Kotlin), SwiftUI (with Liquid Glass), Tailwind, and CSS Variables.

Built for the v0 β†’ Figma β†’ Claude Code design pipeline.

Code
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Tailwind     β”‚     β”‚              β”‚     β”‚  Material 3 (Kotlin)   β”‚
β”‚  CSS Vars     │────▢│  Universal   │────▢│  SwiftUI (Swift)       β”‚
β”‚  Figma Vars   β”‚     β”‚  Token       β”‚     β”‚  Tailwind Config       β”‚
β”‚  W3C DTCG     β”‚     β”‚  Schema      β”‚     β”‚  CSS Variables         β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
    Extractors           Bridge              Generators

Install

From npm

Terminal
npm install -g design-token-bridge-mcp

From source

bash
git clone https://github.com/kenneives/design-token-bridge-mcp.git
cd design-token-bridge-mcp
npm install && npm run build

Configure with Claude Code

Add to your Claude Code MCP settings (~/.claude/settings.json or project .mcp.json):

config.json
{
  "mcpServers": {
    "design-token-bridge": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "design-token-bridge-mcp"]
    }
  }
}

Or if installed from source:

config.json
{
  "mcpServers": {
    "design-token-bridge": {
      "type": "stdio",
      "command": "node",
      "args": ["/path/to/design-token-bridge-mcp/build/index.js"]
    }
  }
}

Tools (9 total)

Extractors β€” Input β†’ Universal Tokens

ToolInputDescription
extract_tokens_from_tailwindtailwind.config.js contentParses colors, fontSize, spacing, borderRadius, boxShadow
extract_tokens_from_cssCSS file contentExtracts --color-*, --space-*, --radius-*, --shadow-* custom properties
extract_tokens_from_figma_variablesFigma Variables API JSONParses COLOR, FLOAT types, resolves aliases, handles multi-mode
extract_tokens_from_jsonW3C DTCG format JSONParses $value/$type/$description, resolves {aliases}, handles groups

Generators β€” Universal Tokens β†’ Output

ToolOutputDescription
generate_material3_themeKotlin (Jetpack Compose)lightColorScheme(), Typography, Shapes with M3 naming
generate_swiftui_themeSwift (SwiftUI)Color extensions, Font structs, optional Liquid Glass (iOS 26+)
generate_tailwind_configtailwind.config.jsTheme extend block with rem units, ESM or CJS
generate_css_variablesCSS custom properties:root block with light/dark mode via prefers-color-scheme

Validation

ToolDescription
validate_contrastWCAG AA/AAA contrast checking for color pairs with pass/fail + ratios

Universal Token Schema

All tools speak this common format:

config.json
{
  "colors": {
    "primary": { "value": "#6750A4", "description": "Brand primary", "category": "primary" }
  },
  "typography": {
    "display-large": { "fontSize": 57, "lineHeight": 64, "fontWeight": 400, "fontFamily": "Inter" }
  },
  "spacing": { "xs": 4, "sm": 8, "md": 16 },
  "radii": { "sm": 8, "md": 12, "lg": 16 },
  "elevation": {
    "low": {
      "shadowColor": "#000000",
      "shadowOffset": { "x": 0, "y": 2 },
      "shadowRadius": 4,
      "shadowOpacity": 0.1
    }
  },
  "motion": {
    "fast": { "duration": 150, "easing": "ease-out" }
  }
}

Example: Full Pipeline

1. Extract tokens from a Tailwind config

Code
Use extract_tokens_from_tailwind with the contents of my tailwind.config.js

2. Generate native themes from the extracted tokens

Code
Take those tokens and run them through:
- generate_tailwind_config (for the web app)
- generate_material3_theme (for Android)
- generate_swiftui_theme with liquidGlass=true (for iOS)
- generate_css_variables (for a vanilla CSS fallback)

3. Validate accessibility

Code
Run validate_contrast on those tokens at AAA level

Example Output

See the examples/qt-games/ directory for a complete responsive landing page built entirely from MCP-generated tokens, including:

  • qt-games-tokens.json β€” extracted universal tokens
  • tailwind.config.js β€” generated Tailwind config
  • variables.css β€” generated CSS custom properties
  • contrast-report.json β€” WCAG validation (AAA pass)
  • index.html + styles.css β€” responsive landing page using the generated tokens

v0 + Figma Free Tier Setup

This MCP works with free tiers of both v0 and Figma. See the setup guides:

Tech Stack

  • TypeScript + Node.js
  • @modelcontextprotocol/sdk v1.x (stdio transport)
  • Zod for schema validation
  • Zero heavyweight dependencies β€” no Babel, no PostCSS, no Style Dictionary

Tests

bash
# 91 unit tests
npm test

# 31 Playwright visual/responsive tests
npm run test:e2e

Contributing

See CONTRIBUTING.md for development setup, project structure, and PR guidelines.

License

MIT β€” see LICENSE.

Reviews

No reviews yet β€” be the first to share how it worked for you.

Frequently Asked Questions about Design Token Bridge MCP

It reads Tailwind configuration content, CSS custom properties, Figma Variables API JSON, and W3C DTCG JSON.

It generates Material 3 Kotlin themes, SwiftUI theme code, Tailwind configuration theme extensions, and CSS custom properties.

Yes. The validate_contrast tool checks color pairs against WCAG AA or AAA and returns pass/fail results with contrast ratios.

It runs as a local MCP server over stdio and can be launched with npx or from a built source checkout.

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 PreviewDesign Token Bridge MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/kenneives-design-token-bridge-mcp?style=directory)](https://allmcps.com/mcp/kenneives-design-token-bridge-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/kenneives-design-token-bridge-mcp"><img src="https://allmcps.com/api/badge/kenneives-design-token-bridge-mcp?style=directory" alt="Design Token Bridge MCP on AllMCPs" /></a>