Skip to main content
Glama
figma-mcp-v2

figma-mcp-v2

by LukasAnda

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
FIGMA_TOKENNoPersonal access token (REST source, comments, private files)
FIGMA_COOKIENofigma.com cookie, for private files through the web source
FIGMA_SOURCENoForce web, rest or pluginauto
FIGMA_NO_BRIDGENoSet to 1 to disable the plugin bridge
FIGMA_ASSETS_DIRNoDefault output folder for figma_download_assetsfigma-assets
FIGMA_BRIDGE_PORTNoPlugin bridge port (also change it in the plugin window)3055
FIGMA_MAX_OUTPUT_CHARSNoSize at which design/code output gets trimmed60000
FIGMA_WEB_PROTOCOL_VERSIONNoViewer protocol version sent to Figma500

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Figma tools. Pass Figma links as url (right-click a layer in Figma > Copy link to selection gives a link with node-id). Reading needs no Dev Mode and no token for files shared by link: figma_get_file (pages/frames) → figma_get_design (layout/styles/tokens spec) + figma_get_screenshot (see it) → figma_get_code (starting code) → figma_download_assets (icons/images). figma_get_variables / figma_get_styles / figma_get_components describe the design system. Editing needs the "Figma MCP Bridge" plugin running in the file; check with figma_plugin_status, and use figma_install_plugin to set it up. Never edit unless the user asked for changes. Building designs: use figma_build_layout to create whole screens in one call (auto layout, components, variants, instances, token bindings, sections, arrows), then check the returned screenshot. Bind colors to variables (figma_bind_tokens) so themes work; figma_create_theme_variant makes dark (or other) variants. Present flows like a design team: one section per flow with a title, per-state headings with requirements, screens, short notes beside them, and arrows for navigation.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
figma_get_fileA

Lists a file's pages and the top-level frames/sections/components on each, with ids and sizes. Start here when a link has no node-id, then pass a frame's id to figma_get_design / figma_get_code / figma_get_screenshot.

figma_get_designA

Returns a compact, code-oriented spec of a frame/component/layer: layout (flex direction, gap, padding, alignment, sizing fill/hug/fixed), size/position, fills, strokes, radius, effects, text content and typography, component/variant/props of instances, bound variables (design tokens) by name, and which layers should be exported as assets. Repeated styles are listed once under "styles" and referenced by id (named Figma styles keep their names).

No Dev Mode or Figma seat needed. Works from a link: https://www.figma.com/design//?node-id=1-2

Use figma_get_screenshot alongside to see it, figma_get_code for a starting implementation, figma_download_assets to fetch icons/images.

figma_get_metadataA

Sparse outline of a node's layer tree: one line per layer with id, type, name, position and size (text layers show their text). Cheaper than figma_get_design for large screens. With name/type/text filters it searches the subtree and lists matches with their path, e.g. find every "Button" instance or the layer containing "Checkout".

figma_get_codeA

Generates a starting implementation of a frame/component from its Figma layout: React + Tailwind (arbitrary values), React + CSS, or HTML + CSS. Auto layout becomes flexbox/grid, sizing becomes fixed/flex/stretch, icons become (download them with figma_download_assets). Adapt the output to the project's existing components and design tokens rather than pasting it verbatim; figma_get_design lists the tokens and component instances.

figma_get_screenshotA

Renders a frame/component/layer to PNG and returns it as an image so you can see the design. Optionally saves it to save_to. The web source renders locally from the file's vector data (very close to Figma, small differences possible with blend modes and blurs); the REST source and plugin use Figma's own renderer.

figma_download_assetsA

Downloads a design's assets to a folder:

  • auto_detect (default on): finds icons/illustrations (vector-only layers) in the node and saves them as SVG, and saves images used as fills in their original format (png/jpg/webp/gif).

  • nodes: explicit layers to render, each as png/jpg/svg/pdf at a scale (e.g. a logo at 2x). Identical files are saved once. Returns the list of written files with the node each came from, so code can reference them.

figma_get_componentsA

Lists components and component sets (with variants, property definitions, descriptions and how often each is used), so you can map Figma components to code components. scope "page" covers the page of the linked node (fast); "file" loads every page.

