Figma MCP Bridge

May 24, 2026 ยท View on GitHub

Pairing with Hopp


Figma MCP Bridge

While other amazing Figma MCP servers like Figma-Context-MCP exist, one issues is the API limiting for free users.

The limit for free accounts is 6 requests per month, yes per month.

Figma MCP Bridge is a solution to this problem. It is a plugin + MCP server that streams live Figma document data to AI tools without hitting Figma API rate limits, so its Figma MCP for the rest of us โœŠ

It supports multiple Figma files connected simultaneously; open the plugin in each file and your AI agent can query any of them by fileKey. Single-file setups work exactly as before with no changes required.

It also includes a small, opt-in set of write tools for safe agent-driven edits โ€” see Editing Notes below.

Demo

Watch a demo of building a UI in Cursor with Figma MCP Bridge

Watch the video

Quick Start

1. Add the MCP server to your favourite AI tool

Add the following to your AI tool's MCP configuration (e.g. Cursor, Windsurf, Claude Desktop):

{
  "figma-bridge": {
    "command": "npx",
    "args": ["-y", "@gethopp/figma-mcp-bridge"]
  }
}

That's it โ€” no binaries to download or install.

2. Add the Figma plugin

Download the plugin from the latest release page, then in Figma go to Plugins > Development > Import plugin from manifest and select the manifest.json file from the plugin/ folder.

3. Start using it ๐ŸŽ‰

Open a Figma file, run the plugin, and start prompting your AI tool. The MCP server will automatically connect to the plugin.

To work across multiple files, just open the plugin in each Figma file. The bridge keeps all connections active and your AI agent can target any of them by fileKey.

If you want to know more about how it works, read the How it works section.

Available Tools

ToolDescription
list_filesList all connected Figma files (supports multi-file workflows)
get_documentGet the current Figma page document tree
get_selectionGet the currently selected nodes in Figma
get_nodeGet a specific Figma node by ID (colon format, e.g. 4029:12345)
get_stylesGet all local paint, text, effect, and grid styles
get_metadataGet file name, pages, and current page info
get_design_contextGet a depth-limited tree optimized for understanding design context
get_variable_defsGet all variable collections, modes, and values (design tokens)
get_screenshotExport nodes as PNG/SVG/JPG/PDF (base64-encoded)
save_screenshotsExport and save screenshots directly to the local filesystem
set_node_visibilityShow or hide specific nodes
set_text_contentReplace the contents of a text node
set_text_propertiesPatch font, size, alignment, auto-resize, color, and bounds on a text node
set_node_propertiesPatch common node properties: name, position, size, visibility, opacity, corner radius
set_solid_fillReplace a node's fill or stroke with a single solid paint
set_gradient_fillReplace a node's fill or stroke with a linear/radial/angular/diamond gradient
set_effectsReplace a node's effects list (drop/inner shadows, layer/background blurs)
set_stroke_propertiesPatch stroke weight, align, dash pattern, cap, and join
set_auto_layoutConfigure auto-layout direction, padding, gap, alignment, sizing, and wrap
create_frameCreate a new frame, optionally under a parent
create_textCreate a new text node
create_shapeCreate a rectangle, ellipse, or line
create_imageCreate an image-backed rectangle from a local path, URL, or data URI
duplicate_nodesDuplicate nodes in place
reparent_nodesMove nodes into another parent
group_nodesWrap a list of nodes (sharing a parent) in a new group
ungroup_nodeUngroup a group or frame โ€” children move up to its parent
set_selectionSet the page selection to a list of node IDs (works in Dev Mode)
scroll_and_zoom_into_viewFrame the viewport around the given nodes (works in Dev Mode)
delete_nodesDelete nodes with explicit confirmation

All tools accept an optional fileKey parameter when multiple Figma files are connected. Use list_files to discover connected files and their keys.

Editing Notes

  • Edit tools work only when the plugin is opened in Figma's design editor (Dev Mode is read-only โ€” they will return a clear error there).
  • The current user must have permission to edit the target file.
  • delete_nodes is intentionally gated behind confirm: true.
  • Text edits automatically load the fonts currently used by the target text node before applying the new content.
  • New text nodes default to Inter Regular unless a font is provided.
  • create_image reads local paths relative to the MCP server working directory unless you pass an absolute path.

What You Can Build

With the current write surface, an agent can build a basic slide deck in a new empty Figma file: create slide frames, style titles and body copy, lay out rectangles/ellipses/lines for cards and dividers, duplicate slide templates, reparent content into the right frame, and adjust common geometry/visual properties โ€” including solid/gradient paints, shadows and blurs, stroke geometry, and auto-layout configuration.

