Localfig — AI skill for Claude Code
The Figma desktop app as an MCP server.
How to install Localfig
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open LucasGorgal/localfig and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Localfig does
The Figma desktop app as an MCP server. Gives AI agents the full Figma Plugin API on your open file: read, write, tokens, components, exports, undo. Runs locally with no cloud API, no token and no quota. One command registers it with Claude Code, Cursor, VS Code, Windsurf, Cline, Gemini CLI, Codex and more. Zero dependencies.
Alternatives in AI
- Omniget — Udemy & Hotmart course downloader, YouTube downloader (yt-dlp GUI, 1,800+ sites) + desktop app for AI agents 13.9k ★
- Late CLI — High-performance AI agent for long-horizon tasks and local models 442 ★
- Oleafly — A powerful live collaborative LaTeX, Typst & Markdown editor with shared cursors, comments, cloud sync, and AI 243 ★
README
localfig
**The Figma desktop app as an MCP server.** localfig gives an AI agent the **full Figma Plugin API** on the file you have open — through a tiny dev plugin and a loopback HTTP bridge, entirely on your machine.
- Reads and writes. Frames, text, auto-layout, variables, components, image fills, exports, undo — anything the Plugin API can do, the agent can do.
- No Figma cloud API, no personal access token, no per-account quota.
- Zero dependencies. Node built-ins only. Nothing leaves your machine.
- Works with any MCP client that can launch a stdio server: Claude Code, Cursor, Windsurf, Cline, Claude Desktop and more.
MCP client --stdio JSON-RPC--> localfig --http localhost:8765--> Figma plugin --> Plugin API
Why localfig
| localfig | Official Figma MCP | REST-API servers | Fixed-command plugin bridges | |
|---|---|---|---|---|
| Writes to the file | anything the Plugin API can | limited | no — the REST API cannot write nodes | a fixed menu of commands |
| Arbitrary Plugin API JavaScript | yes (figma_eval) |
no | no | no |
| Quota / login | none | plan-dependent | token + rate limits | none |
| Tokens, styles, components read back | figma_tokens, figma_metadata |
yes, incl. Code Connect | partial | rarely |
| Agent can see the design as an image | yes, inline in the response | yes | files or links, not inline | varies |
| Undo per agent step, change tracking | yes | no | no | no |
Requirements
- Node.js 18 or newer
- The Figma desktop app — dev plugins cannot be imported in the browser
- An MCP client: Claude Code, Cursor, Windsurf, Cline, Claude Desktop, …
Install (once)
npx -y localfig --setup
That generates your local secret, writes the plugin to `~/.localfig/plugin/`, **registers localfig with every MCP client it finds on your machine**, and prints the manifest path for the next step. `--dry-run` shows what it would do without touching anything, and `--clients=cursor,vscode` limits it to t
Related Skills
Overleaf Workshop Agent Skills
Gives AI coding agents (Codex, Claude Code, etc.) the ability to read and write Overleaf projects via the VSCo
Ollama Cc Plugin
Use local/cloud ollama models from Claude Code as a second engine: read-only consult/review, agentic worktree-
Full Stack Chat Application With Multi Platform Clients AI Agent Integration
A Claude Code-style AI agent harness in Python. Uses Ollama + native LLM tool-calling to read/write files and
Claude Code Design AI
Claude Design: AI UI/UX architect. Screenshot to React, Figma components, Tailwind CSS generator. Prototyping
UI Design Brain
A Cursor skill that gives AI agents real UI component knowledge — best practices, layout patterns, and design-
Imperal MCP
An exoskeleton for your AI coding agent - it remembers everything, sees your whole codebase, can undo any chan
Related Agents
UI Component Writer
Converts design inputs (screenshots, Figma exports, wireframe images, or text descriptions) into production-re
Fec Design Token Mapper
Use this subagent to map styles and variables in Figma, Sketch, MasterGo, Pixso, Mokou, or Mockup to existing
Figma Dx Specialist
Figma Designer-Experience specialist owning Figma's CODING surfaces — Dev Mode, Code Connect, plugin API, REST