Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

Explore

  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Tags index
  • Submit a server
  • Pricing

Learn

  • Guides hub
  • What is MCP?
  • Install guide
  • Troubleshooting
  • Security
  • Blog
  • Blog RSS

Tools

  • All tools
  • Config generator
  • Config validator
  • MCP playground
  • OpenAPI β†’ MCP
  • Badge generator

For agents

  • API docs
  • Trust & traffic
  • llms.txt β†— (opens in a new tab)
  • Catalog JSON β†— (opens in a new tab)
  • Remote MCP β†— (opens in a new tab)

Company

  • About
  • Contact
  • X (@AllMCPs) β†— (opens in a new tab)
  • GitHub β†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on Buildlist
Β© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. πŸŽ₯ Multimedia Process
  3. Figma Ui Mcp
F
Health: Not checked yetWe have not completed a health check for this listing yet.Last checked 8/11/2026, 12:18:22 AM

Figma Ui Mcp

Enrichment pendingWe haven’t run our AI enrichment pass on this listing yet, so the overview, use cases, and FAQ below may be sparse or missing. We work through the catalog over time β€” check back soon.
View Repository

Bidirectional Figma MCP β€” AI draws UI on Figma canvas, reads designs back

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β€” or use 1-click editor setup below.

Add to CursorAdd to VS Code
Manual Client & Custom JSON ConfigExpand JSON β–Ύ

Install Config Generator

Choose your client
claude_desktop_config.json
{
  "mcpServers": {
    "figma-ui-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "figma-ui-mcp"
      ]
    }
  }
}

πŸ’‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

Install Directory Badge Claim listing AlternativesπŸŽ₯ More in Multimedia Process

Documentation Overview

figma-ui-mcp

figma-ui-mcp β€” Claude Code to Figma, AI to Figma, MCP Figma Bridge

npm version MCP Registry License: MIT GitHub stars

Claude Code to Figma Β· Antigravity to Figma Β· Cursor to Figma Β· Any MCP IDE to Figma

βœ… Tested: Claude Code, Antigravity Β |Β  πŸ”§ Compatible: Cursor, VS Code, Windsurf, Zed (any MCP stdio client)

Bidirectional Figma MCP bridge β€” let AI assistants (Claude Code, Cursor, Windsurf, Antigravity, VS Code Copilot, or any MCP-compatible IDE) draw UI directly on Figma canvas and read existing designs back as structured data, screenshots, or code-ready tokens. No Figma API key needed β€” works entirely over localhost.

Requires Figma Desktop β€” the plugin communicates with the MCP server over localhost HTTP polling. Figma's web app does not allow localhost network access, so Figma Desktop is required.

Code
Claude ──figma_write──▢ MCP Server ──HTTP (localhost:38451)──▢ Figma Plugin ──▢ Figma Document
Claude ◀─figma_read──── MCP Server ◀──HTTP (localhost:38451)── Figma Plugin ◀── Figma Document

How the localhost bridge works

The MCP server starts a small HTTP server bound to localhost:38451. The Figma plugin (running inside Figma Desktop) uses long polling β€” the server holds requests up to 8s until work arrives, flushing immediately when new ops are queued (near-realtime latency <100ms). All traffic stays on your machine β€” nothing is sent to any external server.

Multi-instance support (v2.3.0+): Multiple Figma files/tabs can connect simultaneously. Each plugin instance sends a sessionId, and the bridge routes operations to the correct session. Use the optional sessionId param in figma_write/figma_read to target a specific file.


Features

DirectionToolWhat it does
Writefigma_writeDraw frames, shapes, text, prototypes via JS code
Readfigma_readExtract node trees, colors, typography, screenshots
Infofigma_statusCheck plugin connection + active sessions
Docsfigma_docsGet full API reference + examples
Rulesfigma_rulesGenerate design system rule sheet β€” tokens, typography, components

What's new in v2.5

