mcp-figma-to-react
If you are the rightful owner of mcp-figma-to-react and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
MCP Figma to React Converter is a server that transforms Figma designs into React components using TypeScript and Tailwind CSS.
The MCP Figma to React Converter is a specialized server designed to streamline the process of converting Figma design files into React components. It leverages the Figma API to fetch design data and then processes this data to generate React components, complete with TypeScript and Tailwind CSS integration. This tool is particularly useful for developers looking to maintain design consistency and efficiency in their React projects. It supports both standard input/output (stdio) and server-sent events (SSE) transports, making it versatile for different development environments.
Features
- Fetch Figma designs using the Figma API
- Extract components from Figma designs
- Generate React components with TypeScript
- Apply Tailwind CSS classes based on Figma styles
- Enhance components with accessibility features
Tools
getFigmaProject
Get a Figma project structure
getFigmaComponentNodes
Get component nodes from a Figma file
extractFigmaComponents
Extract components from a Figma file
getFigmaComponentSets
Get component sets from a Figma file
generateReactComponent
Generate a React component from a Figma node
generateComponentLibrary
Generate multiple React components from Figma components
writeComponentsToFiles
Write generated components to files
figmaToReactWorkflow
Complete workflow to convert Figma designs to React components