Google Flow Browser MCP logo

Google Flow Browser MCP

Community
TMSSS05

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

PublisherTMSSS05
Repositorygoogle-flow-browser-mcp
LanguageJavaScript
Forks
25
Stars
115
Available tools
0
Transport typestdio
Categories
Links
  • Connect tools to AI workflows

    Google Flow Browser MCP exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    115 stars and 25 forks from the linked 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


Installation

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

Use Google Flow Browser MCP MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Google Flow Browser MCP is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Google Flow Browser MCP as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Google Flow Browser MCP MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "google-flow-browser-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "google-flow-browser-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Google Flow Browser MCP MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Google Flow Browser MCP MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Google Flow Browser MCP to help me with this task?
Google Flow Browser MCP
Sure. I read it.
Here is what I found using Google Flow Browser MCP.

Frequently asked questions

What is the Google Flow Browser MCP MCP server used for?

Google Flow Browser MCP is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Google Flow Browser MCP MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Google Flow Browser MCP with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Google Flow Browser MCP MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Google Flow Browser MCP connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Google Flow Browser MCP MCP to TypingMind?

Google Flow Browser MCP runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Google Flow Browser MCP MCP provide in TypingMind?

Google Flow Browser MCP exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Google Flow Browser MCP MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Google Flow Browser MCP requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