FlowGen MCP Server
Provides tools for batch image generation through a user's Google Flow account, allowing agents to submit prompt batches, monitor generation status and engine health, view historical analytics, list project folders, inspect available visual style presets, and verify Google Flow session authentication.
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.
π‘ Why FlowGen?
Commercial image generation APIs charge steep monthly subscriptions and per-image metering ($0.04 to $0.12 per generation), while consumer browser interfaces force you to manually type, wait, copy, and paste one image at a time.
FlowGen bridges this gap completely for free:
Connects your existing browser account via Chrome DevTools Protocol (CDP).
Spawns parallel Chromium worker tabs to run multiple prompts concurrently (2x to 4x speedup).
Automates sequential downloading with zero image overwrites.
Serves as a native Model Context Protocol (MCP) endpoint so agents like Cursor, Claude Desktop, and Antigravity can generate assets autonomously.
Runs anywhere: on your local PC, on a cloud VPS via Docker, or 100% free on Google Colab with Cloudflare tunnels.
Related MCP server: Flow Workspace MCP
β‘ How it works
Paste your prompt list, select an aesthetic style, and press Start Generating. FlowGen processes the queue across four discrete phases:
Matrix Ingestion: Parses raw prompt lines, removes duplicates, and injects selected visual style tokens (e.g. 35mm film, cyberpunk neon, anime studio) with custom prefixes/suffixes.
Parallel Tab Dispatch: Distributes generation tasks evenly across 1 to 4 isolated Chromium worker tabs via Chrome DevTools Protocol.
Sequential Slugging: Captures rendered outputs, generates clean sequential file names (e.g.
1. Prompt_Title.png), and isolates them into dedicated project workspaces.Library & Telemetry: Updates the live canvas, logs speed and ETA in real time, and exposes generated images immediately in the Generated Library and to connected AI agents.
ποΈ Two ways to use it
1. Studio Cockpit (Desktop GUI)
Zero-Scroll SaaS Cockpit: Engineered with modern dark and light foundations, high-contrast typography, and zero vertical window scrolling.
Dual Collapsible Docks: Collapse both the left Engine dock and right Execution dock with one click (
Β«/Β») to maximize screen space for prompt editing.1-Click Windows Launcher: Double-click
START_FLOWGEN.batto launch the studio and automatically open your default browser.Live Telemetry Stream: Real-time measurement of finished images, images per minute speed, ETA countdown, and active worker tab health.
Project Folder Management: Organize outputs by project name, sync custom directories, and open the active project folder directly in Windows Explorer.
2. Headless Agent Engine (MCP & REST API)
Model Context Protocol (MCP): Native stdio and HTTP/SSE MCP server for autonomous LLMs.
REST API: Standard endpoints for programmatic integration into any backend, Python script, or mobile app.
Cloud Run: Ready to host on Google Colab or remote VPS without a local GPU.
π€ Built for agents
FlowGen is built from the ground up for AI coding assistants. By exposing its tools over the Model Context Protocol (MCP), agents in Cursor, Claude Desktop, and Antigravity can write prompts, trigger batch runs, monitor generation progress, and inspect finished image files autonomously.
Claude Desktop Configuration
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"flowgen": {
"command": "python",
"args": ["E:/Organized/flowgen/browser2api/run_mcp.py"],
"env": {
"FLOWGEN_API_KEY": "your_api_key_here"
}
}
}
}Cursor IDE Configuration
In Cursor Settings β Features β MCP Servers β Add New MCP Server:
Name:
flowgenType:
commandCommand:
python E:/Organized/flowgen/browser2api/run_mcp.py
Exposed MCP Tools
Tool Name | Parameters | Description |
|
| Submits batch generation and returns local file paths |
| none | Returns engine health, worker count, and active queue state |
| none | Returns historical analytics, image count, and daily trends |
| none | Lists all project folders and generated image counts |
| none | Returns available visual style presets |
| none | Verifies active Google Flow session status |
π§ Under the hood
FlowGen replaces cumbersome manual web automation with an asynchronous multi-tab orchestration engine:
Chrome DevTools Protocol (CDP): Interacts with Chromium directly at the protocol level for low-latency element querying, rapid form submission, and deterministic network event tracking.
Worker Tab Pool: Maintains up to 4 concurrent tab contexts inside a shared persistent browser profile, cycling prompts concurrently while avoiding rate limiting.
Session Persistence: Google authentication tokens and cookies are saved in an isolated local directory (
.browser2api/), meaning you only log in once.Zero-Overwrite Naming Engine: File slugs are sequentially indexed and sanitized from prompt text to ensure that large batch runs never overwrite previous renders.
Cloudflare HTTPS Bridge: When running on Google Colab or headless Linux, an automated Cloudflare Tunnel exposes port
8787securely with TLS and an API key.
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β FLOWGEN IMAGE STUDIO β
ββββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββ€
β Desktop Web Cockpit β AI Agent MCP Server β
β (FastAPI + Tailwind + JS) β (Claude, Cursor, Agents) β
ββββββββββββββββ¬ββββββββββββββββ΄βββββββββββββββ¬ββββββββββββββββ
β β
βΌ βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Orchestrator & Multi-Worker Pool β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Worker Tab #1 β Worker Tab #2 β Worker Tab #3 β ... β
β (CDP Session) β (CDP Session) β (CDP Session) β β
ββββββββββββββββ¬βββββββββββββββββββββββββββββββ΄ββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Google Flow Image Generation Engine β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββπ Get started
Option 1: Windows 1-Click Launch (Recommended)
Simply double-click START_FLOWGEN.bat (or run start.bat) from the root folder.
The script automatically detects the virtual environment, starts the server on port 8787, and opens your default browser.
Option 2: Google Colab Cloud Run (Free Cloud GPU)
Run FlowGen completely free without using your local PC:
Open
FlowGen_Colab.ipynbin Google Colab.Run the cells to install dependencies and initialize the Cloudflare tunnel.
Click your live public HTTPS link and copy the generated
FLOWGEN_API_KEY.
Option 3: Manual Setup (Windows, macOS, Linux)
Requires Python 3.11 or newer.
# 1. Clone repository
git clone https://github.com/AliRash3ed/flowgen.git
cd flowgen
# 2. Create and activate a virtual environment
python -m venv .venv
# On Windows:
.venv\Scripts\activate
# On macOS / Linux:
source .venv/bin/activate
# 3. Install dependencies & Playwright Chromium
pip install -r requirements.txt
playwright install chromium
# 4. Launch Studio
python browser2api/run_hud.pyOpen http://127.0.0.1:8787 in your browser.
Option 4: Docker VPS Deployment
docker compose up -dThe studio will be available at http://YOUR_SERVER_IP:8787.
π¨ Supported Models & Aspect Ratios
Generation Models
Nano Banana 2.1 (
nano_banana_2_1): Default high-quality photorealistic model with rich textures and balanced composition.Nano Banana Pro (
nano_banana_pro): Maximum architectural coherence and complex fine details.Nano Banana 2 Lite (
nano_banana_2_lite): Optimized lightweight engine for ultra-fast generation batches.
Canvas Aspect Ratios
9:16 Tall (1024 Γ 1792): Fullscreen mobile, vertical reels, and social stories.
16:9 Wide (1792 Γ 1024): Cinematic desktop wallpapers and landscape key visuals.
1:1 Square (1024 Γ 1024): Standard profile avatars and square portfolio grids.
4:3 Frame (1408 Γ 1056): Classic editorial photography and vintage magazine aspect ratio.
π Aesthetic Style Matrix
FlowGen includes 14 built-in aesthetic presets that can be injected at the beginning or end of your prompts:
Preset Name | Preview Accent | Signature Visual Injections |
Cinematic Raw |
| 35mm lens, natural dramatic rim lighting, shallow depth of field, 8k |
Cyberpunk Neon |
| Vibrant volumetric neon glow, wet night street reflections, octane render |
Anime Studio |
| Studio Ghibli & Makoto Shinkai aesthetic, luminous clouds, painterly textures |
Dark Fantasy |
| Eldritch gothic atmosphere, ominous fog, moody chiaroscuro lighting |
Octane 3D |
| Subsurface scattering, translucent materials, chromatic aberration, caustics |
Impressionist Oil |
| Heavy impasto palette knife strokes, rich pigment layers, canvas texture |
Vector Graphic |
| Clean isometric geometric outlines, vibrant flat colors, minimalist |
Vintage 1970s |
| Authentic Kodachrome film grain, warm nostalgic color grade, retro vignette |
Photoreal Macro |
| Extreme close-up lens, microscopic surface details, water droplet caustics |
Editorial Fashion |
| High-fashion editorial photography, studio strobe lighting, Vogue aesthetics |
Minimalist Architecture |
| Monolithic concrete structures, sharp geometric shadows, clean Brutalism |
Watercolor Wash |
| Expressive translucent pigment bleeding, wet-on-wet textured paper |
3D Claymation |
| Handcrafted clay textures, stop-motion plasticine finish, studio lighting |
Retrowave Synth |
| 1980s neon wireframe grid, purple chrome sunset, synthwave aesthetic |
π Repository Structure
flowgen/
βββ assets/ # Studio brand logos, icons, and interface screenshots
β βββ logo.svg # Vector dark logo
β βββ logo-light.svg # Vector light logo
β βββ logo.png # Transparent FG emblem
β βββ studio_cockpit.png # Main studio cockpit screenshot
β βββ studio_collapsed.png # Collapsed sidebars screenshot
β βββ studio_light.png # Light theme screenshot
β βββ gallery.png # Generated library screenshot
βββ browser2api/ # Core Python package & GUI engine
β βββ run_hud.py # GUI application launcher
β βββ run_mcp.py # Model Context Protocol server
β βββ src/browser2api/ # FastAPI server, multiworker pool & scrapers
βββ colab_run.py # Cloudflare tunnel & Colab runner
βββ docker-compose.yml # Container orchestration configuration
βββ Dockerfile # Production container image
βββ FlowGen_Colab.ipynb # 1-Click Google Colab Notebook
βββ requirements.txt # Core Python dependencies
βββ START_FLOWGEN.bat # 1-Click Windows desktop launcher
βββ start.bat # Shortcut launcher
βββ CONTRIBUTING.md # Open-source contribution guidelines
βββ SECURITY.md # Security & local session policy
βββ LICENSE # MIT License
βββ README.md # Project documentationπ¨βπ» License and credits
Architected & engineered by Ali Bhatti (@alirash3ed).
GitHub: @AliRash3ed
LinkedIn: Ali Rasheed
Instagram: @this_is_ali_r
Released under the MIT License. Free for personal, commercial, and research use.
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
Generate images, video, music and voice from your CLI or AI agent. On-brand AI media toolkit.
Generate images from Claude, ChatGPT, Cursor and Codex with 12 top AI image models and 10 tools: up to 4 images per call, SVG vectorization, editing and more. Remote MCP with OAuth, no API keys. Pay per image, no subscription.
Build and run visual creative-production workflows from your AI agent.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables 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.276MIT
- AlicenseAqualityBmaintenanceEnables AI assistants to drive a Google Flow web workspace through local login-session reuse: inspecting the account's actual models and parameters, submitting image and video generation jobs, tracking each job by persistent ID, and downloading the matching media to a specified local path with file and parameter records. Supports repeatable, multi-shot video production workflows where tracked assets are handed off to editing tools like FFmpeg.11MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants such as Claude Code, Codex, and Cursor to generate images and videos through Google Flow using a local, already signed-in Chrome session. It runs as a local MCP endpoint so assistants can submit generation jobs, manage them, and receive results using your own Flow subscription credits.2MIT
- 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