FeatureDescription
get_design_contextAI-optimized payload for a node — flex layout, token-resolved colors (var(--name)), typography with style names, component instances with variant properties. Best single call for design→React/Vue/Swift code.
get_component_mapList every component instance in a frame with componentSetName, variantLabel, properties, and suggestedImport path. Scaffold import statements in one call.
get_unmapped_componentsFind component instances that have no description in Figma (no code mapping yet). Prompts AI to ask user for correct import paths.
figma_rules toolNew top-level MCP tool β€” aggregates color tokens, typography styles, variables (all modes), and component catalog into a single markdown rule sheet. Equivalent to official Figma MCP's create_design_system_rules. Call once at session start.
get_css operationfigma_read get_css { nodeId } β†’ ready-to-use CSS string (flex, typography, fill, border, shadow, opacity, transform). One call, paste into code.
Resolved variablesget_node_detail now resolves boundVariables IDs β†’ { name, resolvedType, value }. No more manual ID lookup.
Resolved style refsfillStyleId / textStyleId now include fillStyle: { name, hex } and textStyle: { name, fontSize, fontFamily }.
Instance overrides detailoverrides: [{ id, overriddenFields: ["fills","characters",...] }] β€” full diff vs mainComponent, not just count.
componentSetName + variantLabelINSTANCE nodes now expose set name ("Button") and variant label ("State=Primary, Size=Large") separately.
insertIndex for createfigma.create({ ..., insertIndex: 2 }) β€” insert node at exact position in parent, not always at end.
Typography tokenssetupDesignTokens({ fontSizes, fonts, textStyles }) β€” 1 call bootstrap full typography system with variable-bound text styles. Multi-mode (Compact/Comfortable/Large) supported.
applyTextStyleApply a local text style to a TEXT node by name in 1 call β€” auto-loads font.
STRING variables for fontsapplyVariable now binds fontFamily, fontStyle, characters (swap Inter β†’ SF Pro via 1 variable).
Effectseffects: [{ type: "DROP_SHADOW" | "INNER_SHADOW" | "LAYER_BLUR" | "BACKGROUND_BLUR", ... }] on any node.
Gradient fillsfill: { type: "LINEAR_GRADIENT" | "RADIAL_GRADIENT", angle, stops } in create/modify.
Individual corner radiitopLeftRadius, topRightRadius, bottomLeftRadius, bottomRightRadius on FRAME/RECT.
8-digit hex + rgba alphafill: "#FFFFFF80" or "rgba(255,255,255,0.5)" β€” alpha auto-applied to paint opacity.
SVG arc (A) + commasVECTOR d paths accept A arc command (auto-converted to cubic BΓ©zier) and commas.
Icon libraries7 free open-source libraries, iOS-filled first: Ionicons β†’ Fluent β†’ Bootstrap β†’ Phosphor β†’ Tabler Filled β†’ Tabler Outline β†’ Lucide.
Instance overridesfigma.instantiate({ overrides: { "LayerName": { text, fill, fontSize } } }) β€” override props per-layer.
Batch deletefigma.delete({ ids: [...] }) β€” delete multiple nodes in 1 round-trip.
PrototypingsetReactions β€” click/hover/press β†’ navigate/overlay/swap with Smart Animate.
Scroll behaviorsetScrollBehavior β€” HORIZONTAL / VERTICAL / BOTH overflow.
Variants & instance swapsetComponentProperties / swapComponent β€” variants + instance swap.
Component property definitions (v2.5.24)addComponentProperty + bindComponentProperty β€” create TEXT / BOOLEAN / INSTANCE_SWAP properties on master components. Instance text overrides now actually re-measure auto-layout (button grows to fit longer label).
Multi-instanceMultiple Figma tabs connect simultaneously via sessions.

Full version history: see CHANGELOG.md.


Quick Start

Step 1 β€” Add the MCP server to your AI client

Choose your platform:

Claude Code (CLI)
bash
# Project scope (default)
claude mcp add figma-ui-mcp -- npx figma-ui-mcp

# Global scope (all projects)
claude mcp add --scope user figma-ui-mcp -- npx figma-ui-mcp
Claude Desktop

Edit config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
config.json
{
  "mcpServers": {
    "figma": {
      "command": "npx",
      "args": ["-y", "figma-ui-mcp"]
    }
  }
}
Cursor

Edit .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):

