f2c-mcp  by f2c-ai

Model Context Protocol server for Figma design-to-code

Created 4 months ago
278 stars

Top 93.4% on SourcePulse

GitHubView on GitHub
Project Summary

F2C MCP Server provides a Model Context Protocol server that enables AI coding tools, such as Cursor, to interact with Figma designs. It allows developers to convert Figma designs into pixel-perfect HTML/CSS, generate code for React, CSS Modules, and Tailwind CSS, and automate image localization, thereby streamlining the design-to-code workflow.

How It Works

The server integrates with MCP-supported IDEs like Cursor. Users paste a Figma Node URL into their IDE's chat interface, specify requirements (e.g., fetch node data, download images, convert to code), and the server processes these requests. It leverages Figma's API to parse design nodes, download assets, and generate code, facilitating a direct link between design and development environments.

Quick Start & Requirements

  • Install/Run: Configure the server within an MCP-supported IDE.
  • Prerequisites: An MCP-supported IDE (e.g., Cursor), Figma account, and Figma Node URLs.
  • Setup: Configuration details are available in the project's documentation.

Highlighted Details

  • Pixel-perfect HTML/CSS conversion from Figma designs.
  • Supports code generation for React, CSS Modules, and Tailwind CSS.
  • Automates downloading Figma images to local assets.
  • Enables AI tools to read and programmatically modify Figma designs.

Maintenance & Community

  • The project acknowledges contributions from Framelink and Figma.
  • Further community and support details are not explicitly mentioned in the README.

Licensing & Compatibility

  • The license is not specified in the provided README.
  • Compatibility for commercial use or closed-source linking is not detailed.

Limitations & Caveats

  • The project's reliance on Figma's API means changes to the API could impact functionality.
  • Specific limitations or known issues are not detailed in the provided README.
Health Check
Last Commit

1 week ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
6
Star History
37 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.