Logo vun Google Flow Browser MCP

Google Flow Browser MCP

Communautéit
TMSSS05

MCP server for controlling Google Flow via browser automation (Playwright + CDP)

EditeurTMSSS05
Repositorygoogle-flow-browser-mcp
SproochJavaScript
Forks
25
Stären
115
Disponibel Tools
0
Transporttypstdio
Kategorien
Linken
  • Tools mat KI-Workflows verbannen

    Google Flow Browser MCP stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 0 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    115 Stären an 25 Forks aus dem verlinkte Repository.

🧠 Google Flow Browser MCP

Control Google Flow — image & video generation — directly from your AI agent via MCP.

✨ Features • 🚀 Quick Start • 🔧 Tools • ⚙️ Configuration • 🛡️ Safety


🇫🇷 Ce serveur MCP permet à votre agent AI (OpenCode) d'utiliser Google Flow pour générer des images et des vidéos, via votre propre compte Google et sans partager vos identifiants.


📸 What It Does

This MCP server connects your AI agent to Google Flow — Google's creative suite for image and video generation. Your agent can:

  • 🎨 Generate images with Nano Banana Pro, Nano Banana 2, or Imagen 4
  • 🎬 Create videos and scenes with characters
  • 🧑 Manage characters and scenes in your Flow workspace
  • 🖼️ Use Grid Architect for batch shot generation
  • 🔍 Discover and control any Flow tool programmatically

All through your own Google account — no API keys, no third-party tokens.


✨ Features

🎯 For AI Agents

🔒 For Humans

  • 15+ MCP tools ready to use

  • Smart job queue — no parallel conflicts

  • Auto-discover UI — adapts to Flow changes

  • Structured logging for debugging

  • Safe actions — resilient click/fill logic

  • Your account, your data — no token sharing

  • No password asked — ever

  • Clean safety rules — stops on captcha/verification

  • Config backup before any modification

  • Single-job queue — no runaway generation


🚀 Quick Start

Prerequisites

WhatWhy
Node.js ≥ 18Runtime for the MCP server
Google ChromeRequired for browser automation
OpenCodeAI agent that connects to MCP servers
A Google accountTo use Google Flow (yours, not shared)

1️⃣ Install

bash
git clone https://github.com/TMSSS05/google-flow-browser-mcp.git
cd google-flow-browser-mcp
npm install

2️⃣ Configure your Google profile

bash
cp config/flow.config.example.json config/flow.config.json

Edit config/flow.config.json:

json
{
  "expectedAccount": "your.email@gmail.com",
  "chromeProfile": "Profile 3",
  "chromeUserDataDir": "/home/you/.config/google-chrome"
}

💡 Finding your Chrome profile:
Open Chrome and go to chrome://version/. Look for "Profile Path" — the last folder name is your profile (e.g., Profile 3), and the path before it is your chromeUserDataDir.

3️⃣ Make scripts executable

