
Design Token Bridge Mcp
io.github.kenneives由 GitHub 账号 kenneives 发布v1.0.2更新于 Oct 24, 2026
Translate design tokens between Tailwind, Figma, CSS, Material 3, and SwiftUI
概览
本地 MCP 服务器,在 Tailwind、CSS、Figma 变量、W3C DTCG JSON、Material 3 与 SwiftUI 主题之间转换设计令牌。
- 可以做什么
- 从 Tailwind 配置、CSS 自定义属性、Figma Variables JSON 和 W3C DTCG JSON 中提取令牌,统一为通用令牌结构
- 生成 Material 3 Kotlin 主题、SwiftUI 主题(可选 Liquid Glass)、Tailwind 配置或带明暗模式的 CSS 变量
- 对颜色组合做 WCAG AA/AAA 对比度检查,返回是否通过及对比度比值
- 可串联各步骤,把同一份令牌输出到 Web、Android 和 iOS 目标
- 适用场景
- 适合需要把设计系统或品牌色板同步到 Web、Android 与 iOS 代码库的场景,也适合让助手基于已有的 Tailwind、CSS 或 Figma 令牌来源重新生成原生主题文件并检查对比度。
- 运行要求
- 以本地 stdio 进程在桌面端运行。可全局安装 npm 包或用 npx 运行,也可用 Node.js 从源码构建后运行构建产物。未声明账号、API 密钥或环境变量;令牌输入以文件内容形式传入。
安装
在 SourceWeft 中
- 打开 控制台中的 Design Token Bridge Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
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.
Install
From npm
From source
Configure with Claude Code
Add to your Claude Code MCP settings (~/.claude/settings.json or project .mcp.json):
Or if installed from source:
Tools (9 total)
Extractors — Input → Universal Tokens
Generators — Universal Tokens → Output
Validation
Universal Token Schema
All tools speak this common format:
Example: Full Pipeline
1. Extract tokens from a Tailwind config
2. Generate native themes from the extracted tokens
3. Validate accessibility
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 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
Contributing
See CONTRIBUTING.md for development setup, project structure, and PR guidelines.
License
MIT — see LICENSE.
来源:README.md,提交 d13c8b3
工具
0版本历史
1- v1.0.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分