# figlens [Health: Active]

**Category:** 📐 Architecture & Design  
**Repository:** https://github.com/runkids/figlens  
**GitHub Stars:** 29  
**npm Downloads (last month):** 6605  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/figlens

## Description
Your coding agent reads Figma .fig files locally. Layout, text, variables, assets, reference renders. No Figma app, login or API quota. CLI + MCP + Pi.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

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

## Documentation

## What figlens does

figlens reads a locally saved Figma `.fig` file and makes its design data available to an AI coding agent. The exposed context includes layout values, text, styles, variables, icons, images, and other assets, along with a reference render for a frame. It operates on files saved from Figma using **File > Save local copy**, so the desktop Figma application does not need to be running.

The server is intended for implementation work where an agent needs design information alongside source code. It can be used in a project directory, on a remote host, or in CI without Figma login credentials or Figma API quota.

## How it works

Place a `.fig` file such as `design.fig` beside the project code. figlens parses the file locally and serves the resulting design context through MCP. Ordinary searches read the file directly and do not create an index.

An optional local index can be prepared for a design and reused across restarts and hosts. Index preparation can be scoped to a selected range, and a custom storage location can be selected when needed. Semantic and hybrid search modes are optional and use a local model that the operator configures separately.

The `workflow` tool provides guidance for planning, implementation, and image preparation. This guidance is available through MCP and is also packaged with several host integrations.

## Setup and configuration

The MCP server can run with Node.js 18+ through the `@runkids/figlens` npm package, or through the standalone `figlens` binary. A generic MCP configuration starts the package with the `mcp` command. Claude Code and Codex CLI have dedicated setup commands, while other MCP clients can use the same stdio configuration.

The optional `--root DIR` argument limits design reads and exports to specified directories and their descendants. Multiple roots can be supplied. `--storage-root DIR` limits where explicitly requested custom indexes may be stored; it does not itself choose the storage location. These paths must be absolute paths to existing directories.

The Pi package includes the CLI, MCP server, viewer, commands, and skill. OpenCode V2 and OMP provide package-based plugin installation. Plugin setup is also available for Claude Code, Codex, Cursor, Antigravity, and Kimi Code.

## Tools and capabilities

- Search a local `.fig` file for design information.
- Expose layout, text, styles, variables, icons, images, and other assets.
- Provide a reference render for a selected frame.
- Prepare and reuse an optional local design index.
- Supply workflow guidance for design-to-code tasks.
- Restrict MCP reads, exports, and custom index storage with root arguments.

## Limitations and notes

figlens requires a locally saved `.fig` file; it is not described as a connection to a live Figma document. The optional semantic and hybrid modes require a local model configured by the user. Root arguments restrict figlens MCP operations only and do not restrict the agent's other tools.

Multiple storage roots authorize several possible locations but do not distribute, synchronize, or back up indexes. An existing workspace database cannot be relocated simply by naming another root. Plugin installations pin the server package to the plugin release, so updating the plugin is the way to move to a newer release.

_Full upstream README: https://allmcps.com/mcp/figlens/readme_