config.json
{
  "mcpServers": {
    "figma": {
      "command": "npx",
      "args": ["-y", "figma-ui-mcp"]
    }
  }
}
VS Code / GitHub Copilot

Edit .vscode/mcp.json (project) or add to settings.json (global):

config.json
{
  "mcp": {
    "servers": {
      "figma": {
        "command": "npx",
        "args": ["-y", "figma-ui-mcp"]
      }
    }
  }
}
Windsurf

Edit ~/.codeium/windsurf/mcp_config.json:

config.json
{
  "mcpServers": {
    "figma": {
      "command": "npx",
      "args": ["-y", "figma-ui-mcp"]
    }
  }
}
Antigravity (Google)
  1. Open "..." dropdown at the top of the agent panel
  2. Click "Manage MCP Servers" β†’ "View raw config"
  3. Add to mcp_config.json:
config.json
{
  "mcpServers": {
    "figma": {
      "command": "npx",
      "args": ["-y", "figma-ui-mcp"]
    }
  }
}
From source (any client)
bash
git clone https://github.com/TranHoaiHung/figma-ui-mcp
cd figma-ui-mcp
npm install
# Then point your MCP client to: node /path/to/figma-ui-mcp/server/index.js

⚠️ IMPORTANT: After adding the MCP server, you MUST restart your IDE / AI client (quit and reopen). The MCP server only loads on startup β€” simply saving the config file is not enough. This applies to Claude Code, Cursor, VS Code, Windsurf, and Antigravity.

Step 2 β€” Install the Figma plugin

⬇ Download plugin.zip β€” no git clone needed

  1. Download and unzip plugin.zip anywhere on your machine
  2. Open Figma Desktop (required β€” web app cannot access localhost)
  3. Go to Plugins β†’ Development β†’ Import plugin from manifest...
  4. Select manifest.json from the unzipped folder
  5. Run Plugins β†’ Development β†’ Figma UI MCP Bridge

The plugin UI shows a green dot when the MCP server is connected.

Updating to a newer version

bash
# Step 1 β€” get the new version + plugin path
npx figma-ui-mcp@latest --version
# figma-ui-mcp v2.5.12  β€”  plugin: /.../.npm/_npx/.../figma-ui-mcp/plugin

# Step 2 β€” restart Claude / your IDE so the MCP server reloads

# Step 3 β€” re-link the Figma plugin (manual, one-time per update)
#   Figma Desktop β†’ Plugins β†’ Development β†’ Manage plugins in development
#   Remove old "Figma UI MCP Bridge" β†’ "+" β†’ Import plugin from manifest...
#   Select manifest.json from the plugin path printed in Step 1

# Step 4 β€” verify
#   Ask your AI: "figma_status"
#   pluginVersion in the response should match the npm version above

The Figma plugin does not auto-update β€” re-linking (Step 3) is required whenever the plugin changes.

Step 3 β€” Connect AI to Figma

Tell your AI assistant to connect:

Code
"Connect to figma-ui-mcp"

The AI will call figma_status and confirm:

Code
βœ… Connected β€” File: "My Project", Page: "Page 1", Plugin v2.5.5

If you see "Plugin not connected", make sure the Figma plugin is running (Step 2).

Step 4 β€” Start designing with prompts

Once connected, just describe what you want in natural language:

Code
"Use figma-ui-mcp to draw a login screen for mobile"

The AI will automatically:

  1. Call figma_docs to load the API reference and design rules
  2. Call figma_read get_page_nodes to understand the current canvas
  3. Call figma_write to create the design on your Figma canvas
  4. Call figma_read screenshot to verify the result

Prompt examples

PromptWhat happens
"Draw a mobile login screen with social login buttons"Creates a 390Γ—844 frame with email/password inputs, Apple/Google buttons
"Read the selected frame and describe the design"Extracts colors, typography, spacing from your selection
"Take a screenshot of the current frame"Returns an inline image the AI can analyze
"Create a dark theme dashboard with KPI cards"Draws a full dashboard layout with charts and stats
"Design an e-commerce product card"Creates a product card with image, price, rating, CTA
"Draw a settings page with toggle switches"Creates grouped settings with icons and toggles

