Figma MCP Go
Provides tools for interacting with Figma via its Plugin API, enabling read/write access to documents, styles, variables, components, prototypes, and content.
figma-mcp-go
Figma MCP — Local Plugin Integration
Open-source Figma MCP server with full read/write access via plugin. Turn text into designs and designs into real code. Works with Cursor, Claude, GitHub Copilot, and any MCP-compatible AI tool.
Highlights
Operates locally via the Figma Plugin API (no REST API token required)
Real-time execution directly on your local machine
Read and Write live Figma data via plugin bridge — 60 tools total
Full design automation — styles, variables, components, prototypes, content, and transactional batch pipelines
Design strategies included — read_design_strategy, design_strategy, and more prompts built in
Styles, Variables, Components, Prototypes, and Content
https://github.com/user-attachments/assets/eae41471-fc72-4574-8261-4f42c38b8c99
Text to Design, Design to Code
https://github.com/user-attachments/assets/17bda971-0e83-4f18-8758-8ac2b8dcba62
Why this exists
Most Figma MCP servers rely on the cloud-based Figma REST API.
While the REST API is excellent for server-to-server integrations, experimenting with AI tools often involves making hundreds of rapid tool calls per session. A cloud-based approach can introduce network latency and overhead.
This project takes a different approach by running as a local Figma Plugin. By bridging directly to the Figma Plugin API on your desktop, it provides instant, real-time read/write access to your active documents without relying on external cloud APIs or requiring an API token.
Related MCP server: figma-mcp-go
Installation & Setup
Install via npx or bunx — no build step required. Watch the setup video or follow the steps below.

