fmusic
Generates music through Google Flow Music (Lyria) using the user's own Google account and credits: submitting text prompts (optionally with custom lyrics, instrumentals, or a reference audio track for restyling), queuing and rendering songs, continuing a generation conversation to tweak/extend/remix a take, splitting tracks into stems, listing/downloading/renaming/deleting clips, and checking remaining credits. Authentication is done once via a Google sign-in.
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.
flowmusic-cli
Make music with Google Flow Music (Lyria) from your terminal, your scripts, or your AI agent.
fmusic is a command-line client and MCP server for flowmusic.app. You sign in once with your own Google account. After that it works without a browser: you describe a song, and a few minutes later you have a WAV file plus a JSON file with its details.
mcp-name: io.github.JvanLeeuwen4/flowmusic-cli
Unofficial project. It is not affiliated with, endorsed by, or supported by Google. It uses the same endpoints as the flowmusic.app website, so it can break when the site changes. You use your own account and credits. Follow the Flow Music terms and the generative AI use policy, and don't use it for spam or mass generation.
Quick start
uv tool install flowmusic-cli # 1. install (or: pipx install flowmusic-cli)
fmusic auth login # 2. a browser opens once: sign in with Google
fmusic generate "dreamy synthwave, airy female vocals, 100 bpm" # 3. make a songExample output:
♪ take 1 (audio__create_song) Dreamy synthwave, airy female vocals, lush pads, 100 bpm
queued "Neon Drift" 3e2b2139-… (~35s)
✓ rendered "Neon Drift"
⬇ ~/Music/flowmusic-cli/2026-11-04/neon-drift_3e2b2139.wav
Neon Drift 1:44 3e2b2139-2783-4171-a2b4-a51d03bc4504
continue with: fmusic chat 13001945-… "…"What you need:
Python 3.10+, via uv or pipx.
Google Chrome or Edge, for the one-time sign-in.
A Google account with Flow Music access. A Google AI subscription gives the most credits.
Related MCP server: Suno-MCP
What you can do
I want to… | Command |
Make a song from a description |
|
Use my own lyrics |
|
Make an instrumental |
|
Change a song I just made |
|
Restyle my own audio |
|
Split a song into stems |
|
See my songs |
|
Download, rename or delete songs |
|
Check my credits |
|
The full reference for every command and flag is in docs/commands.md.
How generation works
Flow Music has an AI co-producer. Your prompt goes to it, and it decides what to make: often one or two takes. It rewrites your prompt into a detailed "sound prompt" and may suggest next steps. Each generation belongs to a conversation, and fmusic chat <conversation_id> "…" continues that conversation, for example to tweak, extend or remix a take.
If you want exact control without the co-producer, use the experimental --direct mode. Your prompt goes to the song model as-is, and -n sets the number of takes:
fmusic generate "minimal techno, 126 bpm, hypnotic" --direct -n 2 --title "Night Drive"Install
Method | Command |
uv (recommended) |
|
pipx |
|
Latest from GitHub |
|
Update |
|
The package installs two equivalent commands, fmusic and flowmusic.
Sign in
fmusic auth login # opens Chrome/Edge: sign in with Google; the window closes by itself
fmusic auth status # shows email, subscription tier, credits (exit code 0 = OK)
fmusic auth logoutYou sign in once. Tokens refresh automatically, so you won't need to sign in again unless you log out or the session is revoked.
To use several accounts, add
--profile work(or setFMUSIC_PROFILE=work) to any command.Can't open a browser (for example on a server)? Sign in on flowmusic.app on another machine. In the browser's DevTools, open the Network tab and copy the
Cookieheader of any__apirequest. Then run:fmusic auth import "sb-sb-auth-token.0=base64-…; sb-sb-auth-token.1=…"
Use it from AI agents
fmusic is built to be driven by agents. There are three ways:
1. Claude Code plugin (skill + MCP server)
/plugin marketplace add JvanLeeuwen4/flowmusic-cli
/plugin install fmusic@flowmusic-cliThen run fmusic auth login once in a terminal. The plugin starts the MCP server through uvx, so you don't need to install anything else.
2. Any MCP client (Claude Desktop, Cursor, VS Code, Codex, …)
Add this to the client's MCP configuration. It only needs uv:
{
"mcpServers": {
"fmusic": { "command": "uvx", "args": ["--from", "flowmusic-cli", "fmusic", "mcp", "run"] }
}
}If fmusic is already installed, this command writes the config for you:
fmusic mcp setup --target claude-code # or: claude-desktop, printThe tools and their parameters are listed in docs/mcp.md.
3. The CLI with --json
Every command accepts --json:
Results go to stdout as one JSON object:
{"status":"ok","data":…}or{"status":"fail","error":{…}}.Progress messages go to stderr.
Exit codes are stable. See docs/troubleshooting.md.
fmusic --json generate "calm piano, 70 bpm" --instrumental | jq '.data.clips[].files'Agents working on this repository should read AGENTS.md.
Where files go
By default, songs are saved to ~/Music/flowmusic-cli/<date>/. Use -o DIR to choose a folder; the files then go directly in it. Each clip produces:
neon-drift_3e2b2139.wav # audio (or .m4a with --format m4a; both with --format both)
neon-drift_3e2b2139.json # title, duration, sound prompt, lyrics, ids, URLs
neon-drift_3e2b2139.jpg # cover art (only with --cover)Configuration
All settings are optional environment variables.
Variable | Default | Purpose |
|
| Which saved account to use |
|
| Where downloads go |
| OS user-data dir | Where sessions are stored |
|
| HTTP timeout in seconds |
Troubleshooting
The most common issues:
Uploads with vocals fail with "not available in your region". In some regions, including the EU, Flow Music doesn't allow uploading tracks with vocals or removing vocals from them. Upload instrumentals instead.
Session expired(exit code 3). Runfmusic auth loginagain.Google won't let you sign in. Make sure Chrome or Edge is installed. You can also use
fmusic auth importinstead.
Everything else is in docs/troubleshooting.md.
Documentation
Doc | For |
Every command, flag and JSON shape | |
MCP tools and client setup | |
Errors, exit codes, fixes | |
Architecture and the flowmusic.app API | |
Contributors and coding agents | |
A compact summary for LLMs |
Contributing
Issues and pull requests are welcome. See AGENTS.md for the layout and test commands:
uv run --extra dev pytestThe sign-in approach is inspired by gflow-cli. MIT licensed.
This server cannot be deployed
Maintenance
Related MCP Connectors
Generate full songs with vocals, instrumentals and sound effects from text. One server for Suno, Google Lyria, Mureka, MiniMax, ACE-Step, YuE and ElevenLabs. Your agent can quote the credit cost before generating, start a song, wait for it to finish and return download links. Sign in with OAuth; optional daily credit caps; retries never charge twice.
Google Flow Music (Lyria): songs, lyrics, extend, cover, remix, effects, stems
Create songs from prompts or lyrics, check credits, and access your private library with OAuth.
Make and edit instrumental music from your agent: songs you can keep changing, MP3/WAV export
Related MCP Servers
- FlicenseBqualityDmaintenanceEnables AI agents to generate music and audio content using the MiniMax Music API through text prompts, with support for reference audio and lyric generation.15-
- AlicenseAqualityDmaintenanceEnables music generation through Suno AI, providing tools for account authentication, prompt-based track creation, and automatic downloading of audio files. It facilitates seamless AI music production workflows within Claude Desktop via Playwright-driven browser automation.103MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI music generation and management through the Suno API, supporting text prompts, custom lyrics, track status monitoring, and credit management.16-
- AlicenseAqualityAmaintenanceDrives Google Flow from an agent or the terminal: Veo text-to-video, image-to-video and clip extension, plus Imagen image generation. Runs locally against your own Google account with Flow access; video generation bills that account's credits.192,388 PyPI361MIT