gethopp/figma-mcp-bridge
A Figma plugin and MCP server for live design access without REST API quotas
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Figma MCP Bridge pairs a TypeScript/React development plugin running inside Figma with a TypeScript/Node.js MCP server. The plugin accesses the open document and connects to ws://localhost:1994/ws. The server keeps a WebSocket session registry keyed by fileKey. An MCP tool call goes to the plugin for the selected file, and the result returns through the bridge to the client. Document access on this path does not use Figma’s REST API.
The server separates startup (server/src/index.ts), tool definitions (tools.ts), and WebSocket routing (bridge.ts). leader.ts owns the HTTP service and bridge, while follower.ts proxies requests over HTTP. node.ts handles role switching, and election.ts handles leader election and health monitoring. This lets multiple MCP client processes share one active bridge while that bridge maintains simultaneous sessions with several files. One active bridge does not mean one connected file.
Key Capabilities & Differentiators
The read tools cover the current page tree, selection, individual nodes, and a depth-limited design context. They also expose file metadata, local paint, text, effect, and grid styles, plus variable collections, modes, and values. Exports support PNG, SVG, JPG, and PDF as Base64 responses or files on the server’s local filesystem. Prototype tools inspect reactions and trace navigation, including nested branch conditions; in Figma Design, set_reactions replaces the target node’s reactions.
Figma Design supports file edits such as node creation and batch property updates. apply_paint_style replaces fills or strokes with a linked local paint style, returns per-node errors in a batch, and does not import shared library styles. Dev Mode is read-only. FigJam supports board edits such as creating stickies and connectors, but not prototype tools, Auto Layout, or motion tools. The release history confirms component creation from a node and variant combining; it does not establish broad component or instance editing.
Trade-offs & Limitations
Compared with a REST-based tool such as Figma-Context-MCP, the plugin avoids spending REST API quota on tool calls and can read the live selection or edit an open file. The cost is a desktop-only installation step and dependence on an active plugin session for each target file. This favors interactive design-to-code work over unattended ingestion from file links. For complex pages, prefer selection or depth-limited reads before requesting a full tree or embedding Base64 exports in model context.
The leader binds to 127.0.0.1 by default, and its endpoints have no authentication. Changing FIGMA_BRIDGE_HOST for a VM or container can expand who can reach the bridge; do not expose it on a public or untrusted network. Keep run_script off unless specifically needed. Its opt-in is checked by the active leader, so setting it only on a follower does not make the tool available. Local bridge transport also does not guarantee that the MCP client keeps returned design content on the device.
Hardware & Deployment Guide
Run the development plugin in Figma Desktop on macOS or Windows. The browser client cannot import it. Download the plugin from a release, import plugin/manifest.json via the Figma Development menu, and open the plugin in each file you want to query. Configure the MCP client to launch npx -y @gethopp/figma-mcp-bridge; pin a tested package version for a repeatable rollout.
For source builds, install root tooling with Bun, then run bun install and bun run build separately in server/ and plugin/. Point the MCP client at server/dist/index.js with node. The self-hosted bridge still needs a live Figma desktop session. Release v0.0.27 added local paint style application; v0.0.28 added component creation from nodes and variant combining; v0.0.29 added set_reactions. Validate the plugin and server together before adopting the newer write tools.
list_files discovers active plugin sessions, and fileKey selects a connected file.set_reactions replaces rather than merges a node’s reactions.run_script is disabled by default.Design-to-code teams that work in Figma Desktop and need live selections, design tokens, asset exports, or scoped edits across open files.
You need browser-only setup, unattended ingestion from file links, or an authenticated bridge that can be exposed to an untrusted network.
Quick Start & Installation
bun run format # format the whole repo bun run format:check # verify formatting without writing (useful in CI)
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| figma-mcp-bridge ★ | 985 | +24 | TypeScript | MIT | A Figma plugin and MCP server for live design access without REST API quotas |
| chrome-devtools-mcp | 60.4k | +760 | TypeScript | Apache-2.0 | Chrome DevTools via MCP and CLI for live browser debugging and performance analy |
| context7 | 65.8k | +333 | TypeScript | MIT | A hosted documentation index with MCP and CLI access for coding agents |
| rea | 488.8k | +7.6k | TypeScript | MIT | A local CLI and MCP server for evidence-backed app and binary analysis |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/gethopp/figma-mcp-bridge.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about figma-mcp-bridge
How does an MCP client reach the right Figma file?
Does the bridge need a GPU, and what drives resource use?
Can a company use and self-host the bridge?
When is this a better fit than Figma-Context-MCP?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy