Logo von Figma Flutter MCP

Figma Flutter MCP

Community
mhmzdev

An MCP server that provides the coding agents Figma's design token to write Flutter code.

Herausgebermhmzdev
Repositoryfigma-flutter-mcp
SpracheTypeScript
Forks
25
Sterne
245
Verfügbare Tools
0
Transporttypstdio
LizenzMIT
Links
  • Tools mit KI-Workflows verbinden

    Figma Flutter MCP stellt MCP-Funktionen bereit, die kompatible KI-Clients und Agenten nutzen können.

  • 0 verfügbare Tools

    Sehen Sie sich unten die aufrufbaren Aktionen an, einschließlich Namen und Beschreibungen, sofern der Server diese bereitstellt.

  • Konfiguration zum Kopieren

    Nutzen Sie die Installationsbeispiele, um diesen Server in Ihrem bevorzugten MCP-Client zu konfigurieren.

  • Open-Source-Kennzahlen

    245 Sterne und 25 Forks im verlinkten Repository.

Use Cursor or other AI-powered tools to access Figma's rich files, data, components and much more using MCP server.

📋 Table of Contents

🦋 Observable Flutter #70

Featured on Observable Flutter with enhanced explanation and demo:

🎥 Short Video Demo

Showcased almost all the features of Figma Flutter MCP with real figma design.

📝 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

  1. Components/Widgets
  • ✅ 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
  1. Screens
  • ✅ 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:

  1. Press CMD + Shift + P (Ctrl on Windows)
  2. Type "Open MCP Settings"
  3. Click on "Add new MCP"
  4. 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 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.

🚀 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:

bash
# 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:

