grab/cursor-talk-to-figma-mcp
An MCP-to-WebSocket bridge for reading and editing live Figma designs
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Talk to Figma separates agent integration, message relay, and editor-side execution. The TypeScript MCP entry point is src/talk_to_figma_mcp/server.ts; the Figma plugin lives in src/cursor_mcp_plugin/; and the standalone WebSocket relay is src/socket.ts. The client invokes MCP tools, the relay carries messages over a shared channel, and the plugin executes commands in the open Figma editor.
The package declares @modelcontextprotocol/sdk, uuid, ws, and zod. Bun runs the source entry point or launches the published CLI via bunx. The integration targets Cursor, Claude Code, and Codex, with a concrete launch configuration shown for Cursor. The bridge exposes tools and workflow prompts rather than hosting a model, so the choice of agent is separate from how Figma commands execute.
Key Capabilities & Differentiators
The tool surface covers inspection and direct manipulation of the active design. An agent can read the document, inspect the current selection or a list of node IDs, and create frames, sections, rectangles, or text. Write tools also cover auto layout, padding, alignment, sizing, spacing, fills, reparenting, and deletion. A practical workflow is to read the selection, scan text in chunks, apply replacements in a batch, then verify the changed nodes by ID.
The bridge also reads local styles and components, creates instances, transfers overrides from a source instance to multiple targets, and creates or updates native annotations in batches. It can read prototype reactions and turn them into FigJam connectors after a default connector style is set. Node exports support PNG, JPG, SVG, and PDF, but image output is limited to base64 text; evaluate that path before relying on it for asset-heavy work.
Trade-offs & Limitations
The main advantage over a direct Figma API integration is access to the live editing context: selection, viewport focus, and in-editor changes. The cost is coordinating a running editor plugin, a WebSocket relay, and an MCP client on the same channel. For unattended work covered by the direct API, evaluate that path first. For a fixed operation that must behave consistently on every run, a purpose-built plugin avoids having an agent plan the same sequence repeatedly.
Chunked scans and batch writes are useful for larger files, but they do not replace validation. Because the tool set includes batch deletion and reparenting, inspect the target nodes before writing and verify the results afterward; use a copy for high-impact edits. The setup does not establish that channel membership is an access-control boundary, so keep relay access restricted rather than treating the channel name as authorization.
Hardware & Deployment Guide
The concrete setup is an interactive Bun workflow: run bun setup for Cursor project configuration, start the relay with bun socket, and install the Figma Community plugin or link src/cursor_mcp_plugin/manifest.json as a development plugin. Cursor can launch bunx cursor-talk-to-figma-mcp@latest; a source checkout can instead be run with bun and src/talk_to_figma_mcp/server.ts. Open the target file, run the plugin, and join the same channel from the agent.
The Dockerfile uses oven/bun:latest, installs dependencies, exposes port 3055, and invokes the MCP source entry point. As written, it copies package manifests but not the src/ tree, and it does not launch the separate relay. It is not a complete container deployment without changes. Windows/WSL setups may need the relay to bind to 0.0.0.0; restrict network access if using that broader bind. No latest GitHub release is listed, so the @latest npm invocation should not be treated as a reproducible version pin.
src/socket.ts.scan_text_nodes supports chunking, and set_multiple_text_contents applies batches of replacements.Interactive design maintenance where an agent inspects an open Figma file, batches copy or component changes, and verifies the affected nodes.
You need an unattended editor-free pipeline, a read-only tool boundary out of the box, or a complete Docker deployment without additional wiring.
Quick Start & Installation
curl -fsSL https://bun.sh/install | bash
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| cursor-talk-to-figma-mcp ★ | 7.1k | +14 | JavaScript | MIT | An MCP-to-WebSocket bridge for reading and editing live Figma designs |
| taste-skill | 125.3k | +2.9k | JavaScript | MIT | An agent skill for directing company website design and checking builds in a bro |
| agent-skills | 122.5k | +1.7k | JavaScript | MIT | A modular skill pack for consistent coding-agent workflows, from spec to release |
| graphify | 156.8k | +2.4k | Python | Apache-2.0 | Local AST graphs for dependency tracing, with CLI and MCP access. |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/grab/cursor-talk-to-figma-mcp.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about cursor-talk-to-figma-mcp
How does the agent reach the right Figma document?
bun socket runs the WebSocket relay separately. Open the plugin in the intended Figma file, connect it to the relay, and use join_channel from the agent to select the same channel. Check get_document_info and get_selection before editing.Does the bridge need a GPU, and what affects local resource use?
Can we self-host it for commercial work?
When is this preferable to a direct Figma API integration or custom plugin?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy