Figma MCP Bridge logo

Figma MCP Bridge

Organization
gethopp

Figma Plugin & MCP server to bypass API limits

Publishergethopp
Repositoryfigma-mcp-bridge
LanguageTypeScript
Forks
94
Stars
658
Available tools
0
Transport typestdio
LicenseMIT
Links
  • Connect tools to AI workflows

    Figma MCP Bridge exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    658 stars and 94 forks from the linked repository.

Figma MCP Bridge

Pairing with Hopp

[!NOTE]
Requires the Figma desktop app (macOS/Windows). The browser version of Figma does not support importing development plugins.

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):

json
{
  "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
get_motion_stylesList all available animation presets (beta)
get_node_motionRead a node's current animation styles and properties (beta)
apply_animation_styleApply a preset animation style to a node (beta)
remove_animation_styleRemove an applied animation style from a node (beta)
apply_manual_keyframe_trackApply a manual keyframe track to a node property (beta)
remove_manual_keyframe_trackRemove a manual keyframe track from a node property (beta)
set_timeline_durationSet the duration of a timeline in seconds (beta)
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_pageCreate a new page in the document, optionally switching to it
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
import_html_layersBulk-import an html-figma layer tree (JSON) as frames, text, rectangles, and vectors
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.
  • import_html_layers takes a JSON file produced by html-figma's browser htmlToFigma(). The path resolves relative to the MCP server working directory and must stay inside it, even when absolute. Everything lands inside one wrapper frame, and the response reports layerCount against expectedLayerCount so partial imports are visible.
  • create_page returns the new page's ID — pass it as parentId to create_frame / create_text / create_shape / create_image to author content on that page without switching the editor.

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

This repo uses Bun as its package manager and script runner throughout. Install it first if you don't have it.

1. Clone this repository locally

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

2. Install root tooling

Install the root dependencies once. This runs Husky's prepare script, which installs the Git pre-commit hook that formats staged files with Prettier.

bash
cd figma-mcp-bridge && bun install

3. Build the server

bash
cd server && bun install && bun run build

4. Build the plugin

bash
cd plugin && bun install && bun run build

5. Add the MCP server to your favourite AI tool

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

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

Code style

The repo is formatted with Prettier (config in .prettierrc). A Husky pre-commit hook runs lint-staged, which formats only your staged files, so commits stay formatted automatically. You can also run it manually:

bash
bun run format        # format the whole repo
bun run format:check  # verify formatting without writing (useful in CI)

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 (Desktop app)                               │
│  ┌───────────────────────────────────────────────────────────────────────┐  │
│  │                         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)         │
         └─────────────────────────────┘    └─────────────────────────────┘

Use Figma MCP Bridge MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Figma MCP Bridge is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Figma MCP Bridge as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Figma MCP Bridge MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "figma-mcp-bridge": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Figma MCP Bridge MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Figma MCP Bridge MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Figma MCP Bridge to help me with this task?
Figma MCP Bridge
Sure. I read it.
Here is what I found using Figma MCP Bridge.

Frequently asked questions

What is the Figma MCP Bridge MCP server used for?

Figma MCP Bridge is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Figma MCP Bridge MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Figma MCP Bridge with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Figma MCP Bridge MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Figma MCP Bridge connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Figma MCP Bridge MCP to TypingMind?

Figma MCP Bridge runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Figma MCP Bridge MCP provide in TypingMind?

Figma MCP Bridge exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Figma MCP Bridge MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Figma MCP Bridge requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