figma-mcp
Connects AI agents to Figma through a plugin and WebSocket relay, providing tools to list/join channels, read node trees, inspect asset predictions, export nodes as SVG or PNG, and measure gaps between nodes.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
figma-mcp
MCP server that connects AI agents (Cursor, Claude Code) to Figma: read node trees, classify assets, export SVG/PNG, and measure layout gaps.
Agent ←stdio→ MCP server ←WebSocket→ relay (port 3055) ←WebSocket→ Figma pluginPath | Role |
| MCP server (built to |
| WebSocket relay |
| Figma plugin ( |
Setup
Install Bun, then from the repo root:
bun install
bun setup # writes .cursor/mcp.json and .mcp.json
bun socket # relay on ws://localhost:3055In Figma: Plugins → Development → Link existing plugin →
src/cursor_mcp_plugin/manifest.json, run the plugin, and join the same channel the agent uses.In the agent: call
list_channels, thenjoin_channel(match bychannel_descriptionorchannelfrom the list) before any other Figma command.
MCP config
Published package (from bun setup):
{
"mcpServers": {
"figma-mcp": {
"command": "bunx",
"args": ["figma-mcp@latest"]
}
}
}Local development:
{
"mcpServers": {
"figma-mcp": {
"command": "bun",
"args": ["/absolute/path/to/figma-mcp/src/talk_to_figma_mcp/server.ts"]
}
}
}Related MCP server: finish-line
Tools
Tool | Purpose |
| Active relay channels (name, client count, description) |
| Join by |
| Single node tree (filtered) |
| Batch node trees |
| Asset prediction scores and |
| SVG string; optional |
| PNG (base64 or file); |
| Edge gap and offsets between two nodes |
Node IDs: Figma API form (2403:34143), URL form (2403-34143), or instance path (I2403-34143-…).
Notes for agents
list_channelsthenjoin_channel— list active plugin channels first; join by matchingchannel_description(Figma file name) or exactchannelfrom the list. Skip listing only when the user supplied a channel ID. No other Figma calls work until MCP and plugin share a channel.Unpainted nodes —
get_node_info/get_nodes_infoomit children withabsoluteRenderBounds: null; do not emit HTML for them.Export — prefer
export_node_as_svgwhen the subtree has < 3 vector primitives and SVG is ≤ 8 KB; otherwiseexport_node_as_image(scale: 2–4). UseoutputDirto write under your project (absolute or relative to MCP server cwd).WSL — uncomment
hostname: "0.0.0.0"insrc/socket.tsif the plugin cannot reach the relay.
Development
bun run build # tsup → dist/
bun run dev # watch build
bun run start # run dist/server.jsPlugin sources are edited directly in src/cursor_mcp_plugin/ (no separate plugin build).
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Keeps Figma in sync with your Storybook and sends designers' changes to your coding agent.
The Figma MCP server brings Figma design context directly into your AI workflow.
Give AI agents your deeepSpace design system: components, tokens, styles and code mappings.
Connect AI coding agents to Anima Playground, Figma, and your design system.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI agents like Claude to interact with Figma designs through 50+ tools for creating, styling, and manipulating design elements, components, and variables via a WebSocket relay and Figma plugin.-
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to inspect Figma selections, navigate pages, render previews, generate starter code, and submit user-approved canvas edits through a local bridge.3 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to read, create, edit, and organize Figma documents directly through a local plugin bridge, without needing a Figma AI subscription.3Apache 2.0
- AlicenseAqualityFmaintenanceEnables AI agents to bridge to Figma through a local plugin for batched canvas edits, design-system search, token extraction and diffing, asset export, audits, and website-to-design capture.1811 npm1MIT