Skip to main content
Glama
figma-custom-mcp

figma-custom-mcp

figma-custom-mcp

一个轻量级 MCP + Figma 插件,修补了 Plumb 中三个已确认的具体能力缺口——它不修改、复刻或替换 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 始终编译为针对六个固定图库提供商的网络搜索查询;用户的本地文件永远无法进入 Plumb 构建的设计。本项目直接读取 file:/data: URI,提供类型化错误,且不使用任何占位符替换。

  • P0-3 — 严格模式 schema 校验。 Plumb 的 Zod schema 静默丢弃未知/拼写错误的字段。本项目的每个 schema 均使用 .strict()。

完整的逐项审计追踪请参见 docs/P0-CAPABILITY-MATRIX.md,其余文档集请参见 docs/。

状态

P0 已完成——参见 P0-FINAL-REPORT.md 获取完整的验收标准清单、实机 Figma 测试结果,以及本项目构建的实际合成效果截图(真实的 Figma 重叠节点、真实的本地图片、真实的旋转/渐变/效果——非扁平化图像)。

Related MCP server: pholly-figma-mcp

快速入门

npm install
npm run build
npm test

然后请参阅 docs/QUICKSTART.md 以配对 Figma 插件并运行实时端到端测试。

文档

许可证

MIT

Available Tools

7 tools
figma_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

    A3.5/5.0

    Scored across 7 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables 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.
      10
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Local-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.
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables 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.
      2
      MIT
    • A
      license
      C
      quality
      B
      maintenance
      Enables 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.
      23
      1
      MIT