
Figma Flutter
STDIOMCP server converting Figma designs to Flutter code with AI assistance
MCP server converting Figma designs to Flutter code with AI assistance
🌐 Available in: 한국어 (Korean) | 日本語 (Japanese) | 简体中文 (Simplified Chinese) | 繁體中文 (Traditional Chinese)
Use Cursor or other AI-powered tools to access Figma's rich files, data, components and much more using MCP server.
Showcased almost all the features of Figma Flutter MCP with real figma design.
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.
Since its just helping AI write Flutter code so it means the better your prompt will be the better results you'll get.
Following steps shows a minimal usage and setup instructions:
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.
Once you've the FIGMA API KEY, you can setup the MCP in cursor as follows:
{
"mcpServers": {
"Figma Flutter MCP": {
"command": "npx",
"args": ["-y", "figma-flutter-mcp", "--figma-api-key=YOUR-API-KEY", "--stdio"]
}
}
}
{
"mcpServers": {
"Figma Flutter MCP": {
"command": "cmd",
"args": ["/c", "npx", "-y", "figma-flutter-mcp", "--figma-api-key=YOUR-API-KEY", "--stdio"]
}
}
}
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.
For quick local testing, you can run the server via HTTP instead of stdio:
# Clone and setup git clone <your-repo-url> figma-flutter-mcp cd figma-flutter-mcp npm install # Create .env file with your Figma API key echo "FIGMA_API_KEY=your-figma-api-key-here" > .env # Start HTTP server for local testing npm run dev
Then add this to your MCP client configuration:
{ "mcpServers": { "local-figma-flutter": { "url": "http://localhost:3333/mcp" } } }
See CONTRIBUTING.md for detailed instructions.
For better results you can setup some instructions in following files as per your AI Coding Agent:
.cursor/rules/fluttering.mdc
CLAUDE.md
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.
💡 HINT: The valid URL will contain a FILE ID and NODE ID params
"Setup flutter theme from <figma_link> including Colors and Typography.
This one has 8 variants, you may prompt whether you want to have variants or not.
"Create this widget in flutter <figma_link>, setup only 2 variants for now and break the files in smaller parts for code readability.
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.
assets/
along with pubspec.yaml
"Create full screen from this figma link <figma_link>, ensure the code is readable by having smaller files
"Export this image asset from figma <figma_link>
"Export this as an SVG asset from Figma: <figma_link>
In Figma 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
.
I came across Figma Context MCP by Graham Lipsman that sparks this motivation for me to develop Figma to Flutter explicitly having features like:
Others coming soon...
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.
This project is licensed under the MIT License - see the LICENSE file for details
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.