figma-custom-mcp
Enables absolute/overlapping positioning, local image import, and strict schema validation in Figma, complementing the Plumb MCP server.
README
figma-custom-mcp
A small MCP + Figma plugin that patches three specific, confirmed capability gaps in Plumb — it does not modify, fork, or replace Plumb, and is designed to be paired in Figma alongside it.
The gaps, and the full source-level evidence for them, are documented in
PLUMB_GAP_ANALYSIS.md (a from-source audit of Plumb v0.13.2). This project
implements the P0 and P1 items from that audit:
P0 — foundation
- P0-1 — Absolute / overlapping positioning. Plumb's DSL compiler forces every container into
auto-layout and never sets Figma's
layoutPositioning="ABSOLUTE", so overlapping compositions (badge over image, text over photo, etc.) are structurally impossible to build. This project's compiler defaults to free (x/y) positioning and supportsabsolute: truechildren inside auto-layout regions. - P0-2 — Local/custom image import. Plumb's
image.srcis always compiled into a web-search query against six fixed stock-photo providers; a user's own file can never enter a Plumb-built design. This project readsfile:/data:URIs directly, with typed errors and zero placeholder substitution. - P0-3 — Strict schema validation. Plumb's Zod schemas silently strip unknown/misspelled fields. Every
schema here is
.strict().
P1 — advanced construction primitives (all absent from Plumb entirely)
- Boolean operations (union/subtract/intersect/exclude) — real
BOOLEAN_OPERATIONnodes, either authored fresh in afigma_designtree or combined from existing nodes viafigma_boolean. - True grouping — real
GROUPnodes viafigma_group, withfigma_ungroupreconstructing Figma's missing native ungroup. - Components, component sets, and variants — real
COMPONENT/COMPONENT_SETstructures with genuinevariantProperties, via a"component"node type +figma_create_component_set. - Constraints — real
node.constraints, both for newly-authored and existing nodes. - Paint styles — real, idempotent-by-name
PaintStylecreation and application.
See docs/P0-CAPABILITY-MATRIX.md and
docs/P1-CAPABILITY-MATRIX.md for the full audit-item-by-item
traceability, and docs/ for the rest of the documentation set.
Status
P0 COMPLETE, P1 COMPLETE — see P0-FINAL-REPORT.md and
P1-FINAL-REPORT.md for the full acceptance-criteria checklists and real live-Figma
test results. tests/p1-live-screenshot.png is a real, live, 59+-node composition this project built and
screenshotted — overlapping images/shapes, real boolean-combined shapes, real component variants, real
groups, constraints, and a shared paint style — not a flattened image, not a mock.
Quickstart
npm install
npm run build
npm test
Then see docs/QUICKSTART.md to pair the Figma plugin and run the live end-to-end
test.
Documentation
docs/ARCHITECTURE.mddocs/P0-CAPABILITY-MATRIX.md/docs/P1-CAPABILITY-MATRIX.mddocs/P0-TOOLS.md(all 13 tools, P0 + P1)docs/P0-DESIGN-SCHEMA.md(includes P1 additions)docs/P0-TEST-PLAN.md/docs/P1-TEST-REPORT.mddocs/P0-IMPLEMENTATION.md/docs/P1-IMPLEMENTATION.mddocs/P0-LIMITATIONS.mddocs/QUICKSTART.md
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。