Tips for better results

  • Be specific about style: "dark theme", "glassmorphism", "minimal white" gives the AI clear direction
  • Mention platform: "mobile" (390Γ—844), "tablet" (768Γ—1024), "desktop" (1440Γ—900)
  • Iterate: After the first draw, say "fix the spacing" or "make the buttons bigger" β€” the AI reads and modifies existing nodes
  • Use selection: Select a frame in Figma and ask "improve this design" β€” the AI reads your selection first
  • Multi-screen flows: "Now draw the signup screen next to the login screen" β€” the AI positions frames side by side

Workflow summary

Code
You: "Connect to figma-ui-mcp"
AI:  βœ… Connected to Figma

You: "Draw a mobile onboarding screen with 3 steps"
AI:  [calls figma_docs β†’ figma_write β†’ figma_read screenshot]
AI:  βœ… Done β€” here's what I created: [inline screenshot]

You: "The title text is not centered"
AI:  [calls figma_read get_selection β†’ figma_write modify β†’ screenshot]
AI:  βœ… Fixed β€” text is now centered

You: "Now draw the next onboarding screen beside it"
AI:  [reads page_nodes to find position β†’ draws at x+440]
AI:  βœ… Done β€” 2 screens side by side
Code
figma_status     β€” check connection (always call first)
figma_docs       β€” load API reference (call before drawing)
figma_write      β€” draw / modify UI on canvas
figma_read       β€” extract design data, screenshots, SVG

Usage Examples

Draw a screen

Ask Claude: "Draw a dark dashboard with a sidebar, header, and 4 KPI cards"

Claude calls figma_write with code like:

server.ts
await figma.createPage({ name: "Dashboard" });
await figma.setPage({ name: "Dashboard" });

const root = await figma.create({
  type: "FRAME", name: "Dashboard",
  x: 0, y: 0, width: 1440, height: 900,
  fill: "#0f172a",
});

const sidebar = await figma.create({
  type: "FRAME", name: "Sidebar",
  parentId: root.id,
  x: 0, y: 0, width: 240, height: 900,
  fill: "#1e293b", stroke: "#334155", strokeWeight: 1,
});

await figma.create({
  type: "TEXT", name: "App Name",
  parentId: sidebar.id,
  x: 20, y: 24, content: "My App",
  fontSize: 16, fontWeight: "SemiBold", fill: "#f8fafc",
});
// ... continue

Read a design

Ask Claude: "Read my selected frame and convert it to Tailwind CSS"

Claude calls figma_read with operation: "get_selection", receives the full node tree, then generates corresponding code.

Screenshot a frame

Code
figma_read  β†’  operation: "screenshot"  β†’  nodeId: "123:456"

Returns a base64 PNG Claude can analyze and describe.


Architecture

Code
figma-ui-mcp/
β”œβ”€β”€ server/
β”‚   β”œβ”€β”€ index.js            MCP server (stdio transport)
β”‚   β”œβ”€β”€ bridge-server.js    HTTP bridge on localhost:38451 (long-poll, multi-session)
β”‚   β”œβ”€β”€ code-executor.js    VM sandbox β€” safe JS execution + 7-lib icon fetcher
β”‚   β”œβ”€β”€ tool-definitions.js MCP tool schemas (figma_status / _write / _read / _docs)
β”‚   └── api-docs.js         API reference text (served to AI via figma_docs)
β”œβ”€β”€ src/plugin/             Plugin source (concat-built into plugin/code.js)
β”‚   β”œβ”€β”€ utils.js, svg-path-helpers.js, paint-and-effects.js, read-helpers.js
β”‚   β”œβ”€β”€ handlers-write.js, handlers-read.js, handlers-read-detail.js,
β”‚   β”‚   handlers-library.js, handlers-tokens.js, handlers-write-ops.js
β”‚   └── main.js
└── plugin/
    β”œβ”€β”€ manifest.json       Figma plugin manifest
    β”œβ”€β”€ code.js             Plugin main (auto-generated β€” 3600+ LOC)
    └── ui.html             Plugin UI β€” long-poll client + status dot

Security

