Figma Codekit MCP logo

Figma Codekit MCP

Converts Figma frames to HTML or React, then verifies browser output with pixel, layout, stacking, and clipping checks.

Install Figma Codekit MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "figma-codekit-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "figma-codekit-mcp@latest"
      ],
      "env": {
        "FIGMA_TOKEN": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Automated check passed— started and listed 3 tools correctly ().

Overview

figma-codekit-mcp MCP server converts selected Figma frames into deterministic HTML and supporting files, including an intermediate representation, images, and design tokens. Its verification tool renders the result in Chromium, compares it with the Figma reference, measures element positions, and reports targeted corrections. It can also inspect a frame’s structured IR or verify an existing local page instead of generated output. Reach for it when visual fidelity matters and you want an agent-driven convert, edit, and verify loop rather than one-time code generation.

Use cases

  • Convert a Figma frame into self-contained HTML and assets
  • Generate React or Next.js output from a selected design frame
  • Verify a local application against a Figma reference image
  • Inspect layout structure and tokens without loading raw Figma JSON

Key features

  • Deterministic Figma frame conversion
  • HTML, React, Next.js, and Tailwind output options
  • Chromium pixel-diff verification
  • Element bounding-box IoU checks
  • Paint-order and clipping diagnostics
  • Cached frame data and extracted design tokens

Tools3

What Figma Codekit MCP lets your agent do. Expand a tool for its parameters.

Verified live~1.2k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

6/6 checks healthy over the last 22d

What it can do

From the 3 tools this server returned when we ran it.

Handles credentials · 1Makes network requests · 1Read-only tools · 3
Network at startup3 connections
Files written at startupNone
Install scriptspostinstall
npm provenanceSigned build
Package age23 days
Maintainers1

Observed 2026-11-08 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 5d ago via OSV.dev · figma-codekit-mcp@latest (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads629Package downloads in the last 30 days.
Last commit11d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed3Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Figma Codekit MCP works

What figma-codekit-mcp does

Figma frame conversion, browser rendering, and visual comparison are combined into three MCP tools. figma_convert retrieves a frame and writes a self-contained implementation plus its supporting artifacts. The output can include HTML, ir.json, image assets, a reference screenshot, and design-token files in W3C DTCG, CSS, and Tailwind v4 formats.

The converter can also produce React output, a runnable Next.js App Router project, or Tailwind-based React and Next.js output. A responsive option uses sizing intent from Figma Auto Layout where that information exists. Conversion is deterministic and does not use an LLM inside the server.

figma_verify checks whether the browser-rendered result matches the reference. Along with a pixel mismatch ratio and problem regions, it compares element bounding boxes using IR identifiers. It also checks rendered paint order and whether ancestor clipping hides content that should overhang. The result distinguishes issues such as missing elements, misplaced elements, incorrect stacking, and over-clipping.

How it works

A typical workflow starts with a Figma frame link and figma_convert. The generated files are then edited by the calling agent. figma_verify renders the edited HTML in Chromium and returns measurements and fix guidance for the next iteration. The refinement loop belongs to the calling agent; the server does not contain a separate model or require an Anthropic API key.

Verification can target an existing page by passing a URL, and an optional selector can narrow the checked area. This allows a local application running at an address such as http://localhost:3000 to be compared with the Figma frame, regardless of its application framework.

Figma responses are cached per frame. After the initial conversion, subsequent verification work can use the cached data without repeatedly fetching the frame from Figma. Tool results use file paths and numeric results so large generated documents are read from disk instead of being returned as large context payloads.

figma_inspect presents the intermediate representation as a readable outline containing roles, boxes, layout information, text, and tokens. It supports filtering, which helps an agent examine structure without placing the complete raw Figma response in context.

Setup and configuration

The server is distributed for execution with npx and requires a Figma personal access token with the File content: read scope. Set it as FIGMA_TOKEN, or use the supported .figma-token file. A standard MCP configuration starts the package with npx -y figma-codekit-mcp@latest and passes the environment variable to the process.

Run the package with --check to validate the Node environment, token discovery and acceptance, and Chromium availability. The check reports READY when the three tools can operate. If the browser is unavailable, --install-browser installs it. On Windows, MCP hosts that cannot spawn npx.cmd directly can launch it through cmd /c npx.

A local visual interface is available through npm run site, which serves a page at http://localhost:5173. It uses the same token and cache locations as the MCP workflow and displays the generated application, source files, verification values, and pixel differences.

Limitations and notes

Responsive conversion depends on design intent encoded by Figma Auto Layout. FILL, HUG, and FIXED sizing can be translated into flexible, content-sized, or fixed behavior when those constraints are present. A root frame without Auto Layout is treated as a fixed canvas: its children remain positioned at their design coordinates. In that case, the converter preserves the canvas and scales it for narrower viewports rather than inventing a reflow layout; below 0.5x, the page scrolls.

Chromium is required for figma_verify. The source reference must first be obtained through Figma for conversion, while verification itself can operate from cached frame data or against a locally running application. The example workflow includes a scripted generator to demonstrate the pipeline, but the server’s measurement and comparison stages are the substantive verification steps.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Figma Codekit MCP

figma-codekit-mcp is an MCP server that connects Figma frame data with code generation and browser verification. Its main tools are figma_convert for HTML, React, assets, and design tokens; figma_verify for pixel, layout, stacking, and clipping checks; and figma_inspect for reading the frame’s intermediate representation.

Run it through npx with `npx -y figma-codekit-mcp@latest` and provide `FIGMA_TOKEN` in the MCP server environment. The token needs Figma’s `File content: read` scope. Use the package’s `--check` option to validate the setup and `--install-browser` if Chromium is unavailable.

Yes. Pass the running page URL to `figma_verify`, optionally with a selector, and it will compare that page with the Figma frame. The page can be your own application at a local address such as `http://localhost:3000` and can use any framework.

Yes. Cursor can run it as a standard stdio MCP server using the command and environment configuration shown for MCP hosts. The server itself does not require a client-specific integration.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewFigma Codekit MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/figma-codekit-mcp?style=directory)](https://allmcps.com/mcp/figma-codekit-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/figma-codekit-mcp"><img src="https://allmcps.com/api/badge/figma-codekit-mcp?style=directory" alt="Figma Codekit MCP on AllMCPs" /></a>