figma-ui-mcp
This server provides a bridge between AI coding assistants and Figma Desktop, enabling programmatic reading, writing, and validation of designs, with optional integrated design-system bundles. Core capabilities include:
Connectivity: Check plugin bridge status.
Design Creation & Modification: Execute JavaScript to create, modify, delete, clone, group, flatten, resize, batch operations, set selections/viewport, manage components/variants/properties, create styles (paint/text), variables, design tokens, prototype interactions (click, hover, press → navigate, overlay, swap with Smart Animate), and configure scroll behavior.
Design Reading & Inspection: Extract node trees, styles, variables, local components, CSS, design context; get screenshots or export SVG/PNG/JPG/SVG markup/base64; search nodes by type, name, fill, font; scan large frames for structured summaries.
Documentation & Rules: Access quick-start guides, critical design rules, and API reference for write operations (must be called before any write).
Design System Rule Sheet: Generate a comprehensive rule sheet from the current Figma file summarizing color tokens, typography, variables, and component catalog.
Design System Bundle Support (if configured): Inspect bundle status; load semantic context (fonts, spacing, typography roles, component roles, policies, Auto Layout blueprints); plan designs from natural language into structured generation plans (mandatory gate before write); search for addressable assets (icons, SVGs, images); validate generated frames against bundle rules (fonts, typography, tokens, spacing, component dimensions) ensuring error-free output before handoff.
Provides tools for reading and modifying Figma design files, including node structure, selection, styles, components, and screenshots, through a bridge plugin that connects to Figma Desktop.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@figma-ui-mcpshow me the current selection properties"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Figma UI MCP Bridge
Kiettt8 Custom Edition
Figma UI MCP Bridge giúp Codex, Claude Code, Cursor, VS Code và các MCP client khác đọc hoặc chỉnh sửa thiết kế trực tiếp trong Figma Desktop.
Bản này có giao diện plugin tùy chỉnh và bridge chạy ngầm. Sau khi cài đặt một
lần, người dùng chỉ cần mở plugin trong Figma, không phải mở Terminal hoặc chạy
npx figma-ui-mcp.

