Skip to main content
MCP server CX Codex

figlens — Claude Code MCP server: what it does, how to install

figlens — an MCP server for Claude Code and Codex that reads layouts, vector assets, and variables directly from saved .fig files. Feeds exact design context to coding agents without cloud Figma calls.

MIT ★ 26 updated 2026-11-16

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add figlens -- npx -y @runkids/figlens
Open on GitHub

What figlens does

The server parses local .fig files using an internal native binary without requiring a running Figma application or network requests. Its bundle tool extracts layer trees, exports vector icons as SVG, and produces reference renders, while verify checks font availability and handoff constraints.

Visual verification uses compare-image to inspect screenshot differences against the design render and highlight modified layers. Design revisions between saved local files are tracked with diff and changes.

Execution requires Node.js 18+ and a local .fig copy in the workspace. Converting copied layers via figlens clipboard leaves out raster images and vector outlines.

What it helps with

  • extract layout dimensions and variables from local .fig files
  • export vector assets directly to SVG format
  • compare UI implementation screenshots against reference renders
  • inspect changes between design revisions with diff tools

Example prompts for the agent

  • Bundle the header frame from design.fig and export its vector icons
  • Compare screenshot.png with the design using compare-image
  • Verify missing fonts and layout properties in design.fig

How to install figlens

Platform CLI

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

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about figlens

How to install figlens in Claude Code?

Run claude mcp add figlens -- npx -y @runkids/figlens. This registers the MCP server using npx without extra global packages.

What does figlens do?

It parses local Figma .fig files offline, providing coding agents with layout data, variables, text properties, and SVG assets.

What is required to run figlens?

You need Node.js 18+ and a local .fig file saved from Figma. A FIGMA_TOKEN environment variable is only needed for optional remote freshness checks.

Similar MCP servers

All MCP servers for Design →

Project sponsors

Companies that keep this analytics open