
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 分