Figma to Flutter MCP Server
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.
README
<div align="center"> <img src="docs/images/figma-flutter-mcp.png" alt="Theme Setup Example" style="max-width: 100%; height: auto;">
<br>
<h1>Figma to Flutter MCP Server</h1> <p> 🌐 Available in: <a href="README.ko.md">한국어 (Korean)</a> | <a href="README.ja.md">日本語 (Japanese)</a> | <a href="README.zh-cn.md">简体中文 (Simplified Chinese)</a> | <a href="README.zh-tw.md">繁體中文 (Traditional Chinese)</a> </p> <h3>Utilize Figma's rich data in your coding agent.<br/>Implement designs in Flutter way!</h3> <a href="https://npmcharts.com/compare/figma-flutter-mcp?interval=30"> <img alt="weekly downloads" src="https://img.shields.io/npm/dm/figma-flutter-mcp.svg"> </a> <a href="https://github.com/mhmzdev/figma-flutter-mcp/blob/main/LICENSE"> <img alt="MIT License" src="https://img.shields.io/github/license/mhmzdev/figma-flutter-mcp" /> </a> <a href="https://twitter.com/mhmzdev"> <img alt="Twitter" src="https://img.shields.io/twitter/url?url=https%3A%2F%2Fx.com%2Fmhmzdev&label=%40mhmzdev" /> </a> </div> <br>
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
- 🛠️ 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.
🛠️ 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
{
"mcpServers": {
"Figma Flutter MCP": {
"command": "npx",
"args": ["-y", "figma-flutter-mcp", "--figma-api-key=YOUR-API-KEY", "--stdio"]
}
}
}
Windows
{
"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
npmpackage 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.
🚀 Quick Start for Local Testing
Prerequisites
- Node.js 18+
- Figma API Key (Access Token)
- Cursor AI IDE with MCP support
- Flutter SDK
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.
🧱 Basic Workflow
🤖 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.
- 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
"Setup flutter theme from <figma_link> including Colors and Typography.
- 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.
"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.
- Full Screen Generation: If there are any IMAGE ASSETS available, it will export them and put them in
assets/along withpubspec.yaml
"Create full screen from this figma link <figma_link>, ensure the code is readable by having smaller files
- Assets Export:
- Image Assets: Will work automatically when generating screens
"Export this image asset from figma <figma_link>
- SVG Assets: Will NOT work automatically, explained below.
"Export this as an SVG asset from Figma: <figma_link>
⚠️ 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.
- 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.
🙌🏼 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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。