Home / MCP / Cursor Talk To Figma MCP Server
Provides an MCP integration between Cursor AI and Figma for reading and modifying design assets programmatically.
Configuration
View docs{
"mcpServers": {
"talk_to_figma": {
"command": "bun",
"args": [
"/path/to/cursor-talk-to-figma-mcp/src/talk_to_figma_mcp/server.ts"
]
}
}
}You set up a Model Context Protocol (MCP) integration between Cursor AI and Figma to read designs and modify them programmatically. This enables Cursor to query a Figma document, inspect nodes, create new elements, adjust styling, and export assets through a defined set of MCP tools, all coordinated via a WebSocket bridge and a local MCP server.
To use this MCP server, you install the MCP server in Cursor, start the WebSocket bridge, and run the Figma plugin that talks to Cursor. You then connect the plugin to the WebSocket server by joining a channel and begin sending commands to control Figma assets and documents.
Prerequisites: you need Bun installed to run the MCP server and its tooling.
Install Bun if you haven’t already.
curl -fsSL https://bun.sh/install | bashSet up the project and install MCP into your Cursor active project.
bun setupStart the WebSocket server that coordinates between the MCP server and the Figma plugin.
bun startInstall the Figma Plugin for Cursor MCP integration. The setup includes wiring the Figma plugin to connect to the WebSocket server.
MCP server configuration for Cursor is provided as a local stdio server that runs the TypeScript file responsible for talking to Figma.
The following example shows how to configure the MCP server in Cursor’s MCP settings.
{
"mcpServers": {
"TalkToFigma": {
"command": "bun",
"args": [
"/path/to/cursor-talk-to-figma-mcp/src/talk_to_figma_mcp/server.ts"
]
}
}
}Run the WebSocket server to enable real-time communication with the Figma plugin.
bun run src/socket.tsIn Figma, install the Cursor MCP plugin for development and connect it to the WebSocket server via a channel.
Steps include creating a new plugin, linking to the plugin manifest, and ensuring the plugin is available in Figma under Development plugins.
The MCP integration enables you to inspect the current document, query node information, and perform a variety of create, modify, and export actions through a stable tool set.
Retrieve information about the currently open Figma document, including its metadata and structure.
Obtain details about the current selection within the document to inform edits.
Fetch detailed information about a specific node by its ID.
Create a new rectangle with specified position, size, and optional name.
Create a new frame container with position, size, and optional name.
Create a new text node with customizable font properties.
Apply fill color to a node using RGBA values.
Apply stroke color and stroke weight to a node.
Set the corner radius of a node, with optional per-corner control.
Move a node to a new position in the canvas.
Resize a node to new width and height.
Remove a node from the document.
Retrieve information about local styles defined in the document.
Fetch information about locally defined components.
Fetch information about team-wide components.
Create an instance of a component at a specified position.
Export a node as an image in PNG, JPG, SVG, or PDF formats.
Execute arbitrary JavaScript code inside Figma with caution.
Join a specific channel to enable communication with Figma through the MCP plugin.