Localfig logo

Localfig

Connects an AI agent to the open Figma desktop file for reading, editing, exporting, and undoing design changes.

Install Localfig

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": {
    "localfig": {
      "command": "npx",
      "args": [
        "-y",
        "localfig"
      ]
    }
  }
}

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

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

Overview

The localfig MCP server connects an MCP client to the Figma desktop app through a local stdio process, loopback HTTP bridge, and development plugin. It exposes Figma Plugin API access for inspecting nodes, changing files, working with tokens and libraries, exporting assets, and placing local images. Changes apply to the file where the plugin is running, without a Figma cloud API token or account quota. Use it when an agent needs direct, local control of an open Figma design file.

Use cases

  • Inspect a Figma file’s node structure, styles, variables, and computed CSS
  • Generate or modify frames, text, auto-layout, and design tokens
  • Search pages for nodes by type, layer name, or text
  • Export Figma content to images, SVG, PDF, or JSON
  • Import team-library assets and place local images

Key features

  • Local Figma Plugin API access over MCP
  • Arbitrary asynchronous Plugin API JavaScript
  • Node metadata, token, style, and CSS inspection
  • Change tracking, named snapshots, and undo
  • Figma export and local image placement
  • Team-library component, style, and variable access

Tools10

What Localfig lets your agent do. Expand a tool for its parameters.

Verified live~3.7k 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.

13/13 checks healthy over the last 62d

What it can do

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

Runs commands · 1Can delete or modify data · 3Makes changes · 5Handles credentials · 2Makes network requests · 1Read-only tools · 5
Network at startup3 connections
Files written at startup4
Install scriptsNone
npm provenanceNot published
Package age75 days
Maintainers1

Observed 2026-11-29 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 15d ago via OSV.dev · localfig (npm)

Adoption & maintenance

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

GitHub stars8Stargazers on the source repository.
npm downloads412Package downloads in the last 30 days.
Last commit2mo 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 exposed10Callable tools this server registers over MCP.
Directory activity6 viewsConfig copies, upvotes, and views on AllMCPs.

How Localfig works

What localfig MCP server does

The localfig MCP server gives an MCP client access to the Figma Plugin API for the design file currently open in Figma Desktop. It supports both inspection and mutation: an agent can read document structure, text, geometry, styles, variables, components, and computed CSS, then create or modify content through Plugin API JavaScript.

The connection is local. Since operations target the file where the plugin is running, the server does not accept a file key to select another document remotely.

Available operations include searching nodes, tracking changes made by a person, saving named restore points, undoing the last tool call, using team-library assets, exporting selected nodes, and adding local images as fills.

How it works

The MCP client starts the Node-based stdio server. That process communicates over localhost with a small development plugin running inside Figma Desktop, and the plugin calls the Figma Plugin API. The plugin panel must remain open while the connection is in use.

figma_eval runs asynchronous JavaScript in the plugin sandbox. The script can use the global figma object and provided helpers for common operations such as loading fonts, setting text, resizing nodes, creating variables, importing components, and revealing edited content. Results should be returned as plain data; Figma node references are reduced to basic identity fields.

Setup and configuration

Install Node.js 18 or newer, Figma Desktop, and an MCP client that can launch a stdio server. Run npx -y localfig --setup once. Setup generates a local secret, writes the plugin files, and registers the server with detected supported clients. --dry-run previews changes, while --clients=cursor,vscode limits registration to selected clients. Existing configuration is merged and backed up before changes.

Import ~/.localfig/plugin/manifest.json into Figma through Plugins, Development, and Import plugin from manifest. Open a design file, run the localfig plugin, and leave its panel open. Restart an MCP client that was already running after registration. For unsupported clients, add a stdio entry using npx -y localfig; Windows clients generally need cmd /c before npx.

Tools and capabilities

The localfig MCP server provides these tools:

  • figma_status reports the connected plugin, open file, page, selection, top-level frames, active user, and dynamic-code availability.
  • figma_metadata, figma_tokens, and figma_find inspect structure, styles, variables, libraries, and matching nodes.
  • figma_eval executes arbitrary Plugin API JavaScript for operations not covered by fixed commands.
  • figma_changes separates intervening human edits from tool-generated edits, while figma_history provides snapshots and one-step undo for mutating calls.
  • figma_library works with team-library variables, components, and styles.
  • figma_export writes PNG, JPG, SVG, PDF, or JSON exports; image results can be returned inline.
  • figma_place_image adds locally available PNG, JPG, WebP, GIF, BMP, or AVIF images to node fills and downsizes images above 4096 pixels per side.

Limitations and notes

Figma Desktop is required because development plugins cannot be imported in the browser. The plugin must be started manually for each session and disconnects when its panel or the file closes. All actions affect the active plugin file. Team-library operations require the plugin's declared permissions, including teamlibrary; the manifest also requests currentuser to identify who is driving.

Dynamic-page access means scripts should use asynchronous node lookup where required. Text changes require fonts to be loaded first, and resizing can alter text auto-resize or auto-layout sizing, so the supplied helpers handle ordering for common cases.

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 Localfig

localfig is an MCP server that connects AI agents to the Figma desktop app through a local development plugin and loopback bridge. Its main tools inspect and search files, execute Plugin API JavaScript, read tokens and metadata, track changes, undo edits, use team libraries, export nodes, and place local images.

Run `npx -y localfig --setup` with Node.js 18 or newer. It creates the plugin files and registers localfig with detected MCP clients, then import `~/.localfig/plugin/manifest.json` into Figma Desktop and run the plugin inside an open design file.

Yes, localfig supports Cursor through its stdio MCP configuration. The setup command can register it in `~/.cursor/mcp.json`; restart Cursor if it was already open, then start the localfig plugin in the Figma Desktop file you want to control.

No, localfig does not require a Figma cloud API token or personal access token. It communicates locally between the MCP client, a loopback HTTP bridge, and a development plugin running in Figma Desktop.

Run the localfig plugin again in Figma Desktop and leave its panel open. You can launch it from the Plugins menu, use the shortcut to rerun the last plugin, or use the Reconnect localfig button in a file where it has previously run.

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