Skip to content
MCP server
Registry

Figma Proxy MCP Server

Figma → code: tokenized IR, PNG renders and SSIM/pixel visual diff to verify builds.

Figma Proxy MCP scores 63 (Good), licensed MIT and written in JavaScript. It installs as a local process. It does not declare tools yet. Filed under Design. GitHub shows 0 stars. Package registries report about 98 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by semmarglMITJavaScript0 stars
Trust score
63Good
Trust score 63 of 100, Good

Good trust

63 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 63 comes from

22 + 20 + 0 + 10 + 4 + 7 = 63. 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.
Popularity0 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 0 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": {    "semmargl-figma-proxy-mcp": {      "command": "npx",      "args": [        "-y",        "figma-proxy-mcp@1.1.1"      ],      "env": {        "FIGMA_API_KEY": "YOUR_FIGMA_API_KEY"      }    }  }}

Environment variables

NameRequiredNotes
FIGMA_API_KEYSecretRequiredFigma personal access token (read-only file content scope)

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

figma-proxy-mcp

MCP server for Figma → code pipelines. It reads Figma through the REST API and returns data an agent can use directly, instead of the raw Figma tree:

ToolWhat it gives the agent
get_figma_componentNormalised IR of a node: summary:true (sections + boxes + tokens), format:"flat", lean:true (flat node list with coordinates relative to the root), CSS variables and a ready Tailwind theme
render_node_pngReference render of a node (PNG, base64 + image URL)
verify_renderRenders your HTML in headless Chromium and diffs it against the Figma render → SSIM, pixel-diff %, clustered diff regions
export_svg, migrate_all_svgs, list_svg_cacheIcon / vector export
get_figma_file, get_cached_components, get_component_by_nameFile tree and component cache

Free and self-hosted (this package), or hosted with nothing to install: the same server runs as a pay-per-event Actor on the Apify Store (see apify/README.md).

Read-only: it never writes to your Figma files. Every host it contacts and every file it writes is listed in SECURITY.md.


1. Requirements

  • Node.js 20+ (https://nodejs.org, LTS). Check with node -v.
  • A Figma personal access token (next section).
  • Optional, only for verify_render: Chromium for Playwright (step 4).

2. Get your Figma token (2 minutes)

  1. Open Figma (web or desktop) → click your avatar → Settings.
  2. Tab Security → Personal access tokens → Generate new token.
  3. Name: figma-proxy-mcp. Expiration: your choice (90 days is fine).
  4. Scopes: File content → Read-only (enough for everything here). Optionally Dev resources → Read-only.
  5. Click Generate token and copy it now. It starts with figd_ and is shown only once.

The token can read every file your account can open. To work with someone else's file, ask them to share it with your Figma account (view access is enough).

3. Connect to your AI tool (npx, recommended)

No clone needed. npx downloads and runs the published package.

Claude Code (run in your project folder):

claude mcp add figma-proxy -e FIGMA_API_KEY=figd_your_token -- npx -y figma-proxy-mcp --stdio

Add --scope project to share the server with your team via .mcp.json, but then do not put the token in that file: export FIGMA_API_KEY in your shell instead.

Cursor (.cursor/mcp.json or ~/.cursor/mcp.json) / Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "figma-proxy": {
      "command": "npx",
      "args": ["-y", "figma-proxy-mcp", "--stdio"],
      "env": { "FIGMA_API_KEY": "figd_your_token" }
    }
  }
}

Restart the app after editing the config.

Token lookup order: environment variable (the env block above) → .env in the working directory → .env next to the package. Never commit a real token.

4. Check your setup

FIGMA_API_KEY=figd_your_token npx -y figma-proxy-mcp --check

It checks the Node version, that the token is set (the value is never printed), that Figma accepts it (GET /v1/me, only the HTTP status is shown), and whether Chromium is available. Exit code 0 = ready, 1 = something required is missing.

For verify_render, install Chromium once:

npx playwright install chromium

Already have Chrome/Chromium and cannot download? Set FIGMA_PROXY_CHROME_PATH to its binary.

5. Alternative: run from a git clone

git clone https://github.com/Semmargl/figma-proxy-mcp.git
cd figma-proxy-mcp
npm install
npx playwright install chromium     # only for verify_render
cp .env.example .env                # then put your token in .env
npm run check

Connect with the absolute path to proxy-mcp.js:

claude mcp add figma-proxy -- node /ABS/PATH/figma-proxy-mcp/proxy-mcp.js --stdio
{ "mcpServers": { "figma-proxy": { "command": "node", "args": ["/ABS/PATH/figma-proxy-mcp/proxy-mcp.js", "--stdio"] } } }

The .env next to proxy-mcp.js is found whatever the working directory is.

6. HTTP mode (scripts / agents that start it on demand)

