Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Figma Rn

FreeNot checked

MCP server that turns Figma screens into React Native code, assets, and screenshots through one get_screen call.

GitHubEmbed

About

MCP server that turns Figma screens into React Native code, assets, and screenshots through one get_screen call.

README

figma-rn is an MCP server that turns Figma URLs into React Native code, assets, metadata, and screenshots through a single runtime tool: get_screen.

Why It Matters

  • One-call design-to-code flow for React Native teams working from Figma
  • Deterministic output written to a tracked .figma/{category}/{ComponentName}/ workspace
  • Includes asset extraction, screenshot capture, and project token discovery in the same run

Distribution

figma-rn is currently distributed source-first. There is no packaged desktop release; the public install path is to clone the repo, build it locally, and point an MCP client at dist/index.js.

Requirements

  • Node.js 18+
  • Bun
  • FIGMA_TOKEN (Figma Personal Access Token)

Install and Build

git clone https://github.com/itsklimov/figma-rn
cd figma-rn
bun install
bun run build

MCP Configuration

Example claude_desktop_config.json entry:

{
  "mcpServers": {
    "figma-rn": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/TO/figma-rn/dist/index.js"],
      "env": {
        "FIGMA_TOKEN": "figd_YOUR_TOKEN_HERE"
      }
    }
  }
}

Quick Start

  1. Clone the repo, run bun install, and build with bun run build.
  2. Add the MCP server entry shown above and set FIGMA_TOKEN.
  3. Restart your MCP client so it picks up the built server.
  4. Call get_screen with a Figma URL and optional projectRoot to write output into a target app workspace.

Example tool call:

{
  "figmaUrl": "https://www.figma.com/design/FILE_ID/Example?node-id=123-456",
  "projectRoot": "/absolute/path/to/app",
  "category": "screens",
  "componentName": "CheckoutScreen"
}

Tool Contract

Only one MCP tool is exposed:

  • get_screen

Input highlights:

  • figmaUrl (required)
  • componentName
  • projectRoot
  • category (screens, modals, sheets, components, icons)
  • suppressTodos
  • scaleFunction

Output Structure

Generated output is written to:

.figma/{category}/{ComponentName}/
├── index.tsx
├── meta.json
├── screenshot.png
└── assets/

This structure is designed to be inspectable by both humans and downstream LLM workflows.

Development

bun run dev
bun run lint
bun run test
bun run test:coverage

Live e2e tests:

FIGMA_LIVE_TESTS=1 bun run test:live

Regression Baseline

FIGMA_TOKEN=$(grep FIGMA_TOKEN .env | cut -d '"' -f 2) bunx tsx scripts/regression-test.mts "https://www.figma.com/design/UP4RaLYLk41imjPis2j6an/MARAFET-dev?node-id=2256-25238&m=dev" check

Troubleshooting

  • Tool not found: rebuild with bun run build, then restart Claude Desktop.
  • Invalid token: verify FIGMA_TOKEN and format.
  • No assets: check export permissions for target nodes in Figma.

License

PolyForm Small Business 1.0.0. See LICENSE.md.

from github.com/itsklimov/figma-rn

Installing Figma Rn

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/itsklimov/figma-rn

FAQ

Is Figma Rn MCP free?

Yes, Figma Rn MCP is free — one-click install via Unyly at no cost.

Does Figma Rn need an API key?

No, Figma Rn runs without API keys or environment variables.

Is Figma Rn hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Figma Rn in Claude Desktop, Claude Code or Cursor?

Open Figma Rn on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Figma Rn with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All development MCPs