Логотип Flow MCP

Flow MCP

Спільнота
GTAI-1

Drive Google Flow from Claude, Codex or a local control panel, on Mac or Windows — using your Google AI subscription credits instead of the pay-per-use video API. No browser extension.

ВидавецьGTAI-1
Репозиторійflow-mcp
МоваTypeScript
Форки
120
Зірки
283
Доступні інструменти
0
Тип транспортуstdio
Категорії
Посилання
  • Підключайте інструменти до робочих процесів із ШІ

    Flow MCP надає можливості MCP, які можуть використовувати сумісні клієнтські ШІ-застосунки та агенти.

  • Доступні інструменти: 0

    Перегляньте нижче дії, які можна викликати, з назвами й описами, якщо сервер їх надає.

  • Готова конфігурація для копіювання

    Скористайтеся прикладами конфігурації, щоб налаштувати цей сервер у вибраному клієнті MCP.

  • Показники інтересу до відкритого коду

    Зірки: 283, форки: 120 — у пов’язаному репозиторії.

flow-mcp

Drive Google Flow (flow.google.com) from Claude, Codex or any other MCP app, or from a local control panel, using Flow's own credits (free with any Google account: 50 a day), not the pay-per-use video API.

It is a small program that runs on your own machine. It opens its own Chrome window, signs in as you, and clicks Flow's real buttons. There is no browser extension, no hosted service and no account to create.

Claude / Codex ──stdio──> flow-mcp ──Chrome DevTools Protocol──> Chrome (its own profile) ──> Flow

MCP = Model Context Protocol, the standard that lets Claude use outside tools. New here? GETTING-STARTED.md takes you from nothing to your first video, step by step, and OVERVIEW.md explains what it does in plain English, with no code names.


What you need

