figma-custom-mcp

figma-custom-mcp

Enables absolute/overlapping positioning, local image import, and strict schema validation in Figma, complementing the Plumb MCP server.

Category
Visit 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 supports absolute: true children inside auto-layout regions.
  • P0-2 — Local/custom image import. Plumb's image.src is 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 reads file:/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_OPERATION nodes, either authored fresh in a figma_design tree or combined from existing nodes via figma_boolean.
  • True grouping — real GROUP nodes via figma_group, with figma_ungroup reconstructing Figma's missing native ungroup.
  • Components, component sets, and variants — real COMPONENT/COMPONENT_SET structures with genuine variantProperties, 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 PaintStyle creation 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

License

MIT

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured