open-figma-mcp
v0.1.2
Published
Open-source Figma MCP server with full read/write access via a local plugin bridge — no Figma REST API, no rate limits.
Maintainers
Readme
open-figma-mcp
Open-source Figma MCP server with full read/write access via a local plugin bridge — no REST API, no rate limits. Works with Claude, Cursor, Codex, GitHub Copilot, and any MCP-compatible AI tool.
Highlights
- No Figma API token required
- No rate limits — works on free Figma plans
- Read and write live Figma data via a local plugin bridge — 85 tools total
- Full design automation — styles, variables, components, prototypes, content, exports
- Screen registry — sitemap → frames → stable
screenKeyreferences that survive re-layout
How it works
AI agent (MCP client)
⇅ stdio
MCP server (Node.js)
⇅ ws://127.0.0.1:18765/ws
Figma plugin (UI iframe ⇄ sandbox)
⇅
Figma fileThe server binds a local WebSocket on 127.0.0.1:18765. The Figma plugin connects to it from inside Figma Desktop. Every tool call round-trips: MCP client → server → WebSocket → plugin → Figma → back.
No Figma REST API, no Figma OAuth, no hosted MCP. Bridge stays on the loopback interface.
Why this exists
Most Figma MCP servers route through the Figma REST API. That hits rate limits:
| Plan | REST tool-call limit | |------|----------------------| | Starter / View / Collab | ~6 calls/month | | Pro / Org (Dev seat) | 200 calls/day | | Enterprise | 600 calls/day |
A few minutes of AI experimentation burns through that. This project skips the REST API entirely and talks to Figma through the official plugin API instead. The plugin runs locally inside your Figma Desktop, so the "rate limit" is just whatever your machine can do.
Installation
Install via npx — no clone or build step required.
1. Configure your AI tool
Claude Code CLI
claude mcp add -s user open-figma-mcp -- npx -y open-figma-mcp@latestCodex CLI
codex mcp add open-figma-mcp -- npx -y open-figma-mcp@latest.mcp.json (Claude Desktop and other MCP-compatible tools)
{
"mcpServers": {
"open-figma-mcp": {
"command": "npx",
"args": ["-y", "open-figma-mcp@latest"]
}
}
}.vscode/mcp.json (Cursor / VS Code / GitHub Copilot)
{
"servers": {
"open-figma-mcp": {
"type": "stdio",
"command": "npx",
"args": ["-y", "open-figma-mcp@latest"]
}
}
}git clone https://github.com/Hemil4/open-figma-mcp.git
cd open-figma-mcp
npm install
npm run buildThen point your AI tool config at <repo>/server/dist/index.js instead of the npx command.
The MCP client launches the server. Since v0.1.1, multiple MCP server processes co-exist: the first to bind
127.0.0.1:18765becomes the bridge owner, and additional servers join as peers and route their tool calls through the owner. Run Claude, Codex, Cursor side-by-side against one Figma plugin. Override the port viaFIGMA_MCP_PORT=<port>if you need to relocate it (all servers must agree on the same port).
3. Install the Figma plugin
- Download plugin.zip from the latest release and extract it
- In Figma Desktop: Plugins → Development → Import plugin from manifest…
- Pick the extracted
manifest.json - Open any Figma file and run Plugins → Development → Open Figma MCP
- The plugin UI should show Connected
Working from a clone instead? Step 1's path is
<repo>/plugin/manifest.json— no download needed.
If it shows Disconnected, your MCP server is not running yet. Start a session in your AI tool (which launches the server) and click Reconnect.
Screen registry workflow
The headline workflow: turn a sitemap into frames, then drive AI edits by stable screenKey instead of brittle node IDs.
// AI agent calls figma_create_screen_frames
{
"projectName": "SaaS CRM",
"sectionName": "SaaS CRM Screens",
"screens": [
{ "key": "home", "title": "Home", "route": "/" },
{ "key": "pricing", "title": "Pricing", "route": "/pricing" },
{ "key": "login", "title": "Login", "route": "/login" },
{ "key": "dashboard", "title": "Dashboard", "route": "/dashboard" }
]
}Frames get created in Figma and a registry is written to .open-figma-mcp/screen-registry.json (override path via FIGMA_MCP_REGISTRY_PATH).
After that, any creating/mutating tool accepts screenKey:
{
"screenKey": "login",
"text": "Welcome back",
"x": 64,
"y": 80,
"fontSize": 32
}When the frame moves or gets renamed, the registry still resolves the key.
Available Tools
85 tools total — 79 bridge tools plus 6 workflow/status/export helpers.
Read — Document & Selection
| Tool | Description |
|------|-------------|
| figma_get_document | Serialized current file tree (depth + detail level) |
| figma_get_metadata | File name, pages, current page, selection count |
| figma_get_pages | List pages (no tree loading) |
| figma_get_selection | Currently selected nodes |
| figma_get_node | Single node by ID |
| figma_get_nodes_info | Multiple nodes by ID |
| figma_get_design_context | Depth-limited tree (minimal/compact/full) for selection, page, node, or screen |
| figma_search_nodes | Find nodes by name/type under a subtree |
| figma_scan_text_nodes | All TEXT nodes under a subtree |
| figma_scan_nodes_by_types | All nodes matching given types |
| figma_get_viewport | Viewport center + zoom |
Read — Styles, Variables, Libraries
| Tool | Description |
|------|-------------|
| figma_get_styles | Local paint, text, effect, grid styles |
| figma_get_variable_defs | Local variable collections + values |
| figma_get_local_components | Components + component sets with variants |
| figma_get_annotations | Plugin-data annotations |
| figma_get_fonts | Fonts used + optionally available fonts |
| figma_get_reactions | Prototype reactions on a node |
| figma_get_libraries | Components, styles, variables, fonts, pages, file metadata |
| figma_search_design_system | Search components/styles/variables/fonts/pages |
Write — Create
| Tool | Description |
|------|-------------|
| figma_create_frame | Create a frame with optional auto-layout, fill, parent |
| figma_create_rectangle | Create a rectangle with optional fill + corner radius |
| figma_create_ellipse | Create an ellipse / circle |
| figma_create_text | Create a text node (font loaded automatically) |
| figma_import_image | Decode base64 image, place as rectangle fill |
| figma_create_component | Convert a frame into a reusable component |
| figma_create_section | Create a Section node to organize frames |
Write — Modify
| Tool | Description |
|------|-------------|
| figma_set_text | Update TEXT node content |
| figma_set_fills | Set/append solid fill |
| figma_set_strokes | Set/append solid stroke + weight |
| figma_set_opacity | Set opacity 0–1 |
| figma_set_corner_radius | Uniform or per-corner radius |
| figma_set_auto_layout | Auto-layout direction, padding, spacing, alignment |
| figma_set_visible | Show / hide |
| figma_lock_nodes / figma_unlock_nodes | Lock or unlock |
| figma_rotate_nodes | Absolute rotation in degrees |
| figma_reorder_nodes | bringToFront / sendToBack / bringForward / sendBackward |
| figma_set_blend_mode | MULTIPLY, SCREEN, OVERLAY, … |
| figma_set_constraints | Responsive horizontal + vertical constraints |
| figma_move_nodes | Move to absolute x/y |
| figma_resize_nodes | Resize by width/height |
| figma_rename_node | Rename a node |
| figma_clone_node | Clone, optionally re-position or re-parent |
| figma_reparent_nodes | Move under a new parent |
| figma_batch_rename_nodes | Bulk rename via regex / prefix / suffix / numbering |
| figma_find_replace_text | Find + replace across TEXT nodes (regex supported) |
| figma_set_effects | Drop shadow / blur effects |
| figma_align_distribute | Align + distribute selected/provided nodes |
| figma_set_layout_grid | Apply a layout grid to a frame |
| figma_measure_spacing | Bounds, gaps, overlaps, alignment deltas |
Write — Delete
| Tool | Description |
|------|-------------|
| figma_delete_nodes | Delete one or more nodes |
Write — Styles
| Tool | Description |
|------|-------------|
| figma_create_paint_style | Create a paint style |
| figma_create_text_style | Create a text style |
| figma_create_effect_style | Create an effect style |
| figma_create_grid_style | Create a layout-grid style |
| figma_update_paint_style | Rename / recolor an existing paint style |
| figma_delete_style | Delete any local style |
| figma_apply_style_to_node | Apply a style to a node (link, not copy) |
| figma_bind_variable_to_node | Bind a variable to a node property |
Write — Variables
| Tool | Description |
|------|-------------|
| figma_create_variable_collection | New variable collection |
| figma_add_variable_mode | Add a mode (e.g. Light/Dark) to a collection |
| figma_create_variable | Create a COLOR/FLOAT/STRING/BOOLEAN variable |
| figma_set_variable_value | Set a variable value for a mode |
| figma_delete_variable | Delete a variable |
Write — Pages
| Tool | Description |
|------|-------------|
| figma_navigate_to_page | Switch the active page |
| figma_add_page | Add a new page |
| figma_delete_page | Delete a page (cannot delete the only page) |
| figma_rename_page | Rename a page |
Write — Components & Grouping
| Tool | Description |
|------|-------------|
| figma_group_nodes | Group 2+ nodes |
| figma_ungroup_nodes | Ungroup |
| figma_create_component_set | Combine 2+ components into a component set |
| figma_swap_component | Swap an instance's main component |
| figma_detach_instance | Detach an instance to a plain frame |
Write — Prototype
| Tool | Description |
|------|-------------|
| figma_set_reactions | Set prototype reactions (replace or append) |
| figma_remove_reactions | Remove all reactions from a node |
Export
| Tool | Description |
|------|-------------|
| figma_get_screenshot | Export node(s) as PNG/JPG/SVG/PDF base64 |
| figma_save_screenshots | Export and write image files to disk |
| figma_export_frames_to_pdf | Multi-frame PDF export, optionally written to disk |
| figma_export_tokens | Export local styles + variables as design tokens |
Generation
| Tool | Description |
|------|-------------|
| figma_generate_diagram | Create a structured diagram frame with boxes + connectors |
| figma_generate_screen | Create an app screen from a JSON element list |
Workflow & Status
| Tool | Description |
|------|-------------|
| figma_status | Bridge status + last known plugin status |
| figma_create_screen_frames | Sitemap → frames + persisted screen registry |
| figma_get_screen_registry | Read the screen registry file |
| figma_get_screen | Resolve one screen by key + return live node details |
Security
The bridge binds 127.0.0.1 only. Do not change the host or expose port 18765 on a public interface — the bridge has no auth.
The plugin manifest currently uses networkAccess.allowedDomains: ["*"] to simplify the dev path. Treat this repo as a development plugin, not a Figma Community submission. Production hardening (narrowed allow-list, signed bundle) is open work.
Development
npm run build # build server + plugin
npm run build:server # tsc only
npm run build:plugin # esbuild only
npm run dev # run server from source via tsx (no plugin rebuild)
npm run start # run the built server directly
npm run typecheck # tsc --noEmit on the serverAdding a tool requires two edits in lockstep:
- Add a
ToolSpectobridgeToolsinserver/src/index.ts - Add a matching
case "<command>":in thehandleCommandswitch inplugin/src/code.ts npm run build(both halves)
Forgetting either half produces an unhandled-command error at the plugin side.
See CLAUDE.md for the architecture deep-dive.
Related Projects
- vkhanhqui/figma-mcp-go — sibling project, Go-based, npm-distributed
- magic-spells/figma-mcp-bridge
- grab/cursor-talk-to-figma-mcp
- gethopp/figma-mcp-bridge
Contributing
Issues and PRs welcome. See CLAUDE.md for the architecture map and bridgeTools / handleCommand switch invariant.
License
MIT © Hemil Patel
