Skip to main content
Glama

MCP Flow Google (Self-Hosted)

Self-hosted Model Context Protocol (MCP) server for Google Flow (labs.google/fx/tools/flow).

Generate high-fidelity images with Nano Banana / ImageFX, generate videos with Google Veo 3.1 & Gemini Omni, upscale resolution (1K/2K/4K), and manage consistent character assets — all through your own Google account from any MCP client (Claude Code, Cursor, Windsurf, Antigravity, etc.).


Features

  • 🖼️ Image Generation: Full access to Google's Nano Banana (NARWHAL) and Gemma models with custom aspect ratios.

  • 🎬 Video Generation: Text-to-video & Image-to-video powered by Veo 3.1 (veo_3_1_t2v_lite) and Gemini Omni.

  • 🔍 Image Upscaling: Upscale generated media to 1K, 2K, or 4K.

  • 👤 Character Consistency: Create character cards and generate consistent renders across different scenes.

  • 🔑 Your Account, Your Credits: Runs locally with your Google account cookies or tokens.

  • Dual Transport: Supports stdio (CLI/IDE integrations) and http transport.

  • 🔄 Automatic OAuth Token Refresh: Exchanges session cookies for fresh access tokens automatically.

  • 🌐 Multi-Endpoint API: Tries multiple Google Flow AI Sandbox endpoints for maximum compatibility.

  • 🤖 Browser Automation Fallback: Automates the Google Flow web UI via Puppeteer when direct API calls fail.

  • 📦 Batch Generation: Generate multiple images in a single call.

  • 📋 Project & Tool Discovery: List your Google Flow projects and custom tools.


Related MCP server: Google Veo 3.1 MCP Server

Installation & Setup

1. Install Dependencies & Build

git clone https://github.com/molkex/mcp-flow-google.git
cd mcp-flow-google
npm install
npm run build

2. Configure Authentication

Copy .env.example to .env and add your Google cookies:

cp .env.example .env

Set GOOGLE_COOKIES to your Google session cookies (from labs.google). The server will automatically exchange these for fresh OAuth access tokens.


Integration Guides

Claude Code

Add the self-hosted MCP server to Claude Code:

claude mcp add --transport stdio google-flow -- node /absolute/path/to/mcp-flow-google/dist/index.js

Or using npx:

claude mcp add --transport stdio google-flow -- npx tsx /absolute/path/to/mcp-flow-google/src/index.ts

Cursor / Windsurf / Cline (mcpServers config)

Add to your mcpServers configuration in ~/.cursor/mcp.json or .vscode/mcp.json:

{
  "mcpServers": {
    "google-flow": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-flow-google/dist/index.js"],
      "env": {
        "GOOGLE_COOKIES": "your_google_cookies_string_here"
      }
    }
  }
}

Available MCP Tools

Tool Name

Description

Key Parameters

flow_status

Check connection status & available credits

account

connect_google_account

Save Google auth cookies or tokens

cookies, bearerToken

generate_image

Generate an image with Nano Banana / NARWHAL

prompt, model, aspect, negativePrompt, count

generate_video

Generate a video with Veo 3.1 / Gemini Omni

prompt, video_model_key, aspect, duration_seconds, count

generate_video_from_image

Animate an image (Image-to-Video)

prompt, start_image_url, start_image_base64, aspect

upscale_image

Upscale resolution to 1K, 2K, or 4K

media_id, target_resolution

create_character

Create character card for subject consistency

name, description, model

generate_with_face

Render character in new scene

character, prompt, aspect

run_custom_tool

Run custom / shared Google Flow tools by ID or URL

tool_id, project_id, prompt, inputs

generate_storyboard

Create a multi-frame Storyboard Studio sequence

title, scenes

upload_dossier

Upload character/worldbuilding dossier

title, content, dossier_path

generate_from_dossier

Generate artwork derived from uploaded dossier

dossier_id, character, scene

list_media

List all media generated in current session

-

batch_generate_images

Generate multiple images in one call

prompts, model, aspect

list_projects

List all Google Flow projects

-

list_tools

List all custom tools in a project

project_id

get_media_details

Get details about a specific media item

media_id

save_media_to_local_folder

Save/download media to local folder

media_url_or_id, output_folder, filename

update_custom_tool

Edit/update a custom Google Flow tool

tool_id, name, code_or_prompt

audit_custom_tool

Audit tool capabilities & parameters

tool_id

generate_trailer_script

Generate viral book trailer script & storyboard

book_title, target_platform

render_approved_trailer_videos

Render approved trailer clips with Veo 3.1

approved_shots, output_folder


Example Usage Prompts

  • "Generate a paper boat floating on a puddle in rain, landscape format"

  • "Animate that image into a 4-second video with slow camera push"

  • "Create a character named 'astro_bot' described as a cute 3D robot in a white space suit with orange visor"

  • "Generate astro_bot standing on a cliff on Mars under two moons"

  • "Upscale the Mars photo to 2K resolution"

  • "List all my Google Flow projects"

  • "Generate 4 images in one batch: a dragon, a castle, a forest, and a mountain"


Environment Variables

Variable

Description

Default

GOOGLE_COOKIES

Google session cookies for auth

-

GOOGLE_BEARER_TOKEN

Alternative OAuth bearer token

-

GOOGLE_FLOW_PROJECT_ID

Google Flow project ID

b2cffabf-8a98-4710-a852-d01a4dae1f74

GOOGLE_FLOW_TOOL_ID

Google Flow tool ID

947d22df-da9a-4e3c-bef9-f4af87e0b60d

TRANSPORT

Server transport (stdio or http)

stdio

PORT

Port for HTTP transport

3000


License

MIT

Install Server
F
license - not found
B
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

View all related MCP servers

Related MCP Connectors

  • MCP server for Google Veo AI video generation

  • MCP server for Hailuo (MiniMax) AI video generation

  • MCP server for Flux AI image generation

View all MCP Connectors

Latest Blog Posts

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/LeoSzn12/google-flow-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server