Feedback

Figma to Code MCP Server — by f2c-ai

@f2c-ai Claim

Basic information

Runtime
TypeScript
Version
1.0.0
Category
License
MIT
Transports
stdio
Author
f2c-ai
Submitted by
Community
Quality
55
Stars
408

About Figma to Code MCP Server

Convert Figma designs into clean HTML & CSS with customizable file paths and organization—fast, accurate code generation for website design and development.

Figma to Code is a MCP server in the Developer Tools category listed in the AddMCP.net directory, published by f2c-ai. It exposes 2 tools, including get_code, get_image. Supported transport: stdio. Runtime: TypeScript. License: MIT. The repository has 408 GitHub stars. Source code is hosted on github.com. Related topics: ai-coding-assistant, community, css, d2c, design.

Setup

{
    "mcpServers": {
        "f2c-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@f2c/mcp"
            ]
        }
    }
}

Figma to Code MCP Server — by f2c-ai config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "f2c-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@f2c/mcp"
            ]
        }
    }
}

Figma to Code MCP Server — by f2c-ai tools

  • get_code — Generate UI code for a given node or the currently selected node in the Figma desktop app. Use the nodeId parameter to specify a node id. If no node id is provided, the currently selected node will be used. If a URL is provided, extract the node id from the URL, for example, if given the URL https://figma.com/design/:fileKey/:fileName?node-id=1-2, the extracted nodeId would be 1:2.
  • get_image — Generate an image for a given node or the currently selected node in the Figma desktop app. Use the nodeId parameter to specify a node id. If no node id is provided, the currently selected node will be used. If a URL is provided, extract the node id from the URL, for example, if given the URL https://figma.com/design/:fileKey/:fileName?node-id=1-2, the extracted nodeId would be 1:2. Also export Figma design images for visual verification and design fidelity validation. Essential for comparing generated code output against original designs, ensuring pixel-perfect implementation and catching visual discrepancies during the design-to-code process.

Overview

What is Figma to Code?

A Model Context Protocol server that converts Figma designs to code using the F2C engine. It enables AI-powered coding tools (like Cursor) to access Figma design context, fetch node data, download images, and generate pixel-perfect HTML/CSS, React, or Tailwind CSS code.

How to use Figma to Code?

Configure the server in an MCP-supported IDE (e.g., Cursor, Trae, or Comate AI IDE). In the IDE chat, paste a Figma node link (copied from Figma’s layer panel) and enter your requirements such as fetching node data, downloading images, or converting to code.

Key features of Figma to Code

  • Pixel-perfect HTML/CSS generation from Figma designs
  • Multi‑framework support (React, CSS Modules, Tailwind CSS)
  • Integrates Figma design context for AI tool compatibility
  • Converts design nodes via Figma file URLs
  • Automates downloading Figma images to local assets

Use cases of Figma to Code

  • Fetching Figma node data and metadata in an AI coding assistant
  • Converting Figma design layers into production‑ready code
  • Downloading and localizing remote images from Figma
  • Streamlining design‑to‑code workflows in IDEs like Cursor or Trae

Frequently asked questions

1 What does F2C MCP Server do?

It is a Model Context Protocol server that converts Figma designs into code (HTML/CSS, React, Tailwind CSS) and provides design context to AI coding tools.

2 Does this server have any rate limits?

Yes. Due to Figma REST API rate limits, users may be affected. If so, the README recommends switching to @f2c/mcp-plugin for normal operation.

3 Where does the data (downloaded images, etc.) live?

The server automates downloading Figma images to local assets, so data is stored locally on your machine.

4 What dependencies or runtime does it require?

The server is distributed as an npm package (@f2c/mcp) and runs on Node.js (version indicated by the badge).

5 How does authentication work for the Figma API?

The README does not detail authentication; it states the server uses Figma REST API and can be configured in an MCP-supported IDE, implying the Figma API key is handled via the IDE or environment configuration.

Videos

Tutorials, guides, and showcases related to Figma to Code MCP Server — by f2c-ai. The player loads when you press play.

Videos belong to their creators. Relevance is approximate; check the channel and description before following setup steps.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