Talk-to-Figma-Cursor
Model Context Protocol (MCP) integration between Cursor AI and Figma
claude mcp add --transport stdio ysocrius-talk-to-figma-cursor npx cursor-talk-to-figma-mcp@latest
How to use
Cursor Talk to Figma MCP enables Cursor AI to interact with Figma designs by reading document data, selecting elements, and creating or modifying design elements through a WebSocket-backed MCP server. The MCP server runs via npx from the npm package cursor-talk-to-figma-mcp, and exposes a set of commands that you can invoke from Cursor to perform actions such as retrieving document info, inspecting the current selection, and creating shapes or text. Use the example mcp_TalkToFigma-mcp_join_channel command in Cursor to connect to the running MCP channel, then issue specific mcp_TalkToFigma-mcp_ commands with the required parameters to manipulate your Figma design in real time.
How to install
Prerequisites:
- Node.js (includes npm and npx) installed on your system. Verify with: node -v and npx -v
- Access to a terminal or command prompt
Installation steps:
- Install and run the WebSocket server file (node_socket_server.mjs) locally:
# Download node_socket_server.mjs to your working directory
# Start the server with Node.js
node node_socket_server.mjs
- Configure Cursor to use the MCP server via npx:
{
"mcpServers": {
"TalkToFigma": {
"command": "npx",
"args": [
"cursor-talk-to-figma-mcp@latest"
]
}
}
}
- (Optional Windows compatibility) If you need to run via cmd, you can use:
{
"mcpServers": {
"TalkToFigma-mcp": {
"command": "cmd",
"args": [
"bash",
"-c",
"cmd /c npx -y cursor-talk-to-figma-mcp@latest"
]
}
}
}
- Install and connect the Figma plugin as described in the repository's instructions, then join the MCP channel from Cursor using the appropriate join command. Ensure the Figma plugin has localhost usage enabled on port 3055 and note the channel name displayed in the plugin.
Additional notes
Tips and notes:
- Ensure port 3055 is available for the WebSocket server and that firewall rules allow local WebSocket connections.
- If you see issues like "Must join a channel", first join the channel from the Figma plugin before sending commands from Cursor.
- The MCP commands cover reading document and selection info, creating and editing design elements, text handling, color and style adjustments, and more. For a complete list, refer to the full documentation linked in the repository.
- Using npx ensures compatibility across environments without Bunx; you can also use Windows cmd as shown for compatibility. Always use the latest package version for new commands and fixes.
Related MCP Servers
Figma-Context
MCP server to provide Figma layout information to AI coding agents like Cursor
cursor-talk-to-figma
TalkToFigma: MCP integration between AI Agent (Cursor, Claude Code) and Figma, allowing Agentic AI to communicate with Figma for reading designs and modifying them programmatically.
claude-talk-to-figma
A Model Context Protocol (MCP) that allows Claude Desktop and other AI tools (Claude Code, Cursor, Antigravity, etc.) to read, analyze, and modify Figma designs
flowlens
FlowLens is an open-source MCP server that gives your coding agent (Claude Code, Cursor, Copilot, Codex) full browser context for in-depth debugging and regression testing.
Pare
Dev tools, optimized for agents. Structured, token-efficient MCP servers for git, test runners, npm, Docker, and more.
mcp-made-simple
Model Context Protocol (MCP) Made Simple - Code for the tutorial series - focusing on practical ways to understand and use MCP