LayerProtection
VM sandboxvm.runInContext() β€” blocks require, process, fs, fetch
Localhost onlyBridge binds localhost:38451, never exposed to network
Operation allowlist56 predefined operations accepted (WRITE_OPS + READ_OPS)
Timeout30s VM execution + 60-90s per plugin operation (adaptive by op type)
Body size limit5 MB max per request
Session isolationMulti-instance sessions scoped by Figma file ID

Available Write Operations (figma_write)

Core CRUD

OperationDescription
figma.create({ type, ... })Create FRAME / RECTANGLE / ELLIPSE / LINE / TEXT / SVG / VECTOR / IMAGE
figma.modify({ id, ... })Update node properties (fill, size, text, layout, etc.)
figma.delete({ id })Remove a single node
figma.delete({ ids: [...] })Batch delete multiple nodes in one call
figma.query({ type?, name?, id? })Find nodes by type, name, or ID
figma.append({ parentId, childId })Move node into parent

create / modify β€” advanced props available on any node:

PropExampleNotes
fill (solid)"#6C5CE7" or "#6C5CE780" (8-digit hex with alpha) or "rgba(108,92,231,0.5)"Alpha auto-extracted into paint opacity
fill (gradient){ type: "LINEAR_GRADIENT", angle: 135, stops: [{ pos: 0, color: "#7C3AED" }, { pos: 1, color: "#EC4899" }] }Also RADIAL_GRADIENT
stroke, strokeWeight, strokeOpacitySame hex/rgba rules
cornerRadius uniform12All 4 corners
Individual cornerstopLeftRadius: 20, topRightRadius: 20, bottomLeftRadius: 0, bottomRightRadius: 0Rounded top sheet pattern
effects array[{ type: "DROP_SHADOW", color: "#00000026", offset: {x:0,y:8}, radius: 24, spread: 0 }]Types: DROP_SHADOW, INNER_SHADOW, LAYER_BLUR, BACKGROUND_BLUR
TEXT centertextAlign: "CENTER" with explicit widthAuto-infers textAutoResize: "NONE" so centering works
VECTOR pathd: "M 150 7 A 143 143 0 1 1 29.26 226.62"SVG A arc auto-converted to cubic BΓ©zier; commas accepted

Page Management

OperationDescription
figma.status()Current Figma context info
figma.listPages()List all pages
figma.setPage({ name })Switch active page
figma.createPage({ name })Add a new page

Node Operations

OperationDescription
figma.clone({ id, x?, y?, parentId? })Duplicate a node with optional repositioning
figma.group({ nodeIds, name? })Group multiple nodes
figma.ungroup({ id })Ungroup a GROUP/FRAME
figma.flatten({ id })Flatten/merge vectors into single path
figma.resize({ id, width, height })Resize any node
figma.set_selection({ ids })Programmatically select nodes
figma.set_viewport({ nodeId?, x?, y?, zoom? })Navigate viewport
figma.batch({ operations })Execute up to 50 ops in one call (10-25x faster)

Components

OperationDescription
figma.listComponents()List all components in document
figma.createComponent({ nodeId, name? })Convert FRAME/GROUP β†’ reusable Component
figma.instantiate({ componentId/Name, parentId, x, y })Create component instance
figma.instantiate({ ..., overrides: { "LayerName": { text, fill, fontSize, visible, ... } } })Instantiate with per-layer overrides

Design Tokens & Styles

OperationDescription
figma.setupDesignTokens({ colors, numbers, fontSizes, fonts, textStyles, modes })Bootstrap complete token system (idempotent) β€” colors + spacing + typography + text styles + multi-mode in 1 call
figma.createVariableCollection({ name })Create variable collection ("Colors", "Spacing")
figma.createVariable({ name, collectionId, resolvedType, value })Create COLOR/FLOAT/STRING/BOOLEAN variable
figma.addVariableMode({ collectionId, modeName })Add mode (e.g. "dark", "compact")
figma.renameVariableMode({ collectionId, modeId, newName })Rename a mode
figma.removeVariableMode({ collectionId, modeId })Remove a mode
figma.setVariableValue({ variableId/Name, modeId/Name, value })Set per-mode value
figma.modifyVariable({ variableName, value })Change variable value β€” all bound nodes update
figma.applyVariable({ nodeId, field, variableId/Name })Bind variable to a node property
figma.applyTextStyle({ nodeId, styleName })Apply a local text style to a TEXT node by name (auto-loads font)
figma.setFrameVariableMode({ nodeId, collectionId, modeName })Pin frame to a variable mode (Light/Dark, Compact/Large)
figma.clearFrameVariableMode({ nodeId, collectionId })Reset frame to document default mode
figma.createPaintStyle({ name, color })Create reusable paint style
figma.createTextStyle({ name, fontFamily, fontSize, ... })Create reusable text style (manual β€” prefer setupDesignTokens.textStyles)
figma.ensure_library()Create/get Design Library frame
figma.get_library_tokens()Read library color + text tokens

