kuruitsugizaki
Use kuruitsugizaki to configure a Windows FL Studio setup, read/write .flp projects, control and inspect live FL, render/analyze audio, and discover plugins, presets, parameters, samples, and project profiles.
Configure machine paths and install/repair FL’s controller script and loopMIDI link.
Read .flp files in compact, summary, full, or score views to inspect notes, clips, mixer, automation, and arrangements.
Write new or edited .flp projects from JSON, including instruments, plugins, presets, samples, patterns, automation, mixer effects/routes/volumes.
Open and play projects in FL, and control live playback with transport actions.
Render projects to WAV/MP3 and get spectrograms, loudness, stereo, onset, and report analysis.
Call FL’s live scripting API directly for reads or changes in the open project.
Discover installed plugins, presets, automatable parameters, sample folders, and profiles of existing projects.
Use FL factory sounds or user samples, with caching and optional measurement.
kuruitsugizaki
An MCP server that lets a model read and write FL Studio projects and drive a running FL Studio, so it can write music.
The model does not listen. A render comes back as numbers and pictures (spectrograms, loudness, stereo width), and the person listens and decides.
Factory Seance, two minutes of glitchy witch house and breakcore, was written start to finish by Claude Opus 5.5 through this harness, in about 35 minutes: every note, drum hit, sound choice, mixer route and automation clip, from FL's factory sounds only. Nobody edited it; the person who asked for it listened afterwards and kept it as it was. Listen: examples/seance.mp3, the clip with sound: examples/demo.mp4, how it was made: examples/seance.md.
https://github.com/user-attachments/assets/d5ddff3b-1f48-4249-9a7c-0230aac6e610
Splinter Engine, made with 0.4.0.
https://github.com/user-attachments/assets/2984c857-38cc-4384-b51d-e807018261eb
Seven Lamps, made with 0.4.4.
https://github.com/user-attachments/assets/355de51f-cf49-410f-94c3-5f754773bfa7
Windows only for now. To install it, follow INSTALL.md. Everything past setup and the tools (how to write a piece, the file format, traps, decisions) is under docs/, starting at docs/INDEX.md.
Requirements
Windows, FL Studio 2025. Built and measured on FL 25.1.6, scripting API 38.
loopMIDI with at least one port. FL loads the controller script only when its MIDI input port exists.
Python 3.12 or newer and
uv.ffmpegandffprobeon PATH, for the analysis scripts.
Related MCP server: FL Studio MCP Server
Setup
The short way: close FL and double-click setup.bat. It installs what is missing (uv, loopMIDI, optionally ffmpeg), builds the environment, installs FL's controller script, makes the MIDI port and FL's MIDI setting, adds the server to the Claude desktop app, and ends with a check that FL answers. INSTALL.md lists every step and where it lands.
By hand, the same in four moves (INSTALL.md, By hand, has the detail):
uv syncRegister the server with the MCP client, with the path to this folder:
"kuruitsugizaki": { "command": "<this folder>\\.venv\\Scripts\\kuruitsugizaki.exe" }Then, in a chat with the model, FL closed:
It calls
config. On a standard install every path is found by itself (FL underProgram Files\Image-Line, the rest under your Documents folder) and shows asdetected; for anything not found it asks you where it is and sets it; it does not guess. The keys are inkuruitsugizaki.example.json; what you set is stored inkuruitsugizaki.jsonhere, which git ignores.It calls
fl_install, which writes the controller script into FL'sSettings\Hardwarefolder with this folder's bridge path filled in, adds a loopMIDI port namedkuruitsugizakiand assigns the script to it in FL's MIDI settings. Both of those live in the registry, and FL overwrites its own when it closes, which is why FL has to be closed.Only when
fl_installanswers that it could not make the MIDI setting: in FL, Options, MIDI settings, select a loopMIDI input port, controller type kuruitsugizaki, and restart FL once.
Script output in FL shows kuruitsugizaki {'api': 38, ...} on load. .venv\Scripts\python scripts\doctor.py prints one line per requirement, any time.
The server opens FL only for a project: project_write(open=true) and fl_render. Other live tools answer that FL is closed instead of starting it; fl_probe starts it to test the link and closes it again, and a first-time saved plugin state is made in FL and FL closed again (Plugins by name). An FL you started yourself is used when it is the only one open, and the result says so; the server closes only FLs it started, and with several FLs open and none of them its own it does nothing until you close the extra ones. Before acting on an FL you started, the server copies the project it has open to tmp/backups/<name>-<time>.flp, once per project per server run; the result says where the copy went and whether FL holds unsaved changes the copy lacks. FL gives no path, so the file is found by its name in the window title, and an untitled project is not copied. When FL crashes, the server reads the cause from Windows' Application log (faulting module, exception code) and returns it; an FL the harness started is closed with its crash handler and the Windows crash dialog, while a crashed FL of yours keeps its dialog. When FL shows a dialog and stops answering, the result names it and saves a picture of it to tmp/fl_dialogs/, and nothing more is sent to FL while it is up. A harness FL whose project FL reports changed is saved before it is closed, so closing never stops at "Save changes?".
Layout
file | what |
| the MCP server: tools, and the live link to FL |
| the machine paths, read from |
| the one-step install ( |
| undoes the setup: controller script, the MIDI port and FL's MIDI setting, the Claude entries, saved plugin states; settings move to |
| for MCP directories' automated checks: runs the server on Linux, where the file tools work and the live link to FL answers that it needs Windows |
|
|
| the loopMIDI port and FL's MIDI input setting, both in the registry: reads them, and makes them when no input has the script |
| FL controller script; |
|
|
|
|
| compact, summary and score views, compact -> full |
|
|
| what CI runs, no FL needed: templates round-trip, a project from shipped parts builds and reads back, profile, the server's tool list; on Windows with FL also every example |
| project JSON -> |
| automation points (event 234) and targets (event 227) |
| mixer fader and main volume records in event 225 |
| mixer effect blocks: read one from any FL-saved project, place it in a track's slot |
| puts a preset into a plugin channel's state: |
| each synth's preset format, and |
|
|
|
|
| render -> PNG: semitone piano-roll spectrogram, chroma, 20 Hz-20 kHz spectrogram, RMS/peak, L/R correlation, ghost % over time with wash stretches ( |
| the wash check |
| integrated and momentary LUFS, LRA, true peak, RMS |
| stereo density heatmaps per moment and band, |
| A/B of several renders at several zooms around each file's loudest second |
| hit onsets of a WAV, for chopping loops |
| cuts time ranges of a file into their own WAVs with short fades, optionally reversed |
| vocal -> syllables with a median pitch each |
| the index behind |
| how every long list is cut: one item from each equal slice, first to last, at a random place in it, so each call differs |
| how setup, doctor and uninstall print: a rule per section, aligned rows with a coloured status |
| setup's path questions ( |
|
|
| per-instrument note overview of a project |
| sent through |
| Serum 2 host-parameter mapping (parked) |
| Sylenth1's 244 parameter names in blob order |
| the template new projects are built from |
| the block effects by name are built on (config |
| seven small documents, one per part of the format (instruments, effects, routing and sidechain, global, mixer and instrument automation), and a full two-minute piece with its script, notes and render; |
| parameter maps, one TSV per plugin: 27 of FL's own and 22 VST3s, listed in |
Tools
tool | does |
| no arguments: every path key, its value or the path detected for it, and whether it exists; with |
| installs the controller script into FL's Hardware folder with the bridge path written in and, with FL closed and unless an input in FL already has the script, adds a loopMIDI port named |
|
|
| JSON (compact or full) -> |
| a table of the |
| the user's sample folders from config |
| saves and closes an FL the harness started, then runs |
| a finished render: the short report and the spectrogram picture together; says so while the render is still running |
| play / stop, song / pattern mode; needs a project open in FL |
| the VST3 and CLAP plugins FL has installed, and every instance in the optional library project (see Plugins by name); |
| a plugin's preset ids, filtered by words; the id goes into |
| a library plugin's parameters from |
| raw access to FL's Python API inside the running FL; |
project_read, project_write, profile, plugins, presets and params reload the codec modules on every call; a change to server.py, flex.py or diva.py needs an MCP restart, and a new tool reaches a client only in a session started after it.
The template
projects/init/init.flp, saved by FL: a Sampler, FLEX, one audio channel and one automation clip; a mixer of inserts 1-125, no effects; a project routing past 125 is refused. Every plugin but FLEX loads by name; Serum 2, Vital, Diva and Sylenth1 take a preset ({"kind": "plugin", "plugin": "Vital", "preset": "<id>"}) into a state FL saved for them (Plugins by name). A template of your own holding them still works, matched by name: Serum2, FLEX, Vital, Sylenth1, Diva(x64).
Effects
An effect goes in by name: any effect FL has installed (Plugins by name). The first effect in projects/init/fx.flp is the block by-name effects are built on (config effect_template).
Plugins by name
Every plugin FL has installed can go into a project by name, with nothing to prepare: FL's plugin manager keeps one entry per plugin in its Plugin database (Documents\Image-Line\FL Studio\Presets\Plugin database, config key plugin_db, found by itself), and the writer builds the plugin from it on the template's blocks, fresh, as dragging it in from FL's browser does. plugins lists them; project_write takes an instrument as {"kind": "plugin", "plugin": "<name>", "preset": "<id>"} and an effect as mixer.effects: [{"track": t, "slot": s, "plugin": "<name>", "preset": "<id>"}]. A plugin installed in several formats is one name; add "format": "vst3" (or native, clap, vst) to pick one. A plugin FL has not scanned is not listed: run FL's plugin manager first. plugins leaves out what config hide_plugins names: by default FL's controllers, visualizers and notebooks, the VFX and FL Studio Mobile entries, Fruity Delay 2 and the first Parametric EQ, and every VST2 build. An entry is a name or * pattern, <format>:<name> for one format only, or category:<folder> for a category of FL's Plugin database. Setting the key replaces the default list. A hidden plugin cannot be written by name either.
Optionally, one project FL saved can hold tuned instances you want reused as they are, each instrument on its own channel, each effect in a mixer slot; set its path as config key library. A library instance wins over a fresh one of the same name.
Presets, listed by presets:
.fstfiles, from FL's factory and user Plugin presets folders (config keysfl_presets,fl_user_presets, found by themselves). FL writes one for any plugin from its plugin menu, VSTs included (a wrapped VST's go intoFruity Wrapper - <name>), so saving a sound there makes it usable by name.Vendor preset files, found by default for Krush (
ProgramData\Tritik\Krush), Portal (ProgramData\Output\Portal\Presets), spiff (ProgramData\oeksound\spiff\Presets) and ShaperBox 3 (APPDATA\Cableguys\ShaperBox3, named by the preset name inside each file), and for any other plugin from the folders config keyvst_presetsnames:{"<plugin>": {"ext": ".vpreset", "dirs": {"": "<factory folder>", "user": "<user folder>"}}}. An entry there replaces a plugin's default. JUCE XML presets whose plugin keeps more in its state than the preset holds, as Krush and spiff do, are merged into that state; the rest replace it.Serum 2, Vital, Sylenth1, Diva and FLEX presets, from each plugin's own default folder plus any folders config
serum2_presets,vital_presets,sylenth1_presets(limited tosylenth1_folders) anddiva_presetsadd, and fromflex_packs. When a key has more than one folder, ids start with the folder's name. These presets, and vendor files fromvst_presets, load into a saved instance of the plugin. The first time one is needed,project_writeopens the plugin in FL, saves it, and keeps that state intmp/states/, which takes a few seconds once per plugin.NKS
.nksfpresets for any VST3 plugin, matched to it by the plugin id inside the file, from Native Instruments' User Content, the libraries in Public Documents, and confignks_presets; they need no saved instance.Presets built into a plugin, for a VST3 plugin with a parameter named
Program, such as TDR Kotelnikov: the harvest steps that parameter in FL and keeps each preset's state intmp/states/<plugin>.programs/, dropping exact duplicates such as empty user slots. A plugin with no preset files shows them afterpresets(plugin, harvest=True).
Parameter maps: open a copy of the library in FL (the sweep leaves every knob at 1) and send the text of scripts/params_fl.py through fl_exec once. Then _kz_dump('tmp/params/pass1_all.json'); for each v in 0, .25, .5, .75, 1, four separate fl_exec calls, _kz_sweep(v, 'set'), _kz_sweep(v, 'nudge'), _kz_sweep(v, 'back'), _kz_read('tmp/params/sweep_<v>.json') (a display read in the call that set it is stale); then python scripts/parammap.py writes docs/params/. Each function takes only and skip lists of plugin names as FL reports them (docs/params/INDEX.md, column as FL names it).
Project JSON, compact form
{
"format": "compact",
"base": "projects/init/init.flp",
"project": {"bpm": 175, "ppq": 96},
"instruments": [{"id": "lead", "kind": "plugin", "plugin": "serum2", "preset": "C:/presets/lead.SerumPreset", "mixer": 1},
{"id": "keys", "kind": "plugin", "plugin": "flex", "preset": "Hard 808s/808 Clean Fuzz", "mixer": 2},
{"id": "pad", "kind": "plugin", "state": {"from": "projects/my_song.flp", "channel": 3}, "mixer": 3}],
"samples": [{"id": "snare", "kind": "audio", "path": "C:/samples/snare.wav", "mixer": 8}],
"automation": [{"id": "fade", "kind": "automation", "target": {"mixer": 0, "param": "vol"}, "points": [[0, 0.8], [32, 0.0]]}],
"mixer": {"volume": {"1": 0.729, "7": 0.434}, "main_volume": 0.6625},
"note_cols": ["bar", "beat", "tick", "len", "key", "vel", "inst"],
"patterns": [{"id": "lead_a", "notes": [[1, 1, 4, 66, "A#4", 96, 0], [1, 2, 3, 18, "G#4", 80, 0]]}],
"clip_cols": ["track", "bar", "beat", "tick", "len", "src", "trim?"],
"arrangements": [{"name": "Arrangement", "clips": [[5, 17, 1, 0, 1536, "lead_a"], [4, 17, 3, 0, 31, "s0"], [20, 1, 1, 0, 27648, "a0"]]}]
}Time:
[bar, beat, tick], 1-based bar and beat, 96 ticks per beat, 4/4. Lengths in ticks. Exact integers; no grid is imposed.Keys: note names, MIDI 60 = C4 (FL's own UI calls MIDI 60 C5). Flats accepted.
Pointers: a note's
instis an index intoinstruments. A clip'ssrcis a pattern id,s<N>(sample N) ora<N>(automation N), so no instrument or pattern id may look likes1ora1.Patterns hold notes for any number of instruments. A clip's
lensets how much of a pattern plays.Instruments:
state: {from: file, channel: n}copies that channel whole, preset and routing included, from any FL-saved project, switched on even when it was muted there (muted: truekeeps it off;project_readreports a muted channel withmuted: true); or any plugin by name (Plugins by name).presetloads a sound into it: an id frompresets, or a.SerumPreset,.vital,.h2por.fxppath, or<pack>/<preset>for FLEX.mixer: nroutes it. Serum 1.fxpare not supported.Sampler channels:
"kind": "sampler"with apathloads that file into a sampler, so notes pitch it (C4 = original pitch). A sampler plays its sample to the end whatever the note length; cut chops to their own files first (chop.py).Song mode: compact documents are saved in song mode so FL and its command-line render play the arrangement;
project.song_mode: falsesaves pattern mode.Samples:
path, orstateto copy one. An audio clip withouttrimplays the whole sample;trimis[start_ms, end_ms]into the sample. A path may start with%FLStudioFactoryData%, FL's own token for its install folder, so%FLStudioFactoryData%/Data/Patches/Packs/Drums/Kicks/808 Kick.wavfinds FL's factory kick on any machine.Project info:
projecttakestitle,author,genreandcomment, written into FL's project info (FL shows the title in its window), andproject_readreturns them.Automation:
pointsare[beat, value, tension?]in beats from the clip start. Targets:{"global": "tempo" | "main_pitch"},{"mixer": t, "param": "vol" | "pan" | "sep"}(insert 0 is the master: its fader is the overall level),{"mixer": t, "slot": s, "param": n}(effect parameter n),{"mixer": t, "slot": s, "rec": "0x1f00"}(the slot's mute) or"0x1f01"(its mix),{"channel": id, "param": n}(instrument parameter n) or{"channel": id, "param": "vol" | "pan" | "pitch" | "fcut" | "fres" | "mute"}. Values: tempo = (bpm - 60) / 120; main pitch 0.5 in tune, +-12 semitones; mixer volume 0.8 = 0 dB; pan 0 left, 0.5 centre, 1 right; sep 1 mono, 0 widest; channel pitch 0.5 in tune, +-48 semitones; channel volume 0.78 is FL's default.{"global": "main_vol"}is written but FL 2025 ignores it.examples/README.mdlists the scales measured so far (fcut, fres and mute are written but their scales were not measured).Mixer effects:
mixer.effects: [{"track": 3, "slot": 0, "plugin": "<name>", "preset": "<id>"}]puts that effect in the given slot, replacing what was there;from: {file, track, slot}in place ofplugincopies one with its settings from a saved project.Mixer routes:
mixer.routes: [{"from": 11, "to": 10, "level": 0.0}]routes insert 11 to insert 10;level0 is a sidechain-only send, which is what a sidechained limiter or compressor listens to."on": falseremoves a route.Mixer volume:
mixer.volumemaps insert -> fader, 0.8 = 0 dB;main_volumeis FL's global main volume.base: the file whose globals, unmapped sections, arrangement track templates and mixer are kept. Building on one of your own projects keeps its mixer chains. Default: the
templatekey.
The compact form leaves out bytes that are not mapped. For editing an existing project without losing anything, use view="full".
Not written yet
Mixer pans and sends as static settings; a plugin FL's plugin manager has not scanned; pattern names; time signature; vendor preset files for VSTs whose state is neither JUCE XML nor #zip# (an .fst saved from FL is their route). See docs/FLP.md, Open.
License
MIT, see LICENSE. It covers this code and these docs, not FL Studio, the plugins or their presets.
Available Tools
15 toolsconfigAIdempotent
The paths on this machine the server needs (FL, loopMIDI, FL's Hardware folder, preset libraries), stored in kuruitsugizaki.json. Call it first in a new install, and whenever another tool answers that a key is not set. No arguments: every key with its value or the path detected for it, and whether that path exists. key alone: that key. key and value: set it. Never guess a path or search the disk for one: ask the user where it is, then set it.
Inputs: key, value.
fl_callADestructive
Call one function of FL's scripting API inside the running FL and return what it returns: {ok, value} or {ok: false, error}. For a single read or change, e.g. a parameter name or a mixer level of the open project. Use fl_exec for several calls or logic; use project_read and project_write for anything the .flp file holds, which need no FL. A setter changes the open project as an edit by hand would; nothing is saved. Needs FL open; it is not started for this.
Inputs: fn (required), args.
fl_execADestructive
Run Python inside the running FL's embedded interpreter, where FL's modules (channels, mixer, plugins, transport, patterns, general ...) import. For live reads or changes that need several calls or logic; one call is simpler with fl_call. Returns {ok, value} with what the code assigns to result, or {ok: false, error} with the traceback. FL's sandbox refuses files, sockets and pipes. Changes act on the open project and are not saved. Needs FL open; it is not started for this.
Inputs: code (required), out, timeout.
fl_installADestructiveIdempotent
Set up the live link to FL. Needed once per install, and again after this folder moves. Close FL first. It does two things: 1) writes FL's controller script into FL's Settings\Hardware folder (config key fl_hardware), with this folder's bridge path in it, replacing an older copy; 2) unless a MIDI input in FL already has the script, makes a loopMIDI port named kuruitsugizaki and assigns the script to it in FL's MIDI settings. Both live in the registry, which FL rewrites when it closes; if FL was open, the answer's midi entry says so and what to do by hand. Returns {ok, installed, bridge, changed, midi, next}. Then start FL and call fl_probe to see the script answer.
Inputs: no named parameters.
fl_probeAIdempotent
Check the live link to FL: returns FL's scripting API version, its embedded Python version, FL's pid and the pipe handle it holds, or an error saying what is missing. Call it first when a live tool (fl_exec, fl_call, fl_transport, project_write with open) fails, and after fl_install. When FL is closed it starts it (and loopMIDI) to test the link and closes it again: launched_fl_seconds says how long FL took, closed_fl that it was closed. Reads nothing from the project.
Inputs: no named parameters.
fl_renderADestructiveIdempotent
Render an .flp to audio: a .wav and .mp3 beside it (replacing earlier ones), then a spectrogram and a short report. Call it after project_write to check a piece. FL renders from the command line, so an FL the harness started is saved first and closed; an FL the user started is left alone and the render refused until they close it. Runs detached and returns at once; a 2-minute piece takes under a minute. Returns {ok, rendering, log, saved_open_project}. Then call render_report(path) until it stops saying the render is running, and make no live call (fl_exec, fl_call, fl_transport) before that: FL is closed while it renders.
Inputs: path (required), key, reopen.
fl_transportAIdempotent
Play or stop whatever project is open in the running FL, to hear it; it changes nothing in any file. action 'play' plays from the start, also when called while playing. action 'stop' stops playback. mode 'song' plays the arrangement, 'pattern' loops one pattern (pattern: its number, selected first); without mode FL keeps the one it has. Needs FL open with a project; it is not started for this: open one with project_write(open=true), which can also start playback itself (play='song'). Returns {playing, mode}. To get audio out, use fl_render, which saves and closes FL instead.
Inputs: action (required), mode, pattern.
paramsARead-onlyIdempotent
A plugin's automatable parameters, for writing automation: each one's index (the param of an automation target {channel: id, param: index} or {mixer: t, slot: s, param: index}), its name, and what its normalised value means where measured (FL's display at 0, .25, .5, .75 and 1, so a value can be picked for a wanted Hz, dB or %). Call it before automating a plugin or effect knob. It answers only for plugins with a parameter map (plugins shows which); for any other, read names live with fl_call('plugins.getParamName', ...). Not for choosing a sound: plugins lists what is installed, presets a plugin's presets. Reads files only; FL need not run.
Inputs: plugin (required), kind, query.
pluginsARead-onlyIdempotent
List the plugins this machine has: every plugin in FL's plugin database, and every tuned instance in the optional library project. Call it to choose instruments and effects before project_write; then presets for a plugin's presets, params for its automatable parameters. Each row: name, kind (instrument or effect), vendor, format (native, vst3, clap, vst), source (fl or library), how many presets load by name, whether it has a parameter map. Any of them goes into project_write by name: an instrument as {kind: plugin, plugin: , preset?, format?}, an effect as mixer.effects [{track, slot, plugin: , preset?, format?}]; without a preset it arrives as if dragged in fresh from FL's browser, a library instance as saved. A plugin installed in several formats is one name (native, then vst3, clap, vst unless format is given). By default it lists only VST3 and CLAP plugins; native=true adds FL's own. Reads files only; FL need not run.
Inputs: query, native.
presetsAIdempotent
List the presets that load by name for one plugin; an id goes into project_write as an instrument's or effect's preset. Call it after plugins, when choosing a sound. Returns {plugin, kind, total, presets}; total counts every match, and when there are more than limit the list is an even spread across the preset folders, each folder an equal share, not the first ones. A plugin name that matches nothing or several plugins returns {ok: false, error} naming the candidates. Reads files only and FL need not run, except with harvest, which opens the plugin in FL and adds its built-in presets to the catalog.
Inputs: plugin (required), kind, limit, query, +1 more.
profileAIdempotent
List a person's projects from a folder of their .flp files: tempo, key and arrangement length in bars, so you know which to open and read in full with project_read. Reads every .flp under the folder, subfolders included, and changes none of them; FL need not run; about 2 s for 80 projects. Also written as profile.md and profile.json to tmp/profile//. Projects that fail to read are listed, not fatal; a folder with no .flp returns {ok: false, error}. Without folder it reads config projects_folder; when that is not set, ask the user where their own projects are and pass that folder, which is then saved there, so later sessions do not ask again. When they have none, set projects_folder to 'none' with config, and profile then answers that.
Inputs: folder.
project_readARead-onlyIdempotent
Read one FL Studio .flp file into JSON; FL need not run and the file is not changed. Use it to see what a project holds, to take parts from it, or to check what project_write wrote. For the style across many projects use profile; for the project open in FL right now, fl_exec. Views: 'summary' (start here: instruments, per-pattern stats, a per-track arrangement timeline, the parts sounding in each bar, mixer effects); 'compact' (default: every note and clip as rows, the same shape project_write accepts; notes [bar, beat, tick, len_ticks, key, vel, instrument#], clips [track, bar, beat, tick, len_ticks, src, trim?] where src is a pattern id, s a sample, a an automation clip); 'full' (exact, round-trips byte for byte; large, so narrow it with patterns or arrangements); 'score' (a bar range of the first arrangement as text, one row per step and one column per part, so how the parts line up can be read; bars [first, last]). Fails with the parser's error on a file that is not an .flp.
Inputs: path (required), bars, view, unused, +2 more.
project_writeADestructiveIdempotent
Write a project document to an .flp file, replacing any file at path. This is how a piece gets made.
The document: the compact form project_read returns, or its full form. The field reference is README.md, 'Project JSON, compact form'; examples/README.md has a working document per feature. Read one before a first write.
Sounds:
an instrument is a plugin by name (see plugins) with an optional preset, or a channel copied from a saved project, state {from: file, channel: n};
an effect is mixer.effects {track, slot, plugin} or one copied, {track, slot, from: {file, track, slot}}.
Units that are easy to get wrong: 96 ticks per beat, 4/4; keys like 'D#4' with MIDI 60 = C4; mixer volume 0.8 = 0 dB; a tempo automation value is (bpm - 60) / 120. Mixer inserts run 1-125.
Without open, FL need not run. With open or play, FL first saves the project it has open (so no dialog appears), then opens this one.
Returns the file read back (channels, notes per pattern, clips per arrangement) and the writer's warnings; read them.
Inputs: doc (required), path (required), open, play.
render_reportAIdempotent
Read what fl_render produced: the short report (length, peak, key, the number of parts sounding in each bar, and a flag only where something is found) and the spectrogram picture, as [text, image]. Call it after fl_render; it does not wait, and while the render is still going it says so: call again. With no render on record it answers to call fl_render first; a render that failed comes back as its log. Look at the picture before handing a piece over; the full analysis is in the .txt the report names. FL need not run. It writes into tmp/spectro/ only: a resized picture, and the spectrogram and its .txt again from the .wav when the log has no analysis.
Inputs: path (required).
samplesAIdempotent
List samples for drums, one-shots, loops and breaks; a sample's path (its folder plus its name) goes into project_write as a sampler's or audio clip's path. Call it before choosing any sample, and take samples only from folders the user gave.
No arguments: the user's sample folders, each with its subfolders and how many audio files each holds. With query, the samples whose path matches; with folder, that folder's subfolders and files, and a query stays inside it. Returns {total, results: {folder: [[name, seconds]]}}; past limit the list is an even spread across folders.
When config sample_folders is not set it returns {ok: false, error}: ask the user where their samples are and set it with config (a folder or a JSON list), or 'none' when they have none, which makes FL's factory packs the source; the answer is kept.
Changes no sample file; FL need not run. It caches folder listings in tmp/samples/index/; measure also writes tmp/samples/.tsv.
Inputs: limit, query, folder, measure, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Each tool targets a distinct stage of the FL Studio workflow: setup/diagnostics, project file read/write, live scripting, transport, rendering, and metadata discovery. The only close pair is fl_call vs fl_exec, but the descriptions clearly separate single API calls from multi-call Python logic. Resource-specific tools like plugins, presets, params, samples, and profile are all clearly differentiated.
Names are consistently snake_case and use meaningful prefixes: fl_* for live/FL-facing operations and project_* for file operations, with bare nouns for catalog/config tools. There are minor deviations from a uniform verb_noun pattern, such as profile, samples, plugins, fl_probe, and fl_transport, but the grouping is still readable and predictable.
Fifteen tools is at the upper end of the ideal range but appropriate for a complex domain spanning setup, project file generation, live control, rendering, and asset discovery. Each tool has a clear role and does not appear redundant within the set.
The surface covers setup, diagnostics, project reading/writing, live API/Python access, transport, rendering, and plugin/sample/preset/parameter discovery comprehensively. Minor gaps remain around explicitly saving live edits and file-level operations such as delete/rename, though these are partly workable through project_write or fl_exec.
Maintenance
Related MCP Connectors
Read and edit DAW projects as an agent, save native Logic projects, convert projects between DAWs
Browser DAW for AI assistants: build multitrack songs with MIDI, effects, stems and generation.
Compose, mix, master and export in Logic Pro, REAPER or Ableton Live by talking to an AI engineer.
Score video, make music as an agent: 100+ AI instruments play your MIDI, audio, stems, Logic/Ableton
Related MCP Servers
- AlicenseBqualityBmaintenanceA Model Context Protocol server that enables AI agents to create fully mixed and mastered tracks in REAPER DAW, supporting project management, MIDI composition, audio recording, and mixing automation.61192MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to control FL Studio through MIDI communication, providing transport control, mixer adjustments, channel rack manipulation, plugin parameter automation, and piano roll note editing capabilities.289MIT
- AlicenseBqualityAmaintenanceConnects AI assistants to REAPER for music production, enabling full control over tracks, MIDI, mixing, mastering, and audio analysis through 153 tools across 24 modules.174134Apache 2.0
- AlicenseCqualityAmaintenanceA comprehensive MCP server that enables AI assistants to control REAPER DAW for mixing, mastering, MIDI composition, and full music production workflows with 130 tools.1871,130 PyPI117MIT