Figma Local MCP logo

Figma Local MCP

by @irshad.io

Connects a local Figma plugin to coding agents for design inspection, code generation, visual verification, and Figma editing.

Install Figma Local MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "irshad-io-figma-local-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@irshad.io/figma-local-mcp@latest"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 15 tools correctly ().

Overview

@irshad.io/figma-local-mcp connects Figma Desktop to coding agents through a local WebSocket and MCP stdio process. It reads the open file without using the Figma REST API, returning design context, metadata, assets, screenshots, variables, and reference code for Flutter, SwiftUI, React, or HTML. Agents can also edit the open Figma file, place images, search its design system, and manage Code Connect mappings. Reach for it when a local, paired workflow is preferable to API-based Figma access or when generated UI needs screenshot comparison.

Use cases

  • Generate Flutter, SwiftUI, React, or HTML reference code from a selected Figma frame
  • Inspect Figma layers, variables, styles, assets, and screenshots from a coding agent
  • Compare rendered application code with a Figma design and review pixel differences
  • Create or edit Figma designs through plugin API scripts
  • Map Figma components to project components with Code Connect

Key features

  • Local Figma Desktop connection over WebSocket
  • MCP stdio access for coding agents
  • Reference code for Flutter, SwiftUI, React, and HTML
  • Asset, screenshot, metadata, and variable retrieval
  • Visual code verification with diff results
  • Figma editing and Code Connect mapping tools

Tools15

What Figma Local MCP lets your agent do. Expand a tool for its parameters.

Verified live~5.9k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

5/5 checks healthy over the last 17d

What it can do

From the 15 tools this server returned when we ran it; 15 declare their own safety hints.

Can delete or modify data · 2Handles credentials · 2Makes network requests · 5Read-only tools · 13
Network at startup3 connections
Files written at startup5
Install scriptsNone
npm provenanceNot published
Package age36 days
Maintainers1

Observed 2026-11-13 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 17d ago via OSV.dev · @irshad.io/figma-local-mcp@latest (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars5Stargazers on the source repository.
npm downloads862Package downloads in the last 30 days.
Last commit20d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed15Callable tools this server registers over MCP.

How Figma Local MCP works

What @irshad.io/figma-local-mcp does

@irshad.io/figma-local-mcp gives an MCP-compatible coding agent access to the Figma file currently open in Figma Desktop. Its main design-to-code operation returns implementation-oriented reference code, assets, a screenshot, and variables for a selected node. Output targets include Flutter, SwiftUI, React with Tailwind, and HTML with Tailwind.

The server also exposes the structure and styling details behind a design. Agents can inspect layer metadata, retrieve screenshots and variable definitions, download image and SVG assets, and search components, styles, variables, properties, and variants in the open file. Code Connect tools associate design components with code components and return those mappings when instances are inspected.

Figma editing is supported as well. Agents can execute Figma plugin API scripts, add or modify designs, place local images into the file, and save or restore complete node exports as JSON snapshots.

How it works

A development plugin runs inside Figma Desktop and communicates with the local Node.js server over a paired WebSocket on localhost. The server exposes the resulting operations to a coding agent through MCP over stdio. Reads therefore use the open Figma document rather than the Figma REST API, so the workflow does not require a Figma access token or REST API quota.

The plugin remains connected while live work is taking place. If it is closed, read operations can use the newest saved snapshot instead. Scripts sent through use_figma are applied as individual undo steps, and the agent can use screenshots to inspect the result after each change.

verify_code compares rendered implementation output with Figma's render. It can run Flutter checks with flutter test, SwiftUI checks in the iOS simulator, or React and HTML plus Tailwind checks in headless Chrome. Results include errors, layout mismatches, pixel differences, and a diff image, along with the interaction and accessibility areas that were not checked.

Setup and configuration

The workflow requires Node.js 18 or newer and Figma Desktop on macOS or Windows. Run the package setup command with npx:

Terminal
npx -y @irshad.io/figma-local-mcp@latest setup

Setup registers the server with Claude Code, copies the development plugin into the user's home directory, and displays a pairing code plus configuration for other MCP clients. Import the generated manifest.json into Figma Desktop through Plugins › Development › Import plugin from manifest…. On macOS it is under ~/.figma-local-mcp/plugin/; on Windows it is under %USERPROFILE%\\.figma-local-mcp\\plugin\\.

Start the figmcp development plugin, enter the pairing code, and restart the coding agent. Cursor and Claude Desktop use the MCP configuration printed by setup; Claude Code is configured by the setup command. The plugin window should stay open for live operations.

Tools and capabilities

  • get_design_context returns target-framework reference code, assets, a screenshot, and variables.
  • get_metadata exposes layer IDs, types, names, positions, and dimensions as XML.
  • get_screenshot captures a node or the current selection as PNG.
  • get_variable_defs resolves variables and styles for a node's active mode.
  • download_assets retrieves rendered exports, original image fills, and vector SVGs.
  • verify_code renders supported project types and reports visual differences.
  • use_figma runs plugin API scripts that create or edit the open design.
  • search_design_system finds reusable components, styles, variables, properties, and variants.
  • place_image inserts local PNG, JPG, GIF, or SVG files into the document.
  • Code Connect tools add, inspect, and remove design-to-code mappings.
  • whoami reports pairing and connection details, the open file, selection, and snapshots.
  • save_design_export and import_design_export manage complete node exports as JSON.

Limitations and notes

The live workflow depends on Figma Desktop and the development plugin. The server supports macOS and Windows. Generated code is reference output for an agent to adapt to the project, rather than a claim that the target application is production-ready without changes. Visual verification does not cover every interaction state, keyboard behavior, or screen-reader behavior for each control. The server can use saved snapshots for reads when the plugin is closed, but live design edits require the plugin connection.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Figma Local MCP

@irshad.io/figma-local-mcp is an MCP server that connects coding agents to an open Figma Desktop file through a local plugin and WebSocket. Its main tools retrieve design context, metadata, screenshots, variables, and assets, generate reference code, verify renders, and create or edit Figma designs.

Run `npx -y @irshad.io/figma-local-mcp@latest setup`, then import the copied development plugin manifest into Figma Desktop. Setup registers Claude Code and prints configuration for other clients; start the plugin, enter its pairing code, and restart the coding agent.

Yes, @irshad.io/figma-local-mcp works with Cursor through its MCP configuration. Run setup to print the configuration, add it to `~/.cursor/mcp.json` or a project’s `.cursor/mcp.json`, then restart Cursor and pair the Figma plugin.

No, the live local workflow does not require a Figma access token. The development plugin reads the open Figma file through the plugin API and sends it to the local server over WebSocket instead of using the Figma REST API.

Yes, `verify_code` renders supported Flutter, SwiftUI, React, or HTML plus Tailwind code and compares the result with Figma’s render. It reports errors, layout mismatches, pixel differences, and a diff image, while identifying interaction and accessibility areas not covered.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

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 Local MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/irshad-io-figma-local-mcp?style=directory)](https://allmcps.com/mcp/irshad-io-figma-local-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/irshad-io-figma-local-mcp"><img src="https://allmcps.com/api/badge/irshad-io-figma-local-mcp?style=directory" alt="Figma Local MCP on AllMCPs" /></a>