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
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
将 Figma 设计转换为 React Native 组件,允许用户从 Figma 设计中提取组件并生成具有适当类型和样式的相应 React Native 组件。
Related MCP Servers
- -securityFlicense-qualityExtracts components from Figma designs and transforms them into standardized JSON format for easy consumption by AI models and tools for interface reconstruction.Last updated -TypeScript
- AsecurityFlicenseAqualityA bridge between Figma designs and React implementations that enables pixel-perfect conversion of Figma designs into React applications by processing Figma file data into React-friendly format.Last updated -51,0662TypeScript
- -securityAlicense-qualityConverts Figma designs into React components with TypeScript and Tailwind CSS by extracting components from Figma files and transforming them into ready-to-use code.Last updated -43TypeScriptMIT License
- -securityFlicense-qualityEnables bidirectional synchronization between IDEs and Figma for Design System management, allowing developers to generate React components and synchronize design tokens, icons, and components across platforms.Last updated -TypeScript