MCP.so
Sign In
Servers

MCP Figma to React Converter

@StudentOfJS

MCP server for converting Figma designs to React components

Overview

What is MCP Figma to React Converter?

MCP Figma to React Converter is a Model Context Protocol (MCP) server that fetches Figma designs and generates React components with TypeScript and Tailwind CSS. It provides tools for extracting components from Figma files and converting them into accessible, styled React code, and supports both stdio and SSE transports for local or HTTP use.

How to use MCP Figma to React Converter?

Set the FIGMA_API_TOKEN environment variable to your Figma personal access token. Run the server locally with npm start or with explicit transport (e.g., node dist/index.js --transport=stdio for stdio or --transport=sse for HTTP). Use the figmaToReactWorkflow tool with a Figma file key and output directory to run the full conversion pipeline.

Key features of MCP Figma to React Converter

  • Fetches Figma designs via the Figma API
  • Extracts components from Figma files
  • Generates React components with TypeScript
  • Applies Tailwind CSS classes from Figma styles
  • Enhances components with accessibility features
  • Supports both stdio and SSE transports

Use cases of MCP Figma to React Converter

  • Convert an entire Figma design file into a set of React components
  • Extract specific component nodes from a Figma file and generate code
  • Automate a design‑to‑code workflow using the figmaToReactWorkflow tool
  • Write generated components directly to files with writeComponentsToFiles
  • Build a component library from Figma component sets via generateComponentLibrary

FAQ from MCP Figma to React Converter

What prerequisites are needed to run the server?

Node.js 18 or higher and a Figma API token. The token is set via the FIGMA_API_TOKEN environment variable.

How do I obtain a Figma API token?

You can get a personal access token from the Figma account settings page.

What transports does the server support?

It supports stdio (for local MCP integration) and SSE (for running as an HTTP server). Use the --transport flag to choose.

Where does the design data come from?

It fetches Figma designs directly from the Figma API using the file key from a Figma URL. No local Figma files are needed.

Are there any known limits?

The README does not mention specific limits. The server depends on the Figma API’s rate limits and your access token permissions.

More from Media & Design