Google Flow MCP Server
Enables generating images and videos through Google Flow using a local Chromium browser profile and an authenticated Google account, with tools for account status/login/logout, job status/listing/download, model inspection, and video upscaling.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Google Flow MCP Server generate a 5-second video of a neon city at night"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Deti Google Flow MCP Plugin (@deti/google-flow-mcp)
English documentation · Changelog · License (MIT)
Plugin MCP chuẩn kho plugin Deti (transport stdio, khai báo tại deti-plugin.json) để tạo ảnh (Nano Banana) và tạo video (Veo / Omni Flash) bằng Google Flow qua hồ sơ trình duyệt Chromium cục bộ tách biệt — không cần API key tạo media, không lưu mật khẩu Google.
Tính năng chính
Máy chủ MCP chuẩn
stdiovới tiền tốflow_, JSON Schema đầu vào đầy đủ (enumcho model, tỉ lệ, độ phân giải),outputSchema+structuredContent, vàannotations(readOnlyHint,destructiveHint,openWorldHint).Tạo ảnh & video bất đồng bộ không treo lượt: mọi lời gọi MCP hoàn tất trong ≤ 30 giây; video trả
jobIdngay kèm hỗ trợnotifications/progress(khi client cóprogressToken) và hỏi lại quaflow_job_status.Chạy ẩn (headless) mặc định: mọi thao tác bình thường chạy nền hoàn toàn; chỉ khi cần đăng nhập (
flow_account_login) mới mở cửa sổ trình duyệt thu nhỏ / nằm sau (không chiếm focus, nhấp nháy trên thanh tác vụ) và tự đóng phiên headless trùng hồ sơ trước đó.Tách dữ liệu khỏi mã nguồn: hồ sơ trình duyệt, cookie, phiên đăng nhập, danh sách job và tệp đầu ra mặc định lưu trong
DETI_PLUGIN_DATA_DIR.Bảo mật & an toàn: không log cookie / token / email, không viết cứng tài khoản hay đường dẫn máy, trả mã lỗi rõ (
needs_login,quota_exceeded,timeout,blocked_prompt…) mà không lộ stack trace.
Related MCP server: google-flow-mcp
Yêu cầu môi trường
Node.js
>= 20(khuyến nghị Node 22+)Trình duyệt nhân Chromium đã cài sẵn trên máy (Google Chrome, Chromium, Brave, hoặc Microsoft Edge) — không cần tải Chromium riêng của Playwright
Tuỳ chọn:
ffprobetrongPATH(để đo thêm codec và thời lượng video; ảnh vẫn tự đọc đượcwidth/heightmà không cầnffprobe)
Cài đặt
1. Cài từ trang quản trị Deti (Khuyến nghị)
Plugin khai báo đầy đủ tại deti-plugin.json. Khi cài từ kho plugin Deti, hệ thống tự chạy:
npm ci
npm run buildvà kiểm tra sức khoẻ bằng công cụ flow_doctor.
2. Cài đặt & biên dịch cục bộ trên máy bất kỳ
npm ci
npm run buildChạy thử & kiểm tra
Kiểm tra bằng MCP Inspector CLI
# Liệt kê danh sách công cụ & JSON Schema
npx @modelcontextprotocol/inspector --cli node dist/index.js --method tools/list
# Kiểm tra môi trường (Node, trình duyệt, thư mục dữ liệu, phiên đăng nhập)
npx @modelcontextprotocol/inspector --cli node dist/index.js --method tools/call --tool-name flow_doctorChạy bộ kiểm thử tự động
npm run checkChạy bằng CLI cục bộ (tuỳ chọn)
npm run doctor
npm run cli -- browser detect
npm run cli -- account list
npm run cli -- job list --limit 10Bộ công cụ MCP (flow_*)
Công cụ | Mục đích | Quyền mặc định trong |
| Tạo ảnh mới (mặc định |
|
| Tạo video mới (mặc định |
|
| Tra trạng thái job ( |
|
| Kiểm tra phiên đăng nhập Google Flow hiện tại hoặc xác nhận login vừa hoàn tất |
|
| Mở cửa sổ trình duyệt nằm sau (không lấy focus) để đăng nhập Google Flow, trả |
|
| Đăng xuất và xoá sạch hồ sơ trình duyệt / cookie của tài khoản |
|
| Kiểm tra Node.js, Chrome/Edge, FFprobe, thư mục dữ liệu và trạng thái phiên |
|
| Soi danh sách model, tỉ lệ, thời lượng và mức upscale thực tế trên workspace |
|
| Liệt kê các job đã lưu (lọc theo tài khoản, trạng thái, loại media) |
|
| Upscale video đã hoàn tất lên |
|
| Tải lại đúng tệp kết quả của job theo định danh đã ghi nhận |
|
Biến môi trường
Biến | Mặc định | Ý nghĩa |
| Thư mục dữ liệu người dùng theo HĐH | Thư mục dữ liệu của plugin (ưu tiên cao nhất): lưu |
| (dùng khi chưa đặt | Biến tương thích ngược cho thư mục dữ liệu |
| Tự dò Chrome / Chromium / Brave / Edge | Đường dẫn tuyệt đối tới tệp thực thi trình duyệt |
|
|
|
|
| Mức log ghi ra |
|
| Trần chờ ban đầu cho tạo ảnh ( |
Giới hạn
Cần trình duyệt Chromium cục bộ: máy chạy plugin phải có sẵn Google Chrome, Chromium, Brave hoặc Microsoft Edge.
Cần tài khoản Google có quyền truy cập Google Flow: lần đầu sử dụng (hoặc khi phiên hết hạn), quản trị viên/người dùng cần đăng nhập tương tác qua
flow_account_login.Phụ thuộc giao diện web Google Flow: plugin điều khiển Google Flow qua trình duyệt cục bộ; khi Google thay đổi DOM lớn, cần cập nhật bảng selector tại
src/flow/selectors.ts.Hạn mức tín dụng (credits / quota): mỗi tài khoản chịu giới hạn tín dụng của Google AI; khi gặp
quota_exceededcần dừng thử lại.Tác vụ video bất đồng bộ: video Veo thường mất 30–180 giây để render trên máy chủ Google nên
flow_generate_videoluôn trảjobIdngay để client hỏi lại quaflow_job_status.Không thay thế công cụ sửa ảnh cục bộ: dùng cho tạo ảnh/video mới; các thao tác cắt, ghép chữ, đổi kích thước hay tách nền ảnh có sẵn nên dùng công cụ xử lý ảnh chuyên dụng.
Cấu trúc thư mục
deti-plugin.json # Khai báo plugin chuẩn kho Deti (v7.2 stdio)
icons/google-flow.svg # Biểu tượng plugin
guides/google-flow/ # Hướng dẫn ngắn gọn cho AI Agent (vi.md, en.md)
src/
├── config/ # Biến môi trường & hằng số enum
├── domain/ # Kiểu dữ liệu, mã lỗi chuẩn, phân giải model & đường dẫn thuần
├── infra/ # Logger che dữ liệu nhạy cảm, store, file lock, trình duyệt, media probe
├── flow/ # Selector & driver điều khiển Google Flow
└── mcp/ # Máy chủ MCP stdio, schemas, outputSchema, 11 tool flow_*
tests/ # Unit test, test schema/lỗi MCP, test MCP InspectorAvailable Tools
11 toolsflow_account_loginSign In to Google FlowA
Open a minimized, unfocused browser window for interactive Google Flow sign-in and return waiting_for_login immediately. Only call when flow_account_status reports needs_login or when asked to connect/reconnect an account.
Inputs: force, label, accountId. Returns: status, message, loginUrl, accountId
flow_account_logoutSign Out of Google FlowADestructiveIdempotent
Sign out a Google Flow account, close its browser sessions, and delete its saved profile cookies. Only call when an administrator explicitly requests disconnecting or resetting an account.
Inputs: accountId, removeRecord. Returns: status, message, accountId, removedRecord, +1 more
flow_account_statusCheck Google Flow Account StatusARead-onlyIdempotent
Check whether a Google Flow account is signed in and ready before generating media, or verify if an in-progress login window has finished. Call this before generation when unsure of login state.
Inputs: accountId, verifyLive. Returns: status, message, accounts, authenticated, +2 more
flow_doctorRun Google Flow Plugin DiagnosticsARead-onlyIdempotent
Inspect local environment health (Node.js version, detected Chrome/Chromium/Edge browser, plugin data directory, FFprobe, and Google Flow login session) without opening a browser. Run during installation or when troubleshooting errors.
Inputs: accountId. Returns: ok, node, issues, server, +11 more
flow_download_jobDownload Google Flow Job FilesAIdempotent
Download or re-download the exact tracked output files for an existing Google Flow job into its outputDir. Call when media files need to be retrieved again for a ready or completed job.
Inputs: jobId (required). Returns: error, files, jobId, model, +7 more
flow_generate_imageGenerate Image with Google FlowA
Generate new images or illustrations from a text prompt using Google Flow (defaults to Nano Banana) and save them to outputDir or the plugin data folder. Use when the user asks to create new images; poll flow_job_status if status is queued or running.
Inputs: prompt (required), count, model, outputs, +7 more. Returns: error, files, jobId, model, +7 more
flow_generate_videoGenerate Video with Google FlowA
Start a Google Flow video generation job (defaults to Veo, 5-15s) with an optional input image and return a jobId promptly without blocking. Use when the user asks to generate a new video, then poll flow_job_status until done.
Inputs: prompt (required), count, model, outputs, +12 more. Returns: error, files, jobId, model, +7 more
flow_inspect_accountInspect Live Google Flow CapabilitiesARead-onlyIdempotent
Inspect live models, aspect ratios, clip durations, and upscale options currently available in the connected Google Flow workspace. Call when verifying account-specific model options.
Inputs: accountId. Returns: url, language, pageKind, signedIn, +7 more
flow_job_statusCheck Google Flow Job StatusARead-onlyIdempotent
Poll the status (queued, running, done, failed), progress percentage, and downloaded files of a Google Flow job. Call repeatedly with the same jobId until done or failed; never resubmit a running prompt.
Inputs: jobId (required), waitSeconds. Returns: error, files, jobId, model, +7 more
flow_list_jobsList Google Flow JobsARead-onlyIdempotent
List recent persisted Google Flow generation jobs filtered by account, status, or media type without opening a browser. Call when looking up a previously submitted jobId.
Inputs: limit, status, accountId, mediaType. Returns: jobs, count
flow_upscale_videoUpscale Google Flow VideoA
Upscale an existing Google Flow video job to a higher resolution (1080p, 2x, 4k, or highest_available). Call only after flow_job_status confirms the video job is done.
Inputs: jobId (required), resolution (required). Returns: error, files, jobId, model, +7 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Most tools target a clearly distinct resource+action (generate image vs video, upscale, download, list, status, login/logout). The only soft overlap is flow_account_status vs flow_inspect_account and flow_doctor, which all report on account/environment state, but descriptions make the boundaries reasonably clear.
All tools share a consistent flow_ prefix and mostly follow verb_noun (flow_generate_image, flow_upscale_video, flow_download_job, flow_list_jobs, flow_account_login). A few are noun-first state checks (flow_job_status, flow_doctor), which is a minor deviation but still predictable.
11 tools is well within the ideal 3-15 range for a media-generation server. Each tool covers a distinct lifecycle step (setup, auth, generate, poll, list, upscale, download) with no filler.
The lifecycle is largely covered: diagnostics, account auth/inspect, image/video generation, job polling/listing, upscaling, and downloading. Notable gaps are job cancellation/deletion for stuck or unwanted jobs and upscaling for images (only video upscale exists).
Maintenance
Related MCP Connectors
LLM chat, text tools, image generation, editing, batch image jobs, and asynchronous video generation
Generate images and videos with 14 models (Nano Banana Pro, Seedance, Veo, FLUX) on one key.
Generate images and videos with Seedance, Veo, Wan, Grok, GPT-Image and Nano Banana via one MCP.
Generate AI images, video, voiceovers and music from Claude, ChatGPT or Cursor through 50+ models (Veo 3.1, Kling 3, Seedance, Nano Banana, GPT Image, ElevenLabs). Also image editing, upscaling, background removal, face swap, transcription, voice cloning and UGC-style video ads. Sign in with OAuth — no API key to paste. Tools are annotated (read-only vs. credit-spending); failed generations are refunded.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI image and video generation using Google Nano Banana and Veo 3.1 via a LiteLLM gateway, providing tools for synchronous image generation and asynchronous video generation with polling, returning public URLs.4MIT
- AlicenseAqualityCmaintenanceEnables video generation using Google AI tools (Veo, Nano Banana) via the Model Context Protocol, with browser automation powered by Playwright.242MIT
- AlicenseNot gradedqualityBmaintenanceEnables generating and editing images and videos via Google Cloud models like Nano Banana, Gemini Omni, and Veo 3.1, with setup for Claude Code, Cursor, and Codex.986 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables generation and editing of Nano Banana images and Omni Flash / Veo 3.1 videos through a real browser session, with character consistency, storyboards, 2K/4K upscaling, and background job handling for long renders. Includes a strict credit budget cap and confirmation gate so paid video generation never runs unapproved.MIT