cursor-talk-to-figma-mcp
AGENTS.md7k starsChanged 9 months agoMITView on GitHub
MCP (Model Context Protocol) server that bridges AI agents (Cursor, Claude Code) with Figma. Three components communicate in a pipeline: There is no test suite or linter configured. The MCP config written by bun setup uses the published package: You can also add it manually for Claude Code via the CLI:
Trending
Quiet since September.thin dataabout the whole repository
Who's talking about grab/cursor-talk-to-figma-mcp
- @github-trending.bsky.social“📦 grab / cursor-talk-to-figma-mcp ⭐ 5,915 (+14) 🗒 JavaScript TalkToFigma: MCP integration between Cursor …”Bluesky · Jan 14, 2026 · 3 likes
- @agentwire.thecompound.tech“https://github.com/grab/cursor-talk-to-figma-mcp”Bluesky · Aug 2, 2026 · 1 likes
- @technews4869.bsky.social“github.com/grab/cursor-tal... GitHub - grab/cursor-talk-to-figma-mcp: TalkToFigma: MCP integration between …”Bluesky · Jan 16, 2026 · 1 likes
- @github-trending-js.bsky.social“🔥 Hot Repo! 🔥 (100+ new stars) 📦 grab / cursor-talk-to-figma-mcp ⭐ 6,110 (+198) 🗒 JavaScript …”Bluesky · Jan 15, 2026 · 1 likes
- @yug1224.com“これはCursor AIとFigma間でやり取りを可能にするMCP連携ツールらしい デザイン読み取りや要素変更を自動化できるから開発効率が上がりそうだな yug1224 starred …”Bluesky · Jan 15, 2026 · 1 likes
The biggest 5 of 7 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 7
Talked about on Bluesky and GitHub (7 times).
On Bluesky · 5
- Jan 14, 2026📦 grab / cursor-talk-to-figma-mcp ⭐ 5,915 (+14) 🗒 JavaScript TalkToFigma: MCP integration between Cursor and Figma, allowing Cursor… — @github-trending.bsky.social3 likes and reposts
- Aug 2, 2026https://github.com/grab/cursor-talk-to-figma-mcp — @agentwire.thecompound.tech1 likes and repost
- Jan 16, 2026github.com/grab/cursor-tal... GitHub - grab/cursor-talk-to-figma-mcp: TalkToFigma: MCP integration between Cursor and Figma, a... — @technews4869.bsky.social1 likes and repost
- Jan 15, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 grab / cursor-talk-to-figma-mcp ⭐ 6,110 (+198) 🗒 JavaScript TalkToFigma: MCP integration between… — @github-trending-js.bsky.social1 likes and repost
- Jan 15, 2026これはCursor AIとFigma間でやり取りを可能にするMCP連携ツールらしい デザイン読み取りや要素変更を自動化できるから開発効率が上がりそうだな yug1224 starred grab/cursor-talk-to-figma-mcp… — @yug1224.com1 likes and repost
On GitHub · 2
- Sep 8, 2026Figma export for boards and canvases: feasibility research and recommended route — ReScienceLab/super-prototyping0 reactions
- Jun 6, 2026content(mcp): add TalkToFigma MCP Server — JSONbored/awesome-claude0 reactions · 3 comments
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
We split this AGENTS.md into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 40
Logging: All logs go to stderr. Stdout is reserved for MCP protocol messages.
- Distinctive: line 44
Zod validation: All tool parameters are validated with Zod schemas.
- Very specific: line 48
Run bun setup — installs dependencies and writes MCP config for both Cursor (.cursor/mcp.json) and Claude Code (.mcp.json)
- Distinctive: line 51
Run plugin in Figma, join a channel, then use tools from Cursor or Claude Code
- Very specific: line 74
Always call join_channel before issuing any Figma commands
- Very specific: line 75
Call get_document_info first to understand the design structure
- Very specific: line 76
Use read_my_design or get_selection before making modifications
- Distinctive: line 78
All MCP tool parameters are Zod-validated.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
This file provides guidance to Claude Code agents (claude.ai/code) when working with code in this repository.
Project Overview
MCP (Model Context Protocol) server that bridges AI agents (Cursor, Claude Code) with Figma. Three components communicate in a pipeline:
Claude Code / Cursor ←(stdio)→ MCP Server ←(WebSocket)→ WebSocket Relay ←(WebSocket)→ Figma PluginBuild & Development Commands
bun install # Install dependencies
bun run build # Build MCP server (tsup → dist/)
bun run dev # Build in watch mode
bun socket # Start WebSocket relay server (port 3055)
bun run start # Run built MCP server
bun setup # Full setup (install + write .cursor/mcp.json + .mcp.json)There is no test suite or linter configured.
Architecture
MCP Server (src/talk_to_figma_mcp/server.ts)
The main server implementing the MCP protocol via @modelcontextprotocol/sdk. Exposes 50+ tools (create shapes, modify text, manage layouts, export images, etc.) and several AI prompts (design strategies). Communicates with the AI agent over stdio and with the WebSocket relay via ws. Each request gets a UUID, is tracked in a pendingRequests Map with timeout/promise callbacks, and resolves when the plugin responds.
WebSocket Relay (src/socket.ts)
Lightweight Bun WebSocket server on port 3055 (configurable via PORT env). Routes messages between MCP server and Figma plugin using channel-based isolation. Clients call join to enter a channel; messages broadcast only within the same channel.
Figma Plugin (src/cursor_mcp_plugin/)
Runs inside Figma. code.js is the plugin main thread handling 30+ commands via a dispatcher. ui.html is the plugin UI for WebSocket connection management. manifest.json declares permissions (dynamic-page access, localhost network). The plugin is not built/bundled — code.js is written directly as the runtime artifact.
Key Patterns
- Colors: Figma uses RGBA 0-1 range. The MCP tools accept 0-1 floats and the filter converts to hex for display.
- Logging: All logs go to stderr. Stdout is reserved for MCP protocol messages.
- Timeouts: 30s default per command. Progress updates from the plugin reset the inactivity timer.
- Chunking: Large operations (scanning 100+ nodes) are chunked with progress updates to prevent Figma UI freezing.
- Reconnection: WebSocket auto-reconnects after 2 seconds on disconnect.
- Zod validation: All tool parameters are validated with Zod schemas.
Setup
- Run
bun setup— installs dependencies and writes MCP config for both Cursor (.cursor/mcp.json) and Claude Code (.mcp.json) bun socketin one terminal (WebSocket relay on port 3055)- In Figma: Plugins → Development → Link existing plugin → select
src/cursor_mcp_plugin/manifest.json - Run plugin in Figma, join a channel, then use tools from Cursor or Claude Code
The MCP config written by bun setup uses the published package:
{
"mcpServers": {
"TalkToFigma": {
"command": "bunx",
"args": ["cursor-talk-to-figma-mcp@latest"]
}
}
}You can also add it manually for Claude Code via the CLI:
claude mcp add TalkToFigma -- bunx cursor-talk-to-figma-mcp@latestAgent Notes
- Always call
join_channelbefore issuing any Figma commands - Call
get_document_infofirst to understand the design structure - Use
read_my_designorget_selectionbefore making modifications - Batch operations (
set_multiple_text_contents,delete_multiple_nodes,set_multiple_annotations) are preferred over repeated single-node calls for performance - All MCP tool parameters are Zod-validated; invalid inputs return structured errors
- The plugin and relay must both be running before any tool calls succeed
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

