flow-mcp
The flow-mcp server lets you generate images via Google Flow's batchGenerateImages API directly, bypassing the ~10 images/day chat quota.
Text-to-Image: Generate images from a text prompt.
Image-to-Image: Use a local reference image as a base, transformed with a text prompt.
Model selection: Choose from
nano-pro(default),nano2(fast),narwhal, orgem_pix_2.Aspect ratios:
9:16,16:9,1:1,4:3, or3:4.Batch generation: Up to 4 images per request via the
countparameter.Resolution upscaling: Output at
1k(default),2k, or4k(4K requires Ultra).No daily quota limits: Bypasses the Flow Agent chat restriction by calling the API directly.
Persistent browser pool: Reuses Chrome sessions for faster generation with auto-retry on expired auth tokens.
Progress reporting: Reports generation progress in MCP clients like Claude Code.
Provides tools for generating images using Google Flow's image generation API, supporting text-to-image and image-to-image capabilities with no daily quota limits.
Click on "Install 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., "@flow-mcpgenerate an image of a futuristic cityscape at sunset"
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.
Google Flow MCP šØ
MCP server for generating images via Google Flow ā no daily quota limits.
Claude Code (or any MCP client) can generate images using Google Flow's
batchGenerateImages API directly through a Playwright browser context
with your saved authentication, bypassing the Flow Agent chat quota (~10
images/day).
Features
Text-to-Image ā generate images from text prompts
Image-to-Image ā use a reference image (pass
reference_image)No quota limits ā calls the API directly, not through the chat
Persistent browser pool ā reuses Chrome across generations (faster)
Auto-retry ā refreshes auth token if it expires
Progress reporting ā shows generation progress in Claude Code
No external CLI dependencies ā includes its own auth/login
Cross-platform ā Windows, macOS, Linux (incl. headless)
Related MCP server: Nano Banana MCP
Requirements
Dependency | Notes |
Python 3.11+ (or uv) | |
Google Chrome or Playwright's Chromium | For authentication & generation |
Xvfb (Linux headless only) | For |
Installation
Prerequisites
Python 3.11+
Google Chrome (for authentication)
Playwright browsers (for generation)
Install from PyPI (recommended)
pip install flow-mcp
# Or with uv:
# uv pip install flow-mcp
# Install Playwright browsers
playwright install chromium
# Authenticate with Google Flow
flow-mcp auth loginOr install from GitHub
git clone https://github.com/alarconcesar/flow-mcp.git
cd flow-mcp
uv pip install -e .
playwright install chromium
flow-mcp auth loginUsage with Claude Code
Add to your .claude/settings.json:
{
"mcpServers": {
"flow-image-server": {
"command": "uv",
"args": ["run", "flow-mcp"]
}
}
}Restart Claude Code. The generate_image tool will be available.
Parameters
Parameter | Type | Default | Description |
| string | required | Text description of the image |
| enum |
|
|
| integer |
| Number of images (1ā4) |
| enum |
|
|
| string | optional | Path to a local image for I2I |
Examples
Text-to-Image:
Generate an image of a cyberpunk city at night, neon lights, 16:9Image-to-Image:
Take this photo and make it cyberpunk style,
reference_image: /Users/me/photo.jpgCLI commands
flow-mcp # Start MCP server (stdio mode)
flow-mcp auth login # Authenticate with Google Flow
flow-mcp auth list # List saved profiles
flow-mcp help # Show helpEnvironment variables
Variable | Default | Description |
| auto-detected | Profile name |
| platform default | gflow-cli data directory |
| temp directory | Where to save generated images |
Troubleshooting
Auth expired
flow-mcp auth loginContent filter
Google Flow silently blocks certain prompts (returns None).
Try rephrasing ā avoid violence, NSFW, or trademarked content.
Linux headless
# Only needed for authentication (the MCP server itself runs headless)
Xvfb :99 -screen 0 1280x720x24 &
DISPLAY=:99 flow-mcp auth login --browser internalThe MCP server (flow-mcp) now runs completely headless ā no Xvfb needed for generation.
Profile not found
flow-mcp auth list # list profiles
flow-mcp auth login # create a new profileProject structure
flow-mcp/
āāā src/
ā āāā flow_mcp/
ā āāā __init__.py # Package metadata & logging config
ā āāā __main__.py # CLI entry point (auth, server)
ā āāā server.py # FastMCP tool definition
ā āāā generator.py # Core generation logic
ā āāā browser.py # Playwright context & token capture
ā āāā browser_pool.py # Persistent browser context pool
ā āāā auth.py # Login, profile list commands
ā āāā profile.py # Profile resolution
ā āāā recaptcha.py # reCAPTCHA token minting
ā āāā chrome_helpers.py # Chrome detection
ā āāā constants.py # Shared constants
āāā pyproject.toml
āāā LICENSE (MIT)
āāā README.mdLicense
MIT ā see LICENSE.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseBqualityCmaintenanceMCP server for generating images and audio using Google's Gemini AI models.Last updated22MIT
- Alicense-qualityDmaintenanceMCP server for Google Gemini image generation with configurable model support, enabling text-to-image generation, image editing, and iterative refinement.Last updated39MIT
- AlicenseAqualityDmaintenanceMCP server for generating and editing images using Google Gemini API, with support for multi-turn iterative refinement.Last updated330MIT
- Alicense-qualityDmaintenanceAn MCP server that provides AI image generation using Google Gemini models with intelligent model selection, aspect ratio control, and support for high-quality outputs up to 4K.Last updatedMIT
Related MCP Connectors
MCP server for Flux AI image generation
MCP server for NanoBanana AI image generation and editing
MCP server for Midjourney AI image generation and editing
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/alarconcesar/flow-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server