LucasGorgal

Localfig — AI skill for Claude Code

AI community

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