Skip to content
MCP server

Figma CodeKit MCP

Convert Figma frames to code, then pixel-diff the render until it matches

Runs locallyStatus and history
Install
Pricing
Open source
Platforms
CLI, self-hosted
Runs
Locally
Version
0.3.0
Listing updated
today

Similar MCP servers

About Figma CodeKit MCP

Figma CodeKit MCP is an open-source MCP server for design and media. It runs locally on your machine and is started by your AI client.

Most Figma-to-code tools stop once the code is generated. This server adds a verification loop: it converts a frame to self-contained HTML deterministically (no LLM involved), renders the result in Chromium, pixel-diffs it against the Figma reference and reports what is missing or misplaced so the calling agent can fix it and verify again.

Verification combines three signals: the pixel mismatch ratio with worst regions, bounding-box overlap for every element, and paint-order and clipping checks that catch elements stacked the wrong way or cut off by an ancestor. It can also verify a running page, such as your own app on localhost, against the frame, so it can sit beside Figma's official MCP server or Framelink.

Tools return file paths and numbers instead of large blobs, to protect the agent's context. Frames are cached per frame, so after the first convert the loop works offline. It needs a Figma personal access token with File content read scope and runs over stdio via npx.

Install

Run in a terminal

claude mcp add figma-codekit-mcp --env FIGMA_TOKEN='<FIGMA_TOKEN>' -- npx -y figma-codekit-mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "figma-codekit-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "figma-codekit-mcp"
      ],
      "env": {
        "FIGMA_TOKEN": "<FIGMA_TOKEN>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "figma-codekit-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "figma-codekit-mcp"
      ],
      "env": {
        "FIGMA_TOKEN": "<FIGMA_TOKEN>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "figma-codekit-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "figma-codekit-mcp"
      ],
      "env": {
        "FIGMA_TOKEN": "<FIGMA_TOKEN>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "figma-codekit-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "figma-codekit-mcp"
      ],
      "env": {
        "FIGMA_TOKEN": "<FIGMA_TOKEN>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "figma-codekit-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "figma-codekit-mcp"
      ],
      "env": {
        "FIGMA_TOKEN": "<FIGMA_TOKEN>"
      }
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Configuration

  • FIGMA_TOKENFigma personal access token (Settings -> Security -> Personal access tokens, scope "File content: read"). May instead be placed in a .figma-token file in the project directory. FIGMA_API_KEY is accepted as an alias.Required
  • FIGMA_MCP_CACHE_DIRWhere converted frames are cached. Defaults to .figma-cache/ in the directory the server starts from.

Tools this server provides (3)

Taken from the project documentation; the running server may differ.

figma_convert
Fetch a frame and produce HTML, IR, images, reference and design tokens.
figma_verify
Render and pixel-diff against the reference with targeted fix instructions.
figma_inspect
Print the intermediate representation as an outline.

What it does

Deterministic conversion
Turn a frame into HTML, with React, Next.js or Tailwind output as options.
Design tokens
Emit tokens in W3C DTCG format, CSS and a Tailwind v4 theme.
Pixel-diff verify
Render in Chromium and measure how far the output is from the frame.
Element checks
Compare each element's box and paint order against the design.
Verify live pages
Check a running app URL against a frame.
Setup check
A --check flag reports whether Node, token and Chromium are ready.

Good for

  • Build a page from a frame and check it matches
  • Find which element is 6px off
  • Catch stacking and clipping bugs the diff misses
  • Check an existing app against its design

Pricing

Open source

Needs a Figma personal access token

More servers for the same service

Figma CodeKit MCP FAQ

Does it use an LLM internally?

No. The conversion is deterministic and the refine loop runs through your calling agent.

What credentials are needed?

A Figma personal access token with File content: read scope.

Does it replace Figma's own MCP server?

No; the README says it works alongside it or Framelink.

Does it work offline?

After the first convert, responses are cached so the loop runs offline.

Is Figma CodeKit MCP free?

Yes. Figma CodeKit MCP is open source, so you can use and self-host it for free.

How do I add Figma CodeKit MCP to Claude Code?

Run this command in your terminal: claude mcp add figma-codekit-mcp --env FIGMA_TOKEN='<FIGMA_TOKEN>' -- npx -y figma-codekit-mcp

What are the best alternatives to Figma CodeKit MCP?

The closest alternatives to Figma CodeKit MCP are REA, HyperFrames by HeyGen, Context7, Chrome DevTools MCP and Codebase Memory.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers