cursor-talk-to-figma-mcp

by @sonnylazuardi

Cursor Talk To Figma MCP Server

Bridge Cursor, Claude Code, or Codex directly to live Figma canvases for programmatic reading and editing. Uses a Bun-powered TypeScript MCP server, a local WebSocket relay, and a companion Figma plugin to automate layouts, bulk copy edits, and component overrides.

Server facts

cursor-talk-to-figma-mcp

GitHub stars

7,128

Last commit

Jul 26, 2026

Runtime

bun

License

MIT

Tech

Runtime
bun
Transports
stdio
Remote access
No
Authentication
None (local WebSocket channel)

Activity

GitHub stars
7,128
Last commit
Data as of

Overview

Design-to-code loops break down when AI assistants can only read static screenshots instead of manipulating live Figma layers. This MIT-licensed bridge pairs a Bun-based TypeScript MCP server, a local WebSocket relay (`src/socket.ts`), and the Cursor MCP Figma plugin so Cursor, Claude Code, or Codex can inspect selections and programmatically build or edit canvases. Beyond reading document trees, it creates frames, shapes, and text, configures auto-layout padding and sizing, applies fills and strokes, batches text replacements, converts manual callouts into native annotations, propagates component instance overrides, and draws FigJam prototype connectors.

Getting started requires installing Bun, adding `bunx cursor-talk-to-figma-mcp@latest` to `~/.cursor/mcp.json` (or running `bun setup`), launching the relay with `bun socket`, and installing the community Figma plugin or loading `manifest.json` from the plugin folder locally. Windows WSL environments require editing `src/socket.ts` so the WebSocket server binds to `0.0.0.0` before starting the bridge. Every active design session begins by connecting both sides to a shared channel with `join_channel`, after which bundled strategy prompts guide bulk text updates, override transfers, and prototype connector mapping.

Install & configure

Requirements

  • Bun runtime (macOS/Linux installer or Windows PowerShell script)
  • Figma desktop or web with the Cursor MCP Plugin installed (Figma Community or local manifest)
  • MCP client such as Cursor, Claude Code, or Codex
Documented launch / install command
bunx cursor-talk-to-figma-mcp@latest

Add `bunx cursor-talk-to-figma-mcp@latest` to `~/.cursor/mcp.json` (or run `bun setup`), start the relay via `bun socket`, launch the Figma plugin, and join a channel with `join_channel`. On Windows + WSL, uncomment `hostname: "0.0.0.0"` in `src/socket.ts`.

Config file · macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

Use Settings → Developer → Edit Config when available. Do not assume a Linux configuration path; check the client documentation for your platform. Remote servers use the app’s connector flow when supported, not the local stdio file shown here. Merge this example with existing settings; do not overwrite unrelated servers.

Claude Desktop configuration
{
  "mcpServers": {
    "TalkToFigma": {
      "command": "bunx",
      "args": [
        "cursor-talk-to-figma-mcp@latest"
      ]
    }
  }
}

Read the Claude Desktop setup guide

Config file · Project: .cursor/mcp.json

User: ~/.cursor/mcp.json

The project path is relative to the workspace root. The tilde denotes your user home directory. Use Cursor’s MCP settings to confirm which configuration and scope your installed version is reading. Merge this example with existing settings; do not overwrite unrelated servers.

Cursor configuration
{
  "mcpServers": {
    "TalkToFigma": {
      "command": "bunx",
      "args": [
        "cursor-talk-to-figma-mcp@latest"
      ]
    }
  }
}

Read the Cursor setup guide

Config file · Workspace: .vscode/mcp.json

For user scope, use the “MCP: Open User Configuration” command if available. Do not guess a user configuration path across operating systems, profiles, containers, or remote workspaces; check the client documentation. Merge this example with existing settings; do not overwrite unrelated servers.

VS Code configuration
{
  "servers": {
    "TalkToFigma": {
      "type": "stdio",
      "command": "bunx",
      "args": [
        "cursor-talk-to-figma-mcp@latest"
      ]
    }
  }
}

Read the VS Code setup guide

Config file · macOS/Linux: ~/.codeium/windsurf/mcp_config.json

Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json

