design-token-bridge-mcp
This server acts as a universal design token bridge, translating tokens between platforms to enable consistent theming across web, mobile, and design systems.
Extract Design Tokens from:
Tailwind config files (
tailwind.config.js/.ts) — colors, font sizes, spacing, radii, shadowsCSS custom properties (e.g.,
--color-*,--space-*,--radius-*)Figma Variables API JSON exports — with alias resolution and multi-mode support
W3C DTCG format JSON — including
$value/$type/$descriptionand alias resolution
Generate Platform-Specific Themes for:
Android — Kotlin/Jetpack Compose Material 3 theme files (
lightColorScheme(),Typography,Shapes)iOS — SwiftUI theme files with Color extensions, Font structs, and optional iOS 26+ Liquid Glass modifiers
Tailwind —
tailwind.config.jswith rem units in ESM or CJS formatCSS — Custom properties with
:rootblock and optional light/dark mode viaprefers-color-scheme
Validate Accessibility — Check color contrast against WCAG AA/AAA compliance, returning pass/fail results and contrast ratios
The full pipeline is: extract → transform to universal schema → generate → validate.
Generates native Material 3 themes in Kotlin for Android, including light/dark color schemes, typography, and shape definitions.
Extracts design tokens from CSS custom properties and generates CSS variable blocks with support for light/dark modes.
Extracts design tokens from Figma Variables API JSON, supporting colors, floats, multi-mode configurations, and alias resolution.
Generates native SwiftUI themes and color extensions for iOS development, with optional support for Liquid Glass.
Generates Jetpack Compose theme components for Material 3, including color schemes, typography, and shapes from universal design tokens.
Generates Kotlin source code for Material 3 themes, specifically targeting Jetpack Compose styling and configuration.
Generates Swift code for SwiftUI themes, including font structures and color extensions derived from design tokens.
— signed, offline-verifiable tool-safety grade
design-token-bridge-mcp
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.
┌──────────────┐ ┌──────────────┐ ┌────────────────────────┐
│ Tailwind │ │ │ │ Material 3 (Kotlin) │
│ CSS Vars │────▶│ Universal │────▶│ SwiftUI (Swift) │
│ Figma Vars │ │ Token │ │ Tailwind Config │
│ W3C DTCG │ │ Schema │ │ CSS Variables │
└──────────────┘ └──────────────┘ └────────────────────────┘
Extractors Bridge GeneratorsInstall
From npm
npm install -g design-token-bridge-mcpFrom source
git clone https://github.com/kenneives/design-token-bridge-mcp.git
cd design-token-bridge-mcp
npm install && npm run buildRelated MCP server: memoire
Configure with Claude Code
Add to your Claude Code MCP settings (~/.claude/settings.json or project .mcp.json):
{
"mcpServers": {
"design-token-bridge": {
"type": "stdio",
"command": "npx",
"args": ["-y", "design-token-bridge-mcp"]
}
}
}Or if installed from source:
{
"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
Tool | Input | Description |
|
| Parses colors, fontSize, spacing, borderRadius, boxShadow |
| CSS file content | Extracts |
| Figma Variables API JSON | Parses COLOR, FLOAT types, resolves aliases, handles multi-mode |
| W3C DTCG format JSON | Parses |
Generators — Universal Tokens → Output
Tool | Output | Description |
| Kotlin (Jetpack Compose) |
|
| Swift (SwiftUI) | Color extensions, Font structs, optional Liquid Glass (iOS 26+) |
|
| Theme extend block with rem units, ESM or CJS |
| CSS custom properties |
|
Validation
Tool | Description |
| WCAG AA/AAA contrast checking for color pairs with pass/fail + ratios |
Universal Token Schema
All tools speak this common format:
{
"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
Use extract_tokens_from_tailwind with the contents of my tailwind.config.js2. Generate native themes from the extracted tokens
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
Run validate_contrast on those tokens at AAA levelExample 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 tokenstailwind.config.js— generated Tailwind configvariables.css— generated CSS custom propertiescontrast-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:
v0 Setup Guide — free tier signup, web UI workflow
Figma Setup Guide — free tier MCP config (6 calls/month)
Claude Code Setup — full pipeline configuration
Token Extraction Guide — manual extraction when APIs aren't available
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
# 91 unit tests
npm test
# 31 Playwright visual/responsive tests
npm run test:e2eContributing
See CONTRIBUTING.md for development setup, project structure, and PR guidelines.
License
MIT — see LICENSE.
Available Tools
9 toolsextract_tokens_from_cssA
Parse CSS custom properties (variables) and extract design tokens
Inputs: css (required).
extract_tokens_from_figma_variablesB
Parse Figma variables export JSON and extract design tokens
Inputs: variables (required).
extract_tokens_from_jsonA
Parse W3C Design Tokens Community Group (DTCG) format JSON into universal tokens
Inputs: json (required).
extract_tokens_from_tailwindC
Parse a Tailwind config and extract theme values into universal design tokens
Inputs: config (required).
generate_css_variablesC
Generate CSS custom properties from universal design tokens with light/dark mode support
Inputs: tokens (required), darkTokens.
generate_material3_themeC
Generate Kotlin Jetpack Compose Material 3 theme files from universal design tokens
Inputs: tokens (required).
generate_swiftui_themeC
Generate SwiftUI theme files from universal design tokens, with optional Liquid Glass support
Inputs: tokens (required), liquidGlass.
generate_tailwind_configB
Generate a tailwind.config.js theme from universal design tokens
Inputs: tokens (required), format.
validate_contrastB
Check color combinations in design tokens for WCAG AA/AAA accessibility compliance
Inputs: tokens (required), level.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Every tool has a clearly distinct purpose with no ambiguity. The tools are organized into two clear groups: extraction from various sources (CSS, Figma, JSON, Tailwind) and generation/validation for different outputs (CSS, Material3, SwiftUI, Tailwind, contrast validation). Each tool name explicitly indicates its specific source or target, making misselection unlikely.
All tool names follow a consistent verb_noun pattern throughout. The verbs are clear and descriptive (extract_tokens_from_, generate_, validate_), and the nouns specify the exact format or platform. There are no deviations in naming conventions, making the set highly predictable and readable.
With 9 tools, the count is well-scoped for the server's purpose of bridging design tokens across platforms. Each tool earns its place by covering key extraction sources and output formats, providing comprehensive coverage without being overwhelming or redundant.
The tool surface is complete for the domain of design token conversion and validation. It covers extraction from major sources (CSS, Figma, JSON, Tailwind), generation to key platforms (CSS, Material3, SwiftUI, Tailwind), and includes essential validation (contrast checking). There are no obvious gaps, ensuring agents can handle full workflows without dead ends.
Maintenance
Related MCP Connectors
Generate design systems: OKLCH colors, fluid type scales, spacing, shape, icon and motion tokens.
Build and manage your design system with AI: tokens, themes, components, icons, Figma and code.
Contrast checks with fixes, OKLCH harmonies, palettes, color-blind previews and code export.
On-demand drift checks: declared CSS color, radius, spacing & type vs your own tokens or a pack
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides access to a universal design token system with 7 pre-built themes (colors, typography, spacing, motion) and multi-format export capabilities for Canva, Remotion, PPTX, CSS, and W3C JSON.1MIT
- AlicenseAqualityBmaintenanceDesign system MCP server. 20 tools: extract design tokens from any URL, pull from Figma or Penpot, generate React + shadcn/ui components from specs, run WCAG audits, sync tokens bidirectionally.50145 npm51MIT
- AlicenseAqualityCmaintenanceEnables AI agents to generate complete, deterministic design systems from a single brand color — harmonious palettes, font pairings, type and spacing scales, elevation shadows, responsive grids, motion presets, dark-mode themes, and WCAG contrast audits — and export them as CSS, JSON, Tailwind, or SCSS through natural conversation.1059 npmMIT
- AlicenseAqualityCmaintenanceEnables AI assistants to work with color: converting between formats like HEX, OKLCH and Display P3, checking and fixing WCAG 2 and APCA contrast, auditing palettes for accessibility and color blindness, and generating palettes, gradients, scales and design tokens.18MIT