1. Configure your AI tool
Claude Code CLI
# via npx
claude mcp add -s project figma-mcp-go -- npx -y @tunglt1810/figma-mcp-go@latest
# or via bunx
claude mcp add -s project figma-mcp-go -- bunx @tunglt1810/figma-mcp-go@latestCodex CLI
# via npx
codex mcp add figma-mcp-go -- npx -y @tunglt1810/figma-mcp-go@latest
# or via bunx
codex mcp add figma-mcp-go -- bunx @tunglt1810/figma-mcp-go@latest.mcp.json (Claude and other MCP-compatible tools)
{
"mcpServers": {
"figma-mcp-go": {
"command": "npx",
"args": ["-y", "@tunglt1810/figma-mcp-go"]
}
}
}.vscode/mcp.json (Cursor / VS Code / GitHub Copilot)
{
"servers": {
"figma-mcp-go": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@tunglt1810/figma-mcp-go"
]
}
}
}Plugin panel
The panel shows the connected file, the current selection, and what the AI is doing right now. Three controls sit above the connection row:
Control | What it does |
Guard |
|
Undo | Reverses the last change. A whole |
Log | Opens the activity log — every request with its tool name, duration, and error. |
Pin | Holds the current selection still. |
Guard, log, and the panel's size are remembered per machine. Drag the corner to resize it. The panel follows Figma's light and dark themes.
Dev Mode
Figma's Dev Mode Code panel shows the code you attach to a node with
set_codegen_result. The code lives in the Figma file, so every teammate's Dev
Mode shows it — not only the machine that generated it.
The panel looks for code on the node itself, then on the component an instance
came from, then on its ancestors. Attaching code to a COMPONENT or
COMPONENT_SET therefore covers every instance of it.
This is deliberately not live generation. Generating on demand would mean the Code panel asking your editor for a completion mid-render, which needs MCP sampling — optional in the protocol, and not implemented by the clients this server targets. Writing the code from your editor, where the repository is in front of it, produces better code anyway.
The Code panel has a Language selector. A node often carries several blocks — the component, its styles, the query behind it — and picking a language shows only those. A language with nothing stored for the node falls back to showing everything, so the setting never reads as "this node has no code".
2. Install the Figma plugin
In Figma Desktop: Plugins → Development → Import plugin from manifest
Select
manifest.jsonfrom the plugin.zipRun the plugin inside any Figma file
3. Running more than one AI tool at once (optional)
Every MCP client starts its own copy of the server, but only one process can hold the plugin connection on a given port. There are two ways to share, and they do different things.
Same Figma file, no configuration. Leave the default config everywhere. The first process to bind port 1994 owns the WebSocket to the plugin; the others detect the port is taken and proxy their tool calls to it over HTTP. Every client drives the one file the plugin is open in. If the process holding the port exits, another takes over within a few seconds.
Different Figma files, one port each. Give each client its own port and point a separate plugin instance at it:
{
"mcpServers": {
"figma-mcp-go": {
"command": "npx",
"args": ["-y", "@tunglt1810/figma-mcp-go", "--port", "1995"]
}
}
}Then open the plugin in the second Figma file and set the port to match under the settings gear. Each client now talks to its own file, with no proxying.
Note that the plugin stores host and port in figma.clientStorage, which is
shared across files — changing the port makes it the default the next time you
open the plugin anywhere, so expect to set it on whichever instance should use
1994.
--ip moves the listener off 127.0.0.1 (use 0.0.0.0 to accept connections
from another machine).
The plugin connection is not authenticated. On the default 127.0.0.1 bind
that costs nothing: only this machine can reach it. Move it off loopback and
anyone who can reach the port can read and edit whatever file the plugin is open
in. The server warns at startup when you do, and the plugin panel turns its
confirm guard on and says so, which gates the destructive tools rather than
the connection. Prefer an SSH tunnel to opening the port.
Upgrading
Re-download the plugin when you update the server. The server updates itself
through npx, but the Figma plugin is installed by hand, so the two can drift
apart. A plugin older than the server will reject commands it does not know with
Unknown request type.
Behaviour changes in 0.3.0
No tool changed its name or its arguments. Five things behave differently:
Log format. Server logs are now structured (
time=… level=INFO msg=… component=bridge …) rather than prefixed ([bridge] …). Anything grepping for[bridge]needs updating. Logs still go to stderr; stdout still carries only the MCP protocol.Log level. Set
FIGMA_MCP_LOGtodebug,info,warnorerror. The default isinfo, and tool parameters — your text, colours and names — now appear only atdebug.Starting up. A call made before the server has settled on a leader now says so, instead of failing with
connection refused. A call made while the plugin is reconnecting after a leader handover waits for it rather than reporting the plugin as absent.Large requests. Sending a large payload — an image, a long pipeline — no longer risks the plugin being disconnected mid-transfer, and no longer blocks other calls that have a shorter deadline of their own.
/pingreturnsrole,connected,pendinganduptimeSecondsalongsidestatusandversion.
Tool consolidation
Eighteen tools were removed by folding each into one that already covered it. No capability was lost — everything possible before is still one call:
Removed | Replacement |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Two of these gained something in the move. Moving and resizing a node is now
one call and one undo entry rather than two, and get_nodes_info reports
an ID that matched nothing under missing instead of dropping it — which used
to read as "that node has no content".
detail and dedupe_components were selection-only under
get_design_context; they apply to a page or document walk too now.
Four responses changed shape:
set_auto_layoutandset_annotationsanswer{results: [...]}, one entry per node, like every other multi-node tool.get_documentanswers{fileName, scope, currentPage, nodes: [...]}for all three scopes, instead of a bare page tree for one and aDOCUMENTwrapper for another.export_screenshotsanswers{total, succeeded, failed, results: [...]}, each result carrying either anoutputPathor abase64.
Breaking changes in 0.1.0
Eight single-purpose tools were replaced by one. Each took nodeIds plus a
single property, and they are now combinations of set_node_properties:
Removed | Replacement |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Properties can be combined, so what used to take several calls and several undo entries now takes one of each.
Eighteen more tools were merged into four, each selecting between the old tools with one argument. An argument belonging to a different variant is rejected with a message naming it, rather than being ignored:
Removed | Replacement |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Two things changed behaviour rather than just name. create_node({type:"ELLIPSE"})
honours startAngle, endAngle and innerRadiusRatio, which create_ellipse
declared but ignored — arcs and rings came out as plain ellipses. And name now
works on stars, polygons and lines, which read it but never declared it.
create_effect_style's type argument is effectType under create_style,
because type names the kind of style. Gradients can only target a fill;
set_paint says so rather than accepting target: "stroke" and doing nothing.
Available Tools
Write — Batch & Transactions
Tool | Description |
| Execute a transactional batch pipeline of mutation steps in Figma with stateful variable binding and rollback |
Write — Create
Tool | Description |
| Create a FRAME, RECTANGLE, ELLIPSE, STAR, POLYGON, LINE, or SECTION |
| Create a text node (font loaded automatically) |
| Place an image from a URL or base64 — as a new rectangle, or onto an existing node |
| Convert an existing FRAME node into a reusable component |
| Combine components into one COMPONENT_SET of variants |
| Declare what a component exposes — add, edit, delete, and bind properties to its layers |
| Create an instance of a component (local or library) |
| Create a Connector line between nodes (FigJam only) |
| Create a vector node from SVG markup — how an icon gets in |
| UNION, SUBTRACT, INTERSECT, or EXCLUDE two or more shapes |
| Flatten nodes into a single vector |
| Turn a node's stroke into an editable filled vector |
Write — Modify
Tool | Description |
| Update a TEXT node's content and node-wide settings — wrapping, truncation, alignment, paragraph spacing |
| Style parts of a TEXT node independently — a bold word, a coloured phrase, a hyperlink, a bulleted list |
| Paint a node's fill or stroke — solid, linear gradient, or radial gradient |
| Set or update auto-layout (flex) on frames, components, or instances — direction, padding, gap, alignment, HUG/FILL sizing, min/max bounds, and how each node sits in its parent's layout. Takes several nodes, for a whole row of siblings in one call |
| Set the column, row, or square grids drawn over a frame |
| Set any combination of position, size, corner radius, visibility, lock, opacity, rotation, blend mode, constraints, z-order, masking, and stroke geometry (weight, alignment, caps, joins, miter limit, dash pattern) on one or more nodes |
| Update Component Properties (variants, booleans, text) on a component instance |
| Set Dev Mode Annotations on one or more nodes; an empty array clears them (requires paid Dev Mode seat) |
| Clone a node, optionally repositioning or reparenting |
| Move nodes to a different parent frame, group, or section |
| Rename nodes — a literal |
| Find and replace text across all TEXT nodes in a subtree or page; supports regex |
| Select nodes and scroll the viewport to them, switching pages if needed — use it to show the user what changed |
| Save a named version in the file's version history — a way back that survives the session |
| Attach generated code to a node so it shows in Figma's Dev Mode Code panel |
| Read and write your own metadata on a node, stored in the Figma file |
| Set the export presets on nodes — the entries under Export in the right-hand panel |
Write — Delete
Tool | Description |
| Delete one or more nodes permanently |
Write — Prototype
Tool | Description |
| Set prototype reactions (triggers + actions) on a node; mode |
Write — Styles
Tool | Description |
| Apply drop shadow / blur effects directly on a node (no style required) |
| Create a named PAINT, TEXT, EFFECT, or GRID style |
| Rename or recolor an existing paint style |
| Apply an existing local style to a node, linking it to that style |
| Delete any style (paint, text, effect, or grid) by ID |
Write — Variables
Tool | Description |
| Create, change, delete and apply variables — |
Write — Pages
Tool | Description |
| Add, delete, rename, or navigate to a page ( |
Write — Components & Navigation
Tool | Description |
| Group two or more nodes into a GROUP |
| Ungroup GROUP nodes, moving children to the parent |
| Swap the main component of an INSTANCE node |
| Detach component instances, converting them to plain frames |
Read — Document & Selection
Tool | Description |
| Node tree of the selection, the current page, or the whole file — |
| File name, page count, current page, and every page with its ID |
| Currently selected nodes, or the set pinned in the panel with |
| One or more nodes by ID; an ID that matches nothing is reported under |
| Find nodes by name substring and/or type — current page, a subtree, or the whole document; |
| Current viewport center, zoom, and visible bounds |
Read — Styles & Variables
Tool | Description |
| Paint, text, effect, and grid styles |
| Variable collections and values |
| All components + component sets with variant properties |
| Get component properties and current values of an instance |
| Dev-mode annotations |
| All fonts used on the current page, sorted by frequency |
| Prototype/interaction reactions on a node |
Export
Tool | Description |
| Original bytes of the images placed on nodes, as base64 |
| Export nodes as images — to disk with an |
| Export multiple frames as a single multi-page PDF file saved to disk |
| Export design tokens (variables + paint styles) as JSON or CSS |
MCP Prompts
Prompt | Description |
| Best practices for reading Figma designs |
| Best practices for creating and modifying designs |
| Chunked approach for replacing text across a design |
| Convert manual annotations to native Figma annotations |
| Transfer overrides between component instances |
| Map prototype reactions into interaction flow diagrams |
Development
Go Server: Go 1.27+ (
make test-go,make build-go)Plugin UI: Bun 1.4+ (
cd plugin && bun install && bun run build)Testing:
make test(runs Go tests +bun testin plugin)Logs: stderr, structured.
FIGMA_MCP_LOG=debugto see tool parameters and wire trafficLayering:
make deps-checkfails the build on an import that crosses the package boundaries the wrong way.internal/is four packages —bridge(the plugin WebSocket),cluster(leader election and routing),figma(domain rules) andtools(the tool table) — and the arrows only point one way:tools → figma,cluster → bridge
On macOS the published binaries require macOS 13 Ventura or later — Go 1.27 dropped support for earlier versions.
Contributing
Issues and PRs are welcome.
Star History
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Related MCP Connectors
The Figma MCP server brings Figma design context directly into your AI workflow.
Marketo MCP server for AI. 130 tools to operate Marketo from Claude, Cursor, or ChatGPT.
Jinn gateway MCP — brand DNA, brand kits, design systems, and agency tools behind one bearer token.
Read and edit GA4, Search Console and Google Tag Manager from any MCP client. 29 tools.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceFigma MCP Bridge is a combined Figma plugin and MCP server that bypasses Figma's free API rate limits by streaming live document data directly to AI tools via a local WebSocket connection instead of the standard cloud API.559MIT
- AlicenseAqualityBmaintenanceFigma MCP server with full read/write access via plugin bridge — no API token, no rate limits. 58 tools for design automation: styles, variables, components, prototypes, and content.731,267MIT
- AlicenseAqualityCmaintenanceWrite-side MCP server for Figma — build, edit, and search Figma designs from Claude Code, Cursor, Cline, or any MCP client. Complements Figma's official read-only MCP with 41 tools for tree creation, variables, components, and visual verification.411MIT
- AlicenseNot gradedqualityCmaintenanceToken-efficient Figma MCP server with image export, query DSL, and design token support.19MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/tunglt1810/figma-mcp-go'
If you have feedback or need assistance with the MCP directory API, please join our Discord server