Figma Local MCP
Provides read-only access to the currently open Figma file, enabling agents to inspect designs, layout, text, styles, components, variable bindings, local variable collections, node screenshots, and node exports as PNG, SVG, JPG, or PDF.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Figma Local MCP read the design context for my currently selected Figma layer"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Figma Local MCP
Let coding agents read designs, variables and node screenshots from the currently open Figma file, through a Figma desktop plugin and a local MCP service. Uses the Figma Plugin API — no Figma REST API, no official MCP quota consumption.
Currently read-only: design queries and local exports. It does not modify Figma files.
Requirements
macOS
Figma desktop app
Node.js 22 or newer
pnpm
Related MCP server: FreeMCP for Figma
Install
pnpm install --frozen-lockfile
pnpm run install:localAfter the first install, in the Figma desktop app choose Plugins → Development → Import plugin from manifest... and select:
~/figma-local-mcp-app/manifest.jsonThen run Plugins → Development → Figma Local MCP Bridge and wait until the plugin shows the local service is connected. Keep the plugin window open while using it; you can collapse it to a mini bar.
The installer creates:
MCP command:
~/.local/bin/figma-local-mcpLocal config:
~/.local/share/figma-local-mcp/config.jsonExport directory:
~/.local/share/figma-local-mcp/exportsFigma plugin:
~/figma-local-mcp-appA resident background bridge (launchd agent
com.figma-local-mcp.bridge): starts at login and keeps the local service alive, so the plugin stays connected even when no MCP client session is running. MCP processes reuse it. Logs:~/.local/share/figma-local-mcp/bridge.log. Stop/start it with:
launchctl bootout gui/$UID/com.figma-local-mcp.bridge # stop
launchctl bootstrap gui/$UID ~/Library/LaunchAgents/com.figma-local-mcp.bridge.plist # startMake sure ~/.local/bin is on your PATH. Moving the source directory does not affect the installed command or plugin.
Configure your agent
Claude Code can register the command directly — no absolute source paths:
claude mcp add --scope user figma-local -- figma-local-mcpOther stdio MCP clients can use the equivalent config:
{
"mcpServers": {
"figma-local": {
"command": "figma-local-mcp",
"args": []
}
}
}Each client starts its own MCP process and reuses the same local bridge. Do not put the plugin token into MCP config.
Usage
Select a layer in Figma.
Click "Copy node prompt", or press
Cmd/Ctrl + Shift + C. Copy also works while collapsed.Paste the prompt straight into any agent configured with
figma-local.
The plugin shows the current selection live. With no selection or multiple layers selected, copy is disabled. The copied prompt includes the node ID and file key, so agents can pin the exact file on their first call.
get_plugin_status also returns usageHints: workflow guidance (screenshot first, then structure, then tokens, then exports; how to pick tools and locate nodes) that tells any MCP client how to use the tools well, without a client-side skill.
The UI language follows your system locale (Chinese for zh*, English otherwise) and can be switched with the toggle in the plugin header; the choice is remembered. The copied prompt template and runtime messages follow the same language.
Multiple files can be connected at once: run the plugin in each open file and the bridge keeps a separate session per file (keyed by the Figma file key). get_plugin_status lists every connected file with its fileKey; the most recently active file is the default target for tools. Tools that read a file accept an optional fileKey argument to pin the exact file, so designs are never read from the wrong one:
{ "name": "get_design_context", "arguments": { "fileKey": "ABcDEF1234567", "nodeId": "1:23" } }MCP tools:
get_plugin_status: list connected files, the active file key and the current selection in it.get_document: list all pages with node counts and local resource counts.get_selection: read the current selection.find_nodes: search nodes by name substring and/or type, across the file or one page.get_design_context: read layout, text, styles, components and variable bindings.get_variable_defs: read local variable collections.get_style_defs: read local paint, text, effect and grid styles.get_screenshot: get a PNG screenshot of a node.export_node: export a node as PNG, SVG, JPG or PDF.
When the plugin cannot be used
Scenario | Reason | Workaround |
Files where you only have view access | Figma requires edit access to run plugins | Ask the owner for edit access, or have someone with access export the frames; for read-only analysis, a Figma REST API based tool is an alternative |
FigJam files | This plugin only targets Figma design files ( | Copy the content into a Figma design file first |
Figma in the browser | Only the Figma desktop app is supported | Use the desktop app |
Plugins disabled by an organization admin | Enterprise settings can block third-party and development plugins | Ask your admin to allow development plugins |
Community preview pages and the mobile app | There is no plugin runtime | Open the file in the desktop app editor |
Offline | Figma itself requires a connection | Reconnect before using the plugin |
Another machine or a teammate's environment | This is a development plugin with a per-machine token; there is no published Community version | Clone the repo and run the install steps on that machine |
Unsaved drafts work, but they have no figma.fileKey: the plugin falls back to a synthetic key that is stable for the current plugin run and changes when the plugin restarts. Save the file to get a stable fileKey.
Update
pnpm run check
pnpm run install:localAfter updating, rerun the plugin in Figma — no manifest re-import, no MCP config changes.
Development
pnpm run typecheck # TypeScript type check
pnpm run build # Build MCP service and plugin into dist/
pnpm run check # Type check and build
pnpm test # Unit and integration tests (vitest)
pnpm test:coverage # Tests with coverage report
pnpm start # Start the MCP service over stdioMain directories:
src/plugin/: Figma plugin and its UI.src/server/: MCP service and local bridge.src/shared/: protocol types shared by plugin and server.scripts/: build and local install scripts.tests/: unit and integration tests.
Tests cover node serialization truncation, plugin command execution, plugin pure helpers, local config validation, bridge auth/command queue/timeouts/multi-instance reuse, and MCP tool parameter validation with export file writing. Tests use sandbox directories and random loopback ports — they never touch your real config or running services. The plugin UI and polling orchestration still need manual verification in the Figma desktop app. After changes, run at least pnpm run check and pnpm test, and verify selection sync, prompt copy and MCP node reads in Figma.
CI and releases
Pushes and PRs to main run type check, build and tests on GitHub Actions (.github/workflows/ci.yml).
Releases are triggered by tags:
# 1. Bump the version in all three places (package.json, scripts/build.mjs, src/server/index.ts)
# 2. Add a matching section to CHANGELOG.md (it becomes the release body)
# 3. Commit and merge into main
# 4. Tag and push
git tag v0.3.0
git push origin v0.3.0On a v* tag, release.yml verifies the tag matches package.json, that CHANGELOG.md has the matching section, then runs pnpm check and pnpm test. If everything passes it creates the GitHub Release with the CHANGELOG section as the body, plus auto-generated change lists. Mismatched versions, a missing CHANGELOG section or failing tests block the release (both invariants are also guarded by tests).
Releases never attach build artifacts: plugin builds embed the local token and must not be distributed; users install from source per this README.
Local data and security
The bridge listens on 127.0.0.1:3846 only, and the plugin authenticates with a random token. The token lives in the user data directory and is never committed; it is baked into the plugin build under dist/, which is why dist/ stays Git-ignored.
This service never uploads design data to remote servers. How MCP clients and models handle returned content is outside this service's control.
License
Available Tools
9 toolsexport_nodeExport a Figma nodeB
Export the selected node or a node ID as PNG, SVG, JPG or PDF through the desktop plugin and save it locally.
Inputs: scale, format, nodeId, fileKey.
find_nodesFind Figma nodesB
Search the whole file (or one page) for nodes by name substring and/or node type, returning matching node IDs with their pages.
Inputs: query, types, pageId, fileKey, +1 more.
get_design_contextGet Figma design contextB
Read layout, styles, text, components and variable bindings for a selected Frame or a node ID. Uses the local Plugin API, not the Figma REST API.
Inputs: nodeId, fileKey, maxDepth, maxNodes.
get_documentGet Figma document overviewB
List all pages with node counts and the local resource counts (variables, collections, styles) of the open Figma file.
Inputs: fileKey.
get_plugin_statusGet local Figma plugin statusA
Check which Figma files are connected through the local desktop plugin, which file is active, and the current selection in it.
Inputs: no named parameters.
get_screenshotGet a Figma node screenshotC
Render the selected node or a node ID to a PNG image through the desktop plugin.
Inputs: nodeId, fileKey, maxDimension.
get_selectionGet Figma selectionA
Read the current selection in the open Figma file through the local desktop plugin.
Inputs: fileKey.
get_style_defsGet local Figma stylesB
Read local paint, text, effect and grid styles from the open Figma file (useful for design tokens).
Inputs: fileKey, maxStyles.
get_variable_defsGet local Figma variablesB
Read local variable collections and variable values from the open Figma file.
Inputs: fileKey, maxVariables.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Most tools target a clearly distinct read surface (connection status, document structure, selection, styles, variables, node search, node detail). The main overlap is get_screenshot versus export_node, which both render a node to PNG, distinguished only by format options and local-save behavior. get_selection and get_design_context also touch the selection but are separable (what is selected vs. details of it).
Names follow a consistent verb_noun snake_case pattern throughout (get_plugin_status, get_document, find_nodes, export_node, get_screenshot). The get_/find_/export_ verb split is semantically motivated rather than arbitrary, and the resource noun is always explicit.
Nine tools is well within the ideal range and each covers a distinct part of the plugin-inspection workflow. No tool appears redundant or tacked on, aside from the mild screenshot/export overlap.
The surface covers connection discovery, document navigation, search, selection, design context, styles, variables, and image export, with node-ID addressing on the deeper reads. Gaps are minor: no direct component/component-set or library listing, no prototype/interaction data, and no write operations (create/update variables or styles), though read-only may be intentional for a local plugin bridge.
Maintenance
Related MCP Connectors
Keeps Figma in sync with your Storybook and sends designers' changes to your coding agent.
The Figma MCP server brings Figma design context directly into your AI workflow.
Serves your design system and coding standards to coding agents, so they stop guessing.
Let ChatGPT and Claude read and edit files, search and run commands on your own computer.
Related MCP Servers
- FlicenseCqualityDmaintenanceLocal bridge enabling AI agents to inspect and edit the currently open Figma Desktop file through the Figma Plugin API.292-
- FlicenseNot gradedqualityDmaintenanceEnables AI coding agents to read and write a user's Figma file through the Figma Plugin API, offline and privately, without API tokens or rate limits.-
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to inspect Figma selections, navigate pages, render previews, generate starter code, and submit user-approved canvas edits through a local bridge.3 npmMIT
- AlicenseAqualityBmaintenanceEnables an agent to read, edit, and build Figma designs from scratch — including style guides, variables, components, and screens — through a local plugin bridge to the open file's Plugin API, with no Figma token or REST API calls.211MIT