figma_get_stylesA

Lists the file's local color, text, effect and grid styles with their values (colors as hex, typography as font/size/line-height). Use to map Figma styles to CSS variables or theme tokens.

figma_get_variablesA

Lists variable collections, modes (e.g. Light/Dark) and every variable's value per mode, with aliases shown by name. Works on any plan through the web source or the plugin; the REST source needs Enterprise.

figma_export_tokensA

Exports the file's variables as W3C Design Tokens (DTCG format 2025.10): one .tokens.json file per collection and mode, plus a .resolver.json whose modifiers switch modes (light/dark, brands, sizes). Colors become srgb color objects, spacing-like numbers become px dimensions, aliases become {group.token} references, and Figma scopes/code syntax go to $extensions. Feed the files to Style Dictionary or another DTCG tool to generate CSS, Swift or Kotlin. Works on any plan through the web source or the plugin.

figma_get_commentsA

Lists comments on the file (author, text, resolved state, and the node they are pinned to). Requires FIGMA_TOKEN.

figma_plugin_statusA

Shows which Figma files have the companion plugin connected (needed for every edit tool), and how to connect it if none are.

figma_install_pluginA

Copies the companion "Figma MCP Bridge" plugin (needed for every editing tool) to a stable folder on this computer, shows it in Finder/Explorer, and returns the import steps for the user. Use it when figma_plugin_status reports no plugin and the user hasn't imported it yet. Later server updates refresh the copied files automatically.

figma_get_selectionA

Returns the layers currently selected in Figma (via the plugin), with ids you can pass to the other tools.

figma_build_layoutA

Builds a whole nested layer tree in one call: screens, auto-layout stacks, text, shapes, SVG icons, components, variants and instances. Prefer this over many figma_create_node calls. Returns ids (by "ref"), warnings for anything Figma rejected, and optionally a PNG of the result to check it.

Node spec (all fields optional except where noted):

  • type: frame (default) | text (default when "text" is set) | rect | ellipse | line | svg (needs "svg") | instance | component | componentSet (children become variants, named "Prop=Value")

  • name, ref (id handle for later nodes and the result), children: [...]

  • Layout: layout "row"|"column"|"none", gap (number or "auto" = space-between), padding (n | [y,x] | [t,r,b,l]), align (main axis: start|center|end|between), cross (start|center|end|baseline), wrap

  • Size: width/height = number | "fill" | "hug" (auto-layout frames hug by default), minWidth, maxWidth, grow

  • Position: x, y (in non-auto-layout parents), position "absolute" inside auto layout

  • Look: fill, stroke, strokeWidth (n or {top,right,bottom,left}), strokeAlign inside|center|outside, dash, radius (n | [tl,tr,br,bl]), smoothing (0-1), opacity, clip, shadow {x,y,blur,spread,color,inset} or [..], blur, backgroundBlur, visible, rotation. Colors: "#RRGGBB(AA)" or "rgba()".

  • Text: text, font "Family/Style" (e.g. "Inter/Semi Bold"; styles matched loosely), weight 400-900, size, lineHeight (px | "140%" | "auto"), letterSpacing (px | "-2%"), color, textAlign, decoration underline|strikethrough, textCase, maxLines, ranges [{start,end,color,weight,size,decoration}]. width "fill" or a number makes it wrap.

  • svg: svgColor recolors all its paths.

  • Tokens: bind {fill|color|stroke|gap|padding|paddingX|paddingY|radius|width|height|opacity|: "variable name"}, textStyle / fillStyle / effectStyle: "style name"

  • Components: componentProps [{name, type TEXT|BOOLEAN|INSTANCE_SWAP, default, layer: "layer name"}] wires a property to a layer; description

  • Instances: componentRef (a ref built earlier in this call) | componentId | componentKey, variant {Prop: "Value"}, properties {Name: value}, overrides {"Layer name": "new text" | {text, color, fill, visible, ...}}

  • props: raw Plugin API properties applied last.

  • Pinning: anchor {left, right, top, bottom, centerX, above: "sibling name"} positions the node against its parent's edges after the whole tree is laid out (absolute inside auto layout, constraints set), e.g. a floating button {right: 16, bottom: 16, above: "Navigation bar"} or a sheet {left: 0, bottom: 0}.

  • Handoff: annotation "text" | {label, category, color, properties: ["padding","itemSpacing",...]} | [..] adds native Figma annotations (shown in Dev Mode); devStatus "READY_FOR_DEV" | "COMPLETED" | {type, description} on top-level frames or sections.

  • Presentation: type "section" (children positioned by x/y; the section fits around them with "padding", default 120; "fill" for its background). type "arrow" {from, to (refs or ids), fromSide?, toSide?: "top", color, strokeWidth, dash, gap} draws an orthogonal connector with an arrowhead once everything is placed, for flows between screens.