applyVariable supported fields β€” bind FLOAT/COLOR/STRING/BOOLEAN variables to:

  • Color: fill, stroke
  • Geometry: opacity, width, height, strokeWeight
  • Corner radius: cornerRadius + individual topLeftRadius / topRightRadius / bottomLeftRadius / bottomRightRadius
  • Spacing (auto-layout): paddingTop, paddingBottom, paddingLeft, paddingRight, itemSpacing, counterAxisSpacing
  • Typography (TEXT nodes): fontSize, letterSpacing, lineHeight, paragraphSpacing, paragraphIndent
  • Font swap (STRING): fontFamily, fontStyle, characters β€” swap Inter β†’ SF Pro via 1 variable
  • Visibility (BOOLEAN): visible

Image & Icon Helpers (server-side)

OperationDescription
figma.loadImage(url, opts)Download image β†’ place on canvas
figma.loadIcon(name, opts)Fetch SVG icon with 7-library fallback (iOS-filled first)
figma.loadIconIn(name, opts)Icon inside centered circle background

loadIcon fallback priority (filled-first, iOS style preferred): Ionicons (iOS filled) β†’ Fluent UI (Win11 filled) β†’ Bootstrap (filled) β†’ Phosphor (filled) β†’ Tabler Filled (4,500+) β†’ Tabler Outline β†’ Lucide (outline fallback)

Free replacement for paid Icons8 ios-filled. Ionicons naming quirks: Bell→notifications, Back→chevron-back, Clock→time, Fire→flame, Lightning→flash, Lock→lock-closed.

Prototyping & Interactions

OperationDescription
figma.setReactions({ id, reactions })Add prototype interactions (ON_CLICK/ON_HOVER/ON_PRESS β†’ NAVIGATE/OVERLAY/SWAP)
figma.getReactions({ id })Read all prototype interactions from a node
figma.removeReactions({ id })Clear all interactions from a node

Supported transitions: SMART_ANIMATE, DISSOLVE, MOVE_IN, MOVE_OUT, PUSH, SLIDE_IN, SLIDE_OUT, INSTANT Supported easings: LINEAR, EASE_IN, EASE_OUT, EASE_IN_AND_OUT, CUSTOM_BEZIER

Scroll Behavior

OperationDescription
figma.setScrollBehavior({ id, overflowDirection })Set overflow scrolling: NONE / HORIZONTAL / VERTICAL / BOTH

Variant & Component Swapping

OperationDescription
figma.setComponentProperties({ id, properties })Set variant, boolean, text, or instance swap properties on an INSTANCE
figma.swapComponent({ id, componentId })Swap the main component of an instance
figma.getComponentProperties({ id })Read all properties + definitions from component/instance

Available Read Operations (figma_read)

