Figma to React Native MCP
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Integrations
Extracts components from Figma designs and converts them to React Native components with proper typing and styling, maintaining component hierarchy and handling component props.
Planned future feature for GraphQL schema generation based on Figma components.
Generates React Native components from Figma designs, supporting nested components and maintaining component hierarchy with proper typing and styling.
Figma to React Native MCP
Convert Figma designs to React Native components using Cursor's MCP. This tool extracts components from your Figma designs and generates corresponding React Native components with proper typing and styling.
Installation
For Development
Add to your eas.json
:
For End Users
Install the MCP server in your Cursor IDE:
Usage
After installation, you can use the following prompts in Cursor:
Extract All Components
Extract Specific Component
Configuration
The config object accepts the following parameters:
Features
Current:
- ✅ Extract components from Figma
- ✅ Generate React Native components
- ✅ Maintain component hierarchy
- ✅ Handle component props and types
- ✅ Support nested components
Coming Soon:
- 🚧 GraphQL schema generation
Development
To contribute or modify:
- Clone the repository
- Install dependencies:
- Build:
- Run locally:
Environment Variables
When running locally, you'll need these in your .env
:
Error Handling
Common errors and solutions:
- "Failed to create client": Check if all environment variables are properly set
- "Components page not found": Ensure your Figma file has a page named "Components"
- "Failed to fetch Figma file": Verify your Figma token and file ID
License
MIT
For issues and feature requests, please open an issue on GitHub.
This server cannot be installed
Converts Figma designs to React Native components, allowing users to extract components from Figma designs and generate corresponding React Native components with proper typing and styling.