Open the MCP configuration through Windsurf’s settings when possible to confirm the active file. Paths can differ in managed or future releases; check the client documentation if this location is not present. Merge this example with existing settings; do not overwrite unrelated servers.

Windsurf configuration
{
  "mcpServers": {
    "TalkToFigma": {
      "command": "bunx",
      "args": [
        "cursor-talk-to-figma-mcp@latest"
      ]
    }
  }
}

Read the Windsurf setup guide

Config file · Project scope: .mcp.json at the repository root

The project file uses mcpServers. For user scope, use claude mcp add --scope user rather than assuming .mcp.json in your home directory is the user configuration. Check the client documentation for managed settings and storage details. Merge this example with existing settings; do not overwrite unrelated servers.

Claude Code configuration
{
  "mcpServers": {
    "TalkToFigma": {
      "type": "stdio",
      "command": "bunx",
      "args": [
        "cursor-talk-to-figma-mcp@latest"
      ]
    }
  }
}

Read the Claude Code setup guide

Examples are translated from the published configuration. Supply your own credentials and verify requirements in the upstream README. Remote connectors are shown only where a supported configuration format is known.

Tools

Source: repository README. Tool descriptions are a documented snapshot, not a live capability check.

ToolWhat it does
join_channelConnects the MCP session to a specific WebSocket channel shared with the active Figma plugin.
get_document_infoRetrieves metadata and structure overview for the currently open Figma document.
get_selectionReturns information about the currently selected nodes on the Figma canvas.
read_my_designFetches detailed node properties for the active selection without requiring node ID parameters.
get_node_infoInspects detailed properties for a specific Figma node ID.
create_frameCreates a new Figma container frame with position, dimensions, and optional name.
create_rectangleCreates a rectangle layer with specified coordinates, size, and optional name.
create_textAdds a new text node with customizable font properties.
scan_text_nodesScans text layers across large designs using chunking for safe bulk inspection.
set_text_contentUpdates the text string of an individual Figma text node.
set_multiple_text_contentsBatch-updates text across multiple Figma text nodes in a single workflow.
set_layout_modeConfigures frame auto-layout mode and wrap behavior (NONE, HORIZONTAL, or VERTICAL).
set_paddingSets top, right, bottom, and left padding values on an auto-layout frame.
set_fill_colorApplies an RGBA fill color to a target node.
get_annotationsLists annotations present on the current document or a targeted node.
set_multiple_annotationsBatch creates or updates native Figma markdown annotations across multiple nodes.
get_instance_overridesExtracts customized override properties from a selected Figma component instance.
set_instance_overridesApplies extracted component overrides across multiple target instances.
get_reactionsReads prototype reactions from nodes with visual highlight animation for connector mapping.
export_node_as_imageExports a Figma node as PNG, JPG, SVG, or PDF (currently returns base64 text with limited image support).

Use cases

  • Run bulk localization or copy updates across dozens of Figma frames using scan_text_nodes and set_multiple_text_contents.
  • Propagate component instance overrides from a master example to multiple sibling screens without manual clicking.
  • Convert legacy callout boxes into native Figma markdown annotations with scan_nodes_by_types and set_multiple_annotations.
  • Extract prototype reaction flows and generate FigJam connector diagrams across user journeys.

Strengths

  • True bidirectional read-and-write Figma automation covering creation, auto-layout, styling, annotations, and overrides.
  • Ships with reusable MCP strategy prompts for design reading, bulk text replacement, annotations, and connector conversion.
  • No Figma personal access token required because commands execute directly through the local Figma plugin and WebSocket bridge.

Limitations

  • Requires running a local Bun WebSocket server (`bun socket`) and manually connecting via the Figma plugin channel before every session.
  • Windows + WSL users must edit `src/socket.ts` to uncomment `hostname: "0.0.0.0"` for cross-environment WebSocket connectivity.
  • Image exports via `export_node_as_image` have limited support and currently return base64 as text.

cursor-talk-to-figma-mcp setup notes

  • cursor-talk-to-figma-mcp's stdio example needs a client that launches local processes.

Frequently asked questions

Install Bun, register `bunx cursor-talk-to-figma-mcp@latest` in `~/.cursor/mcp.json` (or run `bun setup`), start the relay with `bun socket`, open the Cursor MCP Plugin in Figma, and connect both sides using `join_channel`.

Related MCP servers