OperationDescription
get_selectionFull design tree of selected node(s) + design tokens
get_designFull node tree for a frame/page (depth param: default 10, or "full")
get_page_nodesTop-level frames on the current page
screenshotExport node as PNG β€” displays inline in Claude Code
export_svgExport node as SVG markup
export_imageExport node as base64 PNG/JPG β€” for saving to disk (format, scale params)
get_design_contextAI-optimized design→code payload — flex layout, token-resolved fills as var(--name), typography with style names, component instances with variant properties + componentsUsed / tokensUsed summaries. Best single call for generating React/Vue/Swift code.
get_component_mapComponent instance map β€” every INSTANCE in a frame with componentSetName, variantLabel, properties, and suggestedImport path. Deduplicates into uniqueComponents[] with usage counts.
get_unmapped_componentsCode-mapping audit β€” lists instances with no description in Figma (unmapped[]). Use to prompt user for correct import paths before code generation.
get_node_detailStructured properties for single node β€” fills, layout, typography, effects, bound variables (resolved to name+value), style refs (resolved to name+hex), instance overrides (full field list), componentSetName + variantLabel
get_cssReady-to-use CSS string for a node β€” background, flex, border, radius, shadow, typography, opacity, transform. Best for design-to-code.
get_stylesAll local paint, text, effect, grid styles
get_local_componentsComponent listing with descriptions + variant properties
get_viewportCurrent viewport position, zoom, bounds
get_variablesLocal variables (Design Tokens) β€” collections, modes, values
search_nodesFind nodes by type, name, fill color, font, size β€” supports includeHidden
scan_designProgressive scan for large files β€” all text, colors, fonts, images, icons

includeHidden param (boolean, default false) β€” available on get_selection, get_design, search_nodes, scan_design. When false (default), nodes with visible: false are skipped. Pass true to include hidden layers.


Working with an Existing Project

When opening a Figma file that already has a design system, always read before drawing.

Step 1 β€” Read what exists

Code
figma_read get_variables      β†’ load variable IDs (Design Tokens)
figma_read get_styles         β†’ load paint/text style IDs and hex values
figma_read get_local_components β†’ load component IDs
figma_read get_page_nodes     β†’ load top-level frame IDs

Step 2 β€” Build lookup maps in figma_write

js
// Load variables β†’ build varMap: name β†’ id
var vars = await figma.get_variables();
var varMap = {};
for (var ci = 0; ci < vars.collections.length; ci++) {
  var col = vars.collections[ci];
  for (var vi = 0; vi < col.variables.length; vi++) {
    var v = col.variables[vi];
    varMap[v.name] = v.id;
  }
}

// Load styles β†’ build colorMap: name β†’ hex, textMap: name β†’ {fontSize, fontWeight}
var styles = await figma.get_styles();
var colorMap = {}, textMap = {};
styles.paintStyles.forEach(function(s) { colorMap[s.name] = s.hex; });
styles.textStyles.forEach(function(s)  { textMap[s.name]  = s; });

// Load components β†’ build compMap: name β†’ id
var comps = await figma.get_local_components();
var compMap = {};
comps.components.forEach(function(c) { compMap[c.name] = c.id; });

Step 3 β€” Create nodes using discovered values

js
// Use colorMap for fill (hex from existing styles)
var card = await figma.create({
  type: "FRAME", name: "Card",
  fill: colorMap["color/bg-surface"] || "#FFFFFF",
  width: 360, height: 200,
  layoutMode: "VERTICAL", paddingTop: 16, paddingLeft: 16,
  paddingBottom: 16, paddingRight: 16, itemSpacing: 12,
});

// Then bind variables so light/dark mode switches propagate
if (varMap["bg-surface"])
  await figma.applyVariable({ nodeId: card.id, field: "fill",        variableId: varMap["bg-surface"] });
if (varMap["radius-md"])
  await figma.applyVariable({ nodeId: card.id, field: "cornerRadius",variableId: varMap["radius-md"] });
if (varMap["spacing-md"])
  await figma.applyVariable({ nodeId: card.id, field: "paddingTop",  variableId: varMap["spacing-md"] });

Step 4 β€” Instantiate components with overrides

js
// Prefer existing components over drawing from scratch
if (compMap["btn/primary"]) {
  await figma.instantiate({
    componentId: compMap["btn/primary"],
    parentId: card.id,
    overrides: { "Label": { text: "Confirm", fill: "#FFFFFF" } }
  });
}

Step 5 β€” Pin frames to Light / Dark mode

js
var collection = vars.collections.find(function(c) { return c.name === "Design Tokens"; });

