figma-bridge
Connects to the open Figma desktop file through a local plugin to read and edit designs: inspect document, pages, selection, and nodes; export PNG/SVG images; create frames, text, shapes, and SVG nodes; manage auto layout, fills, strokes, effects, components, variants, instances, variables, and batched operations.
Syncs Storybook 8+ component exports into Figma, turning stories into component sets and variants, creating theme token variable collections, and safely re-syncing changed components while preserving existing instances.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
figma-bridge
A free, self-hosted MCP server for Figma, plus a Storybook-to-Figma component sync.
figma-bridge lets AI agents such as Claude Code, Claude Desktop, Cursor and GitHub Copilot read and edit the Figma file you have open. It works through a small local Figma plugin instead of the Figma REST API, so it needs no API key and has no rate limits.
Why
Most Figma MCP servers wrap the REST API. Its per-plan rate limits run out within minutes once an agent iterates on a design, and the official Dev Mode MCP needs a paid seat.
figma-bridge talks to the Figma desktop app through a development plugin instead:
there are no quotas
it works on the free Starter plan
it sees the file live, including unsaved changes
it can write as well as read
REST-based MCP servers | figma-bridge | |
Figma API key | required | not needed |
Rate limits | per plan | none |
Write to the file | mostly read-only | yes |
Storybook → Figma components | no | yes |
Related MCP server: AI Agents Talk to Figma MCP
Install
You need Node 22+ and the Figma desktop app.
npx figma-bridge-mcp setupThe setup command does three things:
It registers the server in every AI tool it finds: Claude Code, Claude Desktop, Cursor and VS Code.
It unpacks the Figma plugin.
It copies the path to the plugin's manifest.
Then, in Figma desktop, go to Plugins → Development → Import plugin from manifest… and paste that path.
Run the plugin. The first time, your AI asks for the code the plugin shows. After that it connects by itself.
Claude Code
claude mcp add --scope user figma -- npx -y figma-bridge-mcpClaude Desktop or Cursor (.mcp.json)
{ "mcpServers": { "figma": { "command": "npx", "args": ["-y", "figma-bridge-mcp"] } } }VS Code Copilot (.vscode/mcp.json)
{ "servers": { "figma": { "type": "stdio", "command": "npx", "args": ["-y", "figma-bridge-mcp"] } } }For Claude Desktop, you can instead download figma-bridge.mcpb from the latest release and double-click it.
Plugin: download figma-bridge-plugin.zip from the latest release, unzip it, and import its manifest.json as described above.
Pairing: run the plugin. It shows a code such as 4827-1930. Tell your agent "pair Figma with code 4827-1930".
Run npx figma-bridge-mcp setup --dry-run to see what setup would change without changing it. Other options:
--only=claude-code,cursorregisters the server in those clients only.--no-clientsonly unpacks the plugin.
Setup never removes other servers, and it saves a .bak copy of every config file it changes.
Use it
> Export the selected frame as PNG and tell me what's off with the spacing.The agent calls get_selection, then export_node_image, and looks at the image itself.
What's inside
Tool | Does |
| Whether the plugin is connected, and to which file |
| Pair the plugin using the code it shows (once per machine) |
| File name, current page and every page |
| The selected nodes on the current page |
| One node with its styles and children, to a chosen depth |
| Search by name, type or pluginData on the page or the whole file |
| A node as PNG (returned as an image the agent can see) or as SVG |
| A frame, optionally with auto layout |
| A text layer; falls back to Inter when a font is missing |
| Shapes and SVG markup |
| Direction, gap, padding, alignment, wrap and hug/fill sizing |
| Hex colors, linear gradients, shadows, blurs, radii |
| Layout and structure |
| Build nodes from |
| Components and sets, with variants and component properties |
| A new component, or turn an existing node into one |
| Components into a set, named |
| Boolean, text, instance-swap or variant property, bound to a layer |
| Place an instance (pick a variant by props) and set its props |
| Collections, modes and values per mode |
| Collections with named modes; variables with a value per mode |
| A variable on a fill/stroke color, radius, spacing, size … |
| Many operations in one round trip, with named refs |
| Upsert components from a Storybook export (see below) |
Colors are hex (#1E3A8A, #1E3A8A80). New nodes go to the current page, centred in the viewport, unless you pass parent, x or y. In a batch, name a result with ref and use it later as @ref:
{
"operations": [
{
"op": "create_frame",
"ref": "card",
"args": { "width": 320, "height": 120, "autoLayout": { "direction": "vertical", "gap": 8, "padding": 16 } }
},
{ "op": "create_text", "args": { "parent": "@card", "text": "Line 2", "fontStyle": "Bold", "fontSize": 18 } }
]
}The free Starter plan allows one mode per variable collection. When a second mode is refused, create_variable_collection answers PLAN_LIMIT and keeps the collection with its first mode.
Storybook → Figma
Turn any Storybook 8+ into real Figma components in two steps.
Export. In a clone of this repo, run
npm installandnpx playwright install chromium, thennpm run exportwithSTORYBOOK_URLset (see Configuration). It renders every story in Playwright, converts the DOM to Figma layers with@builder.io/html-to-figma, and writesexports/figma-export.json. A Storybook with about 500 stories takes around 5 minutes.Sync. Ask your agent: "sync
exports/figma-export.jsoninto Figma". That callssync_storybookwith the file path or a URL. PassdryRunto see what would change first.
The sync does the following:
Variants. Each component becomes a component set. Its
select,radioandbooleanargTypes become variant properties (size=small, loading=false). When that would mean too many variants, it uses one variant per story instead (Story=Default).Themes. The theme colors become a Storybook tokens variable collection with one mode per theme. Fills and strokes that match a token in every theme are bound to it. On the Starter plan, which allows one mode, you get one collection per theme instead.
Re-syncing is safe. Each component remembers its story id and a content hash. Unchanged stories are skipped, and changed ones are rebuilt in place, so their node ids stay and existing instances keep working. Stories that disappeared are reported as orphaned and never deleted.
Layout. There is one section per category, with every set labelled. A re-sync only places new sets, so anything you moved by hand stays where it is.
There is no "run arbitrary JS" tool unless you set FIGMA_BRIDGE_ALLOW_EVAL=1.
Configuration
Variable | Default | Purpose |
|
| WebSocket port. The plugin manifest only allows |
| saved file | A fixed token instead of the one saved after pairing |
| off | Registers the |
| Storybook to export | |
|
| |
| all | Comma-separated title prefixes to export |
| Comma-separated title prefixes to skip | |
|
| Stories rendered in parallel |
|
| The Storybook global that switches themes |
The token is saved in %APPDATA%/figma-bridge/token on Windows and in ~/.config/figma-bridge/token elsewhere. When two clients start the server, the first one owns the port and the second one answers NOT_CONNECTED.
FAQ
Can I use Figma with Claude without a Figma API key? Yes. figma-bridge never calls the Figma REST API. It drives the Figma desktop app through a plugin you run yourself, so no API key or personal access token is involved.
Does it hit Figma's MCP or API rate limits?
No. Rate limits apply to the REST API and to Figma's hosted Dev Mode MCP. All figma-bridge traffic stays on your machine, between the MCP server and the plugin, over 127.0.0.1.
Does it work on the free Figma Starter plan? Yes. Development plugins work on every plan. Starter can't publish team libraries, though, so the Storybook sync writes components into the design file itself.
Can the AI edit my design, or only read it?
Both. Every tool is validated with zod. There is no tool that runs arbitrary code unless you turn it on with FIGMA_BRIDGE_ALLOW_EVAL=1.
Is it safe to open a port on localhost?
The server only listens on 127.0.0.1. A plugin must be paired with a one-time code before it can do anything. The server generates that code and shows it only inside Figma, so a website you have open can't pair itself.
How do I turn my Storybook into Figma components?
Export it with npm run export (point STORYBOOK_URL at any Storybook 8+), then let your agent call sync_storybook on the file. Each component's argTypes become Figma variants, its themes become variable modes, and re-syncing updates the components in place. See Storybook → Figma.
How is this different from the official Figma MCP? The official Figma MCP needs a paid Dev Mode seat and is rate-limited. figma-bridge is free and unlimited, and it adds three things:
token-safe pairing
an npx install with zero dependencies
a Storybook-to-components sync
Repository layout
Path | Purpose |
| One zod schema per operation. Each entry is exposed as an MCP tool automatically. |
| Bridge frames, error codes and chunking, shared by the server and the plugin. |
| The MCP server (stdio) and the WebSocket bridge on |
| The Figma plugin. |
| Vitest suites, including a mock plugin client, so the bridge is tested without Figma. |
To add a tool, add a schema to ops.ts and a handler in src/plugin/handlers/, then map the handler in code.ts.
Develop
npm install
npm run dev # esbuild watch: server + plugin
npm run build # dist/server.js (self-contained), plugin/code.js, plugin/ui.html
npm run typecheck # tsc over server, shared, tests and plugin
npm run lint # ESLint (flat config)
npm run format # Prettier write
npm test # vitest: protocol, schemas and the bridge against a mock pluginLogs go to stderr, because stdout belongs to the MCP transport. To try a local build, point your MCP client at node <repo>/dist/server.js and import plugin/manifest.json from the repo.
Releases
Push a vX.Y.Z tag that matches package.json. The release workflow then runs the checks and attaches figma-bridge-plugin.zip to a GitHub release. It also publishes figma-bridge-mcp to npm when the NPM_TOKEN secret is set.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Keeps Figma in sync with your Storybook and sends designers' changes to your coding agent.
Connect AI coding agents to Anima Playground, Figma, and your design system.
The Figma MCP server brings Figma design context directly into your AI workflow.
Give AI agents your deeepSpace design system: components, tokens, styles and code mappings.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI coding agents to read and write a user's Figma file through the Figma Plugin API, offline and privately, without API tokens or rate limits.-
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to read, analyze, and modify Figma designs, including bulk style updates, accessibility audits, comment triage, and code generation from designs.844 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to read, create, edit, and organize Figma documents directly through a local plugin bridge, without needing a Figma AI subscription.3Apache 2.0
- AlicenseAqualityBmaintenanceEnables AI coding agents to read and edit the file currently open in Figma Desktop through a local development plugin, supporting node inspection, JSON/image exports, and arbitrary Plugin API scripts without REST API rate limits.79 npmMIT