
If you've opened Figma lately and noticed the design world suddenly talking about MCP, you're not imagining it. The Figma MCP server is one of those quiet shifts that changes how you actually work with the tool: less clicking through menus, more telling Figma what you want and watching it happen.
This is a practical, human guide to the Figma MCP server in 2026. It covers what each command does, what visually gets triggered inside Figma when you run it, the localfig project, prompt examples you can copy, and how to hook it up to the AI tools you're already using: Claude, ChatGPT, Cursor, Windsurf, and anything else that speaks MCP.
MCP stands for Model Context Protocol. Think of it as a universal plug that lets an AI assistant reach into an application and do things on your behalf. The Figma MCP server is that plug for Figma.
Instead of you selecting a frame, digging into the fill panel, picking a hex code, and clicking apply, you tell the AI "make the primary button frame 48 pixels tall and fill it with brand orange," and the AI sends that instruction through MCP to Figma. Figma then executes it directly on your canvas.
The server runs locally (or wherever you host it) and exposes a set of commands. Your AI client calls those commands, and Figma responds by changing what's on your screen.
Here are the core commands the Figma MCP server exposes, what each one does, and what you'll see happen on your canvas when it runs. Open one to read it.
This command asks Figma for the structure of your current file: frames, groups, components, and their IDs. It's usually the first thing an AI does so it knows what exists before it tries to change anything.
What happens in Figma: Nothing visibly changes on your canvas. The server returns a JSON tree of your file's layers, which the AI uses to plan its next move.
Tells Figma to add a new top-level frame (or an artboard, in old-school terms).
What happens in Figma: A new empty frame pops onto your canvas, usually near the center or at the position you specified. It's selected and ready for you to drop content into.
Adds a basic shape (a rectangle, rounded rectangle, or ellipse) inside a frame you've pointed it at.
What happens in Figma: The shape appears inside your target frame. If you didn't specify a frame, it lands on the root canvas.
Changes the text inside an existing text layer, useful for updating button labels, headings, or body copy without opening the text tool.
What happens in Figma: The text layer's content swaps out instantly. The layer stays in place; only the words change.
Updates the fill (background color) of a selected shape, frame, or component instance.
What happens in Figma: The selected element's fill color updates on the canvas. If it's a component instance with overrides, only that instance changes unless you tell it to push to the main component.
Repositions or resizes an existing layer, dragging it to new X/Y coordinates or changing its width and height.
What happens in Figma: The layer jumps to its new position or snaps to its new size. Constraints and auto-layout rules still apply, so siblings may shift to accommodate.
Drops a comment pin on the canvas with a message, handy for flagging things to a teammate or leaving yourself a note.
What happens in Figma: A comment bubble appears at the coordinates you specified. Anyone with file access can see it, reply, and resolve it, just like a manually added comment.
Takes one or more selected layers and exports them as PNG, SVG, JPG, or PDF, returning the file URLs.
What happens in Figma: The export dialog equivalent runs silently: Figma renders the assets and hands back download links. Nothing visually changes on your canvas, but your downloads folder gets a new file.
These are the command names used across Figma MCP server implementations and related tooling, including the official Figma MCP listing and community plugins:
figma-use/
figma-spec/
figma-swiftui/
figma-shaders/
figma-use-figma/
figma-use-slides/
figma-use-motion/
figma-code-connect/
figma-design-to-code/
figma-code-workflows/
figma-create-new-file/
figma-generate-design/
figma-generate-diagram/
figma-generate-library/
figma-implement-motion/
figma-generative-plugins/
The names group by what they do. The figma-use family works on the file you already have open. figma-create-new-file and the figma-generate set build new files, frames, diagrams or libraries from scratch. figma-code-connect, figma-design-to-code and figma-code-workflows move work between the canvas and a codebase. figma-swiftui, figma-shaders, figma-implement-motion and figma-generative-plugins each target one specific output: SwiftUI code, shaders, animation, or a custom plugin. Which ones you actually get depends on the server and the MCP client you connect.
localfig (LucasGorgal/localfig on GitHub) is an open-source Figma MCP server that runs entirely on your machine. It turns the Figma desktop app into an MCP server, giving AI agents full read/write access to your open file through the Figma Plugin API: no cloud API, no personal access token, no quota.
How it works:
A tiny dev plugin plus a loopback HTTP bridge run on localhost. Your MCP client (Claude Code, Cursor, Windsurf, Cline, VS Code, etc.) speaks stdio JSON-RPC to localfig, which forwards commands to the Figma plugin over HTTP. The plugin executes them against the Plugin API on your open file.
Key capabilities:
Setup:
npx -y localfig --setupThis generates a local secret, writes the plugin to ~/.localfig/plugin/, registers localfig with your MCP clients (Claude Code, Cursor, Windsurf, VS Code, Cline, Gemini CLI, Codex, opencode, Zed, LM Studio), and prints the manifest path. Then import ~/.localfig/plugin/manifest.json into Figma via the Plugins menu → Development → Import plugin from manifest.
Once set up, open a Figma file in the desktop app, run the localfig plugin, and ask your AI agent to do Figma work directly on your canvas.
Repo: https://github.com/LucasGorgal/localfig
Here are copy-and-adapt prompts for common Figma MCP workflows:
Create a landing page layout:
Create a landing page frame in Figma. Add a hero section with a heading "Design systems at scale", a subheading, and a primary button with brand fill. Use auto-layout for the hero content, add three feature cards below in a row, and export the result as PNG.Update design system tokens:
Read all color variables from the file using figma_tokens. Then change every button's fill to use the brand primary token instead of hardcoded hex values. Report which buttons were updated.Generate SwiftUI from a Figma frame:
Select the card component on page 1. Use figma_metadata to get its structure, auto-layout, colors, and typography. Then generate equivalent SwiftUI code that matches the Figma design exactly.Find and replace text across pages:
Use figma_find to search every page for text layers containing "Buy Now". Replace them all with "Get Started" and report how many were changed.Export assets for development:
Select all frames on the "Handoff" page. Export each as SVG and PNG at 2x, saving them to the exports folder. Return the file paths.Implement motion:
Take the selected frame and add a variant with motion properties: easing, duration, and delay. Use figma_implement-motion to create the animated component and show me the result.MCP is client-agnostic, which means the same Figma server works with whichever AI tool you prefer, as long as that tool can speak MCP.
Claude has first-class MCP support through its desktop app and Claude Code. You point Claude at your local Figma MCP server URL, and it can read your file structure, create frames, update text, and change colors directly in Figma while you chat. It's particularly strong at multi-step edits ("make three frames, style them all with the same corner radius, and add a heading to each") because it can chain several MCP commands in one turn.
ChatGPT supports MCP through its integrations and custom GPTs. Connecting the Figma MCP server lets ChatGPT generate designs based on conversation: describe a landing page, and it can lay out frames, drop in placeholder text, and set fills in Figma while you refine the copy in the chat.
AI code editors that support MCP can use Figma as a design source. You can ask Cursor to "look at the Figma file and build the matching React component," and it pulls node data through MCP to ground its code in what's actually on your canvas. It's a two-way street: design in Figma, generate code in Cursor, tweak in code, push changes back to Figma.
Any tool implementing the MCP spec (Continue, Zed, custom scripts, or your own internal agent) can connect to the Figma MCP server using the same command set. The server doesn't care who's asking; it only cares that the request follows the protocol.
http://localhost:3333 or a stdio transport).For localfig specifically: run npx -y localfig --setup, import ~/.localfig/plugin/manifest.json into Figma, open a file, run the plugin, then connect your MCP client.
Works well: Creating frames and shapes, updating text, changing fills and basic styles, adding comments, reading file structure, exporting assets, reading tokens and styles, undoing agent changes.
Still rough around the edges: Complex auto-layout manipulation, component variant swapping, prototype connections, and anything requiring fine pixel-level judgment. MCP is great for scaffolding and repetitive edits, but you'll still want a human hand on the final polish.
It is a small server that connects your AI assistant to Figma through the Model Context Protocol, so you can describe a change and have it applied on your canvas instead of clicking through panels yourself.
The server software is free, and localfig is open source. Beyond that you only need the Figma desktop app and the AI client you already use.
The cloud API route does. localfig does not: it drives the Figma desktop app through a plugin, so there is no token, no cloud API and no quota to manage.
Any client that speaks MCP. Claude and Claude Code, ChatGPT integrations, Cursor, Windsurf, Continue, Zed, or a script you write yourself.
It can scaffold one. Frames, text, shapes, fills and exports are reliable. Fine auto-layout, component variants and pixel-level polish still need a human hand.
Undo it. localfig ships figma_history, which snapshots and rolls back the last tool call. For bigger edits, duplicate the file first or work on a copy.
Yes. The server runs wherever your AI client runs, and the Figma desktop app is available for both.
Keep reading

Make your own personal website for free with AI: static HTML or Next.js, copy-ready prompts, design references, 2026 prices and a step-by-step launch flow.

36.9% of PM teams now use AI for limited workflows and 62% save 4+ hours weekly. Tools, prompts, and workflows that actually 10x productivity.

A design system is often sold as a must-have, but not every company needs one. This post helps you decide whether to build one, adopt an existing system, or skip it entirely.