Talk to Figma MCP
Allows AI agents to directly operate Figma Desktop, enabling UI design tasks such as creating frames, text, shapes, modifying styles, managing components, variables, effects, and prototype interactions.
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., "@Talk to Figma MCPcreate a frame 'Login' 400x600 with auto layout"
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.
Talk to Figma MCP(KCTW Fork)
讓 AI Agent(Claude Code / Cursor)透過 MCP 協定直接操作 Figma Desktop,實現 AI 自主 UI 設計。
基於 grab/cursor-talk-to-figma-mcp v0.3.4 的私有 fork。
與 Upstream 的差異
新增工具
工具 | 功能 | 狀態 |
| Prototype 互動(ON_CLICK 導航等) | ✅ |
| Frame 轉 Component | ✅ |
| 建立 Component Instance(含 componentId 支援) | ✅ |
| 建立 Variable Collection(COLOR/FLOAT/STRING/BOOLEAN,多模式) | ✅ |
| 節點重命名 | ✅ |
| 綁定 Variable 到填色 | ✅ |
| 綁定 Variable 到邊框色 | ✅ |
| 圖片填充(URL → image fill) | ✅ |
| 陰影/模糊特效 | ✅ |
| 字體選擇 + 大小 | ✅ |
| 漸層填色 | ✅ |
| 頁面管理 | ✅ |
多 Agent 支援
WebSocket Server 支援 Correlation ID 定向路由,多個 MCP Agent 可同時操作同一個 Figma 文件而不互相干擾。
每個連線分配
clientId指令送出時記錄
messageId → senderPlugin 回應時只路由給原始發送者(非廣播)
30 秒 timeout 自動清理過期 request
向後相容:無
id的訊息仍廣播
連線簡化
免驗證模式:WebSocket 連線不需 ECDSA 簽名,立即放行(適合本地開發)
自動加入 Channel:MCP Server 用
MCP_CHANNEL環境變數,Plugin 用 UI 輸入欄位支援多專案同時使用(每個專案設不同 channel 名稱)
Related MCP server: figmad-mcp
架構
Windows (Figma Desktop + Plugin)
↕ WebSocket (port 3055)
WSL2 / Linux (socket.ts)
↕ stdio
Claude Code (MCP Server → dist/server.js)支援環境:
Windows + WSL2:Plugin 在 Windows Figma,Server 在 WSL2
本地開發:全部在同一台
遠端:透過 SSH Tunnel 或 Cloudflare Tunnel
安裝
前置需求
Bun(WebSocket Server)
Node.js 18+(MCP Server)
Figma Desktop App
1. Clone + Build
git clone https://github.com/kctw-dev/talk-to-figma-mcp.git
cd talk-to-figma-mcp
npm install
npm run build2. 啟動 WebSocket Server
bun run src/socket.ts
# WebSocket server running on port 30553. 安裝 Figma Plugin
Windows + WSL2 環境:
# 從 WSL2 複製 Plugin 到 Windows
cp src/cursor_mcp_plugin/code.js /mnt/c/Users/<USERNAME>/figma-plugin/
cp src/cursor_mcp_plugin/manifest.json /mnt/c/Users/<USERNAME>/figma-plugin/
cp src/cursor_mcp_plugin/ui.html /mnt/c/Users/<USERNAME>/figma-plugin/在 Figma Desktop:
Plugins → Development → Import plugin from manifest
選擇
C:\Users\<USERNAME>\figma-plugin\manifest.json開啟 Plugin,Channel 欄填專案名稱,按 Connect
本地環境:
Figma Desktop → Plugins → Development → Import plugin from manifest
選擇
src/cursor_mcp_plugin/manifest.json
4. 註冊 MCP(Claude Code)
claude mcp add -e MCP_CHANNEL=my-project -- talk-to-figma-mcp node /path/to/talk-to-figma-mcp/dist/server.js或在 .mcp.json:
{
"mcpServers": {
"talk-to-figma-mcp": {
"type": "stdio",
"command": "node",
"args": ["/path/to/talk-to-figma-mcp/dist/server.js"],
"env": {
"MCP_CHANNEL": "my-project"
}
}
}
}MCP 工具一覽(60+)
讀取
工具 | 說明 |
| 文件資訊 |
| 目前選取 |
| 指定節點資訊 |
| 本地 Component 清單 |
| 本地樣式 |
| Prototype 互動 |
| 註解 |
| Component Override |
| Plugin 版本 |
| 依類型掃描 |
| 掃描文字節點 |
建立
工具 | 說明 |
| Frame(含 Auto Layout) |
| 矩形 |
| 文字 |
| Frame 轉 Component |
| Component Instance |
| 連接線 |
| Variable Collection |
修改
工具 | 說明 |
| 移動 |
| 縮放 |
| 複製 |
| 刪除 |
| 重命名 |
| 填色 |
| 邊框色 |
| 圓角 |
| 文字內容 |
| Auto Layout 模式 |
| 內距 |
| 間距 |
| 軸對齊 |
| 尺寸模式 |
| Prototype 互動 |
| 註解 |
| Component Override |
| 預設連接線 |
| 聚焦/選取 |
| 綁定 Variable 到填色 |
| 綁定 Variable 到邊框 |
| 圖片填充(URL → image fill) |
| 陰影/模糊特效(DROP_SHADOW 等) |
| 字體選擇 + 大小(fontFamily/fontStyle/fontSize) |
| 漸層填色(LINEAR/RADIAL/ANGULAR/DIAMOND) |
頁面管理
工具 | 說明 |
| 新增頁面 |
| 切換頁面(by ID 或 name) |
| 取得所有頁面清單 |
匯出
工具 | 說明 |
| PNG/JPG/SVG/PDF |
連線
工具 | 說明 |
| 加入通訊頻道 |
已知限制
功能 | 狀態 | 說明 |
Pen tool | ❌ 不支援 | 無法畫自定義形狀 |
Boolean 運算 | ❌ 不支援 | 無 Union/Subtract |
Mask | ❌ 不支援 | 無法建遮罩 |
Grid/Guide | ❌ 不支援 | 無法設定網格線 |
匯入 SVG 檔案 | ❌ 不支援 | 無法直接匯入 SVG |
開發
# WebSocket Server(開發模式)
bun run src/socket.ts
# MCP Server Build
npm run build # 單次
npm run build:watch # 監聽
# 測試
bun test src/socket.test.ts修改 Plugin 後需重新複製到 Figma 讀取的路徑,然後在 Figma 重開 Plugin。
License
MIT(同 upstream)
Upstream
Fork 時版本: v0.3.4
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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/kctw-dev/talk-to-figma-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server