Skip to main content
Glama

flow-mcp

English 简体中文 日本語

flow-mcp is a single-binary Rust stdio Model Context Protocol (MCP) server for Google Flow (Veo and Imagen). It serves MCP tools and download resources through rmcp over standard input and output.

ChromeEngine manages a persistent Chrome or Chromium profile in <home>/chrome-profile (0700 permissions on Unix). During background work, it connects over local Chrome DevTools Protocol (CDP) to Chrome with a visible window, because Google Flow can reject generations from headless Chrome. The --headless option selects headless Chrome (--headless=new). During Google Sign-In in flow_login, it opens a visible Chrome window without CDP flags. This lets Google authentication and Device Bound Session Credentials (DBSC) finish normally.

A single-worker JobQueue runs generation, edit, video extend, and character jobs one at a time with random pauses. It downloads media files with natural names into <home>/downloads and indexes them in SQLite.

flow-mcp runtime architecture

Quick install

Install Node.js 18 or newer and Google Chrome or Chromium on your host computer:

npx -y @flow-mcp/cli --help

Or install the CLI globally:

npm install --global @flow-mcp/cli
flow-mcp --help

With @flow-mcp/cli, npm installs the matching optional package (@flow-mcp/darwin-arm64, @flow-mcp/darwin-x64, @flow-mcp/linux-arm64, @flow-mcp/linux-x64, @flow-mcp/win32-arm64, or @flow-mcp/win32-x64). Linux packages use glibc. On musl systems (for example Alpine Linux), build from source.

IMPORTANT

Do not pass--omit=optional or --no-optional. Those flags skip the native binary package. You also need Google Chrome or Chromium on the host computer at runtime.

You can also download standalone binaries from GitHub Releases:

Platform

x86_64

ARM64

macOS

flow-mcp-macos-x86_64

flow-mcp-macos-arm64

Linux

flow-mcp-linux-x86_64

flow-mcp-linux-arm64

Windows

flow-mcp-windows-x86_64.exe

flow-mcp-windows-arm64.exe

To build from source, install Rust 1.88 (or newer) and Node.js. esbuild bundles ts/index.ts at compile time, so the compiled binary does not need Node.js at runtime:

git clone https://github.com/ByteLandTechnology/flow-mcp.git
cd flow-mcp
npm ci
cargo build --release

Add @flow-mcp/cli to your MCP stdio client configuration (mcpServers):

{
  "mcpServers": {
    "flow-mcp": {
      "command": "npx",
      "args": ["-y", "@flow-mcp/cli", "serve", "--home", "/path/to/.flow-mcp"],
      "env": {
        "FLOW_MCP_PAUSE": "25,70"
      }
    }
  }
}

Related MCP server: google-flow-mcp

Documentation map

Read the guide sections for each task:

Guide

Focus

Key topics

Quickstart

Tutorial

Install flow-mcp, configure a client, sign in, and generate a video

Architecture

Explanation

Dual-mode ChromeEngine, DBSC handoff, JobQueue, 45s wait limit, and <home> security

Workflows

Procedures

Video and image jobs, characters, edits, scenes, read_chunk, and cookie sync

Tools Reference

Reference

CLI options, environment variables, MCP resources, and MCP tools

Tool overview and media workflows

End-to-end media workflows

Domain

Tools

Purpose

Session & Projects

flow_status, flow_login, flow_new_project, flow_projects

Check session state, sign in with Chrome, and manage projects

Characters & Voices

flow_voices, flow_character, flow_character_edit, flow_characters, flow_voice_preview

List Flow voices, create or update characters with custom voices, preview voices, and store SQLite profiles

Generation & Edit

flow_generate, flow_edit

Queue video and image generation or edit assets

Agent Chat

flow_agent

Manage sessions and exchange messages with Flow Agent

Video & Scenes

flow_video, flow_scenes

Trim videos without source changes, extend clips, and manage scene timelines

Queue Control

flow_wait, flow_cancel, flow_retry

Wait for jobs (PATIENCE_MS = 45s), stop jobs, or run failed jobs again

Library & Media

flow_assets, flow_rename, flow_collections, flow_download, flow_downloads, flow_trash

Filter tiles, rename items, group collections, download files, read chunks, or trash items

Read Tools Reference for every parameter and response field.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Enables AI agents to programmatically generate images and videos through the authenticated Google Flow web interface via a direct Chrome DevTools Protocol connection, exposing tools for media generation, project management, status checks, and asset downloads without requiring official API keys.
      2
      7
      6
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to generate and edit images, create Veo and Omni videos, upscale media, and interact with Google Flow's creative agent by driving a Chrome window signed in to the user's own Google account, using their existing plan and credits with no API key and with credit-spend safeguards.
      18
      300 npm
      7
      MIT