claude-fl-studio-bridge
Let Claude work inside a running FL Studio while you keep working in it by hand.
You ask Claude (in Claude Code or any app that speaks MCP) for a chord progression, a drum pattern, a mixer change or a render. Claude does it live in your open FL Studio project, and you can see and change everything it did. It's a two-way bridge, not a one-shot generator. The full list of 42 tools is in docs/TOOLS.md. FL Studio's scripting API is reachable only from inside FL, through a MIDI controller script. So the bridge sends small Python snippets over a virtual MIDI cable, and the script inside FL runs them and sends the answer back.
Summary extracted from the README.
Claude FL Studio Bridge
Let Claude work inside a running FL Studio while you keep working in it by hand.
You ask Claude (in Claude Code or any app that speaks MCP) for a chord progression, a drum pattern, a mixer change or a render. Claude does it live in your open FL Studio project, and you can see and change everything it did. It's a two-way bridge, not a one-shot generator.
This is a work in progress, and it's never perfect. It has grown out of daily use on one PC. Some parts click inside FL's windows and were measured on one screen layout, so they may need a small calibration on yours (docs/CALIBRATION.md). Bug reports, fixes and new tools are very welcome; see CONTRIBUTING.md.
What it can do
- Mixer and channel rack: read and change volume, pan, mute, solo, names, colours and routing.
- Notes: write and read notes straight into the piano roll (FL 2024+), program step-sequencer patterns,
play notes live, or write a
.midfile. - Sounds: browse FL's Browser and load plugins, samples and presets; set plugin knobs by the value FL shows ("-12 dB", "250 Hz") instead of raw 0-1 numbers.
- Arrangement: place, copy, trim and cut pattern clips on the playlist, at any zoom.
- Automation: create volume and pan automation clips and draw points, curves and sidechain pumps.
- Projects: start a new project from a template, open, save and close projects without Open/Save dialogs, and render to WAV/MP3/OGG/FLAC with a loudness and peak check.
- Your drum kit in one call: describe your kit once in
kit.json, then "set up my drum kit" loads it. - Hands off, not screen control: dialogs and plugin windows are read with off-screen captures, and clicks
and keys are posted to FL's own windows only. Your real mouse doesn't move and other apps aren't hidden.
While Claude clicks inside FL, a banner reminds you to keep your hands off (default text:
"Chill bro, let me solo her..."; change it or turn it off in
config.json). - A built-in doctor:
fl_doctor(orpython tools\doctor.py) checks every link from Claude to FL: MIDI ports, the FL scripts, FL itself, port settings, popups, screen scaling, hooks and the local AI. It says in plain words what's wrong and how to fix it, so a problem gets explained instead of the bridge just timing out. - Local AI, fully offline (recommended extra): Claude reads FL's dialogs and plugin windows with a local
vision model, a local model writes theory-checked ideas into the piano roll (
fl_local_idea), and Reference Ears (fl_reference) listens to a reference song: tempo, key, chords, sections, parts, and the lead line as MIDI, plus a local listening AI's description. - Orchestral route with Muse Sounds (recommended extra):
fl_muse_renderturns parts into MusicXML, renders them with Muse Sounds in MuseScore Studio, and brings them back as stems or sfizz-triggered clips. - Anything else:
fl_execruns Python inside FL with all of FL's scripting modules.
The full list of 42 tools is in docs/TOOLS.md.
How it works (short version)
Claude ──MCP (stdio)──> server/server.py ──SysEx on "Claude to FL"──> FL MIDI script "Claude Bridge"
<────────────── results as SysEx on "FL to Claude" <────────── (runs the code with FL's API)
FL Studio's scripting API is reachable only from inside FL, through a MIDI controller script. So the bridge sends small Python snippets over a virtual MIDI cable, and the script inside FL runs them and sends the answer back. Things the API can't do (playlist clips, automation clips, the Export dialog) are done by posting clicks to FL's windows and checking the result. More detail, and how to add a tool: ARCHITECTURE.md.
What you need
Required
| Windows 10 or 11 | the bridge uses Windows APIs (WinMM MIDI, window messages) |
| FL Studio | proprietary, not included. FL 2024 or newer is best; FL 20.7+ works with fewer tools |
| Two virtual MIDI ports | loopMIDI (freeware for private use, not bundled) or the open-source Windows MIDI Services loopback endpoints (docs/SETUP.md) |
| Claude Code or another MCP client | |
| Python 3.10+ | bundled by the installer; the bridge itself uses only the standard library |
Recommended extras
These are not required, but they're a big part of how the bridge is used day to day.
Local AI: the heart of working offline. "Local AI" here means models running on your own GPU, with nothing sent anywhere. Two engines do different jobs:
| Extra | Engine | What you get |
|---|---|---|
A vision model such as qwen3-vl:8b-instruct |
Ollama (MIT) | Claude can read FL's dialogs and plugin windows offline (fl_read_window). When FL is stuck on a popup, the bridge reads it and says what it is, instead of just timing out. |
| The same or any chat model | Ollama | fl_local_idea: the local model writes a piano idea (key, chords, melody), music-theory code fixes it (in-key chords, smooth voicing, no clashing notes), and it lands in the piano roll. No Claude needed for the idea itself. |
| Reference Ears | Demucs + Basic Pitch + librosa; listening AI Qwen3-Omni via llama.cpp (not Ollama) | fl_reference: Claude hears a reference song. You get tempo, key, chords, sections and who plays where, plus the lead line as a .mid with bends and vibrato. A local listening AI describes tone, feel and playing technique. |
Ollama starts only when one of the Ollama tools needs it, and stops again after FL Studio (and the sister Krita bridge) close. It only ever stops an Ollama the bridge started itself.
Muse Sounds: the orchestral route. fl_muse_render writes parts as MusicXML (slurs for real legato,
dynamics, a tempo map for rubato). MuseScore Studio 4 renders them with Muse Sounds,
and the bridge either drops one stem per part on the playlist from bar 1, or cuts phrase clips and maps them to
keys in sfizz so FL triggers each clip with one note. The result is far more realistic
strings, winds and brass than General MIDI or most free sample sets.
| Extra | Licence | |
|---|---|---|
| MuseScore Studio 4 | GPL-3.0, open source | renders the parts on the command line |
| Muse Sounds (via Muse Hub) | free, closed source, not bundled | the instrument sounds themselves |
| sfizz | BSD-2-Clause, open source | plays the cut clips inside FL (it stops a clip on note-off; FL's Sampler doesn't) |
Optional nice-to-haves
numpy: adds the loudness / true-peak check tofl_render.- Spitfire's free BBC Symphony Orchestra Discover:
the
fl_bbcso_*tools load its instruments and articulations. - Reference Ears' optional vibe check models: Audiobox Aesthetics (CC-BY-4.0), and the Essentia style model, which is non-commercial only and is an opt-in download.
Licences and links for everything: docs/PREREQUISITES.md.
Install
Option 1: Setup.exe (easiest)
- Download
Claude-FL-Studio-Bridge-Setup-<version>.exefrom Releases and run it. It installs for your user only (no admin), with its own small Python. - It can also install the FL-side scripts, register the tools with Claude Code (
claude mcp add), and add the two hooks that hide the banner when Claude's turn ends. Each one is a checkbox. - Follow docs/SETUP.md: create the two MIDI ports and pick "Claude Bridge" in FL's MIDI settings. It takes about 5 minutes, once.
Option 2: from source
git clone https://github.com/xoxoFaith1993/claude-fl-studio-bridge
cd claude-fl-studio-bridge
python tools\install_fl_scripts.py # copies the FL-side scripts into FL's user data folder
python tools\connect_claude.py # claude mcp add + banner hooks (--print to just show them)
python server\config.py # shows the settings it found (FL path etc.)
Then do the MIDI and FL steps in docs/SETUP.md. To build the installer yourself, see docs/BUILDING.md.
Check it works
Start a new Claude Code session and ask: "Check the FL Studio connection." Claude calls fl_status and
should report your tempo and channel count. If anything fails, ask "Run the FL doctor" (or run
python tools\doctor.py): it checks each step and tells you the fix.
Settings
Everything machine-specific is in one file, %APPDATA%\claude-fl-studio-bridge\config.json (start from
config.example.json): the FL path (auto-detected), where new projects go, the MIDI port
names, the banner text, the colour for new items, and the calibration values for the click-based tools.
python server\config.py prints what's in use and where each value came from.
Good to know
- Security: the bridge runs Python inside FL Studio (that's how it works), and only over local virtual MIDI ports. Don't connect those ports to anything you don't trust. See SECURITY.md.
- Rough edges: the honest list is docs/KNOWN_ISSUES.md.
- Not affiliated with Image-Line (FL Studio) or Anthropic (Claude). FL Studio is a trademark of Image-Line.
Sister project
Claude Krita Bridge does the same for
Krita: Claude adds and edits layers in your open Krita canvas while you paint, with
optional AI cut-out, object removal and colour matching. Both bridges share one pattern: a small server with no
dependencies, a plugin inside the app, a single config.json, and red labels on everything Claude adds.
Contributing
It's never perfect, and that's the point of sharing it. Good first issues: calibrating on other FL versions and screen scalings, testing Windows MIDI Services, new tools (see ARCHITECTURE.md), and docs. Read CONTRIBUTING.md and the Code of Conduct.
Thanks
- FL-Studio-API-Stubs by MaddyGuthridge: the reference for every FL scripting function.
- Other FL Studio MCP projects that shared ideas: karl-andres/fl-studio-mcp, rosasynthesiz/flstudio-mcp,
dawhubapp/flstudio-mcp. PyFLP for reading
.flpfiles.
Licence
GPL-3.0. You can use, study, change and share it. If you share a changed version, it has to stay open source under the GPL too.