// Duplicate frame and preview both modes side by side
var frames = await figma.get_page_nodes();
var homeId  = frames.find(function(f) { return f.name === "Home"; }).id;
var light   = await figma.clone({ id: homeId, x: 0,    name: "Preview/Light" });
var dark    = await figma.clone({ id: homeId, x: 1540, name: "Preview/Dark"  });
await figma.setFrameVariableMode({ nodeId: light.id, collectionId: collection.id, modeName: "light" });
await figma.setFrameVariableMode({ nodeId: dark.id,  collectionId: collection.id, modeName: "dark"  });

Full API reference and all design rules: run figma_docs in your AI client.


Star History

If figma-ui-mcp helps you, please give it a star β€” it helps others discover the project!

GitHub stars

Star History Chart


License

License: MIT

MIT Β© TranHoaiHung β€” free to use, modify, and distribute. See LICENSE for details.


Keywords

figma mcp, claude code to figma, cursor to figma, ai to figma, figma ai plugin, figma mcp bridge, figma mcp server, figma design to code, code to figma design, ai ui design, figma automation, figma plugin ai, model context protocol figma, claude figma, windsurf figma, vs code figma, antigravity figma, ai design tool, figma api alternative, figma localhost plugin, draw ui with ai, ai generate figma design, figma design system ai, mcp server figma, figma read design, figma write design, bidirectional figma, figma desktop plugin, npx figma-ui-mcp

Related MCP Servers

View all in Multimedia Process View all alternatives
  • Claude Real Video logoClaude Real Video

    Let any LLM actually watch a video: scene-aware keyframes plus a timestamped transcript, local.

    πŸŽ₯ Multimedia Process1 views
    Compare vs Claude Real Video β†’
  • S
    Switch

    Generate, manage and explore your Switch AI image and video library, scoped to your account.

    πŸŽ₯ Multimedia Process0 views
    Compare vs Switch β†’
  • Mcp logoMcp

    Video scene understanding for AI agents via the Primate Vision API.

    πŸŽ₯ Multimedia Process0 views
    Compare vs Mcp β†’
  • V
    Video Editing Ai Mcp

    Video Editing Ai MCP server. Tools: split scenes, generate subtitles, thumbnail data. Built by MEOK

    πŸŽ₯ Multimedia Process0 views
    Compare vs Video Editing Ai Mcp β†’

Frequently Asked Questions about Figma Ui Mcp

Add the following block to your claude_desktop_config.json under mcpServers: "mcpServers": { "figma-ui-mcp": { "command": "npx", "args": ["-y", "figma-ui-mcp"] } }

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewFigma Ui Mcp AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/figma-ui-mcp?style=directory)](https://allmcps.com/mcp/figma-ui-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/figma-ui-mcp"><img src="https://allmcps.com/api/badge/figma-ui-mcp?style=directory" alt="Figma Ui Mcp on AllMCPs" /></a>

Technical Specs & Signals

CategoryπŸŽ₯Multimedia Process
More technical detailsExpand β–Ύ
TransportSTDIO
RuntimeNode.js
0/4 checks healthy over the last 6h
Views0
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
npm downloads1,488/mo
Monthly npm DownloadsAverage monthly package installs recorded from npm registry statistics.
31Quality signal: Emerging Β· 31/100How this signal is calculated β–Ύ
Server availabilityNot measured

Not scored for repo-hosted servers β€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership8/20
Documentation & tools11/30
Adoption & activity4/15
Community engagement0/10

A guidance signal from public completeness & health data β€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

β˜… FeaturedAllMCPs Server logo

AllMCPs Server

The official MCP server for AllMCPs.com - submit and manage tools directly from your AI. The open directory for MCP servers. Connect Claude, Cursor, Windsurf, and AI agents to databases, tools, files, and APIs. Explore 3,181+ servers. AllMCPs is the premier, open directory for discovering, evaluating, and installing Model Context Protocol (MCP) servers to equip AI agents and LLMs with real-world superpowers.

Explore Server β†’

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge and attach your website.

Free dofollow backlink: after claiming, verify your product site and place a dofollow AllMCPs badge β€” we recheck it stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in πŸŽ₯ Multimedia Process β†’Best MCP servers for Multimedia & Media Processing β†’Alternatives to Figma Ui Mcp β†’Install in Claude DesktopInstall in CursorInstall in VS Code