Skip to content
MCP server
Registry

figlens MCP Server

Offline Figma MCP server: layout, SVG assets, renders and revision diffs from saved .fig files

figlens scores 73 (Good), licensed MIT and written in Rust. It installs as a local process. It does not declare tools yet. Filed under Design. GitHub shows 33 stars. Package registries report about 798 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by runkidsMITRust33 stars
Trust score
73Good
Trust score 73 of 100, Good

Good trust

73 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 73 comes from

22 + 20 + 10 + 10 + 4 + 7 = 73. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity10 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 10 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "runkids-figlens": {      "command": "npx",      "args": [        "-y",        "@runkids/figlens@0.14.7"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About

figlens turns saved Figma files into design context your coding agent can act on—not just a screenshot to interpret.

  • Build from the source details. Read layout, text, styles, variables, Dev Mode annotations and Ready for dev status; export vector icons as SVG and images as assets. bundle collects a frame's data, assets and reference render; verify reports missing files, font checks and handoff limitations. MCP nodes can save large node JSON to a file with out instead of returning it inline.
  • Compare the running UI. compare-image compares your screenshot with figlens's render and names the layers under differing regions. Review those differences and rendering warnings; it is not a pixel-perfect guarantee.
  • Follow design changes. diff compares saved revisions; changes and watch report updates to tracked local scopes; freshness tells when a saved copy is older than the online file, and pull saves a new copy through your own browser sign-in. Save a new .fig from Figma to pick up design edits—this is not live Figma sync. Named accounts route each design to separate browser profiles and API-token environment variables; existing defaults stay unchanged. figlens sources init [DIR]: Scan local .fig files into .figlens/sources.json without overwriting it; names come from meta.json or the filename. Fill in the blank URLs before pulling.

Offline at the foundation. In Figma, File > Save local copy. Put design.fig next to your code. Then a Figma link is enough: its node id picks the frame. With no saved copy, copy the layers in Figma (right-click > Copy) and run figlens clipboard screen.fig; a copy has no images or vector outlines (how). One native binary reads it locally, without a running Figma app, login or network calls to Figma; only the opt-in freshness check (with a configured API token; default: FIGMA_TOKEN) and pull (through your browser sign-in) reach Figma.

Get started

No design file yet? Check your setup with the tiny public example: verify your chosen binary, find one frame and validate its bundle. No model required.

Put design.fig in your project, then choose one setup. Each gives your agent the figlens tools and the same built-in guidance for planning, implementation and image preparation.

SetupUse it forGuidance comes from
PluginClaude Code, Codex, Antigravity, Cursor, Kimi Codethe plugin's skill and the server's workflow tool
MCPClaude Code, Cursor, Codex, Gemini CLI and other MCP clientsthe server's workflow tool
PiPi 1.3.0+the package, which ships the skill
OpenCode V2OpenCode V2 2.2.0the package skill
OMPOMP 18.13.2the package skill
Herdra panel beside your agents in Herdr 0.1.12+: find a screen, hand it to one, track each screen's progress on a boardthe receiving agent's own setup
CLIagents that only run shell commands, scripts and CI, or youfiglens workflow <topic>, or the optional skill

Ordinary vs advanced. Ordinary use needs no setup: figlens search design.fig "query" reads the .fig and creates nothing. An optional local index is created only when you ask for one (figlens index prepare design.fig --scope 0:0), then reused across restarts and hosts. See Ordinary search and the optional local index. Optional and experimental: --mode semantic or hybrid ranks by meaning with a local model you set up yourself; see Optional semantic search.

Plugin

One install adds the figlens skill and MCP server to your agent (Node.js 18+). The server is pinned to the plugin's release (npx -y @runkids/figlens@<version> mcp); update the plugin to move to a new version.

HostInstall
Claude Codeclaude plugin marketplace add runkids/figlens, claude plugin install figlens@figlens
Codexcodex plugin marketplace add runkids/figlens, codex plugin add figlens@figlens
Antigravityagy plugin install https://github.com/runkids/figlens/tree/main
Cursorgit clone --depth 1 https://github.com/runkids/figlens ~/.cursor/plugins/local/figlens, then reload the window
Kimi Code/plugins install https://github.com/runkids/figlens/tree/main in a session, then /reload

skillshare installs the same plugin on several hosts at once: skillshare plugin add https://github.com/runkids/figlens.git --target claude --target codex --target cursor -g; update it later with skillshare plugin update figlens -g.

Restart the host or start a new session, then check that the figlens tools are listed. A plugin install copies the repository: about 7 MB, plus the Git history (about 60 MB) in Codex. Antigravity loads only the first 24 KB of the skill; the server's workflow tool serves the full guidance. Muse is not supported yet. Host matrix and what was verified

MCP

Claude Code (Node.js 18+, macOS/Linux):

claude mcp add --transport stdio --scope local figlens -- npx -y @runkids/figlens mcp

Codex CLI (Node.js 18+, macOS/Linux):

codex mcp add figlens -- npx -y @runkids/figlens mcp

Any MCP client:

{
  "mcpServers": {
    "figlens": {
      "command": "npx",
      "args": ["-y", "@runkids/figlens", "mcp"]
    }
  }
}

Without Node.js, install the standalone binary (CLI) and use "command": "figlens", "args": ["mcp"]. Start a new session and check that the figlens tools are listed (/mcp in Claude Code). No separate skill install is required. Add --root <dir> after mcp to limit which folders figlens may read and write.

MCP startup arguments

Add these options after mcp in your client's args. These are the only MCP startup options; both are optional and repeatable.

OptionMeaning
--root DIRAllows design reads and exports inside DIR and its subfolders. Without it, figlens adds no path restriction: OS permissions still apply. It does not default to the current project or scan the computer.
--storage-root DIRAllows explicitly requested custom index storage inside DIR and its subfolders. It does not select or change the default storage location.

Use absolute paths to existing directories. Each option and path is a separate array item; repeat the option for multiple folders. --root means a path boundary, not administrator access, and only restricts figlens MCP, not the agent's other tools.

Example with two design/output roots and two allowed storage roots:

{
  "mcpServers": {
    "figlens": {
      "command": "npx",
      "args": [
        "-y", "@runkids/figlens", "mcp",
        "--root", "/absolute/designs",
        "--root", "/absolute/project",
        "--storage-root", "/absolute/storage-a",
        "--storage-root", "/absolute/storage-b"
      ]
    }
  }
}

There is no figlens mcp --storage option. Choose the actual location with the index tool's storage argument (an absolute path under an allowed storage root), or CLI figlens index prepare design.fig --storage /absolute/storage-a. After prepare, figlens remembers that workspace's location and reuses it across restarts and hosts without repeating storage or --storage-root. Without a custom location, the per-user defaults apply; no storage flag is needed.

To keep these paths out of a checked-in config, or to share designs across Git worktrees, see roots in a checked-in config.

Multiple storage roots only expand the allowed locations: each storage argument still selects one location. They do not distribute, sync or back up indexes. An existing workspace database cannot be moved by simply naming another root; figlens refuses the conflicting location.

Pi

One package ships the CLI, MCP, viewer, /figlens commands and skill:

pi install npm:@runkids/figlens

Pi extension guide

OpenCode V2

Install the package in OpenCode V2:

opencode plugin add @runkids/figlens

Restart the host, then run /figlens help. OpenCode V2

OMP

Install the same package in OMP:

omp plugin install @runkids/figlens

Restart the host, then run /figlens help. OMP

CLI

Run it through npm, or install the standalone binary:

npx @runkids/figlens --help                                                                # Node.js 18+, no install
curl -fsSL https://raw.githubusercontent.com/runkids/figlens/main/scripts/install.sh | sh  # macOS, Linux
brew install runkids/tap/figlens                                                           # Homebrew
irm https://raw.githubusercontent.com/runkids/figlens/main/scripts/install.ps1 | iex      # Windows PowerShell

npx runs the binary of the package version it resolves. Script installs update with figlens update; Homebrew installs with brew upgrade figlens. Binaries cover macOS (Apple silicon, Intel), Linux (arm64, x86_64) and Windows (x86_64).

An agent that uses the CLI reads its guidance with figlens workflow build (also audit, images, search, plan, planning-details and the opt-in yolo), which always matches the binary's version, or from the agent skill.

CLI reference

Different Figma accounts can use figlens pull --login --account work and optional "account": "work" in the source mapping. Existing default sessions need no migration. Figma accounts: browser login and API tokens.

figlens sources init [DIR]: Scan local .fig files into .figlens/sources.json without overwriting it; names come from meta.json or the filename. Fill in the blank URLs before pulling.

Agent skill (optional)

The skill teaches an agent the same workflow as the built-in guidance: find the frame, read the bundle in small pieces, plan scoped work and check the running UI against the design. It holds instructions only, so pair it with the CLI or MCP. MCP and Pi setups do not need it.

Recommended: skillshare. Install the skill once and sync it to each agent you use:

skillshare install github.com/runkids/figlens/skills/figlens
skillshare sync

The same tool can also set up the figlens MCP connection for those agents:

skillshare mcp add figlens --global --target claude --target codex --target cursor --no-tui -- npx -y @runkids/figlens mcp
skillshare sync mcp --global

Other ways to install the skill:

npx skills add runkids/figlens --skill figlens   # Skills CLI

Or copy skills/figlens/ from this repository or a release archive into your agent's skills directory (Claude Code: ~/.claude/skills/). An installed skill updates separately from the binary; figlens workflow always matches it.

Then ask for a screen:

Build the task board from ./design.fig in this project.
Find the matching frame, use this project's components and image workflow,
then compare the running UI with the design and fix confirmed differences.
Report missing assets and any checks you could not run.

The agent finds the frame, bundles its design data, assets and reference image, then builds the screen with your stack. The shared workflow guides font and asset checks; missing inputs are reported while layout implementation continues with documented fallbacks. Ask for the changed files and a browser comparison.

Demo: Pi builds a React screen from a .fig

Pi plans from a local .fig, builds a React screen and checks it beside a live browser

Looping GIF at 3× the edited video’s playback speed. Click it for the full 78-second video.

78-second video. Pi runs /figlens plan, reads a dashboard frame from a local .fig, builds it with React and Tailwind CSS, then checks and corrects the running UI. Edited time-lapse, not a benchmark or a pixel-perfect promise. Design: Task Flow by Eymen Eid · recording notes.

From .fig to editable HTML/CSS: in a controlled task-list study, all six figlens-based attempts preserved all 19 visible text occurrences as real DOM text and all four icons. CLI and MCP extraction also passed with Docker networking disabled. Follow the case study for setup, measurements and independent image comparisons.

Why figlens instead of the official Figma MCP?

Use figlens when the design should travel as a file: remote agents, CI, offline work, handoff between agents, unlimited repeated reads. Use the official Figma MCP when the agent must see the live design without an export step.

Reading a .fig is offline. Installing and updating figlens, gs:// inputs, the opt-in freshness check and pull, your model provider and your project's dependencies still need a network.

Full comparison

What the agent gets

One frame, one zip. Structure to build from, assets to use, a picture to check against.

Bundle contents and examples · How close is it to Figma?

Documentation

Limitations

  • Snapshots, not live sync. Export a new .fig when the design changes. figlens cannot download a design from a Figma URL.
  • Undocumented format. figlens decodes the file's embedded schema; new Figma exports may need a figlens update.
  • Fonts and text: font files are not bundled; overridden text can retain Figma's saved layout. Use licensed project fonts and compare the result.
  • Support coverage: follow rendering improvements and handoff semantics in the issue tracker. See current semantic coverage.
  • Check the output. Read bundle warnings, missing-assets.json and unresolved variables in context.md, then compare the implementation with the design.
  • Known visible rendering limitations appear in node _figlens.renderDiagnostics, bounded inspect summaries and bundle and export warnings; missing-assets.json lists only asset failures. No warnings does not establish pixel fidelity. A background blur past the 64 one export draws is left out and named only in those warnings (20 nodes, then a count).

Help figlens grow

If figlens turned a design into code for you, star the repo so others find it. Hit a file it cannot read? Open an issue with the command and what you expected.

Development runs Rust in Docker only: docker compose run --rm dev cargo test. See AGENTS.md and the wiki.

License

MIT. figlens is an independent project, not affiliated with, endorsed by or sponsored by Figma. The .fig format is undocumented and may change; use only files and assets you have permission to access and share.

Frequently asked questions

What is figlens MCP Server?

Offline Figma MCP server: layout, SVG assets, renders and revision diffs from saved .fig files

How do I install figlens MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. figlens MCP Server runs locally from the npm package @runkids/figlens with the command npx -y @runkids/figlens@0.14.7.

Is figlens MCP Server free and open source?

Yes. figlens MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does figlens MCP Server support remote (HTTP) connections?

No remote endpoint is listed for figlens MCP Server. It runs locally on your machine over stdio, started by your MCP client.

How is figlens MCP Server's trust score calculated?

figlens MCP Server scores 73 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server