json
{
  "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.

  1. Setup Theme & Typography: The most efficient way, put two frames in Figma with Theme colors and Typography samples on it. For instance:

Theme Setup Example Typography Setup Example

  • 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.
  1. Widget Generation: The most efficient way, use COMPONENTS in figma. For example:

Button

This one has 2 variants with enabled and disabled states.

"Create this widget in flutter from figma COMPONENT link: <figma_link>, use named constructors for variants 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.

  1. Full Screen Generation: If there are any IMAGE ASSETS (.png, .jpeg, .jpg etc.) available, it will export them and put them in assets/ along with pubspec.yaml
"Design this intro screen from the figma link <figma_link>, ensure the code is readable by having smaller files."
  1. Assets Export:
  • Image Assets: Will work automatically when generating screens
"Export this image asset from figma link: <figma_link>
  • SVG Assets: Will NOT work automatically if they are scrambled or are ungrouped, explained below.
"Export this as an SVG asset from Figma link: <figma_link>"

⚠️ If SVG assets don’t work with screen generation

  • In Figma vectors include icons and pen-tool shapes, so bulk exports may grab unintended nodes;
    • Recommend exporting SVGs separately i.e. to take them out an an independent FRAME or GROUP
    • Here's how the separation of SVGs looks like:
  • Here's an example of identifying a GOOD vs BAD svg while exporting them:

⚠️ Disclaimers

  • 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.
  • 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.
  • 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

LinkedIn Link

You can also follow my GitHub Profile to stay updated about my latest projects:

GitHub Follow

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.

Figma Flutter MCP MCP mit mehreren KI-Modellen nutzen

TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. Sobald Figma Flutter MCP verbunden ist, können Sie die Integration mit verschiedenen KI-Modellen in TypingMind verwenden, statt sie für jedes Modell separat einzurichten. Diese MCP-Integration läuft lokal über den TypingMind-MCP-Konnektor auf Ihrem Gerät.

Einrichtungsanleitung für den lokalen Konnektor

Nutzen Sie diese Option, wenn der MCP-Server Zugriff auf lokale Dateien, Apps oder private Ressourcen auf Ihrem Computer benötigt.

1

MCP-Einstellungen öffnen

Gehen Sie in TypingMind zu „Einstellungen“, „Erweiterte Einstellungen“ und dann „Model Context Protocol“ und wählen Sie „Konnektor-Setup“.

  1. Öffnen Sie TypingMind in Ihrem Browser.
  2. Klicken Sie auf das Symbol „Optionen“.
  3. Gehen Sie zu „Erweiterte Einstellungen“.
  4. Öffnen Sie den Abschnitt „Model Context Protocol“.
  5. Klicken Sie auf „Konnektor-Setup“ und wählen Sie „Dieses Gerät“.
Einrichtungsbildschirm des TypingMind-MCP-Konnektors mit ausgewählter Option „Dieses Gerät“
2

Konnektor-Befehl ausführen

Wählen Sie „Dieses Gerät“, kopieren Sie den Befehl aus TypingMind und führen Sie ihn im Terminal aus. Lassen Sie den Prozess laufen, solange Sie MCP verwenden.

  1. Kopieren Sie den in TypingMind angezeigten Einrichtungsbefehl.
  2. Öffnen Sie unter macOS Terminal bzw. unter Windows Windows Terminal.
  3. Fügen Sie den Befehl ein und führen Sie ihn aus.
  4. Bestätigen Sie die Paketinstallation, wenn Sie im Terminal zum Fortfahren aufgefordert werden.
  5. Lassen Sie das Terminalfenster geöffnet und den Prozess darin laufen, solange Sie MCP-Tools verwenden.
3

Figma Flutter MCP als Server hinzufügen

Wenn der Konnektorstatus „Bereit“ anzeigt, klicken Sie auf „Server ändern“ und fügen Sie die MCP-Server-Konfiguration ein.

  1. Warten Sie, bis der Konnektorstatus „Bereit“ anzeigt.
  2. Klicken Sie auf „Server ändern“.
  3. Fügen Sie die MCP-Server-Konfiguration für Figma Flutter MCP ein.
  4. Speichern Sie die Serverliste.
  5. Aktualisieren Sie die Ansicht, um bei Bedarf zu prüfen, ob der Konnektor weiterhin bereit ist.
MCP-Einstellungen in TypingMind mit aktivem Server und der Schaltfläche „Server ändern“
{
  "mcpServers": {
    "figma-flutter-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Verbindung modellübergreifend nutzen

Speichern Sie die Serverliste, öffnen Sie „Plugins“ und aktivieren Sie die MCP-Tools von Figma Flutter MCP. Wählen Sie dann ein beliebiges unterstütztes KI-Modell in TypingMind und verwenden Sie die Tools im Chat oder weisen Sie sie einem KI-Agenten zu.

  1. Öffnen Sie die Seite „Plugins“ in TypingMind.
  2. Aktivieren Sie die MCP-Tools von Figma Flutter MCP.
  3. Starten Sie einen Chat und wählen Sie das KI-Modell, das Sie verwenden möchten.
  4. Nutzen Sie die MCP-Tools im Chat oder weisen Sie sie einem KI-Agenten zu.
  5. Wechseln Sie bei Bedarf zu einem anderen KI-Modell, ohne die MCP-Verbindung erneut herzustellen.
TypingMind-Chat mit aktivierten MCP-Tools und einem ausgewählten KI-Modell
Können Sie mir mit Figma Flutter MCP bei dieser Aufgabe helfen?
Figma Flutter MCP
Gerne. Ich habe es gelesen.
Das habe ich mit Figma Flutter MCP gefunden.

Häufig gestellte Fragen

Wofür wird der MCP-Server Figma Flutter MCP verwendet?

Figma Flutter MCP ist ein MCP-Server, über den kompatible KI-Clients auf externe Tools und Kontext zugreifen können. In TypingMind können Sie diesen MCP-Server einmal hinzufügen und seine Tools in Ihrem KI-Arbeitsbereich verfügbar machen.

Kann ich Figma Flutter MCP MCP mit mehreren KI-Modellen in TypingMind verwenden?

Ja. TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. So können Sie Figma Flutter MCP mit verschiedenen KI-Modellen wie Claude, ChatGPT, Gemini oder anderen in TypingMind konfigurierten Modellen verwenden, ohne den MCP-Server für jedes Modell separat einzurichten.

Warum Figma Flutter MCP MCP mit TypingMind nutzen?

TypingMind ist eine der besten Oberflächen für LLM-Chats, da es mehrere KI-Modelle, Prompts, Plugins, KI-Agenten, API-Schlüssel und MCP-Tools in einem Arbeitsbereich vereint. Sobald Figma Flutter MCP verbunden ist, können Sie die zugehörigen MCP-Tools mit Ihren bevorzugten Modellen nutzen und Ihre Chat-Abläufe in TypingMind übersichtlich organisieren.

Wie verbinde ich Figma Flutter MCP MCP mit TypingMind?

Figma Flutter MCP wird über den lokalen MCP-Konnektor von TypingMind angebunden. Das ist die beste Wahl, wenn der MCP-Server auf lokale Dateien, Desktop-Apps, Befehlszeilentools oder private Ressourcen auf Ihrem Computer zugreifen muss.

Welche Tools stellt Figma Flutter MCP MCP in TypingMind bereit?

Figma Flutter MCP stellt MCP-Funktionen bereit, die Sie auf der Plugins-Seite in TypingMind aktivieren und im Chat verwenden oder KI-Agenten zuweisen können.

Muss ich meine API-Schlüssel mit TypingMind teilen, um Figma Flutter MCP MCP zu verwenden?

Nein. TypingMind arbeitet vorrangig lokal, sodass Sie die Kontrolle über Ihre Modellanbieter, API-Schlüssel, Prompts und MCP-Konfiguration behalten. Falls Figma Flutter MCP eine Authentifizierung erfordert, fügen Sie beim Erstellen der Verbindung die erforderlichen Header, OAuth-Einstellungen oder die lokale Konfiguration für diesen MCP-Server hinzu.

Ähnliche MCP-Server

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