OpenFigma MCP
Provides tools to read and edit Figma files through a Figma plugin: inspect documents, selections and nodes; create and modify frames, text, shapes, styles, components and instances; and manage auto layout, annotations, prototypes and documentation links.
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.
OpenFigma MCP
An MCP server and Figma plugin that let Claude Code, or any other MCP client, read and edit Figma files. Built on Talk to Figma MCP, without its separate WebSocket relay: each MCP server listens for the plugin itself, so every Claude Code session works on its own.
How it connects
Claude Code session ←(stdio)→ MCP server on a port from 3155–3164 ←(WebSocket)→ Figma plugin, one per open fileEach MCP server (one per Claude Code session or script) listens on the first free port from 3155 to 3164.
The plugin connects to every server that answers and tells it the file's key: the ID after
/design/in the file's URL. It looks again every 2 seconds, so new sessions get connected without any action.A session picks its file with
join_channeland the file key. Its commands go only to that file's plugin, and the answers come back only to that session.Figma starts a plugin only when someone runs it, so run the plugin once after opening a file.
Related MCP server: TalkToFigma
Project Structure
src/server/- TypeScript MCP server for Figma integrationsrc/plugin/- Figma plugin that connects the open file to the MCP serversscripts/check-sessions.ts- checks two servers side by side against a fake plugin:bun scripts/check-sessions.tsscripts/check-design-system.ts- checks the design-system tools against a copy of Apple's iOS and iPadOS 27 kit with the plugin running in it:bun scripts/check-design-system.ts <file key> [check name …]kits/- one design-system guide per kit (see Design-system guides)
Setup
Install Bun, then the dependencies:
bun installAdd the MCP server to Claude Code (other MCP clients take the same command in their MCP config):
claude mcp add OpenFigma-MCP -- bun /path-to-repo/src/server/server.tsClaude Code server names allow only letters, numbers, hyphens and underscores, hence
OpenFigma-MCP.In Figma: Plugins > Development > Import plugin from manifest…, then pick
src/plugin/manifest.jsonOpen a file and run the OpenFigma MCP plugin. Its window lists the connected sessions
In Claude Code, choose the file with
join_channeland its file key, then use the tools below
Usage analytics
The plugin sends anonymous usage events to the project's Google Analytics 4 property over the Measurement Protocol:
plugin_open, channel_join when it connects to a session, and command_executed per command with its name, success,
duration and error message. No file content is sent. The Measurement ID and API secret are at the top of the analytics
block in src/plugin/ui.html; the secret only lets its holder send events, not read or change the property.
Design-system guides
kits/ holds one guide per design-system kit, such as kits/ios-ipados-27.md for Apple's iOS and iPadOS 27 kit: how
the kit's tokens and elements become code, and how its elements are linked to their guideline pages. The server's MCP
instructions give every session the folder's path. Each linked kit element carries its guideline page as its Figma
documentation link, which node info reports as component.link.
Design Automation Example
Bulk text content replacement
Thanks to @dusskapark for contributing the bulk text replacement feature. Here is the demo video.
Instance Override Propagation Another contribution from @dusskapark Propagate component instance overrides from a source instance to multiple target instances with a single command. This feature dramatically reduces repetitive design work when working with component instances that need similar customizations. Check out our demo video.
MCP Tools
The MCP server provides the following tools for interacting with Figma:
Document & Selection
get_document_info- Get information about the current Figma documentget_selection- Get information about the current selectionread_my_design- Get detailed node information about the current selection without parametersget_node_info- Get detailed information about a specific node, including what it's made of:component(for an instance: its main component, component set, property values, description and documentation link),styles,textStyles(per range),variables(bound variables by name),layout, andinferredLayout(Figma's inferred auto layout, for frames without auto layout).layoutandinferredLayoutleave out Figma's defaults (no auto layout, spacing and padding 0, alignment MIN, sizing modes AUTO, layoutAlign INHERIT, layoutGrow 0, layoutSizing FIXED), and a hidden layer hasvisible: falseget_nodes_info- Get detailed information about multiple nodes by providing an array of node IDsset_focus- Set focus on a specific node by selecting it and scrolling viewport to itset_selections- Set selection to multiple nodes and scroll viewport to show them
Annotations
get_annotations- Get all annotations in the current document or specific nodeset_annotation- Create or update an annotation with markdown supportset_multiple_annotations- Batch create/update multiple annotations efficientlyscan_nodes_by_types- Scan for nodes with specific types (useful for finding annotation targets)
Prototyping & Connections
get_reactions- Get all prototype reactions from nodes with visual highlight animationset_default_connector- Set a copied FigJam connector as the default connector style for creating connections (must be set before creating connections)create_connections- Create FigJam connector lines between nodes, based on prototype flows or custom mapping
Creating Elements
create_rectangle- Create a new rectangle with position, size, and optional namecreate_frame- Create a new frame with position, size, and optional namecreate_section- Create a section to group related content on the canvascreate_text- Create a new text node in any installed font (fontFamily,fontStyle), with alignment, fixed width, line height and letter spacingcreate_page- Create a page (a Starter-plan file is limited to 3 pages)create_ellipse- Create an ellipse, circle, ring (stroke only) or arccreate_svg- Create vector layers from SVG markup, like Figma's SVG import (lines, arrows, paths, icons)create_slice- Create a slice, an export region over whatever lies under it
Modifying text content
scan_text_nodes- Scan text nodes with intelligent chunking for large designsset_text_content- Set the text content of a single text nodeset_multiple_text_contents- Batch update multiple text nodes efficientlyset_text_style- Change a text node's font, size, alignment, line height, letter spacing or sizing, also inside instances
Auto Layout & Spacing
set_layout_mode- Set the layout mode and wrap behavior of a frame (NONE, HORIZONTAL, VERTICAL)set_padding- Set padding values for an auto-layout frame (top, right, bottom, left)set_axis_align- Set primary and counter axis alignment for auto-layout framesset_layout_sizing- Set horizontal and vertical sizing modes for auto-layout frames (FIXED, HUG, FILL)set_item_spacing- Set distance between children in an auto-layout frame
Styling
set_fill_color- Set the fill color of a node (RGBA)set_stroke_color- Set the stroke color and weight of a nodeset_corner_radius- Set the corner radius of a node with optional per-corner controlset_image_fill- Fill a node with an image from a local file path, URL, or base64 data (FILL, FIT, CROP, or TILE)set_gradient_fill- Replace a node's fills with a linear, radial, angular or diamond gradientset_effects- Replace a node's effects: drop and inner shadows, layer and background blur, Liquid Glassset_node_properties- Set opacity, visibility, rotation, blend mode, clipping, lock, stroke alignment, dashes or corner smoothing
Layout & Organization
move_node- Move a node to a new positionresize_node- Resize a node with new dimensionsdelete_node- Delete a nodedelete_multiple_nodes- Delete multiple nodes at once efficientlyclone_node- Create a copy of an existing node with optional position offsetrename_node- Rename a nodeset_parent- Move a node into a new parent (section, frame or group), preserving its absolute position by defaultgroup_nodes/ungroup_node- Group nodes, or ungroup keeping the childrenboolean_operation- Combine shapes with union, subtract, intersect or exclude
Components & Styles
get_styles- Get information about local stylesget_local_components- Get information about local componentsget_components_by_page- List each page's component sets and the components outside sets, with their descriptions and documentation links; variants are left out (get_local_componentslists them), except those with a description or link of their own, listed under their setset_documentation_links- Set or clear the documentation links of components, component sets, variants and styles, in one batch; each item reports its own resultcreate_component_instance- Create an instance of a componentget_instance_overrides- Extract override properties from a selected component instanceset_instance_overrides- Apply extracted overrides to target instancesget_instance_properties/set_instance_properties- Read and set an instance's variants and its boolean, text and instance-swap propertiesdetach_instance- Detach an instance into a framecreate_component_from_node- Turn a node into a componentapply_style- Apply a local fill, stroke, text or effect stylebind_color_variable- Bind a fill or stroke colour to a local colour variable, by ID or name
Export & Advanced
export_node_as_image- Export a node as an image (PNG, JPG, SVG, or PDF) - limited support on image currently returning base64 as textexport_node_to_file- Export a node or slice to a file on disk (PNG, JPG, SVG or PDF)
Connection Management
join_channel- Choose the file to work on, by its file key from the file's URL
MCP Prompts
The MCP server includes several helper prompts to guide you through complex design tasks:
design_strategy- Best practices for working with Figma designsread_design_strategy- Best practices for reading Figma designstext_replacement_strategy- Systematic approach for replacing text in Figma designsannotation_conversion_strategy- Strategy for converting manual annotations to Figma's native annotationsswap_overrides_instances- Strategy for transferring overrides between component instances in Figmareaction_to_connector_strategy- Strategy for converting Figma prototype reactions to connector lines using the output of 'get_reactions', and guiding the use 'create_connections' in sequence
Development
Building the Figma Plugin
Navigate to the Figma plugin directory:
cd src/pluginEdit code.js and ui.html
Best Practices
When working with the Figma MCP:
Always choose a file with
join_channelbefore sending commandsGet document overview using
get_document_infofirstCheck current selection with
get_selectionbefore modificationsUse appropriate creation tools based on needs:
create_framefor containerscreate_rectanglefor basic shapescreate_textfor text elements
Verify changes using
get_node_infoUse component instances when possible for consistency
Handle errors appropriately as all commands can throw exceptions
For large designs:
Use chunking parameters in
scan_text_nodesMonitor progress through WebSocket updates
Implement appropriate error handling
For text operations:
Use batch operations when possible
Consider structural relationships
Verify changes with targeted exports
For converting legacy annotations:
Scan text nodes to identify numbered markers and descriptions
Use
scan_nodes_by_typesto find UI elements that annotations refer toMatch markers with their target elements using path, name, or proximity
Categorize annotations appropriately with
get_annotationsCreate native annotations with
set_multiple_annotationsin batchesVerify all annotations are properly linked to their targets
Delete legacy annotation nodes after successful conversion
Visualize prototype noodles as FigJam connectors:
Use
get_reactionsto extract prototype flows,set a default connector with
set_default_connector,and generate connector lines with
create_connectionsfor clear visual flow mapping.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
The Figma MCP server brings Figma design context directly into your AI workflow.
Connect ChatGPT and Claude to your Mac, Windows or Linux with secure MCP remote access.
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Kliv is an AI web-app builder. It hosts each app with its own database, edge functions, commerce and email. Connect Claude Code or Cursor to Kliv's MCP server, sign in with your Kliv account, and your AI tool can work on your apps with the same tools the Kliv builder uses. It can edit an app's files, change the database, write and run edge functions, set up products and subscriptions, and run your tests. Then it can build and publish the app. Other MCP clients connect the same way. Your AI tool runs on your own AI subscription, so this work doesn't use your Kliv usage. Kliv still hosts the app and everything behind it. Each person signs in as themselves and reaches only the apps they can edit. The account owner sees every connected tool and can remove one at any time. The address is https://mcp.kliv.dev/mcp for everyone. Sign-in is OAuth in your browser, with your Kliv account. There are no API keys. Setup guide: https://docs.kliv.dev/integrations/mcp
Related MCP Servers
- AlicenseCqualityDmaintenanceEnables MCP clients to read and modify Figma documents through a local WebSocket relay and Figma development plugin.44MIT
- AlicenseBqualityCmaintenanceEnables writing to Figma from MCP clients like Claude Code without a Figma Dev seat, using a local WebSocket relay and a Figma dev plugin.44MIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients to read and modify the currently open Figma design file through a paired local Figma plugin, supporting operations like creating nodes, editing properties, and exporting PNG/SVG.2MIT
- AlicenseNot gradedqualityBmaintenanceConnects an MCP client such as Claude Code to the Figma file open in the desktop app, letting the agent create frames, write text, apply styles, import images and SVGs, take screenshots, and run arbitrary Figma Plugin API code. Commands travel through a local development plugin instead of Figma's web API, so there are no tokens, quotas, or rate limits.62 npm4MIT