Extracts design data from Figma files including components, layouts, styling, colors, and text content to help generate Flutter implementations
Provides guidance and structure for implementing Flutter widgets and screens based on Figma designs, including theme setup, component variants, and asset management
Use Cursor or other AI-powered tools to access Figma's rich files, data, components and much more using MCP server.
📋 Table of Contents
- 🎥 Video Demo
- 📝 Getting Started
- 📚 How it works
- 🤖 AI Coding Agent Assistance
- 🛠️ Usage
- 🧱 Basic Workflow
- 🧰 MCP Tools
- ⚠️ Disclaimers
- 🙌🏼 Acknowledgments
- 🧱 Other framworks
- 🔑 License
- 🙋♂️ Author
🎥 Video Demo
Showcased almost all the features of Figma Flutter MCP with real figma design.
- English: https://youtu.be/o_GezwAlXlU
- Urdu/Hindi: https://youtu.be/mepPWpIZ61M
📝 Getting Started
You may explore the detailed getting started docs or the demo video as quick-start. As its a First Release hence there's a lot of room for improvements so you can checkout the issues to see what else there's to work or to improve.
📚 How it works | Details Here
- ✅ Extract Figma node data: Layout, styling, dimensions, colors, text content, etc.
- ✅ Analyze structure: Child elements, nested components, visual importance
- ✅ Provide guidance: Suggest Flutter widgets and implementation patterns
- ❌ NOT generating actual Flutter code files
- ✅ Extract screen metadata: Device type, orientation, dimensions
- ✅ Identify sections: Header, footer, navigation, content areas
- ✅ Analyze navigation: Tab bars, app bars, drawers, navigation elements
- ✅ Provide Scaffold guidance: Suggest Flutter screen structure
- ❌ NOT generating actual Flutter screen
Since its just helping AI write Flutter code so it means the better your prompt will be the better results you'll get.
🤖 AI Coding Agent Assistance
For better results you can setup some instructions in following files as per your AI Coding Agent:
- Cursor:
.cursor/rules/fluttering.mdc
- Claude:
CLAUDE.md
- Gemini CLI:
GEMINI.md
This way your AI agent will use the MCP's output and ensure the flutter code is as per your project requirements and structure. You can checkout an example of cursor rules that I used for testing this out.
🛠️ Usage
Following steps shows a minimal usage and setup instructions:
🔑 Figma API Key
You will need to create a Figma access token to use this server. Instructions on how to create a Figma API access token can be found here.
🏹 MCP in Cursor
Once you've the FIGMA API KEY, you can setup the MCP in cursor as follows:
- Press CMD + Shift + P (Ctrl on Windows)
- Type "Open MCP Settings"
- Click on "Add new MCP"
- Paste the below json object
MacOS/Linux
Windows
NOTE: If you've installed this MCP as
npm
package make sure to keep it updated to latest version. Sometimes, it caches the old version and keep showing you error like "Not being able to use tool call" or "Figma API key setup is not working" etc.
🧑🏼💻 Local Setup
Please ensure that in local setup your version remains updated with your local server, sometimes npm i
has installed the server globally for you and the keeps on overriding your local changes because of which you might not see any update.
0. Prerequisites
- Node.js 18+
- Figma API Key (Access Token)
- Cursor AI IDE with MCP support
- Flutter SDK
1. Clone the Repo
2. Configure
Either use .env
to setup various values. Checkout .env.example
MacOS/Linux
Windows
NOTE: If you want to keep it for only current project then setup the above JSON in
.cursor-mcp/config.json
BUT be mindful about the API_KEY so make sure to put this file in.gitignore
3. Build & Run
You can now verify in MCP settings that the server is running and tools are available.
🧱 Basic Workflow
- Setup Theme & Typography: The most efficient way, put two frames in Figma with Theme colors and Typography samples on it. For instance:
- Figma Desktop: Select the frame and press CMD + L or Ctrl + L
- Figma Web: Select the frame and copy the URL
💡 HINT: The valid URL will contain a FILE ID and NODE ID params
- Widget Generation: The most efficient way, use COMPONENTS in figma. For example:
This one has 8 variants, you may prompt whether you want to have variants or not.
If you do not have COMPONENTS in figma, you can use FRAME just prompt the AI that you want this to be a widget and it will handle the rest.
- Full Screen Generation: If there are any IMAGE ASSETS available, it will export them and put them in
assets/
along withpubspec.yaml
- Assets Export:
- Image Assets: Will work automatically when generating screens
- SVG Assets: Will NOT work automatically, explained below.
⚠️ Why SVG assets don’t work with screen generation
clarify that vectors include icons and pen-tool shapes, so bulk exports may grab unintended nodes; recommend exporting SVGs separately. This process still saves you a lot of time by exporting them in your assets/svg/
directory and updating your pubspec.yaml
.
🧰 MCP Tools
Assets related:
export_flutter_assets
: Individual tool for image assets used with Screen generationexport_svg_flutter_assets
: Individual tool for SVG assets export
Widget related:
analyze_figma_component
: For type=COMPONENT in figma or FRAME prompted by userlist_component_variants
: For type=COMPONENT_SET in figma (Widget variants)inspect_component_structure
: For nested COMPONENTS or FRAMES
Full screen related:
analyze_full_screen
: type=FRAME for full screen and assets export (image only)inspect_screen_structure
: For layouts and other information for building screen
⚠️ Disclaimers
- Figma Design: Since we're using Figma's API to fetch the node and its details, so the better design you have the more better it will interpret for the AI to consume i.e. auto layouts, frame usage over group usage, consistently aligned across the board.
- Use Case: At this stage, its highly recommend to NOT use it to develop scalable apps rather try and play it with MVPs, smaller and explanatory tasks.
- Early release: It's the first version release, so you might have some bugs or mis-behaviour please bear with me, I'm learning 🥲
- Rate limiting: Heavy usage may trigger Figma rate limits (e.g., HTTP 429). The server includes retry with backoff, but it does not bypass Figma limits. If you encounter rate limits, wait a few minutes and reduce the request volume.
- Tips to avoid limits:
- Analyze one component or one screen at a time instead of large batches.
- Use figma links to frames/components/nodes; avoid scanning entire pages.
- Space out repeated commands; avoid rapid-fire calls in quick succession.
- For asset exports, only export required nodes; avoid
includeMultipleResolutions
unless needed and keepscale
reasonable.
🙌🏼 Acknowledgments
I came across Figma Context MCP by Graham Lipsman that sparks this motivation for me to develop Figma to Flutter explicitly having features like:
- Assets exports
- Colors and Theme setups
- Widget tree and full screen building
Others coming soon...
🧱 Other framworks
If you want to develop this for React, Angular, React Native, Vue or any other framework. I've added a detailed doc Figma Framework MCP that you can explore and get started. Meanwhile I'll maintain a list here if someone's already doing this for framework specific Figma's MCP servers.
- ...
- ...
🔑 License
This project is licensed under the MIT License - see the LICENSE file for details
🙋♂️ Author
Muhammad Hamza
You can also follow my GitHub Profile to stay updated about my latest projects:
If you liked the repo then kindly support it by giving it a star ⭐!
Copyright (c) 2025 MUHAMMAD HAMZA
Built with ❤️ for designers and developers who want to bridge the gap between design and code.
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Enables AI coding agents to extract Figma design data and convert it into Flutter widgets and screens. Supports theme setup, component analysis, asset exports, and provides Flutter implementation guidance from Figma designs.
Related MCP Servers
- AsecurityAlicenseAqualityAllow your AI coding agents to access Figma files & prototypes directly. You can DM me for any issues / improvements: https://x.com/jasonzhou1993 1. Access all figma pages 2. Access all figma components 3. Access figma prototype flowsLast updated -61MIT License
- AsecurityFlicenseAqualityEnables Cursor AI to interact with Figma designs, allowing users to read design information and programmatically modify elements through natural language commands.Last updated -383,6692
- -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 -
- -securityAlicense-qualityGives AI-powered coding tools like Cursor, Windsurf, and Cline access to Figma design files, enabling more accurate code generation directly from Figma designs.Last updated -20,406MIT License