Yêu cầu
Node.js 20 trở lên
Git
Figma Desktop
Một MCP client như Codex, Claude Code, Cursor, VS Code hoặc Windsurf
Figma bản web không dùng được với bridge local này.
Related MCP server: figma-ui-mcp
Cách đơn giản nhất: nhờ AI cài
Gửi link repository này cho Codex, Claude Code hoặc Cursor Agent:
Cài repository này giúp tôi:
https://github.com/kiettt8-product/figma-ui-mcp
Hãy clone vào một thư mục cố định, chạy npm install, cấu hình MCP cho client
hiện tại, cài background bridge và kiểm tra port 38451. Không dùng package npm
của repository upstream.AI có thể thực hiện phần cài đặt bằng Terminal. Người dùng chỉ cần import development plugin vào Figma một lần theo hướng dẫn bên dưới.
Claude Desktop dạng chat thông thường không có quyền Terminal nên không tự cài được. Hãy dùng Claude Code hoặc một agent có quyền chạy lệnh.
Tự cài đặt
1. Clone và setup
git clone https://github.com/kiettt8-product/figma-ui-mcp.git
cd figma-ui-mcp
npm install
npm run setupSetup wizard sẽ:
Tìm MCP client đang có trên máy.
Thêm cấu hình
figma-ui-mcpvào client được chọn.Giữ nguyên các MCP server khác.
Tạo backup trước khi sửa file cấu hình.
Cài bridge chạy ngầm khi đăng nhập máy.
Khởi động bridge ngay sau khi setup.
Khi wizard hỏi cài background bridge, chọn Y hoặc nhấn Enter.
Nếu muốn chạy setup không cần trả lời:
npm run setup -- --client codex --yesThay codex bằng một trong các giá trị:
claude-code
claude-desktop
cursor
vscode
windsurfCó thể cấu hình nhiều client cùng lúc:
npm run setup -- --client codex,claude-code,cursor --yes2. Import plugin vào Figma
Mở Figma Desktop:
Plugins
→ Development
→ Manage plugins in development
→ Import plugin from manifestChọn file:
figma-ui-mcp/plugin/manifest.jsonChỉ cần import một lần. Không di chuyển hoặc xóa thư mục repository sau khi import vì Figma lưu đường dẫn đến file manifest.
3. Chạy plugin
Mở một Figma design file, sau đó chọn:
Plugins
→ Development
→ Figma UI MCP Bridge · Kiettt8Plugin cần hiển thị trạng thái Connected.
Cách sử dụng hằng ngày
Sau khi đã setup:
Mở Figma Desktop.
Mở design file cần làm việc.
Chạy
Figma UI MCP Bridge · Kiettt8.Prompt cho Codex, Claude Code, Cursor hoặc MCP client đang dùng.
Không cần mở Terminal. Không cần chạy npm start hoặc npx figma-ui-mcp.
Bridge đã được hệ điều hành chạy ngầm từ trước:
Đăng nhập máy
→ background bridge chạy tại 127.0.0.1:38451
→ mở Figma plugin
→ plugin tự kết nối
→ MCP client gửi lệnh đến FigmaFigma vẫn yêu cầu người dùng tự mở development plugin. Plugin không thể tự khởi chạy process hệ điều hành do giới hạn sandbox của Figma.
Dùng kèm design system nội bộ
Design system không được commit vào repository public. Team đóng gói nó thành một thư mục bundle nội bộ, tải bundle về máy rồi setup một lần:
npm run setup -- \
--client codex,claude-code,cursor \
--bundle "/duong-dan/zalopay-design-system-3.0.0" \
--yesBundle tối thiểu có cấu trúc:
zalopay-design-system-3.0.0/
├── manifest.json
├── semantic/catalog.json
├── fonts/manifest.json
└── recipes/Sau khi cấu hình, MCP tự thực hiện luồng sau:
kiểm tra bundle và font
→ hiểu prompt và chọn intent, screen pattern, recipe, state, asset
→ đưa đúng phần product knowledge vào context cho AI
→ AI tạo màn hình bằng Figma component và Auto Layout
→ validator kiểm tra và yêu cầu sửa trước khi handoffCác tool liên quan:
design_system_status: kiểm tra bundle, version và font bắt buộc.design_system_plan: nhận prompt đầy đủ và tự chọn recipe, pattern, state, asset, prototype flow cùng checklist QA.design_system_context: lấy rule và recipe trước khi thiết kế.design_system_assets: tìm icon, logo merchant và ảnh trong bundle.figma_validate: kiểm tra frame sau khi thiết kế; phải sửa hết lỗi trước khi handoff.
Khi bundle đã được cấu hình, figma_write sẽ từ chối chạy nếu AI chưa gọi
design_system_plan hoặc chưa đọc context. Vì vậy người dùng không cần nhớ tên
recipe hay nhắc AI dùng design system trong từng prompt.
Ví dụ prompt hằng ngày:
Thiết kế journey quản lý và sử dụng voucher trên ZaloPay Mobile, bắt đầu từ
entry point Ví ưu đãi ở Home và nối prototype tới Payment Success. Tự bổ sung
state và edge case, kiểm tra lại kết quả trước khi bàn giao.AI client sẽ tự gọi design_system_plan, dùng context đã chọn và lấy asset qua
figma.loadBundleAsset(...). Asset được giới hạn trong thư mục bundle và kiểm
tra SHA-256 trước khi import vào Figma.
figma.loadIcon(...) cũng ưu tiên semantic alias trong bundle. Mỗi asset được
gắn bundle ID, version và checksum vào node; figma_validate báo lỗi nếu icon
được tự vẽ hoặc dùng thư viện ngoài trong khi bundle đã có icon tương ứng.
Nếu thiếu font bắt buộc, MCP sẽ dừng thao tác ghi thay vì âm thầm thay font và làm lệch layout.
Golden reference trong bundle chỉ nên để trạng thái candidate cho tới khi
được team Design duyệt. Không đóng gói screenshot có dữ liệu cá nhân hoặc dữ
liệu production.
Kiểm tra kết nối
Kiểm tra bridge:
curl http://127.0.0.1:38451/healthNếu plugin đang mở, kết quả cần có:
{
"pluginConnected": true
}Trong MCP client, có thể yêu cầu:
Kiểm tra kết nối Figma bằng figma_status.Nối prototype
MCP có thể tạo và đọc prototype interaction thật trong Figma:
Navigate giữa các frame.
Open, swap hoặc close overlay.
Back, scroll to và change to component variant.
Click, hover, press, drag, delay và keyboard trigger.
Instant, Dissolve, Smart Animate, Move, Push và Slide transition.
Cấu hình scroll ngang, dọc hoặc cả hai hướng.
Ví dụ prompt:
Nối nút Dùng ngay sang frame Voucher Detail bằng Smart Animate 300ms.
Nút Điều kiện mở Conditions Bottom Sheet dưới dạng overlay trượt từ dưới lên.
Nút đóng trong bottom sheet dùng Close.
Sau khi nối, đọc lại reactions để xác minh tất cả destination còn tồn tại.Cập nhật phiên bản mới
Trong thư mục repository:
git pull origin main
npm install
npm run setup:backgroundLệnh cuối sẽ cập nhật và restart background bridge. Không cần import lại manifest nếu repository vẫn nằm ở đường dẫn cũ.
Xử lý lỗi nhanh
Plugin báo chạy npx figma-ui-mcp
Cài lại background bridge:
npm run setup:background
curl http://127.0.0.1:38451/healthPlugin vẫn hiện giao diện cũ
Mở
Manage plugins in development.Xóa đăng ký Figma UI MCP Bridge cũ.
Import lại đúng file
plugin/manifest.jsontrong repository này.Đóng và chạy lại plugin.
MCP client đang dùng nhầm bản npm
Không dùng cấu hình:
{
"command": "npx",
"args": ["figma-ui-mcp"]
}Chạy lại:
npm run setupWizard sẽ cấu hình client dùng trực tiếp server/index.js trong repository
này.
Port 38451 không hoạt động
Trên macOS:
launchctl print gui/$(id -u)/io.github.kiettt8-product.figma-ui-mcp-bridge
tail -50 ~/Library/Logs/FigmaUIMCP/bridge.error.logTrên Linux:
systemctl --user status figma-ui-mcp-bridge.serviceSau đó chạy lại:
npm run setup:backgroundPhát triển source
Giao diện plugin:
plugin/ui.htmlLogic plugin:
src/plugin/MCP adapter:
server/index.jsProduct intent và generation plan:
server/product-knowledge.jsBundle asset resolver:
server/asset-resolver.jsBackground bridge:
server/bridge-daemon.jsSetup wizard:
scripts/setup-mcp.js
Build lại plugin sau khi sửa logic:
npm run build:pluginChạy test:
npm testTest phụ thuộc Internet cho icon library được tách riêng:
npm run test:networkXuất metadata từ một file design system đang mở trong Figma:
npm run bundle:export -- --session <session-id> --output <thu-muc-output>Exporter tạo catalog kỹ thuật ban đầu. Các semantic role và recipe theo từng product vẫn cần được review trước khi phát hành bundle nội bộ.
Product knowledge có thể được đóng gói thêm tại product/catalog.json; semantic
asset alias tại assets/semantic-catalog.json. Khi chạy bundle:pack, exporter
tự thêm các entrypoint này vào manifest mà không phá bundle schema cũ.
Sau khi review hoặc sửa semantic/, fonts/ hay recipes/, đóng gói lại mà
không cần quét Figma lần nữa:
npm run bundle:pack -- --output <thu-muc-bundle>Bảo mật
Bridge mặc định chỉ chạy tại
127.0.0.1.Không expose port
38451lên Internet.Không đổi bridge sang public host nếu chưa có authentication và firewall.
Không commit bundle, asset nội bộ hoặc file font có license vào repository public.
Kiểm tra thao tác do AI tạo trước khi áp dụng lên design file quan trọng.
Nguồn và giấy phép
Repository này là bản phát triển độc lập dựa trên TranHoaiHung/figma-ui-mcp.
Nền tảng MCP và Figma plugin: dự án gốc
Custom UI, background setup và tài liệu: Kiettt8
License: MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityAmaintenanceRead, create, and modify Figma designs programmatically via MCP, empowering AI to execute Figma changes safer, cleaner, and faster.Last updated46989MIT
- AlicenseAqualityAmaintenanceBidirectional MCP bridge enabling AI assistants to draw UI on Figma canvas and read designs back as structured data or code tokens via localhost, requiring Figma Desktop.Last updated5505218MIT
- Alicense-qualityDmaintenanceEnables interaction with Figma tools and services through a standardized MCP interface.Last updatedMIT
- Alicense-qualityCmaintenanceUnofficial local MCP bridge for reading the currently open Figma file through a Figma plugin. Provides tools to inspect selection, file info, and export selected nodes as SVG/PNG.Last updatedMIT
Related MCP Connectors
Connect any MCP client to MetaTrader 4/5 to read prices, manage positions, and place trades.
Create App Store screenshots, icons, ASO copy, localization, and revisions via hosted MCP.
Remote MCP for C2PA intake verifier MCP, structured receipts, audit logs, and reviewer-ready evidenc
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kiettt8-product/figma-ui-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server