bash
chmod +x scripts/*.sh

4️⃣ Start Chrome with CDP

bash
./scripts/start-browser.sh

This launches Chrome with remote debugging enabled on port 9222 using your configured profile.

5️⃣ Start the MCP server

bash
# In a separate terminal:
./scripts/start-mcp.sh

6️⃣ Register with OpenCode

bash
./scripts/register-opencode.sh

🔄 Restart OpenCode after registration for the changes to take effect.

✅ Verify it works

bash
./scripts/test-flow-image.sh

🏗️ Architecture

google-flow-browser-mcp/
│
├── 📂 config/
│   ├── flow.config.example.json    # Configuration template
│   └── selectors.map.json          # UI selectors (auto-populated)
│
├── 📂 scripts/
│   ├── start-browser.sh            # Launch Chrome + CDP
│   ├── start-mcp.sh                # Start the MCP server
│   ├── test-flow-image.sh          # Quick integration test
│   └── register-opencode.sh        # Register in OpenCode config
│
├── 📂 src/
│   ├── index.js                    # MCP server entry point
│   │
│   ├── 📁 browser/                 # Chrome & CDP management
│   │   ├── connect.js              # CDP connection manager
│   │   ├── launch-profile.js       # Chrome profile launcher
│   │   ├── account-check.js        # Verify Google account
│   │   └── safe-actions.js         # Safe click, fill, detection
│   │
│   ├── 📁 tools/                   # All MCP tool implementations
│   │   ├── flow-open.js            # Navigate to Flow
│   │   ├── flow-status.js          # Connection status
│   │   ├── generate-image.js       # Image generation
│   │   ├── generate-video.js       # Video generation (setup only)
│   │   ├── download-latest.js      # Download generated files
│   │   ├── create-character.js     # Create a character
│   │   ├── import-character.js     # Import character JSON
│   │   ├── open-characters.js      # List characters
│   │   ├── create-scene.js         # Create a scene
│   │   ├── open-tools-gallery.js   # Open tools gallery
│   │   ├── grid-architect.js       # Batch shot generation
│   │   ├── discover-ui.js          # UI discovery & mapping
│   │   └── use-flow-tool.js        # Generic tool opener
│   │
│   ├── 📁 queue/                   # Job management
│   │   └── job-queue.js            # Single-job queue
│   │
│   └── 📁 utils/                   # Helpers
│       ├── config.js               # Config loader
│       ├── logger.js               # Structured logging
│       ├── errors.js               # Error codes & types
│       ├── file-manager.js         # File download/save
│       └── screenshots.js          # Screenshot capture
│
└── 📂 output/                      # Generated files land here

🔧 Tools

All tools are organized by function for easy discovery.

🌐 Connection & Status

ToolDescription
flow_connectLaunch Chrome, connect CDP, navigate to Google Flow
flow_disconnectClose browser and clean up all connections
flow_statusFull status: connection, Flow loaded, account, queue state
flow_account_checkVerify logged-in account matches configured email
flow_screenshotCapture a screenshot of the current Flow page

🎨 Image Generation

ToolDescription
flow_generate_imageGenerate image with Nano Banana Pro, Nano Banana 2, or Imagen 4. Supports aspect ratios, reference images, and brand-based model selection.
flow_download_latestDownload the most recently generated file

🎬 Video Generation

ToolDescription
flow_generate_videoSet up video generation (Omni Flash, Veo models, custom duration/ratio). ⚠️ Stops at "ready to generate" — no credit consumed.
flow_create_sceneCreate a video scene with characters and a text prompt

👤 Characters

ToolDescription
flow_create_characterCreate a new character with name, description, and optional reference images
flow_import_characterImport a character from a saved JSON file
flow_open_charactersOpen the characters page and list all existing characters

🛠️ Tools & Discovery

ToolDescription
flow_open_tools_galleryOpen the tools gallery and browse available tools
flow_use_toolOpen any Flow tool by name with optional parameters
flow_use_grid_architectConfigure Grid Architect for batch shot generation with theme prompts, visual logic, and reference images
flow_discover_uiDiscover and map all interactive elements (buttons, inputs, headings) on any Flow page

📊 Queue & Monitoring

ToolDescription
flow_queue_statusCheck job queue: active job, pending queue, completed and failed history

⚙️ Configuration

Edit config/flow.config.json (copy from config/flow.config.example.json):

🔑 Essential

KeyTypeDefaultDescription
expectedAccountstring—Your Google account email ✅ REQUIRED
chromeProfilestring"Profile 3"Chrome profile directory name
chromeUserDataDirstring—Full path to Chrome user data directory ✅ REQUIRED
flowUrlstringFlow labs URLGoogle Flow URL (supports fr, en locales)

🔧 Advanced

KeyTypeDefaultDescription
cdpPortnumber9222Chrome DevTools Protocol port
browserModestring"direct-cdp""direct-cdp" (recommended) or "playwright"
headlessbooleantrueRun Chrome in headless mode
localestring"fr"UI locale ("fr", "en", etc.)

⏱️ Timing

KeyDefaultDescription
jobTimeoutMs300000 (5 min)Max job execution time
actionDelayMs800Delay between UI actions (anti-detection)
generationPollIntervalMs5000 (5s)How often to poll for generation completion
maxPollAttempts120Max polling attempts before timeout
downloadWaitMs30000 (30s)Wait time for file download

🎨 Models & Ratios

KeyDescription
imageModelsAvailable models: Nano Banana Pro, Nano Banana 2, Imagen 4
videoModelsAvailable models: Omni Flash, Veo 3.1 - Lite/Fast/Quality
ratiosSupported aspect ratios: 16:9, 4:3, 1:1, 3:4, 9:16

🛡️ Safety & Ethics

This project is built with safety-first design:

✅ PrincipleHow it's enforced
Your account onlyUses your own Google profile — never asks for or stores passwords
No credential theftNever exports cookies, tokens, or session data
No bypassStops cleanly on captcha, login walls, or verification challenges
No parallel abuseSingle-job queue prevents concurrent generation
Credit-safe videoVideo generation sets up parameters but stops before the final "Generate" click (no credit consumed)
Config backupBacks up OpenCode config before any modification

⚠️ This is a browser automation tool. Use it responsibly and in accordance with Google's Terms of Service.


❓ FAQ

Getting Started

Open Chrome and go to chrome://version/. The Profile Path shows both your user data directory and profile name. For example:

  • /home/you/.config/google-chrome/Profile 3 → chromeUserDataDir: "/home/you/.config/google-chrome", chromeProfile: "Profile 3"

You need a profile where you're already logged into your Google account.

Yes! Any MCP-compatible client (Claude Desktop, Continue.dev, etc.) can connect to this server. Just point your MCP config to node /path/to/src/index.js.

Troubleshooting

Make sure Chrome is installed at the expected path. On Linux, the default is /opt/google/chrome/chrome. Edit scripts/start-browser.sh to set the correct CHROME path for your system.

The script checks for existing Chrome instances on port 9222. If something else is using that port, you can change cdpPort in config/flow.config.json (and update the script's CDP_PORT variable).

Verify that expectedAccount in config/flow.config.json matches the email logged into your Chrome profile. Use flow_account_check to verify.

Run flow_discover_ui to re-map selectors. The selectors.map.json will auto-update with new UI element positions.

Usage

Your AI agent calls flow_generate_image with a text prompt. Optionally specify model (Nano Banana 2 is default), aspect ratio, and reference images. The server waits for completion and makes the file available for download.

flow_generate_video sets up the video parameters (model, ratio, duration) but stops before clicking Generate. This lets you review the setup before consuming credits. The actual generation requires a paid Google Flow subscription.


🤝 Contributing

Contributions are welcome! Please follow these guidelines:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/my-feature)
  3. Commit your changes (git commit -m 'Add my feature')
  4. Push to the branch (git push origin feature/my-feature)
  5. Open a Pull Request

📄 License

MIT © TMSSS05


Installatioun

TypingMind
{
  "mcpServers": {
    "google-flow-browser-mcp": {
      "command": "./scripts/start-mcp.sh",
      "args": []
    }
  }
}

Google Flow Browser MCP MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal Google Flow Browser MCP verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

Google Flow Browser MCP als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu Google Flow Browser MCP an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "google-flow-browser-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "google-flow-browser-mcp"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu Google Flow Browser MCP. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu Google Flow Browser MCP.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat Google Flow Browser MCP?
Google Flow Browser MCP
Jo. Ech hunn et gelies.
Dat hunn ech mat Google Flow Browser MCP fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server Google Flow Browser MCP benotzt?

Google Flow Browser MCP ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech Google Flow Browser MCP MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir Google Flow Browser MCP mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat Google Flow Browser MCP MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann Google Flow Browser MCP verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech Google Flow Browser MCP MCP mat TypingMind?

Google Flow Browser MCP leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt Google Flow Browser MCP MCP an TypingMind zur Verfügung?

Google Flow Browser MCP stellt MCP-Funktiounen zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir Google Flow Browser MCP MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann Google Flow Browser MCP eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