layerbridge
Allows reading, editing, checking, and exporting the open Figma file, including FigJam boards and Slides decks, with tools for design context, accessibility checks, design-system linting, asset export, token sync, code generation, and layer manipulation.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@layerbridgeCheck the selected frame for accessibility issues."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Layerbridge
A Figma plugin and a local MCP server that let AI tools — Claude Code, Claude Desktop, Cursor, VS Code, Windsurf, Codex, anything that speaks the Model Context Protocol — read, edit, check and export the Figma file you have open. Everything runs on your computer: no API rate limits, no Figma token needed.
116 tools for Figma design files, FigJam boards and Slides decks, plus 6 optional REST tools.
Quality checks nobody else ships together: WCAG contrast (also over images and gradients), target size, design-system lint and one-step fixes that bind raw values to your variables.
Design ↔ code: compact code context (JSON, JSX + Tailwind, HTML + CSS), token export and import, pixel diffs between a design and the page you built, a local page imported as layers.
Reliable on big files: every call has a timeout that names the stuck layer, long jobs report progress, bulk exports dedupe and write a manifest.
Derived from gethopp/figma-mcp-bridge (MIT). See CHANGELOG.md and NOTICE.md. Not affiliated with, endorsed or sponsored by Figma, Inc.
How it works
AI tool ──stdio──▶ MCP server (Node, 127.0.0.1:1995) ◀──WebSocket── Figma plugin ──Plugin API──▶ your open fileThe plugin can only reach the file it is running in, and only while it is open. The server only listens on your own machine.
Related MCP server: figma-mcp
Install
Requires Node 20+ and Figma desktop (recommended — see Limits).
Add the server to your AI tool
Claude Code (server + skills):
/plugin marketplace add muradyf/layerbridge, then/plugin install layerbridge@layerbridgeClaude Code (server only):
claude mcp add --transport stdio --scope user layerbridge -- npx -y layerbridge@latestClaude Desktop: open the
.mcpbfile from the latest release.Cursor, VS Code, Windsurf, Codex:
npx -y layerbridge@latest setup --client <name>prints the config. Add--writeto write it for Cursor, Windsurf or Claude Desktop (it shows the diff and keeps a backup).
Add the plugin to Figma (once): run
npx -y layerbridge@latest setup. It prints a manifest path. In Figma desktop: Plugins → Development → Import plugin from manifest… → that path. For FigJam boards and Slides decks, also import the second manifest it prints (Figma won't let one plugin run in both Dev Mode and FigJam). Re-runsetupafter updating.Restart the AI tool.
Something not working? npx -y layerbridge@latest doctor checks Node, the port, the access token, connected files and the installed plugin.
Every session
Open the Figma file.
Plugins → Development → Layerbridge. The panel shows a green dot when connected.
Ask your AI tool to work on the file. Keep the plugin window open; it can be collapsed.
The server also offers prompts — implement-design, audit-design, build-in-figma, sync-tokens, troubleshoot — and the Claude Code plugin adds skills for the same workflows plus asset export.
Tools
Area | Tools |
Read |
|
Code |
|
Quality |
|
Export |
|
Sync |
|
Create & edit |
|
Components |
|
Styles |
|
Variables |
|
Prototype & motion |
|
Handoff |
|
Pages & canvas |
|
FigJam |
|
Slides |
|
REST (optional) |
|
Deleting pages, slides, styles or variables requires confirm: true. Bulk changes (fix_design_system, import_tokens) show what they would do unless you pass dryRun: false.
Quality checks
check_accessibility— WCAG 2.2 text contrast (1.4.3 AA / 1.4.6 AAA), target size (2.5.8 at 24px with the spacing exception, 2.5.5 at 44px) and very small text. Contrast is computed from the layers behind each text; over images, gradients, blurs or blend modes the containing layer is rendered and the pixels behind the text are sampled, reporting the worst background. Each failure names the nearest colour variable or style in the file that would pass.outputDirwrites JSON and Markdown reports;annotate: trueadds Figma annotations to failing layers (works in Dev Mode) and replaces its own on re-runs. APCA Lc is included for information.lint_design_system— unbound colours, spacing and radii (with the matching variable or style, respecting scopes and modes), text without a style, detached instances, values off your spacing/radius scale, default layer names, hidden and empty layers. Counts per rule and a score.fix_design_system— applies the lint's safe fixes: binds variables that resolve to the same value in the layer's mode (colours within ΔE 2), single-paint styles and exactly matching text styles, and reports what it skipped and why.
Design ↔ code
get_code_contextreads a layer once and returns a compact tree: flex/grid layout, deduped style tables, mixed-text segments, instances with variant props, icons collapsed to an asset hint, images as refs. Every variable-bound value carries its variable name and the same CSS custom propertyexport_tokenswrites.format: "jsx-tailwind"or"html-css"returns starter code headed by the tokens, components, icons and images it needs.import_tokensbrings W3C DTCG JSON, CSS custom properties or Tailwind v4@themeinto local variables.:rootis the default mode;[data-theme="x"],.darkand@media (prefers-color-scheme: dark)are other modes. It round-tripsexport_tokensoutput and never deletes.compare_to_imagediffs a layer against a screenshot of what you built, writes design, actual and diff images, and lists the areas that differ with the layers under each.import_urlturns a page running on your machine into editable layers.The URL options of
compare_to_imageandimport_urlneed Playwright, which is not installed by default: inserver/runbun add playwrightthennpx playwright install chromium, or pointFIGMA_BRIDGE_PLAYWRIGHTat an existing install. JPG screenshots needjpeg-js.
Optional REST tools
Comments, reading version history, listing a team's files and rendering files that aren't open are not possible from a plugin. To enable them, create a personal access token (Figma → Settings → Security) and set FIGMA_ACCESS_TOKEN in the server's environment. These calls count against Figma's REST rate limits, which are very low for files on the Starter plan and for View/Collab seats.
Configuration
Variable | Default | Purpose |
|
| Port, 1995–1999. Pick the same port in the plugin panel. |
| — | Extra folders tools may write to, separated by |
| — | Enables the REST tools. |
| — | Set to |
| — | Folder of an existing Playwright install for the URL tools. |
| — | Set to |
Several AI-tool windows can share one Figma connection: the first server becomes the leader and the others forward to it.
Limits
One file at a time per plugin window, and only while the plugin is open. A plugin cannot see other files, your file list or comments (use the REST tools).
Figma desktop is recommended. In the browser, Chrome asks for permission before a page can reach
localhost(Local Network Access); allow it, or use desktop.Dev Mode is read-only, except annotations, dev resources and exports.
Library components can be used once they are in the file; a plugin cannot browse a team library's components.
Not in Figma Community. Figma's review guidelines do not accept plugins that expose an MCP server, so the plugin is installed from its manifest.
Privacy and security
Nothing leaves your computer except, when you enable them, REST calls to
api.figma.comwith your own token.The server listens on
127.0.0.1only. Its RPC endpoint needs a token stored in a per-user temp folder and rejects browser requests; the WebSocket refuses connections from web pages.File-writing tools can only write inside the allowed folders.
run_scriptis off unless you turn it on. The URL tools open only local pages unless you allow others.The plugin's network access is limited to
ws://localhost:1995–1999.
Troubleshooting
Symptom | Fix |
Panel says disconnected | Run |
Panel says "Taken over" | The same file opened the plugin in another window, which now holds the connection. Close one. |
An export times out | Run |
A FigJam or Slides tool is refused | Run the FigJam & Slides plugin (the second manifest) in that file. |
Tools missing after an update | Re-run |
From a terminal, node scripts/rpc.mjs <tool> '<json>' calls any tool through the running server.
Development
Requires Bun.
cd plugin && bun install && bunx tsc --noEmit && bun run test && bun run build
cd server && bun install && bun run build && bun run test # fake plugin over a real socket
node scripts/bundle-plugin.mjs # (in server/) copy the built plugin into the npm packageTo run from a checkout, import plugin/manifest.json (and plugin/manifest.boards.json) in Figma and point your AI tool at node <repo>/server/dist/index.js. Windows-only diagnostics live in scripts/windows/.
License
MIT — see LICENSE.md and NOTICE.md. Original work © GETHOPP LTD; changes © Murad Yousuf.
This server cannot be deployed
Maintenance
Related MCP Connectors
The Figma MCP server brings Figma design context directly into your AI workflow.
Access and maintain design system docs, tokens, components, skills, and contexts across any project.
Direct access to Cypress tests results and accessibility reports in your AI workflow.
- mcp-serverOAuthcom.make
Give your AI agents the tools to build, manage, and run automation workflows.
Related MCP Servers
- AlicenseBqualityAmaintenanceEnables AI assistants to read, analyze, and modify Figma designs, manage design tokens, and create prototype connections, all while keeping data local.6369 npm9MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI coding assistants to draw UI directly on a Figma Desktop canvas and read existing designs back as structured JSON, tokens, CSS, and screenshots, all over a localhost bridge without external API keys.78 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to inspect Figma selections, navigate pages, render previews, generate starter code, and submit user-approved canvas edits through a local bridge.3 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to access and manipulate Figma designs, including extracting design systems, creating and debugging UI components, and syncing design tokens bidirectionally.27,155 npmMIT