figma-custom-mcp
figma-custom-mcp
3つの特定の、確認された機能ギャップを修正する小さなMCP + Figmaプラグインです。Plumb を修正、フォーク、または置き換えるものではなく、Figma内でPlumbと並べて使用するように設計されています。
ギャップとその完全なソースレベルの証拠は、PLUMB_GAP_ANALYSIS.md(Plumb v0.13.2のソースからの監査)に文書化されています。このプロジェクトは、その監査のP0項目を正確に実装しています:
P0-1 — 絶対配置/重なり配置。 PlumbのDSLコンパイラはすべてのコンテナを自動レイアウトに強制し、Figmaの
layoutPositioning="ABSOLUTE"を決して設定しないため、重なり合う構成(画像の上のバッジ、写真の上のテキストなど)を構造的に構築することが不可能です。このプロジェクトのコンパイラはデフォルトで自由(x/y)配置を使用し、自動レイアウト領域内でabsolute: trueの子要素をサポートします。P0-2 — ローカル/カスタム画像のインポート。 Plumbの
image.srcは常に6つの固定ストックフォトプロバイダに対するウェブ検索クエリにコンパイルされます。ユーザー自身のファイルがPlumbで構築されたデザインに入ることは決してありません。このプロジェクトはfile:/data:URIを直接読み取り、型付きエラーとプレースホルダーの置換なしで処理します。P0-3 — 厳格なスキーマ検証。 PlumbのZodスキーマは未知のフィールドやスペルミスのフィールドを黙って削除します。ここでのすべてのスキーマは
.strict()です。
完全な監査項目ごとのトレーサビリティについてはdocs/P0-CAPABILITY-MATRIX.mdを、残りのドキュメントセットについてはdocs/を参照してください。
Status
P0完了 — 完全な受入基準チェックリスト、実際のライブFigmaテスト結果、およびこのプロジェクトが構築した実際の構成(実際の重なり合うFigmaノード、実際のローカル画像、実際の回転/グラデーション/エフェクト — フラット化された画像ではありません)のスクリーンショットについては、P0-FINAL-REPORT.mdを参照してください。
Related MCP server: pholly-figma-mcp
Quickstart
npm install
npm run build
npm test次に、docs/QUICKSTART.mdを参照して、Figmaプラグインをペアリングし、ライブのエンドツーエンドテストを実行してください。
Documentation
License
MIT
Available Tools
7 toolsfigma_delete_nodeC
Delete an existing node by id.
Inputs: nodeId (required).
figma_designA
Build or sync a design into Figma from a strict JSON design document (see P0-DESIGN-SCHEMA.md). Supports genuine overlapping/absolute-positioned nodes and local image assets — the two capabilities Plumb cannot provide (see PLUMB_GAP_ANALYSIS.md §5, §15). Unknown/misspelled fields are rejected, not silently ignored. Pass dryRun:true to validate + compile without touching Figma.
Inputs: doc, dryRun.
figma_nodeA
Read back a node's full structure (position, size, fills, strokes, effects, text, layout, children) for verification. Pass nodeId, or omit for the whole current page.
Inputs: depth, nodeId.
figma_patch_nodeA
Patch a subset of properties on an EXISTING node (position, size, rotation, opacity, fill, stroke, radius, effects, blendMode, clip, visible) without touching siblings or re-stating the whole subtree.
Inputs: nodeId (required), x, y, width, +4 more.
figma_reorder_nodeA
Change an existing node's z-order among its siblings without a full re-build. to is a 0-based child index, or "front"/"back".
Inputs: to (required), nodeId (required).
figma_screenshotA
Export a node as PNG or SVG at a configurable scale (unlike Plumb's bulk-export path, scale is not hardcoded — see gap analysis §25).
Inputs: scale, format, nodeId.
figma_statusB
Bridge/pairing status for the custom Figma MCP (separate from, and compatible with, Plumb — different port, different plugin).
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool targets a distinct action (delete, reorder, export, status, design/create, read, patch). The only potential overlap is between figma_design and figma_patch_node, but design is for initial creation/sync while patch is for targeted updates, so the boundary is clear.
All tools use the prefix 'figma_' followed by a descriptive verb_noun pattern (e.g. figma_delete_node, figma_reorder_node). The only minor inconsistency is the verb choice: 'screenshot' is less typical than 'export', and 'status' is a noun rather than an action, but overall the pattern is clear and predictable.
7 tools is well-scoped for a Figma design tool MCP server. Each tool covers a core operation (CRUD, reorder, export, status) without being too many to navigate or too few to be useful.
The server covers essential operations: create (via figma_design), read (figma_node), update (figma_patch_node, figma_reorder_node), delete (figma_delete_node), and export (figma_screenshot). A minor gap is the lack of a dedicated tool for listing node children or searching nodes, but the read tool with nodeId omission provides a reasonable workaround.
Maintenance
Related MCP Connectors
The Figma MCP server brings Figma design context directly into your AI workflow.
Design canvas for agents: create, edit, render and export Figma-shaped designs over MCP.
Render, verify, describe, and safely edit Mermaid diagrams through MCP.
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables MCP clients to read design structure, take screenshots, create nodes, and edit UI directly on Figma canvas via a bridge between MCP and Figma Desktop.10MIT
- AlicenseNot gradedqualityBmaintenanceLocal-first MCP bridge for live Figma documents, enabling design inspection, editing, asset export, component authoring, and variable management through a plugin and WebSocket server without consuming Figma REST API requests.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients to read and modify the currently open Figma design file through a paired local Figma plugin, supporting operations like creating nodes, editing properties, and exporting PNG/SVG.2MIT
- AlicenseCqualityBmaintenanceEnables stdio MCP clients such as Cursor and Claude Code to read and modify the currently open Figma Desktop file, export selected nodes as local PNG/SVG files, and create or edit basic canvas nodes using precise layout data for pixel-level reconstruction.231MIT