How grab/cursor-talk-to-figma-mcp works
Talk to Figma MCP connects an AI agent to a running Figma plugin through a channel-based WebSocket relay. The principal workflow is: an agent invokes an MCP tool, the server sends a command through the relay, the plugin performs the design operation in Figma, and the response returns to the agent. The graph groups documented tool capabilities into domain stages. The README documents the overall connection; sampled excerpts show command dispatch and selected operations, so unsampled capability links rely on the README rather than claims of inspected implementation.
Main entry points: server.ts MCP server · code.js Plugin dispatcher · socket.ts Channel relay
Components 15
Agent interface
- MCP server
src/talk_to_figma_mcp/server.ts
WebSocket bridge
- Channel relay
src/socket.ts - Plugin dispatcher
src/cursor_mcp_plugin/code.js
Figma operations
- Figma document
Design capabilities
- Document and selection
src/cursor_mcp_plugin/code.js - Annotations
src/cursor_mcp_plugin/code.js - Prototype connections
src/cursor_mcp_plugin/code.js - Element creation
src/cursor_mcp_plugin/code.js - Text editing
src/cursor_mcp_plugin/code.js - Auto layout
src/cursor_mcp_plugin/code.js - Styling
src/cursor_mcp_plugin/code.js - Layout and organization
src/cursor_mcp_plugin/code.js - Components and styles
src/cursor_mcp_plugin/code.js - Image export
src/cursor_mcp_plugin/code.js
Other components
- AI agent
Connections 35
- AI agent → MCP server: invokes tools
README.md - MCP server → Channel relay: sends commands
README.md - Channel relay → Plugin dispatcher: forwards messages
README.md - Plugin dispatcher → Channel relay: returns results
README.md - Channel relay → MCP server: returns responses
README.md - MCP server → Document and selection: requests reads
src/talk_to_figma_mcp/server.ts - MCP server → Annotations: requests annotations
README.md - MCP server → Prototype connections: requests connections
README.md - MCP server → Element creation: requests creation
src/talk_to_figma_mcp/server.ts - MCP server → Text editing: requests text edits
src/talk_to_figma_mcp/server.ts - MCP server → Auto layout: requests layout changes
README.md - MCP server → Styling: requests style changes
README.md - MCP server → Layout and organization: requests organization
README.md - MCP server → Components and styles: requests component work
src/talk_to_figma_mcp/server.ts - MCP server → Image export: requests exports
src/talk_to_figma_mcp/server.ts - Plugin dispatcher → Document and selection: dispatches commands
src/cursor_mcp_plugin/code.js - Plugin dispatcher → Annotations: dispatches commands
src/cursor_mcp_plugin/code.js - Plugin dispatcher → Prototype connections: dispatches commands
src/cursor_mcp_plugin/code.js - Plugin dispatcher → Element creation: dispatches commands
src/cursor_mcp_plugin/code.js - Plugin dispatcher → Text editing: dispatches commands
src/cursor_mcp_plugin/code.js - Plugin dispatcher → Auto layout: dispatches commands
src/cursor_mcp_plugin/code.js - Plugin dispatcher → Styling: dispatches commands
src/cursor_mcp_plugin/code.js - Plugin dispatcher → Layout and organization: dispatches commands
src/cursor_mcp_plugin/code.js - Plugin dispatcher → Components and styles: dispatches commands
src/cursor_mcp_plugin/code.js - Plugin dispatcher → Image export: dispatches commands
src/cursor_mcp_plugin/code.js - Document and selection → Figma document: reads document
src/cursor_mcp_plugin/code.js - Annotations → Figma document: reads and updates
- Prototype connections → Figma document: reads and creates
- Element creation → Figma document: creates elements
README.md - Text editing → Figma document: updates text
src/cursor_mcp_plugin/code.js - Auto layout → Figma document: changes layout
- Styling → Figma document: changes styles
- Layout and organization → Figma document: organizes nodes
- Components and styles → Figma document: reads and updates
- Image export → Figma document: exports image
README.md