Skip to main content
Glama
figma-custom-mcp

figma-custom-mcp

figma-custom-mcp

Небольшой MCP + плагин для Figma, который закрывает три конкретных, подтверждённых пробела в возможностях Plumb — он не модифицирует, не форкает и не заменяет Plumb, и предназначен для совместной работы с ним в Figma.

Пробелы и полные доказательства на уровне исходного кода задокументированы в PLUMB_GAP_ANALYSIS.md (аудит исходного кода Plumb v0.13.2). Этот проект реализует именно те пункты P0 из этого аудита:

  • P0-1 — Абсолютное / перекрывающееся позиционирование. Компилятор DSL в Plumb принудительно помещает каждый контейнер в авто-раскладку и никогда не устанавливает layoutPositioning="ABSOLUTE" в Figma, поэтому перекрывающиеся композиции (значок поверх изображения, текст поверх фото и т.д.) структурно невозможно построить. Компилятор этого проекта по умолчанию использует свободное (x/y) позиционирование и поддерживает дочерние элементы с absolute: true внутри областей с авто-раскладкой.

  • P0-2 — Локальный / пользовательский импорт изображений. image.src в Plumb всегда компилируется в поисковый запрос по шести фиксированным стоковым фотобанкам; собственный файл пользователя никогда не может попасть в дизайн, созданный Plumb. Этот проект напрямую читает URI file:/data: с типизированными ошибками и без подстановки заполнителей.

  • P0-3 — Строгая валидация схемы. Zod-схемы Plumb молча отбрасывают неизвестные / с ошибками написанные поля. Каждая схема здесь — .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