npx -y figma-proxy-mcp     # → http://127.0.0.1:4444/mcp  (JSON-RPC: initialize, tools/list, tools/call)
curl -s 127.0.0.1:4444/mcp -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_figma_component","arguments":{"figmaUrl":"<link with node-id>","summary":true}}}'

It binds to loopback only. Change with FIGMA_PROXY_PORT / FIGMA_PROXY_HOST. A request may carry its own token in the x-figma-token header; it is used for that request only.

Hosted mode

FIGMA_PROXY_HOSTED=1 is for running the server as a shared remote service (the Apify Actor uses it). The token must come with each request (x-figma-token header, or figmaToken query parameter); FIGMA_API_KEY and .env are ignored. Parameters that point at the server's disk (htmlPath, figmaPngPath, outDir, outputDir, save, fileName) are hidden and rejected, everything is written under the OS temp dir only, SVGs and the diff image come back inline, and the HTML render may load only data: and public https:// resources.

7. Recommended workflow

The server also sends this to MCP clients as instructions on initialize.

  1. Links must contain node-id: in Figma right-click a frame → Copy link to selection.
  2. get_figma_component {figmaUrl, summary:true}: tokens, Tailwind theme, registry, root box, sections with relativeBox.
  3. Per section: get_figma_component {figmaUrl, format:"flat", lean:true}.
  4. Build the markup with the $--var tokens and relativeBox coordinates.
  5. render_node_png {figmaUrl, scale:2} for the reference image.
  6. verify_render {htmlPath | html, frameWidth, figmaUrl, scale:2}, fix only the reported regions, repeat until SSIM ≥ threshold (default 0.95).

verify_render needs exactly one of htmlPath (absolute path to a self-contained HTML file) or html (the document itself as a string, max 5 MB), plus frameWidth (the Figma frame width = root w from the summary). returnImage:true also returns the diff image (PNG, logical px). export_svg / migrate_all_svgs with inline:true return the SVG markup instead of a preview / files.

8. Environment variables

VariableDefaultPurpose
FIGMA_API_KEY(required)Figma personal access token
FIGMA_FILE_DEPTH / FIGMA_NODE_DEPTH4 / 12Fetch depth for helper scripts
FIGMA_PROXY_CACHE_DIR<os temp>/figma-proxy-mcpBase dir for everything the server writes
FIGMA_PROXY_DATA_DIR<cache>/dataComponent registry
FIGMA_PROXY_VERIFY_DIR<cache>/verify-outverify_render diff images
FIGMA_PROXY_SVG_DIR./exported-svgsDefault SVG output dir
FIGMA_PROXY_CHROME_PATH(Playwright's Chromium)Use an existing Chrome/Chromium binary
FIGMA_PROXY_PORT / FIGMA_PROXY_HOST4444 / 127.0.0.1HTTP mode
FIGMA_PROXY_NO_DOTENVunset1 = ignore .env files
FIGMA_PROXY_HOSTEDunset1 = hosted mode (per-request token, temp dirs only, inline output)

Troubleshooting

SymptomFix
FIGMA_API_KEY is not setAdd it to the client's env block, or to .env (section 3 / 5). Run --check.
403 / token invalidToken expired, revoked or wrong: generate a new one.
404 on a nodeNo access to the file, or wrong node-id.
Invalid Figma file keyUse the key from the file URL: figma.com/design/<fileKey>/...
verify_render: Chromium not installednpx playwright install chromium, or set FIGMA_PROXY_CHROME_PATH.
--check: cannot reach api.figma.comNetwork/firewall. Behind an HTTP proxy, Node 22.21+/24 needs NODE_USE_ENV_PROXY=1 with HTTPS_PROXY set.
EADDRINUSE :4444HTTP mode already running, or set FIGMA_PROXY_PORT.

Development

npm test     # offline smoke tests: stdio + HTTP JSON-RPC, doctor, image diff

scripts/capture.js and scripts/inspect-ir.js are dev-only helpers (not in the npm package): they save a raw Figma response to ./fixtures/ and print IR statistics for it.

Security

See SECURITY.md. Changes: CHANGELOG.md.

License

MIT

Frequently asked questions

What is Figma Proxy MCP Server?

Figma → code: tokenized IR, PNG renders and SSIM/pixel visual diff to verify builds.

How do I install Figma Proxy 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. Figma Proxy MCP Server runs locally from the npm package figma-proxy-mcp with the command npx -y figma-proxy-mcp@1.1.1.

Is Figma Proxy MCP Server free and open source?

Yes. Figma Proxy 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 Figma Proxy MCP Server support remote (HTTP) connections?

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

How is Figma Proxy MCP Server's trust score calculated?

Figma Proxy MCP Server scores 63 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