figma_bind_tokensA

Finds solid colors (fills, strokes and styled text ranges) in the given layers that are not bound to a variable, and binds each to the variable in a collection whose value matches exactly. Use after building or importing layers so they follow the design tokens. Returns how many paints changed and which colors had no matching token.

figma_create_theme_variantA

Clones layers (usually screens) as another theme. With mode, the clone switches the collection to that mode (paid plans with several modes). With to_collection, every color bound to from_collection is rebound to the same-named variable in to_collection (works on plans limited to one mode: keep a second collection such as "Tokens Dark" with identical names). Reports colors that were not bound to tokens, which will not change; run figma_bind_tokens on the source first. Clones inside auto layout flow after the original; a containing section grows to fit.

figma_anchor_nodesA

Positions existing layers against their parent's edges and sets matching constraints, taking them out of auto-layout flow if needed. For floating buttons, bottom sheets, toasts and badges, e.g. {right: 16, bottom: 16, above: "Navigation bar"}.

figma_draw_arrowsA

Draws orthogonal connector arrows between existing layers, e.g. from a button to the screen or sheet it opens. The side is chosen from the layers' positions unless given.

figma_auditA

Checks layers against accessibility and design-system standards and lists findings with node ids:

  • contrast: text vs. its background, WCAG 2.2 1.4.3 (4.5:1, large text 3:1), per styled range

  • nonTextContrast: outlines and icons vs. background, WCAG 1.4.11 (3:1)

  • targetSize: buttons, tabs, keys, checkboxes and anything with prototype reactions, against the platform hit area (ios 44pt per Apple HIG, android 48dp per Material, web 24px per WCAG 2.5.8)

  • hardcodedColor: fills/strokes not bound to a variable or style

  • textStyle: text without a text style

  • spacingGrid: auto-layout gap/padding off the 4px grid

  • layerName: default names like "Frame 12"

  • autoLayout: frames with several children and no auto layout Layers inside instances are checked for contrast and size only (their tokens belong to the main component). Run it on screens after building them and fix errors first.

figma_annotateA

Adds Figma's native annotations to layers: a note (plain text or markdown), optionally pinned properties that Dev Mode shows live (e.g. padding, itemSpacing, cornerRadius, fills, textStyleId, width, height), in a category such as "Interaction", "Accessibility" or "Content" (created if missing). Developers see them in Dev Mode next to the design. Prefer this over drawn note text for handoff.

figma_set_dev_statusA

Sets the Dev Mode status of top-level frames or sections (directly on a page or in a section): READY_FOR_DEV, COMPLETED, or none to clear. Needs a plan with Dev Mode (Professional or higher; Completed needs Organization or higher).

figma_create_nodeB

Creates a FRAME, RECTANGLE, ELLIPSE, LINE, POLYGON, STAR, COMPONENT, SECTION or TEXT layer, optionally inside a parent and with properties (auto layout, fills, text…). Returns its id.

figma_update_nodeB

Sets properties on an existing layer: size, position, fills, strokes, radius, opacity, auto layout, sizing, effects, constraints, text style, name, visibility…

figma_set_textB

Replaces a text layer's characters (fonts are loaded automatically) and optionally its text properties.

figma_delete_nodesB

Deletes the given layers. Undo in Figma with Cmd/Ctrl+Z.

figma_clone_nodeB

Duplicates a layer, optionally into another parent and at a position.

figma_move_nodeB

Moves a layer into another parent and/or to an index among its siblings and/or to x/y.

