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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.