macOS or Windows 10/11Developed and tested on macOS. Windows is supported (Chrome, the computer's own voices, the Recycle Bin and the panel launcher all have Windows versions), but it hasn't been run on a real PC yet, so please report anything that breaks
Node.js 22 or newernode --version
Google ChromeAny recent version
A Google accountFree. Flow gives every account 50 credits a day; a paid Google AI plan adds more and unlocks 1080p downloads. Developed on a Pro plan
FFmpeg (optional)Mac: brew install ffmpeg · Windows: winget install Gyan.FFmpeg. Needed only to join clips, mix music or record narration
A Google AI Studio key (optional, free)Only for the Google narration voices. See below
whisper.cpp (optional, free)Only for captions: it hears the words, on your computer. Mac: brew install whisper-cpp · Windows: whisper-cli.exe from the whisper.cpp releases, on your PATH. The speech model it needs downloads by itself the first time you caption a video: 148 MB for English, 574 MB for any other language

A display must stay awake: the Chrome window is really being driven, so the machine cannot be headless or asleep mid-run.


Install

bash
git clone https://github.com/GTAI-1/flow-mcp.git
cd flow-mcp
npm install
npm run build

Mac: do not put this folder in ~/Desktop, ~/Documents or ~/Downloads. macOS protects those folders, and apps that launch the server from there can be refused permission to read its own files (EPERM: operation not permitted). ~/flow-mcp or anywhere in your home folder is fine.

Windows: keep it out of folders OneDrive syncs (often Desktop and Documents), where files can be held online-only. C:\Users\<you>\flow-mcp is fine.

Then sign in, once:

bash
npm run login

That opens the dedicated Chrome window. Sign into Google by hand, open (or create) a Flow project, and leave the window open. The program never types your password; it only uses the session you created. That Chrome profile lives in ~/.flow-mcp/chrome-profile and is separate from your everyday browser.


Connect it to Claude, Codex or Antigravity

Claude Code

bash
claude mcp add --scope user flow -- node /absolute/path/to/flow-mcp/dist/index.js

--scope user makes it available in every folder; the default (local) only works in the folder you ran it from.

Claude Desktop: add to claude_desktop_config.json (Mac: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\). On Windows, write the path with doubled backslashes, like "C:\\Users\\you\\flow-mcp\\dist\\index.js":

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

Codex: add to ~/.codex/config.toml (on Windows, %USERPROFILE%\.codex\config.toml):

toml
[mcp_servers.flow]
command = "node"
args = ["/absolute/path/to/flow-mcp/dist/index.js"]

Or run codex mcp add flow -- node /absolute/path/to/flow-mcp/dist/index.js. No timeout setting is needed: Codex, like most MCP apps, gives up on a tool call after 60 seconds, so any call that runs longer than about 45 seconds (creating a character, a 1080p download) answers with a task id instead and keeps working, and flow_wait collects the result.

Antigravity (Google's coding app): add a flow entry to mcp_config.json. On a Mac it lives in ~/.gemini/antigravity/; you can also open it from the agent panel's … menu → Manage MCP Servers → View raw config. Keep any servers already listed and add this one beside them:

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

Other MCP apps (Cursor, VS Code and others) take the same command and arguments in their own MCP settings. ChatGPT in the browser or the ChatGPT app can't use it: its connectors only reach servers on the internet, and this tool has to run on your own computer to drive your Chrome window.

Developed and tested with Claude. Codex and Antigravity speak the same protocol, so they should work the same way, but neither has been tried yet, so please report how it goes. Running two of them at once is safe: the first one started drives Flow, and the others pass their requests to it.

Restart the app, then ask it: "check my Flow session". You should get your plan and credit balance back. Everything after that is plain English; you never type tool names.


Your first film

Nothing below costs a credit until step 4, and the assistant asks before spending.

  1. Check the session. "Check my Flow session." This confirms sign-in, plan and credits.
  2. Make a character. "Create a character called Pip, a small lamplighter in a flat cartoon style." Flow draws the portrait. Free.
  3. Draw the key frames. "Draw three stills with Pip: a dark rooftop, him lighting a lamp, the whole hillside glowing. Match each one to the last." Free: stills cost nothing, so get the look right here before spending.
  4. Shoot it. "Turn those into three 10-second shots, each starting where the last one ended, 720p, no more than 15 credits each." This spends credits. The price is read from Flow's own quote first and the scene is skipped if it is over your cap.
  5. Narrate it. "Record this line with a warm documentary voice." Free, any length.
  6. Cut it. "Join the three shots under the narration, don't freeze the last frame." The finished file lands in ~/flow-mcp-out/<project>/.

The control panel

The same features, without an AI assistant in the loop:

bash
npm run studio     # then open http://127.0.0.1:8787

or double-click Flow Studio.command (Mac) or Flow Studio.cmd (Windows).

Eight tabs, in the order you would use them:

  • Cast: reusable characters. Create them, edit them in place, or build one from a picture.
  • Frames: free stills, with match previous frame to keep a set on-model.
  • Shots: paid clips, with first/last frames, chaining, a live credit estimate, and a card that continues a finished clip from its own last frame.
  • Voice: free narration in Google's voices or your computer's own. Your saved narrations are listed here to play or delete, and there's a field for your Google AI Studio key (checked with Google, stored only on your computer; never paste it into a chat).
  • Restyle: change a clip you already have.
  • Cut: join any videos into one film, in the order you pick. Upload one, or choose from films you've already made. Add a narration (from your saved ones or an upload) and music, and turn the clips' own sound down so the narration sits on top.
  • Captions: put the spoken words on screen, the way short-form videos do, on wide or vertical videos. Pick a video and the language spoken in it (about 100 languages, or Detect automatically), choose a style (Bold pop, Highlight, Word by word, Clean, Boxed), where it sits (bottom, middle, top, an exact height, or tap the preview), its size (a slider), its letters (normal, CAPS or lowercase) and highlight colour, and see it on a real frame of your video before anything is made. Fix any misheard word in the text box and it keeps its timing; press Enter to start a new caption. Saves <name>-captions.mp4 plus an .srt for YouTube. Everything happens on your computer; nothing is uploaded.
  • Library: everything in your Flow project. Download it again for free (a scene comes down as one finished film, not loose clips), or move it to Flow's Trash.

A progress monitor and a gallery of your saved work sit alongside. The gallery shows stills or clips on the tabs that use them. On a wide screen, each side scrolls on its own. Two kinds of delete, clearly labelled: Move to the Mac's Trash / Recycle Bin removes a file from your computer; Move to Flow's Trash removes it from your Flow project only. Both can be undone.

The panel ships with the repo but is not started for you: run npm run studio when you want it. Opening studio/index.html as a plain file does nothing; the page needs the server behind it, and says so in red if you try.

Claude's own process serves the same panel while it runs. Whichever process starts first owns the Chrome tab and the job queue; the other talks to it over a local API, so Claude and the panel always agree on what is running. That API listens on 127.0.0.1 only and needs a per-run token (~/.flow-mcp/token).


Tools

ToolPurpose
flow_statusSession state (signed in, project open, plan, credits left), queue, pacing, prompt playbook
flow_generateQueue scenes: prompt, image or video, model, aspect, duration, resolution, variants, first/last frame, reference images, max_credits cap
flow_waitWait for jobs, or for the task id of a slow call; returns file paths and results. Answers within about 40 s, so call again until finished is true
flow_cancelCancel a job that has not started
flow_retryRe-queue failed jobs with the same settings and file names (a failed tile is first retried inside Flow with its own free Retry button: retries, default 1)
flow_assetsList images and videos already in the Flow project (usable as asset:<title>)
flow_downloadDownload existing project media without regenerating. Free, including the 1080p / 2K upscale. A scene comes down as one stitched film
flow_trashMove an image, video or scene in the Flow project to Flow's Trash, where it can be restored. Exact title only; refuses if two items share it; never deletes permanently
flow_agent_imagesFast image batch: hands up to 50 scenes to Flow's own Agent mode, rendered in parallel (20 images in ~204 s), 0 credits. Each image is matched back to its scene by its stored prompt, so file numbers are right in any finish order. Scenes the agent drops are re-asked of it (up to 2 rounds), then re-run one by one
flow_editVideo-to-video edit of a clip already in the project (relight, weather, remove objects). Flow shows no quote first; about 20 credits for a 4 s clip
flow_continueStart a clip from the last frame of an existing one with a character or your avatar still attached. The composer allows a start frame or attached characters, never both, so this drives Flow's agent mode, which does both. No quote beforehand
flow_characterCreate a reusable character from a description (Flow draws the portrait) or an image, with a personality and a stock voice; use it as asset:<name>
flow_character_editRestyle an existing character in place (free) and save the new portrait; name, personality and voice are kept, so every scene referencing it updates. Pass look with the updated description; with only a name it re-saves the current portrait
flow_charactersList the project's characters
flow_techniques39 film-technique prompt presets (camera moves, product shots, transitions, image commands); pass an id as a scene's technique
flow_narrateFree narration audio, any length: gemini (Google AI Studio text-to-speech, with the same voices Flow has, plus a style note) or mac (a voice installed on this computer, no key needed)
flow_voicesNarrator voices available, and whether a Google key is set up
flow_captionsBurn spoken-word captions into any video, landscape or vertical, in one of five styles, at any height and size, in normal, capital or lowercase letters, in about 100 languages; returns the transcript so a misheard word can be fixed and the call repeated (local whisper.cpp, Chrome and FFmpeg, no credits)
flow_transcribeHear the words in any video or audio on your computer, with each word's start and end time (local whisper.cpp, free)
flow_assembleJoin clips into one MP4 (a project's clips, or any you list, in order) with optional music and voiceover, and separate volume for the clips' own sound. A voiceover can also be built line by line (voice_lines), each line cut from a take and placed at its own moment, for narration timed to on-screen titles (local FFmpeg, no credits)

Continuity between shots: chain_previous (this clip starts on the last frame of the previous one), first_frame + last_frame (animate between two stills you chose), reference_images (keep a character or product consistent). Flow's composer takes either frames or references, never both, so when you need a start frame and a character locked together, use flow_continue, which goes through Flow's agent mode and does both.

Output lands in ~/flow-mcp-out/<project>/scene-NN.ext.

Narration with Google's voices (optional)

flow_narrate with engine: "mac" uses your computer's own voices and works out of the box: macOS voices on a Mac, the built-in speech voices on Windows. For Google's voices (the same ones Flow offers), get a free key from Google AI Studio and paste it into Flow Studio → Voice → Google AI Studio key → Save key. It's checked with Google before it's saved, and stored only on your computer. Or set GEMINI_API_KEY. Either way, never paste the key into a chat; it would end up in the conversation history.


Behaviour and settings

  • One generation at a time, with a random 25–70 second pause between them. The page carries an invisible reCAPTCHA; this drives the real interface at human pace and does nothing to evade it.
  • Before each generation the server reads Flow's own credit quote and skips the scene if it exceeds max_credits (default 25).
  • Any Google account language works. The server finds Flow's buttons by their English names, so its Chrome window always shows Flow in English (it adds ?hl=en to the address). Your account's own language setting is never changed, and prompts can be written in any language.
  • Environment variables: GEMINI_API_KEY, FLOW_MCP_PORT (8787), FLOW_MCP_OUTPUT, FLOW_MCP_HOME, FLOW_MCP_CDP_PORT (9333), FLOW_MCP_CHROME, FLOW_MCP_PAUSE_MIN_S, FLOW_MCP_PAUSE_MAX_S.

If something goes wrong

SymptomCause
Mac: the server will not start, EPERM: operation not permittedThe folder is in a macOS-protected location. Move it out of ~/Desktop, ~/Documents or ~/Downloads and update the path in your Claude config
"Not signed in" or "no project open"Run npm run login, sign in, open a Flow project, leave the window open
A clip generated but no file arrivedThe media is still in Flow. flow_download pulls it back for nothing. Never re-generate and pay twice
Everything times outThe Chrome window was closed, or the machine slept. Reopen it with npm run login

Updating

Tell your assistant: "Update Flow MCP: in my flow-mcp folder, run git pull, then npm install, then npm run build." Then fully quit and reopen your assistant app so it loads the new version.


Licence and risk

This automates Flow's web interface. It can break whenever Google changes that interface, and automated use may be against Google's terms of service. Use it on your own account, at your own risk.

Встановлення

TypingMind
{
  "mcpServers": {
    "flow-mcp": {
      "command": "npm",
      "args": [
        "run",
        "studio"
      ]
    }
  }
}

Використовуйте MCP Flow MCP з різними моделями ШІ

TypingMind підключає інструменти MCP на рівні робочого простору, тож після підключення Flow MCP ви можете використовувати їх із різними моделями ШІ в TypingMind, а не налаштовувати окремо для кожної моделі. Ця інтеграція MCP працює локально через конектор MCP TypingMind на вашому пристрої.

Інструкція з налаштування локального конектора

Виберіть цей варіант, якщо серверу MCP потрібен доступ до локальних файлів, програм або приватних ресурсів на вашому комп’ютері.

1

Відкрийте налаштування MCP

У TypingMind перейдіть до розділу «Налаштування», відкрийте «Розширені налаштування», потім «Протокол контексту моделі» й виберіть «Параметри конектора».

  1. Відкрийте TypingMind у браузері.
  2. Натисніть значок налаштувань.
  3. Перейдіть до розділу «Розширені налаштування».
  4. Відкрийте розділ «Протокол контексту моделі».
  5. Натисніть «Параметри конектора» й виберіть «Цей пристрій».
Екран налаштування конектора MCP у TypingMind з вибраним варіантом «Цей пристрій»
2

Виконайте команду конектора

Виберіть «Цей пристрій», скопіюйте команду з TypingMind і виконайте її в терміналі. Не зупиняйте процес, поки користуєтеся MCP.

  1. Скопіюйте команду налаштування, показану в TypingMind.
  2. Відкрийте «Термінал» у macOS або Windows Terminal у Windows.
  3. Вставте й виконайте команду.
  4. Підтвердьте встановлення пакета, якщо термінал запитає дозволу продовжити.
  5. Не закривайте вікно термінала й не зупиняйте процес, поки користуєтеся інструментами MCP.
3

Додайте Flow MCP як сервер

Коли статус конектора зміниться на «Готово», натисніть «Змінити сервери» та вставте конфігурацію сервера MCP.

  1. Зачекайте, доки статус конектора зміниться на «Готово».
  2. Натисніть «Змінити сервери».
  3. Вставте конфігурацію сервера MCP Flow MCP.
  4. Збережіть список серверів.
  5. Оновіть дані, щоб переконатися, що конектор досі готовий до роботи.
Налаштування MCP у TypingMind з активним сервером і кнопкою «Змінити сервери»
{
  "mcpServers": {
    "flow-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "flow-mcp"
      ]
    }
  }
}
4

Використовуйте підключення з різними моделями

Збережіть список серверів, відкрийте «Плагіни», увімкніть інструменти MCP для Flow MCP, а потім виберіть будь-яку підтримувану модель ШІ в TypingMind і використовуйте інструменти в чаті або призначте їх агенту ШІ.

  1. Відкрийте сторінку «Плагіни» в TypingMind.
  2. Увімкніть інструменти MCP для Flow MCP.
  3. Почніть чат і виберіть модель ШІ, яку хочете використовувати.
  4. Використовуйте інструменти MCP у чаті або призначте їх агенту ШІ.
  5. За потреби перемикайтеся на іншу модель ШІ без повторного підключення MCP.
Чат TypingMind із використанням увімкнених інструментів MCP і вибраної моделі ШІ
Допоможете з цим завданням через Flow MCP?
Flow MCP
Звісно. Я це прочитав.
Ось що я знайшов за допомогою Flow MCP.

Поширені запитання

Для чого використовується сервер MCP Flow MCP?

Flow MCP — це сервер MCP, який дає змогу сумісним клієнтам ШІ підключатися до зовнішніх інструментів і контексту. У TypingMind ви можете додати цей сервер MCP один раз і зробити його інструменти доступними у своєму робочому просторі ШІ.

Чи можу я використовувати MCP Flow MCP з кількома моделями ШІ в TypingMind?

Так. TypingMind підключає інструменти MCP на рівні робочого простору, тому ви можете використовувати Flow MCP з різними моделями ШІ, як-от Claude, ChatGPT, Gemini або іншими моделями, які ви налаштували в TypingMind, без окремого налаштування сервера MCP для кожної моделі.

Навіщо використовувати MCP Flow MCP із TypingMind?

TypingMind — один із найкращих інтерфейсів для чату з великими мовними моделями, адже він об’єднує різні моделі ШІ, промпти, плагіни, агентів ШІ, ключі API та інструменти MCP в одному робочому просторі. Підключивши Flow MCP, ви зможете використовувати його інструменти MCP з вибраними моделями та впорядковано працювати з чатами в TypingMind.

Як підключити MCP Flow MCP до TypingMind?

Flow MCP працює через локальний конектор MCP TypingMind. Це найкращий варіант, коли серверу MCP потрібен доступ до локальних файлів, настільних застосунків, інструментів командного рядка або приватних ресурсів на вашому комп’ютері.

Які інструменти надає MCP Flow MCP у TypingMind?

Flow MCP надає можливості MCP, які можна ввімкнути на сторінці «Плагіни» в TypingMind і використовувати в чаті або призначати агентам ШІ.

Чи потрібно передавати свої ключі API в TypingMind, щоб використовувати MCP Flow MCP?

Ні. TypingMind орієнтований насамперед на локальну роботу й дає змогу зберігати контроль над постачальниками моделей, ключами API, промптами та конфігурацією MCP. Якщо Flow MCP потребує автентифікації, під час створення підключення додайте потрібні заголовки, налаштування OAuth або локальну конфігурацію для цього сервера MCP.

Схожі сервери MCP

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