
Figme
io.github.ntson9p由 GitHub 帳號 ntson9p 發布v1.1.1更新於 Oct 24, 2026
MCP server that reads local Figma .fig files, fully offline
概覽
離線讀取本機 Figma .fig 檔案,讓助理檢視圖層、樣式、元件、設計變數與圖片,並把畫框算繪成 PNG 或 SVG。
- 可以做什麼
- 彙整檔案概況:頁面、節點數量、元件、變數與圖片數量
- 檢視結構:圖層樹、單一圖層的尺寸與位置、依名稱或文字搜尋圖層
- 檢查樣式:填色、描邊、效果、排版、以 CSS flexbox 表示的自動版面,以及設計變數
- 檢視元件與實例,包括實例相對元件做了哪些覆寫
- 擷取內嵌圖片與縮圖,或讀取原始向量資料
- 把任一圖層或頁面算繪為 PNG 或 SVG
- 適用情境
- 適合讓助理依本機儲存的 .fig 設計稿撰寫或核對介面,例如把某個畫框轉成元件、把顏色變數轉成 CSS 自訂屬性。也適合沒有 Figma 帳號或 API 權杖的離線情境。
- 執行需求
- 透過 npx 以 stdio 在本機執行,需要 Node.js 22.15 或更新版本。需先在 Figma 將設計另存為 .fig 檔案,並向助理提供完整路徑。不需帳號、權杖或網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Figme,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
figme
An MCP server that lets your AI agent read Figma .fig
files — offline, with no Figma account or API token.
[npm] [Node.js] [License: MIT]
Save a design from Figma as a .fig file, and your agent can read everything in it: layers and
layout, colours, text, components, design tokens and images. figme can also draw any frame as a
picture, so the agent can compare what it built with the design.
Why figme
- No account, token or network. figme reads the file on your disk and never contacts figma.com.
- Everything in the file. Layers and geometry, auto-layout, fills, strokes, effects, text with mixed styles, components and instances, variables, prototype links and images. Layout comes back as CSS flexbox, colours as hex, and colours bound to variables keep their token names.
- What Figma shows, not just what it stores. The layers inside a component instance come back with the instance's overrides applied, under the ids Figma itself gives them, and a shared style reports its live value rather than the stale copy cached beside it.
- Pictures as well as numbers.
fig_renderdraws any layer as a PNG or SVG. - Small responses. Even on a 116,000-node file, a response stays around 20 KB. Results are shallow by default, filterable and paged.
- Robust to Figma updates. Every
.figcarries the schema that describes it, and figme decodes the file with that schema, so fields Figma adds later don't break it.
Quick start
You need Node.js 22.15 or newer.
1. Save the design as a .fig file. In Figma, choose File → Save local copy… If it's a
Community file, click Open in Figma first.
2. Add figme to your agent. In Claude Code:
For Cursor, VS Code, Windsurf and other clients, see Set up your client.
3. Ask. Give the full path to the file, and paste a Figma link if you have one:
Using figme, read /Users/me/Desktop/App.fig and build this frame as a React component: https://www.figma.com/design/AbC123/App?node-id=3017-121
The agent picks the tools from there. A few more things to try:
- "List the pages and the most-used components in /Users/me/Desktop/App.fig."
- "Turn the colour variables in /Users/me/Desktop/App.fig into CSS custom properties."
- "Render the sign-in screen in /Users/me/Desktop/App.fig to /Users/me/Desktop/sign-in.png."
Set up your client
Every client runs the same command, npx -y figme-mcp. Only the place you put it changes.
Claude Code
To share the server with everyone who works on a repository, commit a .mcp.json at its root:
The Claude Code extensions for VS Code and JetBrains use this same configuration. They don't read the editor's own MCP settings.
Cursor
Add this to ~/.cursor/mcp.json for every project, or to .cursor/mcp.json for one:
VS Code (GitHub Copilot)
From a terminal:
Or add this to .vscode/mcp.json. VS Code uses the key servers, not mcpServers:
Then switch the Chat view to Agent mode.
Windsurf
Add this to ~/.codeium/windsurf/mcp_config.json:
Other clients
Any client that can start a local (stdio) MCP server works. Give it:
Config file locations change between client releases. If a path above doesn't match what you see, check your client's MCP documentation.
On Windows, some clients can't find npx by themselves. If the server doesn't start, run it
through cmd:
Tips
-
Always give the full path to the file, even with a link. A Figma link can't tell figme which file on your disk it belongs to, and a relative path is resolved from wherever your client started the server.
-
Don't let the agent open the Figma link. The page needs a login, so the agent gets nothing useful back, and it may then invent a design from the words in the URL. figme tells agents not to; if yours tries anyway, stop it.
-
"Node not found" usually means the saved file isn't the one the link points to. Compare the document name that
fig_overviewreports with the name in the link, or ask the agent to find the layer by name instead. -
Big files need memory. A 39 MB
.figtakes about 900 MB of RAM once parsed, and figme keeps up to 4 parsed files. On a smaller machine, keep just one:
Tools
Your agent picks these on its own; you don't need to name them.
Parameters and example responses for each are in docs/tools.md.
Limitations
- Read-only. figme never changes your
.fig. It writes a file only when you askfig_imageorfig_renderto save one. - A snapshot, not a live link. A
.figholds the design as it was when you saved it. When the design changes, save it again; figme picks up the new file. - Rendering is close, not pixel-perfect.
fig_renderapproximates a few effects, such as background blur and angular gradients, and skips a few things, such as emoji. Every render lists what it approximated or skipped. See docs/rendering.md. - Libraries from other files aren't included. Styles, variables and components published from another file show up as references, without their values.
- Vector paths aren't decoded.
fig_blobreturns their raw bytes.
Contributing
Issues and pull requests are welcome. CONTRIBUTING.md explains how to build from source and run the tests, and how the parser works.
License
來源:README.md,提交 3c6ab58
工具
0版本歷史
1- v1.1.1最新Sep 21, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分