figma_group_nodesB

Groups layers (or wraps them in a new frame with frame=true).

figma_create_instanceB

Creates an instance of a local component (component_id; a component set uses its default variant) or a library component (component_key), optionally setting its properties/variant.

figma_set_instance_propertiesB

Changes an instance's variant and component properties (short names like "Label" work), or swaps it to another component.

figma_detach_instanceB

Detaches an instance from its component, turning it into a regular frame.

figma_create_componentA

Turns a layer into a component (node_id), or combines several components into a variant set (combine_node_ids).

figma_create_from_svgC

Creates vector layers from SVG markup (icons, illustrations).

figma_insert_imageB

Places an image (from a local file path, an https URL, or base64) as a new rectangle, or as the fill of an existing layer (node_id).

figma_select_nodesB

Selects layers in Figma and scrolls/zooms the viewport to them (switching page if needed). Useful to show the user what you changed.

figma_create_pageB

Adds a page to the file, optionally switching to it.

figma_create_variable_collectionC

Creates a variable collection with modes, e.g. name "Colors", modes ["Light","Dark"].

figma_create_variableA

Creates a variable in a collection with a value per mode, e.g. type COLOR, values {"Light":"#FFFFFF","Dark":"#111111"}, or an alias {"Light":{"alias":"Base/White"}}.

figma_set_variable_valueC

Updates a variable's value for one or more modes.

figma_bind_variableB

Binds a variable to a layer property: "fills"/"strokes" (color, with paint_index), or a numeric field like "itemSpacing", "paddingLeft", "cornerRadius", "width", "opacity".

figma_create_styleB

Creates a local FILL (value: color or paints), TEXT (value: {fontFamily,fontStyle,fontSize,lineHeight,letterSpacing}) or EFFECT (value: effects array) style.

figma_apply_styleB

Applies a local style to a layer as its fill, stroke, text or effect style.

figma_executeA

Runs JavaScript inside the Figma plugin with the full Plugin API, for anything the other tools don't cover (bulk edits, complex layouts, reading plugin-only data). The code is the body of an async function with figma, params and helpers ({getNode, toPaints, parseColor, applyProps, summary}) in scope; return a JSON-serializable value. Load fonts before editing text: await figma.loadFontAsync({family:"Inter",style:"Regular"}). Example: const f = figma.createFrame(); f.layoutMode = "VERTICAL"; f.itemSpacing = 8; return helpers.summary(f);

figma_post_commentA

Posts a comment on the file (optionally pinned to a node, or as a reply). Requires FIGMA_TOKEN with the file_comments:write scope.

Prompts

Interactive templates invoked by user choice

NameDescription
implement_figma_designStep-by-step: read a Figma frame, download its assets, and implement it in this codebase.

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 45 tools

Disambiguation4/5

Most tools target a clearly distinct resource+action, and descriptions explicitly cross-reference alternatives (e.g. figma_build_layout vs figma_create_node, figma_get_design vs figma_get_metadata vs figma_get_code). A few boundaries blur: figma_move_node vs figma_anchor_nodes, figma_set_text vs figma_update_node (text style/name), and figma_apply_style vs figma_bind_variable vs figma_bind_tokens, plus the figma_execute catch-all overlaps everything. The detailed descriptions make the right choice inferable, but an agent can still hesitate.

Naming Consistency5/5

Every tool uses the same figma_<verb>_<noun> snake_case pattern (get_file, create_variable, bind_tokens, download_assets), which is highly predictable. The only deviation is the noun-only figma_plugin_status, a trivial exception.

Tool Count2/5

45 tools is far beyond the 3-15 sweet spot and heavy for any single server; the surface spans reading, node building, tokens, components, accessibility auditing and comments. While the Figma domain is genuinely broad, the count forces the agent to scan a large menu where figma_execute and figma_build_layout already absorb many individual operations.

Completeness4/5

Coverage is broad: file/design/code/screenshot/metadata reads, full node creation/update/delete, variables, styles, components/instances, commenting, auditing and Dev Mode handoff. Remaining gaps are minor lifecycle operations such as deleting variables/styles/collections and resolving or deleting comments, which agents can work around via figma_execute.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues