Google Flow Browser MCPのロゴ

Google Flow Browser MCP

コミュニティ
TMSSS05

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

公開者TMSSS05
リポジトリgoogle-flow-browser-mcp
言語JavaScript
フォーク
25
スター
115
利用可能なツール
0
通信方式stdio
カテゴリ
リンク
  • ツールをAIワークフローに接続

    Google Flow Browser MCPは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには115件のスターと25件のフォークがあります。

🧠 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


インストール

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

Google Flow Browser MCPのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Google Flow Browser MCPに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Google Flow Browser MCPをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. Google Flow Browser MCPのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "google-flow-browser-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "google-flow-browser-mcp"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてGoogle Flow Browser MCPのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. Google Flow Browser MCPのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Google Flow Browser MCPを使ってこのタスクを手伝ってもらえますか?
Google Flow Browser MCP
はい、読みました。
Google Flow Browser MCPで調べた結果をお伝えします。

よくある質問

Google Flow Browser MCP MCPサーバーは何に使いますか?

Google Flow Browser MCPは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでGoogle Flow Browser MCP MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでGoogle Flow Browser MCPを利用できます。

TypingMindでGoogle Flow Browser MCP MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Google Flow Browser MCPを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Google Flow Browser MCP MCPをTypingMindに接続するにはどうすればよいですか?

Google Flow Browser MCPはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでGoogle Flow Browser MCP MCPのどのようなツールを利用できますか?

Google Flow Browser MCPはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Google Flow Browser MCP MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Google Flow Browser MCPで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