io.github.rudraptpsingh/figbridge MCP Server
io.github.rudraptpsingh/figbridge
Free, local MCP bridge for Figma — read designs, import URLs, audit changes, and generate source patches.
What is the io.github.rudraptpsingh/figbridge MCP server?
Figbridge is a Figma plugin + local MCP server that enables bidirectional code-to-design workflows. It exposes 48 MCP tools to read Figma screens and tokens, import live URLs into Figma, audit designs across accessibility and responsive dimensions, and generate patches that sync design changes back to source repositories — all running locally on your machine.
Figbridge bridges Figma and code by letting AI agents read your design files, import websites directly into Figma, audit imported designs for palette/typography/accessibility/spacing/mobile issues, and round-trip edits back to your source repo as minimal patches. It's free, open-source, runs entirely locally (no cloud), requires no Figma token, and works with Claude Desktop, Cursor, Cline, and other MCP-capable agents.
How to install io.github.rudraptpsingh/figbridge
Copy-paste configuration for popular MCP clients.
FIGBRIDGE_PORTPreferred TCP port for the local HTTP+SSE bridge that the Figma plugin connects to. Defaults to 7331. If the port is in use, the bridge walks 7331..7340 automatically.
Tools & capabilities
Tools this server exposes to the agent.
get_current_selection— Read the current Figma selectionget_last_export— Retrieve the last exported designlist_history— View design change historyget_tokens— Extract design tokens from Figmabridge_status— Check MCP bridge connection statusdiff_since— Compare changes since a previous statelist_pages— List all pages in the Figma filelist_frames— List all frames on a pagelist_screens— Catalog all screens in the designlist_components— Catalog all componentsdescribe_screen— Get detailed description of a screenexport_app_spec— Export full app specificationexport_all_pages— Export all pageslist_assets— List design assetsselect_node— Select a node in Figmaexport_node— Export a specific nodeget_agent_bundle— Generate offline agent handoff bundle with hierarchy, tokens, components, and change summaryclone_screen— Duplicate a screenrecolor— Apply color changes to a designapply_tokens— Apply design tokens to components
Use cases
- Import a live website into Figma, audit it for design system violations (palette, typography, spacing, accessibility), and generate a patch to fix the source code
- Capture authenticated pages or localhost staging sites using the Chrome extension and bring them into Figma for design review
- Generate an offline agent bundle (hierarchy, tokens, components, screenshots, change summary) to hand off a design without a live MCP connection
- Compare a running production app against its Figma mockup to catch UI regressions before shipping
- Round-trip design edits: import a URL, edit in Figma, diff against source, and auto-generate minimal patches to apply back to the repository
io.github.rudraptpsingh/figbridge MCP server FAQ
Figbridge is a free, open-source MCP server + Figma plugin that bridges design and code. It lets AI agents read Figma designs, import live URLs into Figma, audit designs for accessibility and responsive issues, and generate patches that sync changes back to source repositories — all running locally on your machine.
Yes. Figbridge is MIT-licensed, open-source, and runs entirely on your machine. It requires no Figma token or cloud account — it uses your existing Figma desktop session.
Run `npx figbridge-mcp init` to patch Claude Desktop's MCP config, then quit and reopen Claude Desktop. In Figma, go to Plugins → Development → Import plugin from manifest and select the `plugin/manifest.json` from the cloned repo. Toggle Live bridge in the plugin, and Claude will see 40+ tools.
Point your MCP client to the binary `npx figbridge-mcp`. Cursor, Cline, VS Code, and other MCP-capable tools can discover and install Figbridge from the official Model Context Protocol registry as `io.github.rudraptpsingh/figbridge`.
No. Figbridge uses your existing Figma desktop session and runs locally on 127.0.0.1. It does not require a Figma token, API key, or cloud account.
Figbridge automatically falls back to ports 7332–7340. If you still have issues, run `npx figbridge-mcp doctor` to reap orphan processes and report which ports are alive. You can also override the port with `FIGBRIDGE_PORT=NNNN`.
README (reference)
Source of truth, from the repository.
Figbridge
Figma ↔ code, in both directions. Free, open source, local, and built for the community.
Figbridge is a Figma plugin + local MCP server. Open the plugin on any file, toggle the Live bridge, and any MCP-capable agent (Claude Desktop, Claude Code, Cursor, Continue, Cline…) can read screens, tokens, and components, import a whole URL into Figma, audit the imported design, diff it back against the source, and emit a patch for the source repo — over 127.0.0.1.
┌──────────┐ postMessage ┌──────────┐ HTTP + SSE ┌───────────────┐ stdio ┌──────────────┐
│ Figma │ ──────────────▶ │ Plugin │ ──────────────▶ │ MCP Server │ ◀──────────── │ AI agent │
│ Desktop │ │ UI │ :7331/push │ (localhost) │ tools/call │ (Claude …) │
└──────────┘ └──────────┘ └───────────────┘ └──────────────┘
Why
Figbridge is built for the community path: free, open source, local, and useful from website capture all the way back to source patches.
Figbridge:
- Free. MIT. Runs entirely on your machine.
- No account, no token. Uses your existing Figma desktop session.
- 48 MCP tools. Read, catalog, write-back, lint, ship an agent handoff bundle, import a live URL into Figma, audit the imported design across 5 dimensions, round-trip changes back to a source repo as a patch, and run a closed visual-diff loop that brings a running app into line with its mockup.
- Import diagnostics before you wait.
preflight_importflags bot pages, deep DOM, low-res images, SVG-heavy pages, and downloadable font assets before a full import. - Hybrid fallback for hard pages.
import_url({ hybridSnapshot: true })can place a full-page screenshot reference under editable layers for video-heavy or generated sites where pixel fidelity matters. - Chrome/Edge current-tab capture. Load
chrome-extension/unpacked to send visible viewports, full pages, selected elements, authenticated tabs, localhost, or staging pages directly to the local bridge. - Offline agent bundle.
get_agent_bundleproduces a zip (hierarchy · tokens · components · AGENTS.md · CHANGES.md) an agent can ship from without a live MCP connection. - Deterministic. No LLM rewrites. What you select is what you get.
- Live. Toggle "Live bridge" and every selection change auto-pushes; agents pull the current selection instantly.
Install — ~3 minutes
The plugin is not in Figma Community yet, so you clone the repo to get it. The MCP server comes from npm.
# 1. Get the Figma plugin (clone the repo)
git clone https://github.com/rudraptpsingh/figbridge
# 2. Patch Claude Desktop's MCP config
npx figbridge-mcp init
Then:
- Quit and reopen Claude Desktop — it only reads MCP config at launch.
- In Figma: Plugins → Development → Import plugin from manifest… → pick the
plugin/manifest.jsonfrom the clone above. (One-time.) - Run the Figbridge plugin on any frame, toggle Live bridge on. A green dot in the plugin header = connected to the local bridge. The footer shows the port.
- In Claude: "What tools does figbridge expose?" — you should see 40+.
For any other MCP client (Cursor, Cline, VS Code, …), point it at the same binary: npx figbridge-mcp.
Via the MCP registry
Figbridge is also listed on the official Model Context Protocol registry as io.github.rudraptpsingh/figbridge. Clients that support the registry (Claude Desktop, Cursor, VS Code) can discover and install it without hand-editing config.
Troubleshooting
If Claude Desktop shows "Server disconnected" or port 7331 gets stuck, run:
npx figbridge-mcp doctor
It reaps orphan figbridge-mcp processes and reports which ports are alive. The bridge auto-falls-back to 7332..7340 if 7331 is held, and the plugin auto-probes the same range — so "port in use" won't block you. FIGBRIDGE_PORT=NNNN overrides the preferred starting port.
For long local agent sessions that drive Figma through POST /command, run a persistent bridge:
npx figbridge-mcp bridge
This starts only the local HTTP+SSE bridge and keeps it alive after stdin closes. Use this when a desktop/terminal tool starts short-lived commands but you want the Figma plugin connection to remain stable across multiple agent actions.
Updating
init writes a config that runs npx -y figbridge-mcp@latest, so every Claude Desktop launch pulls the current version — no action needed after a new release.
If you installed an older version (≤ 0.1.1) that baked an absolute path into your config, run this once to self-heal:
npx figbridge-mcp@latest update
Use npx figbridge-mcp init --pin if you'd rather lock to the currently installed copy (no auto-updates). npx figbridge-mcp --version prints the installed version.
MCP tools
Read (8) — get_current_selection · get_last_export · list_history · get_tokens · bridge_status · diff_since · list_pages · list_frames
Catalog (8) — list_screens · list_components · describe_screen · export_app_spec · export_all_pages · list_assets · select_node · export_node
Act & Handoff (5) — get_agent_bundle · clone_screen · recolor · apply_tokens · lint_ds
Browser (11) — preflight_import (risk check before import, including font download URLs), import_url (live URL → Figma frame; optional hybridSnapshot screenshot reference), import_responsive_set (desktop / tablet / mobile and optional light / dark theme captures), import_url_batch (bulk URL imports), screenshot_url, probe_url, fingerprint_url, audit_interactions (hover / focus discovery), verify_text_fidelity, measure_fidelity, audit_regression (baseline URL vs candidate URL frontend/UI regression audit)
Pillar 1 — Round-trip editing (2) — diff_to_source (per-text-node field diff between imported frame and live source) · generate_patch (turn the diff into a minimal HTML/JSX/etc patch against a source dir; style swaps get structured CSS-file hints)
Pillar 2 — Design intelligence audits (5) — audit_palette · audit_typography · audit_a11y (WCAG 2.x contrast, landmarks, alt text) · audit_whitespace (padding/gap rhythm, 4/8-grid conformance) · audit_mobile (multi-viewport responsive: horizontal scroll, overflow-x, sub-44px touch targets, sub-12px text)
Pillar 3 — Match the mockup (3) — match_mockup (closed render → diff → refine loop: renders a running app and its target mockup, returns per-viewport visual scores plus a prioritized punch-list of copy / color / typography / spacing / elevation / icon / structure differences, a design-language style fingerprint, and — with sourceDir — the source file to edit for each item) · diff_specs (fast structured field-level diff between two rendered URLs) · map_components (index an app's source tree — data-testid / component → file, plus design tokens — so diffs name the file to change and the token a literal should become)
All audits are pure deterministic measurement — no model calls. They return numeric scores and structured issue lists ready to feed back into a planning loop. audit_regression can be used as a local/CI gate before shipping a UI change: it compares screenshots, missing visible text, responsive issue deltas, and CSS-feature drift across desktop/tablet/mobile.
Chrome current-tab capture
The chrome-extension/ folder contains an unpacked MV3 extension for authenticated pages:
- Open
chrome://extensions, enable Developer mode, and load thechrome-extension/folder unpacked. - Start Figbridge MCP and open the Figbridge Figma plugin with Live bridge enabled.
- Use the extension popup to send the visible viewport, opt into full-page DOM capture, pick a page element, or include a viewport screenshot reference beneath editable layers.
Browser captures can group each website or project into its own Figma page, for example Chrome Capture - Raycast or Chrome Capture - Localhost, so separate projects stay navigable inside one open Figma file.
The extension only posts to 127.0.0.1:7331..7340; it does not send page data to a cloud service.
The agent handoff bundle
get_agent_bundle is the differentiator. One call returns a zip:
DESIGN.md palette · rhythm · do/don't
hierarchy.md indented tree with deterministic slugs
components.json variants + props schema
tokens.json DTCG-shaped
tokens.css :root + per-mode blocks
flow.mmd Figma prototype → Mermaid graph
responsive.md mobile/tablet/desktop merged
ISSUES.md a11y audit the agent shouldn't repeat
CHANGES.md surgical diff since last bundle
AGENTS.md "when you see slug X, import Y"
manifest.json sha-256 + token counts, stable order for prompt cache
screenshots/ 1:1 paired with hierarchy slugs
Three budget tiers (small 8k / medium 32k / large 128k tokens). Slugs are deterministic — rename a node, the slug stays — so CHANGES.md is a real surgical diff instead of a whole-file retranslation.
The closed loop: URL → Figma → diff → patch
Figbridge is the first MCP-native tool that closes the loop in both directions.
import_url diff_to_source
┌──────────┐ ──────────▶ ┌──────────┐ ──────────▶ ┌──────────┐
│ Source │ │ Figma │ │ changes │
│ (URL, │ │ frame │ │ list │
│ repo) │ ◀────────── │ (edited) │ └────┬─────┘
└──────────┘ generate_patch└──────────┘ │
▼
apply or review
import_urlpulls a live URL into a Figma page (multi-page aware viapageName; section-aware viarootSelector).- Audit the result with the five Pillar 2 tools to find palette drift, contrast failures, off-grid spacing, mobile breakage. Use
audit_regressionto compare production/staging against a local candidate and catch UI/UX regressions before updating Figma or shipping code. - The designer edits the frame in Figma.
diff_to_sourcereports exactly which text-node fields diverged from the source URL — characters / fontSize / fontFamily / color / presence.generate_patchturns the diff into a minimal before/after edit list against a local source directory. Style swaps get structured hints (token vs literal) instead of blind text replacements.
No LLM rewrites in the loop. Every step is deterministic and idempotent.
Output formats
| Format | Shape |
|---|---|
| HTML + CSS | Self-contained document, positional layout preserving pixel fidelity. |
| Tailwind | Same tree with Tailwind arbitrary-value utilities (w-[120px], bg-[#ff7a29]) + CDN script. |
| Design tokens | DTCG JSON tree, :root { --var: value } CSS, Tailwind config fragment. Reads Figma Variables + local paint styles. |
Architecture
- Plugin main thread (
plugin/code.js) — reads the node tree, computes HTML/CSS/Tailwind/tokens deterministically. ES2017-safe (no spread /??/?.) for the Figma sandbox. - Plugin UI (
plugin/ui.html) — cream/ink/rust theme, Figma-native layer navigator, inline Commands panel with a Run button per tool. - MCP server (
mcp/src/) — stdio MCP via@modelcontextprotocol/sdk, sibling HTTP + SSE server on:7331for plugin pushes and bidirectional commands. State in-memory + persisted to~/.figbridge/last.json.
What Figbridge does not do
- No reach into Figma without the desktop app + plugin open. No REST API, no PAT.
- No AI code rewrites. It's a deterministic tree walker.
- No publishing to Figma or to the cloud.
Development
cd mcp && npm install && npm test # integration smoke test
node test-agent/run.js # 130 unit tests on the render pipeline
node test/scenarios.mjs # 54 real-world scenario checks
node test/real-figma.mjs # 43 checks against a parsed real .fig
node test/tools-all.mjs # 21-tool MCP surface + e2e
node --check plugin/code.js # plugin syntax check
Links
- Landing page: https://rudraptpsingh.github.io/figbridge/
- npm: https://www.npmjs.com/package/figbridge-mcp
License
MIT © Rudra Pratap Singh
Related MCP servers

Unofficial, read-only MCP server for your Ripio account: balances, activity, prices and deposits.

io.github.rukh-debug/rustypaste-mcp
An MCP server that wraps the rustypaste API

Fleets
Multi-site analytics as tools: GA4, Search Console, Cloudflare edge, PageSpeed, insights.
RunAPI MCP server for ElevenLabs: create tasks, poll status, check pricing.
RunAPI MCP server for Flux 2: create tasks, poll status, check pricing.
RunAPI MCP server for Flux Kontext: create tasks, poll status, check pricing.
