flow-mcp
flow-mcp — Google Flow MCP Server
Google Flow 的独立 MCP server(从 media-gen-mcp 分离):0 积分 AI 生图 + 计费视频生成(Veo / abra),全部经你本机的 Chrome 会话(CDP 页面上下文)驱动 —— 无 API key、无配额、不走第三方转发。
生图 / 图片放大 / 上传 / 状态查询 / 下载 / 删除 / 分享 / 取消 / 角色实体:全部 0 积分
生视频:消耗 Google Flow 积分(abra 7-20 / veo lite 10 / fast 20 / quality 100 每条;1080p 超分 0)—— 工具描述里显式警示,默认只在用户点名时使用
安装
前置(一次性):
本机安装 lasso(CC 全交互抓手中的 Chrome 启动器)
启动带 CDP 的 Chrome 并登录 labs.google:
lasso launch-chrome --port 9223 --mode visible # 首次:窗口出现,完成 Google 登录(2FA 同)
# 之后每天只需:hidden 模式静默驻留
lasso launch-chrome --port 9223在该 Chrome 打开 https://labs.google/fx/tools/flow 任意项目页(保持运行)
接入 Claude Code:
claude mcp add flow-mcp -- node /path/to/flow-mcp/dist/index.js
# 或发布后:npx flow-mcp-server与 media-gen-mcp 可同时接入,互不冲突(见下方「与 media-gen-mcp 共存」)。
Related MCP server: Grok Image Generation MCP Server
工具(4 个)
工具 | 积分 | 用途 |
| 0 | 文生图 / 图生图(底图+参考图)/ 2K 放大。NARWHAL(Nano Banana 2,默认)/ HARBOR_SEAL / GEM_PIX_2(Nano Banana Pro)。支持 |
| 🔴 计费 | 视频提交(t2v/i2v/r2v/首尾帧/延长/编辑/超分)。只提交不等待,立刻返回 mediaId 句柄 |
| 0 | 一站式自省:积分余额 / 实时模型目录(每个 key 的积分价与耗时)/ 媒体列表 / 单媒体状态与下载 / 批量删除 / 公开分享链接 / 取消生成中任务。也是视频句柄的轮询路径 |
| 0 | 角色实体:建角色卡 / 绑 30 选 1 预设语音 / 绑形象图 |
典型流程:
flow_status # 先看:余额 + 目录(per-key creditsAtServiceTier)
flow_generate_image(prompt=..., aspect="16:9") # 0 积分生图,产出落盘并回传 mediaId+seed
flow_generate_video(model="abra_t2v_8s", ...) # 🔴 计费提交 → 返回 mediaId 句柄(不阻塞)
flow_status(mediaId="...") # 轮询(0 积分;in_progress 会给 retry_after_seconds)
flow_status(mediaId="...", download=true) # completed 后落盘 mp4配置(与 media-gen-mcp 共享一个文件)
配置文件:~/.media-gen-mcp/config.json(两包读同一份 —— 「同一功能的不同实现渠道」在一个文件里统一开/关)。目录名沿用历史名,勿改(Flow 项目 ID 永久记录在 ~/.media-gen-mcp/flow-project.json,改名会孤儿化)。
{
"flow": {
"enabled": true,
"imageRouting": "prefer",
"videoRouting": "explicit-only",
"toolDeadlineMs": 110000
},
"providers": {
"flow": { "cdpPort": 9223 }
}
}字段 | 默认 | 作用 |
|
|
|
|
|
|
|
|
|
|
| 单次工具调用硬上限(防卡死;超时返回 |
|
| CDP 端口(与 |
| (缺省) | 缺省读 |
| (无) | 刻意无内置默认:视频计费,必须显式传 |
完整示例见 config.example.json。
与 media-gen-mcp 共存
两包共享
~/.media-gen-mcp/config.json;media-gen 自己的imageProviderPriority/videoProviderPriority链只在它包内生效分离后的跨包优先级 = 本包工具描述软路由(
imageRouting/videoRouting引导 Claude 选flow_generate_image优先)+enabled总闸 —— 不存在跨包硬重定向(物理上两包互不可见,诚实设计)flow-project.json/flow-entities.json归本包;media-gen 侧摘除 Flow 后不再读写
错误码速查([flow] S<code>)
码 | 含义 | 处置 |
| 配置已禁用 | 按错误里的指引把 |
| CDP 不可连 |
|
| 无 labs.google 页面 | 在该 Chrome 打开 Flow 项目页 |
| 未登录 | 在该 Chrome 完成 labs.google 登录 |
| reCAPTCHA 失败 | 停留在 Flow 页面重试 |
| 环境前置 | 环境就绪后重试;生图可回落其他图像工具 |
| 页面 fetch 失败 | 看 message 内的上游响应片段 |
| 模型/参数/模式校验 | 按 message 指引换 key 或参数(提交前拦截,零消耗) |
| mediaId 不在本项目 | 不带参数调 |
| 下载不完整 | 直接重试 |
| 工具层截止(防卡死) | 生成仍在服务端进行; |
环境要求
Node.js ≥ 18
本机 Chrome(经 lasso 以
--remote-debugging-port=9223启动)并登录 labs.googleFFmpeg 随包自带(ffmpeg-static;仅用于产物合法性自检,缺失时自动降级为提示)
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables high-quality AI video generation using Google's Veo 3.1 model for text-to-video, style-guided, and frame-interpolation tasks. It features token-efficient reference image handling, batch processing, and video extension capabilities with built-in cost estimation.62
- FlicenseNot gradedqualityFmaintenanceEnables AI assistants to generate images via Grok Imagine by automating the web interface through a Chrome extension bridge.1
- AlicenseAqualityAmaintenanceEnables AI image generation and editing using Google's Gemini Multimodal Image APIs.61MIT
- AlicenseAqualityDmaintenanceEnables image generation, editing, and analysis using Google's Gemini 2.5 Flash and Gemini 3 Pro models, with support for batch processing, style templates, and high-resolution output.85431MIT
Related MCP Connectors
AI image, video & music generation. Flux, Veo 3.1, Suno V5. Free tier included.
Image, video, audio, face-swap, talking avatars and chat across 300+ AI models, one balance.
Generate images, video & speech with Nano Banana, Veo, Omni and Gemini TTS. Pay as you go.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/wangdong233/flow-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server