
figmcp
io.github.irshadio由 GitHub 帳號 irshadio 發布v1.6.0更新於 Oct 24, 2026
Local Figma MCP server: frames to Flutter, React and HTML code, and design in Figma. No API limits.
概覽
本機 Figma MCP 伺服器,讓編碼助理讀取 Figma Desktop 中開啟的檔案,把畫框轉成 Flutter、React 或 HTML 程式碼,並可在 Figma 中進行設計。
- 可以做什麼
- 讀取節點的設計脈絡:參考程式碼、資源、截圖與變數,以及圖層樹中繼資料與截圖
- 匯出資源,並把完整設計匯出存成 JSON 或當作快照匯入
- 渲染產生的程式碼並與 Figma 的渲染結果比對,提供錯誤、版面差異與像素差異圖
- 透過執行 Figma 外掛 API 腳本在開啟的檔案中建立與編輯設計,並放入本機圖片
- 搜尋檔案的設計系統,並管理設計元件與程式碼元件之間的 Code Connect 對應
- 查看連線狀態、配對碼、目前檔案與選取範圍
- 適用情境
- 適合希望編碼助理把 Figma 畫框實作為 Flutter、React 或 HTML + Tailwind 程式碼,或直接在開啟的 Figma 檔案中產生與修改設計,且不想使用 Figma API 權杖或受方案限制的情況。
- 執行需求
- 需要 Node.js 18+ 以及 macOS 或 Windows 上的 Figma Desktop;伺服器以 stdio 在本機執行,並透過 localhost 的 WebSocket(連接埠 3947)與 Figma 開發外掛通訊。安裝程式會註冊伺服器並印出配對碼,需在外掛中輸入。選用環境變數可設定資料資料夾、框架、Code Connect 路徑與允許的來源。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 figmcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
[figmcp: design and code, locally]
[figmcp]
Design and code, locally.
Turn Figma frames into Flutter and React code, and let your coding agent design in Figma.
No Figma API calls. No rate limits.
[npm version] [Node.js version] [macOS and Windows]
[figmcp MCP server – quality and maintenance score on Glama]
Website · Docs · Installation · Tools · Changelog
figmcp is a local MCP server that gives your coding agent the Figma file you have open in Figma Desktop. A development plugin streams the file to a server on your machine over localhost, so reads never touch the Figma REST API: no access token, no quota, no rate limit.
- Design to code. Flutter widgets for Flutter projects, HTML + Tailwind for static sites, React + Tailwind for everything else, with the assets and a screenshot to compare against.
- Design in Figma. The agent creates and edits frames in the open file with Figma plugin API scripts, one undo step per script.
- Your components. Map design components to code components with Code Connect.
- Works offline. Read saved snapshots when the plugin is closed.
- Any plan. Works on every Figma plan, including the free Starter plan. No Dev Mode seat needed.
Works with Claude Code, Cursor, Claude Desktop and any MCP client that runs stdio servers.
Quick start
Needs Node.js 18+ and Figma Desktop on macOS or Windows.
1. Run setup
It registers the server with Claude Code, copies the Figma plugin to your home folder, and prints your pairing code and the config for other MCP clients.
2. Import the plugin (once)
In Figma Desktop, go to Plugins › Development › Import plugin from manifest… and choose:
On macOS, press ⌘ ⇧ G in the file picker and paste the path. On Windows, paste it into the File name box.
3. Pair and ask
Restart your coding agent. In Figma Desktop, run Plugins › Development › figmcp and enter the pairing code. The dot turns green once it's connected. Then select a frame and ask:
Keep the plugin window open while you work. Full guide: figmcp.web.app/docs/installation.
Usage
Design to code
Select a frame, or paste a Figma link that has a node-id:
Projects with a pubspec.yaml get Flutter widgets, and SVGs and images are saved into the asset folders the pubspec declares. Static sites get HTML + Tailwind, and everything else gets React + Tailwind. React output uses the real font families, declares the design's variables as CSS (with a Tailwind 4 @theme), writes repeated items as data with .map() and names reused text styles, names assets after their layers with copy commands for public/figma, turns prototype taps, layer names and placeholders into buttons, links, landmarks and inputs, draws phone frames as screens that fill the viewport and desktop frames as pages whose full-width sections stretch. Its classes work in Tailwind 3.4 and 4. The code is a reference that your agent adapts to your project. More →
Design in Figma
Open the file in Figma Desktop, run the plugin and ask:
The agent builds the design with use_figma and checks each step with a screenshot. Each script is one undo step. More →
Code Connect
Mapped instances come back as your own components. Mappings are saved in .figma-local/code-connect.json in your project. More →
MCP clients
Claude Code is registered by setup. Restart it and check with /mcp.
Cursor, Claude Desktop and other clients: add the config that setup prints. It looks like this, with paths for your machine:
Step-by-step for each client, on macOS and Windows: figmcp.web.app/docs/configuration.
Tools
Arguments for each tool: figmcp.web.app/docs/tools.
How it works
The plugin reads the open file with the Figma plugin API and runs the scripts your agent sends. The server turns that into code, assets, screenshots and metadata. When the plugin is closed, reads fall back to the newest saved snapshot. More →
Configuration
Set these in the env of your MCP client config.
Update
Then restart your coding agent and run the plugin again. The plugin updates itself, so there's no need to import it again.
Troubleshooting
- The dot stays grey: start your coding agent first, then run the plugin again.
- Lost the pairing code: run setup again, or ask your agent to run
whoami. use_figmacan't edit the file: switch the file from Dev Mode back to Design mode.
More fixes: figmcp.web.app/docs/troubleshooting. Still stuck? Open an issue with the output of whoami.
Development
To work on the site: cd web && npm install && npm run dev. To publish it: npm run deploy.
License
Figma is a trademark of Figma, Inc. This project is not affiliated with Figma, Inc.
來源:README.md,提交 22892c3
工具
0版本歷史
2- v1.6.0最新Oct 19, 2026
- v1.4.2Oct 14, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分