Server facts
cursor-talk-to-figma-mcp
GitHub stars
7,128
Last commit
Jul 26, 2026
Runtime
bun
License
MIT
Project
- Author
- sonnylazuardi
- License
- MIT
- Category
- Design & Creative
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
bunx cursor-talk-to-figma-mcp@latestAdd `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`.
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.
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.
{
"mcpServers": {
"TalkToFigma": {
"command": "bunx",
"args": [
"cursor-talk-to-figma-mcp@latest"
]
}
}
}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.
{
"mcpServers": {
"TalkToFigma": {
"command": "bunx",
"args": [
"cursor-talk-to-figma-mcp@latest"
]
}
}
}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.
{
"servers": {
"TalkToFigma": {
"type": "stdio",
"command": "bunx",
"args": [
"cursor-talk-to-figma-mcp@latest"
]
}
}
}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.
{
"mcpServers": {
"TalkToFigma": {
"command": "bunx",
"args": [
"cursor-talk-to-figma-mcp@latest"
]
}
}
}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.
{
"mcpServers": {
"TalkToFigma": {
"type": "stdio",
"command": "bunx",
"args": [
"cursor-talk-to-figma-mcp@latest"
]
}
}
}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.
| Tool | What it does |
|---|---|
| join_channel | Connects the MCP session to a specific WebSocket channel shared with the active Figma plugin. |
| get_document_info | Retrieves metadata and structure overview for the currently open Figma document. |
| get_selection | Returns information about the currently selected nodes on the Figma canvas. |
| read_my_design | Fetches detailed node properties for the active selection without requiring node ID parameters. |
| get_node_info | Inspects detailed properties for a specific Figma node ID. |
| create_frame | Creates a new Figma container frame with position, dimensions, and optional name. |
| create_rectangle | Creates a rectangle layer with specified coordinates, size, and optional name. |
| create_text | Adds a new text node with customizable font properties. |
| scan_text_nodes | Scans text layers across large designs using chunking for safe bulk inspection. |
| set_text_content | Updates the text string of an individual Figma text node. |
| set_multiple_text_contents | Batch-updates text across multiple Figma text nodes in a single workflow. |
| set_layout_mode | Configures frame auto-layout mode and wrap behavior (NONE, HORIZONTAL, or VERTICAL). |
| set_padding | Sets top, right, bottom, and left padding values on an auto-layout frame. |
| set_fill_color | Applies an RGBA fill color to a target node. |
| get_annotations | Lists annotations present on the current document or a targeted node. |
| set_multiple_annotations | Batch creates or updates native Figma markdown annotations across multiple nodes. |
| get_instance_overrides | Extracts customized override properties from a selected Figma component instance. |
| set_instance_overrides | Applies extracted component overrides across multiple target instances. |
| get_reactions | Reads prototype reactions from nodes with visual highlight animation for connector mapping. |
| export_node_as_image | Exports 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.