The current version is intentionally limited โ€” no components/instances, no variables/styles authoring, no per-segment text styling, and no vector boolean operations yet.

Local development

1. Clone this repository locally

git clone git@github.com:gethopp/figma-mcp-bridge.git

2. Build the server

cd server && npm install && npm run build

3. Build the plugin

cd plugin && bun install && bun run build

4. Add the MCP server to your favourite AI tool

For local development, add the following to your AI tool's MCP config:

{
  "figma-bridge": {
    "command": "node",
    "args": ["/path/to/figma-mcp-bridge/server/dist/index.js"]
  }
}

Structure

Figma-MCP-Bridge/
โ”œโ”€โ”€ plugin/   # Figma plugin (TypeScript/React)
โ””โ”€โ”€ server/   # MCP server (TypeScript/Node.js)
    โ””โ”€โ”€ src/
        โ”œโ”€โ”€ index.ts      # Entry point
        โ”œโ”€โ”€ bridge.ts     # WebSocket bridge to Figma plugin
        โ”œโ”€โ”€ leader.ts     # Leader: HTTP server + bridge
        โ”œโ”€โ”€ follower.ts   # Follower: proxies to leader via HTTP
        โ”œโ”€โ”€ node.ts       # Dynamic leader/follower role switching
        โ”œโ”€โ”€ election.ts   # Leader election & health monitoring
        โ”œโ”€โ”€ tools.ts      # MCP tool definitions
        โ””โ”€โ”€ types.ts      # Shared types

How it works

There are two main components to the Figma MCP Bridge:

1. The Figma Plugin

The Figma plugin is the user interface for the Figma MCP Bridge. You run this inside the Figma file you want to use the MCP server for, and its responsible for getting you all the information you need.

2. The MCP Server

The MCP server is the core of the Figma MCP Bridge. It maintains a registry of WebSocket connections keyed by fileKey, so multiple Figma files can be connected simultaneously. The server is responsible for:

  • Handling WebSocket connections from one or more Figma plugin instances
  • Routing tool calls to the correct file based on fileKey
  • Forwarding responses back to the AI client
  • Handling leader election (as we can have only one WS connection to an MCP server at a time)
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                              FIGMA (Browser)                                โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚
โ”‚  โ”‚                         Figma Plugin                                  โ”‚  โ”‚
โ”‚  โ”‚                    (TypeScript/React)                                 โ”‚  โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                      โ”‚
                                      โ”‚ WebSocket
                                      โ”‚ (ws://localhost:1994/ws)
                                      โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                          PRIMARY MCP SERVER                                 โ”‚
โ”‚                         (Leader on :1994)                                   โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”‚
โ”‚  โ”‚  Bridge                                    Endpoints:               โ”‚    โ”‚
โ”‚  โ”‚  โ€ข Manages WebSocket conn                  โ€ข /ws    (plugin)        โ”‚    โ”‚
โ”‚  โ”‚  โ€ข Forwards requests to plugin             โ€ข /ping  (health)        โ”‚    โ”‚
โ”‚  โ”‚  โ€ข Routes responses back                   โ€ข /rpc   (followers)     โ”‚    โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                           โ–ฒ                              โ–ฒ
                           โ”‚ HTTP /rpc                    โ”‚ HTTP /rpc
                           โ”‚ POST requests                โ”‚ POST requests
                           โ”‚                              โ”‚
         โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
         โ”‚    FOLLOWER MCP SERVER 1    โ”‚    โ”‚    FOLLOWER MCP SERVER 2    โ”‚
         โ”‚                             โ”‚    โ”‚                             โ”‚
         โ”‚  โ€ข Pings leader /ping       โ”‚    โ”‚  โ€ข Pings leader /ping       โ”‚
         โ”‚  โ€ข Forwards tool calls      โ”‚    โ”‚  โ€ข Forwards tool calls      โ”‚
         โ”‚    via HTTP /rpc            โ”‚    โ”‚    via HTTP /rpc            โ”‚
         โ”‚  โ€ข If leader dies โ†’         โ”‚    โ”‚  โ€ข If leader dies โ†’         โ”‚
         โ”‚    attempts takeover        โ”‚    โ”‚    attempts takeover        โ”‚
         โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                    โ–ฒ                                      โ–ฒ
                    โ”‚                                      โ”‚
                    โ”‚ MCP Protocol                         โ”‚ MCP Protocol
                    โ”‚ (stdio)                              โ”‚ (stdio)
                    โ–ผ                                      โ–ผ
         โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
         โ”‚      AI Tool / IDE 1        โ”‚    โ”‚      AI Tool / IDE 2        โ”‚
         โ”‚      (e.g., Cursor)         โ”‚    โ”‚      (e.g., Cursor)         โ”‚
         โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