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
- Open Pencil — AI-native design editor 8k ★
- Cursor Talk To Figma MCP — TalkToFigma: MCP integration between AI Agent (Cursor, Claude Code, Codex) and Figma, allowing Agentic AI to c 7k ★
- Jcodemunch MCP — Cut AI token costs 95%+ on code exploration 2.6k ★
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
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
Smart Context Delegation
Cut coding-agent token usage by ~90%: a PreToolUse hook blocks large file reads; bulk-read/code-write delegate
Claude Code Design AI
Claude Design: AI UI/UX architect. Screenshot to React, Figma components, Tailwind CSS generator. Prototyping
Cowback
🐄 The missing Ctrl+Z for AI Agents. Zero-cost undo powered by Copy-on-Write.
Schematic AI Tools
AI coding skills for integrating with Schematic SDKs. Teaches AI assistants how to write code for feature flag
Related Agents
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
Pbi Dax
DAX specialist for the Power BI Desktop project currently open. Writes, validates, tests and optimizes measure