flow-mcp
Automates Google Flow (flow.google.com) through a signed-in browser profile to generate videos and images using your own Flow credits: queues prompts in the normal composer or Flow Agent mode, enforces model/resolution/quantity settings, downloads or trashes project assets, manages reusable characters, edits and continues clips, and reports session state, plan and credit balance.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Google Flow on Antigravity (google_flow_on_antigravity)
Drive Google Flow (flow.google.com) directly from Google Antigravity (via /flow or plain chat), Claude, Codex, or the built-in local Flow Studio control panel — using your own Google AI Flow credits instead of the pay-per-use video API. No browser extension required.
Based on GTAI-1/flow-mcp (ISC License), enhanced specifically for Antigravity, parallel multi-clip generation, unlimited quantity batching, global user rules, and zero-popup Brave/Chrome automation.
Antigravity (/flow) ──stdio──> flow-mcp ──CDP (port 9333)──> Dedicated Brave/Chrome Profile ──> Google FlowKey Features & Enhancements
/flowAntigravity Skill included (skills/flow/SKILL.md): Type/flow ...(or just mentionflow) in Antigravity chat to generate videos/images, set global rules, or check credits.Parallel Normal-Composer Generation (automatic up to 4, Flow Agent OFF): Automatically overlaps up to 4 independent video or image submissions in Flow simultaneously with human-paced staggers (
FLOW_MCP_SUBMIT_STAGGER_S), matching finished out-of-order tiles back to exact scenes viaReuse prompt, while keepingchain_previous/reference_previousstrictly serial (overrideconcurrency: 1–4anytime viaflow_defaultsor per call).Unlimited
quantity(1–100takes per prompt): Flow's UI caps a single submission atx4. Asking forquantity: 10(images or videos) automatically splits into parallelx4 + x4 + x2batches and numbers outputs cleanly asscene-01-v1…scene-01-v10.Global Rules (
flow_defaults) + Ask-Only-What's-Missing Enforcement: Save any subset of favorite rules once in~/.flow-mcp/defaults.json(e.g., "always use Omni 1.1 Flash, gen 360p, download 720p, 3 parallel").flow_generatemerges your global rules with explicit per-call overrides and refuses to guess any unset required setting — so the assistant asks only for settings you haven't locked globally.Strict Model Verification & Paid-Upscale Guard: Verifies Flow's model dropdown actually switched to your requested model before spending credits; supports explicit
download_quality(original,720p,1080p,upscaled) and checks paid upscales (e.g.720p Upscaled · 1 credit) againstmax_credits.Auto-Dismiss Flow Onboarding & Default Agent Side Panel: Automatically steps through Flow's
<flow-change-log-modal>(iframe[title="Changelog"]) and closes the default Agent side panel (right_panel_close) on fresh profiles.Zero-Popup Dedicated Brave & Chrome Support: Automatically falls back to Brave if Chrome isn't installed, or set
FLOW_MCP_CHROMEto Brave. Uses an isolated persistent profile (~/.flow-mcp/chrome-profile) — sign in once, and it stays signed in across window closes and reboots with zero remote-debugging popups.Shared
~/DownloadsProtection & UK English (en-GB) Support: Filters~/Downloadsfallback strictly to Flow downloads (isFlowDownloadName) so unrelated personal files are never moved, and supports bothMove to trashandMove to bin.
Related MCP server: Google Flow MCP
What You Need
Requirement | Notes |
macOS, Windows 10/11, or Linux | Tested on macOS; cross-platform Chrome/Brave & Trash support included |
Node.js 22+ | Check with |
Google Chrome or Brave Browser | Any recent version |
A Google Account | Free (50 Flow credits/day; stills are 0 credits) or Google AI Pro/Ultra |
FFmpeg (optional) | Needed for |
whisper.cpp (optional) | Only for |
Install & Connect to Antigravity
1. Clone and build
macOS note: Put the folder directly in your home directory (
~/google_flow_on_antigravityor~/flow-mcp), not inside~/Desktop,~/Documents, or~/Downloads, to avoid macOSEPERMpermission errors.
cd ~
git clone https://github.com/MuntasirMalek/google_flow_on_antigravity.git
cd google_flow_on_antigravity
npm install
npm run build2. Sign in once (persistent, zero popups)
npm run login
# Or to use Brave explicitly on macOS:
FLOW_MCP_CHROME="/Applications/Brave Browser.app/Contents/MacOS/Brave Browser" npm run loginSign into your Google account in the dedicated window that opens and open (or create) a Flow project. Your session is saved permanently in ~/.flow-mcp/chrome-profile — even if you close the window or reboot, you stay signed in.
3. Add the MCP server to Antigravity
Edit ~/.gemini/config/mcp_config.json and add the flow entry (use the full path from which node on macOS if Node is installed via Homebrew or MacPorts):
{
"mcpServers": {
"flow": {
"command": "/opt/local/bin/node",
"args": ["/Users/YOUR_USERNAME/google_flow_on_antigravity/dist/index.js"],
"env": {
"PATH": "/opt/local/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin",
"FLOW_MCP_CHROME": "/Applications/Brave Browser.app/Contents/MacOS/Brave Browser"
}
}
}
}(Omit FLOW_MCP_CHROME if you want Google Chrome.)
4. Install the /flow slash command in Antigravity
mkdir -p ~/.gemini/config/skills/flow
cp skills/flow/SKILL.md ~/.gemini/config/skills/flow/SKILL.mdRefresh MCP servers in Antigravity (Skills & Customizations → MCP Servers) or restart Antigravity.
Using /flow in Antigravity Chat
Set global rules once (optional):
/flow always use Omni 1.1 Flash, gen 360p, download 720p, 16:9, and 3 parallel for videosGenerate videos or images (asks ONLY what isn't saved globally):
/flow make 10 cyberpunk cat images/flow create 3 documentary clips about deepfakesOverride for a single run without changing global rules:
/flow make 2 videos in 720p with Omni 1.2 Flash, 8sClear a global rule anytime:
/flow clear my global video resolution default
Local Control Panel (Flow Studio)
You can also drive everything visually in your browser at http://127.0.0.1:8787 while Antigravity is running, or launch it standalone:
npm run studioBoth Shots and Frames tabs include Quantity (with >4 automatic parallel splitting) and Parallel (1–4) controls.
Tools Reference
Tool | Purpose |
| Session state (signed in, project open, plan, credits), saved global |
|
|
| Queue videos/images in normal composer (Agent off) with |
| Wait for queued jobs or slow |
| Cancel queued jobs or retry failed jobs / failed scenes |
| List, download (free, incl. collections/upscales), or move project assets to Trash/Bin |
| Fast image batch (up to 50 scenes) via Flow Agent mode, downloaded as one ZIP |
| Video-to-video restyle or frame-exact / likeness-locked continuation |
| Reusable characters locked across scenes |
| 39 film-technique prompt presets |
| Local Kokoro (28 English voices) or free Google AI Studio Gemini TTS (multilingual) |
| Local FFmpeg stitching, music ducking, timed |
| Local |
Environment Variables
FLOW_MCP_CHROME, FLOW_MCP_CDP_PORT (9333), FLOW_MCP_PORT (8787), FLOW_MCP_OUTPUT (~/flow-mcp-out), FLOW_MCP_HOME (~/.flow-mcp), FLOW_MCP_CONCURRENCY (1–4), FLOW_MCP_SUBMIT_STAGGER_S (4), FLOW_MCP_PAUSE_MIN_S (25), FLOW_MCP_PAUSE_MAX_S (70), GEMINI_API_KEY.
Credits & Risk Notice
Originally created by GTAI-1/flow-mcp (ISC License).
Enhanced for Antigravity by MuntasirMalek.
This project automates Google Flow's web interface at human pace. Google UI updates can break selectors, and automated browser use may conflict with Google's terms of service — use on your own account at your own risk.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
LLM chat, text tools, image generation, editing, batch image jobs, and asynchronous video generation
Image and video AI tools and your own pipelines, run from any AI assistant.
Google Flow's agent: chat that plans and makes images and videos, approvals, your own media
Transform video, audio and images, and generate media from prompts. FFmpeg, captions, models.
Related MCP Servers
- FlicenseAqualityDmaintenanceControls Google Flow for image and video generation from an AI agent. Enables generating images with models like Imagen 4, creating videos, managing characters and scenes via browser automation.17131-
- AlicenseBqualityBmaintenanceEnables users to generate images and videos on Google Flow through browser automation of an already signed-in Chrome session, downloading the finished media to disk without any API keys. It drives Flow's agent with a range of image and video models, plus reference images, first/last frames, and ingredient-based video jobs, while reusing the user's own Google AI Pro credits.17MIT
- AlicenseBqualityBmaintenanceEnables generating images and videos on Google Flow through browser automation using an authenticated Chrome session, with tools to connect, generate, download media, and manage characters and scenes.17MIT
- AlicenseAqualityBmaintenanceEnables automating Google Flow in a logged-in Chromium browser through Chrome DevTools Protocol, including text/image-to-video generation, image generation, batch storyboard queues, and manifest-based outputs ready for editing.11MIT