# Repository Briefing: grab/cursor-talk-to-figma-mcp
> Source: https://repoforai.com/repo/grab/cursor-talk-to-figma-mcp (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/grab/cursor-talk-to-figma-mcp
- **Official Docs / Website**: https://www.figma.com/community/plugin/1485687494525374295/cursor-talk-to-figma-mcp-plugin
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: JavaScript
- **License**: MIT
- **Engineering Health**: B (58/100 · Maintenance 12/35 · Adoption 20/25 · Releases 6/20 · License 20/20)
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: Docker, MCP, CLI
- **Momentum**: 7,145 ★ total (+0 24h / +14 7d) · 803 forks
- **Topics**: `agent`, `agentic`, `agentic-ai`, `ai`, `ai-agents`, `automation`, `claude-code`, `codex`, `cursor`, `design`, `figma`, `generative-ai`
- **When to Use**: Best for: Interactive design maintenance where an agent inspects an open Figma file, batches copy or component changes, and verifies the affected nodes. Skip if: You need an unattended editor-free pipeline, a read-only tool boundary out of the box, or a complete Docker deployment without additional wiring.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Transport: A TypeScript MCP server and Figma plugin exchange commands through the WebSocket relay in `src/socket.ts`.
- Selection-aware inspection: Read the active document or selection and retrieve detailed information for multiple node IDs in one call.
- Bulk copy updates: `scan_text_nodes` supports chunking, and `set_multiple_text_contents` applies batches of replacements.
- Component consistency: Extract overrides from a source instance and apply them to multiple target instances.
- Prototype mapping: Read prototype reactions and turn them into FigJam connectors after setting a default connector style.
- Export formats: Node export supports PNG, JPG, SVG, and PDF, with limited image handling through base64 text.
```

## Quick Start / Clone
```bash
curl -fsSL https://bun.sh/install | bash
```
