flstudio-mcp

v2.0.0
io.github.rosasynthesiz/flstudio-mcp Checked 4 hours ago Published 4 days ago

FL Studio MCP server: AI mixing, mix diagnosis, plugin control, patterns and composition.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

fl_ping Ping FL Studio

Check that FL Studio is running and the controller script is loaded. Returns `status` (READY, FL_CLOSED, CONTROLLER_MISSING, NO_HEARTBEAT, VERSION_MISMATCH, ...) and `next`: the one step that fixes it. Call this first, and again whenever another tool fails.

fl_get_tempo Get tempo (BPM)

Return the current FL Studio project tempo in beats per minute.

fl_set_tempo Set tempo (BPM)

Set the FL Studio project tempo. Range is 10-999 BPM (FL's own limits). Reversible like every other write: fl_rollback_last_change restores the tempo that was set before.

ParameterTypeDescription
bpm *numberTarget tempo in BPM, FL accepts 10-999.

fl_play Play

Start playback. Idempotent — calling while already playing is a no-op.

fl_stop Stop

Stop playback. Idempotent.

fl_toggle_play Toggle play

Toggle between play and stop, mirroring the spacebar in FL.

fl_record Toggle record

Toggle FL Studio's record-arm state.

fl_get_play_state Get play state

Return whether FL is currently playing and / or recording.

fl_get_song_position Get song position (beats)

Return the current playhead position in beats from the song start.

fl_set_song_position Set song position (beats)

Move the playhead to the given beat position.

ParameterTypeDescription
beats *numberPosition in beats from song start.

fl_get_project_state Get project state

Tempo, transport state, pattern/channel/mixer counts.

fl_get_mixer_state Get mixer state

All mixer tracks (index, name, volume, pan, mute, solo). Names in this overview are truncated; use a single-track read for the full name.

fl_get_channel_state Get channel state

All channel-rack channels (index, name, volume, pan, mute, solo).

fl_set_mixer_volume Set mixer track volume

Set a mixer track volume. unit='db' uses 0.8=unity (0 dB).

ParameterTypeDescription
track *integerMixer track index (0 = Master).
value *numberVolume; normalized 0..1 (0.8=unity) or dB.
unitstring'normalized' or 'db'.

fl_set_mixer_pan Set mixer track pan

Set a mixer track's pan position (-1 left .. +1 right).

ParameterTypeDescription
track *integer
value *number-1 left .. +1 right.

fl_set_mixer_mute Set mixer track mute

Mute or unmute a mixer track (state=True mutes).

ParameterTypeDescription
state *boolean
track *integer

fl_set_mixer_solo Set mixer track solo

Solo or unsolo a mixer track (state=True solos).

ParameterTypeDescription
state *boolean
track *integer

fl_set_mixer_name Set mixer track name

Rename a mixer track.

ParameterTypeDescription
name *string
track *integer

fl_set_channel_volume Set channel volume

Set a channel-rack channel's volume. unit='db' uses 0.8=unity (0 dB).

ParameterTypeDescription
channel *integer
value *numberNormalized 0..1 (0.8=unity) or dB.
unitstring'normalized' or 'db'.

fl_set_channel_pan Set channel pan

Set a channel-rack channel's pan position (-1 left .. +1 right).

ParameterTypeDescription
channel *integer
value *number

fl_set_channel_mute Set channel mute

Mute or unmute a channel-rack channel (state=True mutes).

ParameterTypeDescription
channel *integer
state *boolean

fl_set_channel_solo Set channel solo

Solo or unsolo a channel-rack channel (state=True solos).

ParameterTypeDescription
channel *integer
state *boolean

fl_take_snapshot Take snapshot

Read current state for a scope (for your own before/after diffing).

ParameterTypeDescription
scope *string'mixer_track:N' | 'channel:N' | 'mixer_all' | 'channels_all'

fl_rollback_last_change Rollback last change

Undo the most recent write by replaying its pre-change snapshot.

fl_set_dry_run Set dry-run mode

When on, write tools return a 'planned' preview without changing FL.

ParameterTypeDescription
enabled *boolean

fl_write_piano_roll_notes Write piano-roll notes

Write notes into the currently-open FL Piano roll. Each note: {pitch (MIDI), time_bars, length_bars, velocity 0-1, porta (optional, slide into the note)}. Set quantize (grid in bars) to snap note starts to a grid before writing. Setup: open the Piano roll and run 'MCP_Apply' once from its Scripting menu (so Run last script again targets it). mode='replace' clears first.

ParameterTypeDescription
notes *array
modestring'replace' clears the pattern first; 'append' adds to it.
quantizenumberOptional grid (bars) to snap note starts to before writing: 0.0625=1/16, 0.125=1/8, 0=off.

fl_quantize_pattern Quantize piano-roll notes

Quantize the notes ALREADY in the open Piano roll: reads the score, snaps note starts (and optionally lengths) to the grid, rewrites -- via the pyscript bridge, no dialog. Needs the Piano roll open + MCP_Apply armed once this session (same setup as note writing).

ParameterTypeDescription
grid_barsnumberSnap grid in bars: 0.0625=1/16, 0.125=1/8, 0.25=1/4.
snap_endsbooleanAlso snap note lengths to the grid.

fl_plugin_list List plugins on a mixer track

List the filled effect slots (0-9) on a mixer track, with plugin names. We cannot load NEW plugins (FL API limit) -- this only reports plugins already present in the project.

ParameterTypeDescription
track *integerMixer track index (0 = Master).

fl_plugin_get_params Get plugin parameters

Every named parameter of the plugin in this slot: index, name, normalised value (0..1) and FL's display string (e.g. '3.6dB', '500Hz'). Returns {"total", "params":[{"i","name","v","s"}, ...]}.

ParameterTypeDescription
slot *integerEffect slot index 0-9.
track *integer

fl_plugin_set_param Set plugin parameter

Set one plugin parameter (normalised 0..1), then VERIFY it landed. ``param`` may be an index or a name; names are resolved from the live param list. The change is logged ONCE and undo-able via fl_rollback_last_change. Returns before/after (unchanged shape) plus the resolved {index, name} and, because the value is checked on a fresh re-read, ``verified: bool`` and ``attempts: int`` (1 = it stuck first try); ``attempts`` can reach 4 (1 write + 3 retries) and a ``hint`` explains a ``verified: false``. RECIPE (FL API limits, measured on FL 26): ``verified`` is the source of truth, not the reques…

ParameterTypeDescription
param *Param index (int) or name (str, e.g. 'Decay time').
slot *integer
track *integer
value *numberNormalised 0..1.

fl_plugin_set_params Set several plugin parameters

Set several parameters of ONE plugin as a single rollback unit. Every entry of ``writes`` (``{param, value}``; ``param`` is an index or a name) is written through ONE safety.safe_write_group call: one changelog entry, so fl_rollback_last_change restores ALL of them back to their original values in one step. Writes are paced 0.4 s apart (FL drops back-to-back writes), each is re-read and retried up to 3 times if it did not land, and ``results`` reports per-param ``{param, ok, verified, requested, attempts, before, after}``. RECIPE: same FL 26 limits as fl_plugin_set_param -- trust ``verified`…

ParameterTypeDescription
slot *integer
track *integer
writes *array1..16 {param, value} entries, all for this ONE plugin.

fl_plugin_find_params Find plugin parameters by name

Search a plugin/generator's parameters by name -- essential for big synths (Serum/Vital expose hundreds of params) where a full dump is unwieldy. Returns the matching {i,name,v,s} entries plus counts.

ParameterTypeDescription
query *stringSpace-separated substrings; a param matches when ALL appear in its name (case-insensitive), e.g. 'filter cutoff'.
slot *integerMixer-track effect slot 0-9, OR -1 for the channel-rack generator (then `track` is the CHANNEL index).
track *integer
limitintegerMax matches to return.

fl_apply_eq_intent Apply an EQ mixing intent

Apply a musical EQ move on a Fruity Parametric EQ 2 using a free band. Sets type/freq/gain/width as one undo-able group; returns the band used and FL's readback strings. Revert with fl_rollback_last_change.

ParameterTypeDescription
intent *stringWhich EQ move to apply.
slot *integerEffect slot of a Fruity Parametric EQ 2.
track *integerMixer track index.
intensitynumber0..1; scales gain (gain=max*intensity). Default 0.5.

fl_apply_reverb_intent Apply a reverb intent

Musical reverb moves on a Fruity Reeverb 2 (decay/wet/high-cut), as one undo-able group. Returns readback strings. Revert: fl_rollback_last_change.

ParameterTypeDescription
intent *stringWhich reverb move.
slot *integerSlot of a Fruity Reeverb 2.
track *integer
intensitynumber

fl_apply_delay_intent Apply a delay intent

Musical delay moves on a Fruity Delay (time division / feedback / wet / feedback-cut), as one undo-able group. Feedback is clamped <=100% unless intensity>0.9 (warns on self-oscillation risk). Returns readback strings.

ParameterTypeDescription
intent *stringWhich delay move.
slot *integerSlot of a Fruity Delay.
track *integer
intensitynumber

fl_get_track_level Get track level (dB)

Measure a mixer track's level by sampling meter peaks over a short window. Requires PLAYBACK -- returns playing=False (avg/peak null) when stopped/silent. {track, playing, avg_db, peak_db}.

ParameterTypeDescription
track *integer
samplesintegerReads over ~samples*100ms.

fl_apply_compression_intent Apply a compression intent

Compress via Fruity Limiter (COMP section) or FabFilter Pro-C. ALWAYS sets ratio AND threshold together; ratio/attack/release/makeup (+ Pro-C Style) per intent, as ONE rollback unit. When level_aware and the track is playing, threshold is set relative to the MEASURED peak (a smart starting point, not exact gain-reduction); stopped -> preset fallback + a note. Returns readback + the measured level / chosen threshold.

ParameterTypeDescription
intent *stringWhich compression move.
slot *integerSlot of a Fruity Limiter OR FabFilter Pro-C.
track *integer
intensitynumber
level_awarebooleanMeasure track level (during playback) and set threshold relative to it; falls back to the preset threshold if stopped/silent.

fl_get_routing Get mixer track routing

Which destination tracks this mixer track sends to: {track, name, routes_to:[{dst, dst_name, level?}]}.

ParameterTypeDescription
track *integerMixer track index (0 = Master).

fl_get_routing_all Get full routing matrix

Routing for every mixer track (paginated under the hood, returned whole): {total, routing:[{i, name, routes_to:[...]}]}.

fl_get_channel_routing Get channel->mixer routing

Which mixer track each channel-rack channel is linked to: {total, channels:[{channel, name, target_mixer_track, target_name}]}.

fl_detect_cleanup_candidates Detect cleanup candidates (read-only)

Flag (do NOT touch) empty channels + unused mixer tracks, each with a reason. Judgement is computed server-side from cheap controller reads. Channel emptiness is a name heuristic; unused-track detection is reliable.

fl_set_route Set mixer routing (src -> dst)

Enable/disable a send from src -> dst (calls afterRoutingChanged on the FL side). Snapshot + readback; undo with fl_rollback_last_change.

ParameterTypeDescription
dst *integerDestination mixer track (0 = Master).
src *integerSource mixer track.
enabledbooleanTrue = route on, False = off.

fl_group_tracks Group tracks into a bus

Group sources into a bus, EXCLUSIVELY: each source -> bus ON and its direct -> Master OFF; bus -> Master ON; optional bus rename. Applied as ONE rollback unit -- fl_rollback_last_change undoes the whole grouping.

ParameterTypeDescription
bus *integerDestination bus mixer track (not Master).
sources *arraySource mixer tracks to route into the bus.
nameOptional new name for the bus track.

fl_solo_tracks Solo a group of tracks

Isolate a group so only it is audible -- mutes every OTHER (non-Master) track. Use category ('drums', etc.) or explicit tracks. Implemented as mute-the-rest (reliable; FL's multi-solo is inconsistent). Reverse with fl_clear_mute_solo. One rollback unit.

ParameterTypeDescription
categoryRole to isolate: 'drums', 'vocals', 'bass', 'synth', 'guitar' (or any track-name substring).
tracksExplicit track indices or name substrings to keep audible.

fl_mute_tracks Mute a group of tracks

Mute a group of tracks (leaves the others as they are). Use category or explicit tracks. One rollback unit; reverse with fl_clear_mute_solo.

ParameterTypeDescription
categoryRole to mute (or any track-name substring).
tracksExplicit track indices or name substrings to mute.

fl_clear_mute_solo Clear all mutes + solos

Unmute and unsolo every mixer track (reset). The universal undo for the bulk solo/mute tools.

fl_set_track_color Color mixer tracks

Set the color of mixer tracks. Pick targets by category ('drums', 'bass', ...) or an explicit tracks list; choose a color by name or hex. All writes are ONE rollback unit -- fl_rollback_last_change reverts them. (Master is never colored.)

ParameterTypeDescription
color *stringColor name (red, orange, amber, yellow, lime, green, teal, cyan, blue, indigo, purple, violet, magenta, pink, brown, gray, white, black) or a hex like '#33A1FF'.
categoryGroup to color: 'drums', 'vocals', 'bass', 'synth', 'guitar' (or any mixer-track name substring).
tracksExplicit mixer-track indices or name substrings.

fl_set_channel_color Color channels

Set the color of channel-rack channels (separate from mixer-track color). Target by index or name substring. ONE rollback unit -- fl_rollback_last_change reverts it. Note: FL's RGBToColor quantizes some colors (live: '#00FF00' reads back as '#14FF14') -- verify with fl_get_channel_color.

ParameterTypeDescription
color *stringColor name or hex (same set as fl_set_track_color).
channelsChannel-rack indices or name substrings to color.

fl_get_channel_color Read channel color

Channel color: {channel, color:{int, hex, r, g, b}} -- read-only counterpart of fl_set_channel_color.

ParameterTypeDescription
channel *integerChannel Rack index.

fl_get_track_color Read mixer track color

Mixer track color: {track, color:{int, hex, r, g, b}} -- read-only counterpart of fl_set_track_color.

ParameterTypeDescription
track *integerMixer track index.

fl_arrange_new_pattern New named pattern (selects it)

Create + select + name the next empty pattern. After this, the note bridge (fl_write_piano_roll_notes) writes INTO this pattern.

ParameterTypeDescription
name *stringPattern name, e.g. 'INTRO'.

fl_arrange_select_channel Select channel (note-bridge target)

Select a Channel Rack channel. An already-open Piano Roll can keep its previous channel; rack selection alone does not verify or retarget that editor. Confirm the Piano Roll target before writing notes.

ParameterTypeDescription
channel *integerChannel-rack channel index.

fl_arrange_clone_pattern Clone a pattern (copies notes)

Clone a pattern (copies its notes) and rename the clone -- e.g. for verse -> verse2 variations.

ParameterTypeDescription
new_name *stringName for the clone.
src *integerSource pattern index.

fl_arrange_add_marker Add a section marker at a bar

Add a named timeline marker at a bar (intro/verse/chorus/drop).

ParameterTypeDescription
bar *integerBar number (1 = song start).
name *stringMarker name, e.g. 'Verse'.

fl_analyze_audio Analyze audio (tempo/key)

Estimate tempo + key (+ duration, beats, onsets) of an audio file. Pure offline analysis -- does NOT touch FL. Key is ESTIMATED.

ParameterTypeDescription
path *stringPath to a WAV/MP3 file (MP3 needs ffmpeg on PATH).

fl_extract_melody Extract melody from audio (pyin/CREPE)

Transcribe a monophonic melody to quantized notes; engine-selectable (CREPE = accurate/heavy, pyin = light). Returns ALL notes with confidence + a `kept` flag; bridge_notes holds only the confident notes, ready for fl_write_piano_roll_notes. Does NOT write to FL -- review first.

ParameterTypeDescription
path *stringPath to a MONOPHONIC source (solo vocal/lead/stem).
bpmOverride BPM for bar quantization; auto-detected if omitted.
enginePitch engine: 'crepe' (accurate, needs [audio-accurate] extra), 'pyin' (light), or 'auto' (default: crepe if installed). Overrides $FLSTUDIO_MCP_PITCH_ENGINE.
min_confConfidence gate 0..1 deciding which notes enter bridge_notes (default 0.8 crepe / 0.0 pyin). ALL notes are still returned with voiced_prob + a kept flag.

fl_extract_chords Extract chords/polyphonic notes from audio (Basic Pitch)

Transcribe POLYPHONIC audio (full chords) to notes with Basic Pitch. Returns a per-bar chord progression and writes every note to a .mid; include_notes also returns bridge_notes for fl_write_piano_roll_notes. Does NOT write to FL; review first.

ParameterTypeDescription
path *stringPath to a WAV/MP3 with chords or several notes at once (keys, piano, guitar stem).
bpmOverride BPM for bar quantization; auto-detected if omitted.
frame_thresholdnumberHigher = fewer, surer sustained notes. Default 0.3.
include_notesbooleanAlso return notes + bridge_notes (first max_notes) for fl_write_piano_roll_notes. Large; use for short clips.
max_notesintegerCap for include_notes. Default 500.
onset_thresholdnumberHigher = fewer, surer note starts. Default 0.5.
save_midibooleanWrite ALL notes to a .mid file in ~/.flstudio-mcp/exports to drag into FL.

fl_write_raga_melody Write a raga/scale MELODY

Write a MELODY (single-line, sequential notes) into the selected channel via the piano-roll bridge. YOU (Claude) generate the swaras for the named raga/root -> MIDI notes (use the proper aarohana/avarohana; respect the raga's allowed swaras); this tool only selects the channel + writes. SHOW the user the notes/swaras BEFORE calling. Needs the Piano roll open + MCP_Apply armed once this session (see the note-bridge setup).

ParameterTypeDescription
notes *array
channelChannel-rack channel to write into (selected first).
modestring'replace' clears the pattern first; 'append' adds.
ragaRaga/scale name (label only), e.g. 'Hamsadhwani'.
rootRoot/tonic (label only), e.g. 'C', 'D#'.

fl_write_raga_chords Write raga/scale CHORDS

Write CHORDS / a progression (stacked notes sharing start times) into the selected channel via the bridge. YOU stack chord tones drawn from the raga/scale (give simultaneous notes the SAME time_bars). Tool selects the channel + writes. SHOW the user the chords BEFORE calling.

ParameterTypeDescription
notes *array
channelChannel-rack channel to write into (selected first).
modestring'replace' clears the pattern first; 'append' adds.
ragaRaga/scale name (label only).
rootRoot/tonic (label only).

fl_list_chains List genre chains

List the built-in genre processing-chain recipes (vocal, drum_bus, bass, master) and their ordered steps.

fl_list_installed_plugins List installed plugins (FL DB on disk)

Read FL's installed-plugin DATABASE from disk (the .fst shortcuts FL writes for every scanned plugin) -> a de-duped, categorized list of what you OWN. Bypasses the FL API (which only sees LOADED plugins). FL still can't LOAD these -- it's for library-aware suggestions. effects_by_role is a rough keyword grouping (Claude should apply its own plugin knowledge). Read-only (directory listing only).

ParameterTypeDescription
kindstring'all', 'effects', or 'generators'.

fl_setup_chain Set up a genre chain (plan)

Plan a genre-appropriate processing chain over a track's EXISTING plugins. READ-ONLY plan: returns the ordered intent calls (each with the matched plugin + slot) and which steps are MISSING because the needed plugin isn't loaded (FL can't load plugins -- add those manually). After the user approves, apply each step by calling its 'apply' tool+args (fl_apply_eq_intent / fl_apply_compression_intent / fl_apply_reverb_intent -- each logged + rollback-able). e.g. vocal: HP -> comp -> presence -> air -> reverb.

ParameterTypeDescription
chain_type *stringRecipe: 'vocal', 'drum_bus', 'bass', 'master'.
track *integerMixer track index.

fl_export_midi Export arrangement to .mid

Write a type-1 multi-track .mid from an arrangement spec. YOU (Claude) generate the whole arrangement -- multiple named tracks, each with notes {pitch, start_bars, length_bars, velocity} across all sections -- and this writes ONE .mid. Bypasses the note-bridge's one-pattern + MCP_Apply limits. Does NOT touch FL: IMPORT the file yourself (FL: File > Import > MIDI file, or drag it into the playlist). FL won't auto-load instruments -- assign a channel to each imported track. Returns the saved file path.

ParameterTypeDescription
tracks *array
beats_per_barintegerTime-signature numerator (4 = 4/4).
bpmnumberTempo (BPM).
output_pathOutput .mid path; defaults to ~/.flstudio-mcp/exports/.

fl_list_presets List presets (from disk)

Read preset NAMES from disk: FL Presets\ (per-plugin 'Plugin presets', plus Channel/Mixer presets) + Serum 2 Presets (.serumpreset). With NO filter -> a SUMMARY (which plugins have presets + counts). With plugin_filter -> that plugin's full preset list. Read-only. FL can't LOAD presets via the API -- this is for suggestions (you load the named preset, then Claude can tweak it).

ParameterTypeDescription
plugin_filterPlugin to narrow to (e.g. 'Serum', 'Fruity Parametric EQ 2'); omit for a summary.

fl_suggest_preset Suggest a preset by description

Suggest presets from YOUR library matching a description, for a given plugin. Reads the plugin's preset NAMES from disk + ranks by name match. Name-only (can't hear the sound) -- apply your own knowledge of preset naming. FL can't LOAD presets via the API: recommend which to load in the plugin manually; AFTER the user loads it you can tweak its params via fl_plugin_set_param / fl_apply_*_intent.

ParameterTypeDescription
description *stringThe sound you want, e.g. 'vintage bass', 'bright pluck'.
plugin *stringPlugin whose presets to search, e.g. 'Serum'.

fl_diagnose_mix Diagnose the mix (Mix Doctor)

Scan the WHOLE mix and report problems + proposed fixes. READ-ONLY. Transparent threshold rules (clipping, headroom, level imbalance, missing high-pass, ungrouped tracks, EQ clashes) on a thin paginated snapshot; returns findings (severity + exact evidence) + concrete proposals. IMPORTANT: this samples peaks over only ~1.2s -- one MOMENT of the song, so it can MISS clipping in a drop/chorus that isn't playing right now. For full-song-accurate levels use WATCH mode: fl_mix_watch_start -> play the whole song -> fl_mix_watch_stop. If stopped, level rules are skipped (needs_playback). Applies no…

fl_apply_mix_fix Apply a Mix Doctor fix (gated)

Apply ONE Mix Doctor fix via the safety layer: snapshot -> write -> FRESH readback -> rollback-able with fl_rollback_last_change. Call this ONLY after the user approves the exact change in conversation (Mix Doctor never auto-applies). 'trim_volume' sets a mixer track's fader to target_db. For grouping use fl_group_tracks; for EQ use fl_apply_eq_intent.

ParameterTypeDescription
kind *stringFix kind. Currently 'trim_volume' (the proven, safe one).
target_dbAbsolute target fader level in dB, e.g. -3.0.
trackMixer track index (for trim_volume).

fl_mix_watch_start Start full-song peak watch (Mix Doctor)

Begin a peak-HOLD watch: continuously sample every mixer track's peak, keeping a RUNNING MAX per track, until fl_mix_watch_stop. Tell the user to PLAY the whole song (or at least the loudest section / the drop) while this runs -- then stop for full-song-accurate level diagnosis. Read-only.

ParameterTypeDescription
interval_msintegerPoll interval per round in ms (default 150).

fl_mix_watch_status Peak watch status (Mix Doctor)

Is a peak watch running, and for how long / how many polls so far?

fl_mix_watch_stop Stop peak watch + diagnose (Mix Doctor)

Stop the peak watch and diagnose on the FULL-SONG running-max peaks captured across the whole watch (accurate clipping/headroom/imbalance vs the ~1.2s snapshot). Read-only -- proposes fixes, applies nothing.

fl_gain_stage Gain staging assistant (Mix Doctor)

Propose per-track fader trims so each track's peak sits in a healthy band (~-12..-6 dBFS, aim -9) and the Master keeps -3..-6 dB headroom. READ-ONLY proposals -- apply approved ones via fl_apply_mix_fix (rollback). Uses FULL-SONG peaks from a recent watch (fl_mix_watch_start -> play -> fl_mix_watch_stop) when available; else a ~1.2s snapshot (prefer watch). FL's fader is POST-chain, so this sets a track's OUTPUT level, not a true pre-plugin input trim.

fl_reference_match Reference match (level/balance)

Compare your mix's LEVEL + rough tonal BALANCE to a reference track. READ-ONLY. Analyzes the reference FILE (overall level + low/mid/high spectral-band shares) and your mix (Master peak for level + a ROUGH name-based band estimate). HONEST: a level/balance compare, NOT a spectral match -- FL doesn't expose its output audio, so the your-mix balance is estimated from track names + peaks. Suggests adjustments; applies nothing.

ParameterTypeDescription
reference_audio_path *stringPath to a reference WAV/MP3 to compare against.

fl_get_step_grid Read step sequencer

Which step-sequencer steps are on for a channel in the CURRENT pattern, plus a pattern string ('x' on, '.' off).

ParameterTypeDescription
channel *integerChannel-rack channel index.
lengthintegerSteps to read (16 = one bar of 1/16).

fl_set_step_grid Write step sequencer (drum pattern)

Set a channel's step-sequencer steps in the CURRENT pattern: exactly the given steps on, the rest of 0..length-1 off. Snapshot, read back, undo with fl_rollback_last_change.

ParameterTypeDescription
channel *integerChannel-rack channel index.
lengthintegerSteps to write; all others in range are turned off.
patternSteps as text, e.g. 'x...x...x...x...' (four on the floor); 'x' or '1' = on.
stepsOr: step indexes that are on (0 = first 1/16).

fl_extract_drums Drums to MIDI / step sequencer

Detect the hits in a drum loop or stem and sort them into kick, snare, clap, closed and open hi-hat. Always writes a .mid to ~/.flstudio-mcp/exports and returns per-kind step patterns. With to_channels, also writes those steps into the CURRENT pattern of the given channels (one undo step: fl_rollback_last_change).

ParameterTypeDescription
path *stringDrum loop or drum stem (WAV/FLAC; MP3 needs ffmpeg).
barsintegerHow many bars to preview / write (16 steps each).
bpmTempo; auto-detected if omitted.
start_barintegerFirst bar of the audio to use (0 = start).
to_channelsWrite into the step sequencer: kind -> channel, e.g. {'kick': 0, 'snare': 1, 'closed hat': 2}. Kinds: kick, snare, clap, closed hat, open hat.

fl_pattern_list List patterns

List patterns: {total, patterns:[{pattern (1-based), name}]}. Paginated (600-byte pages); omit limit to walk every page.

ParameterTypeDescription
limitMax items; omit for ALL pages.
startintegerPage start (0-based).

fl_pattern_select Select a pattern

Make a pattern the current one (index must exist -- FL silently clamps out-of-range jumps, so we reject them). One rollback step: restores the previously selected pattern. Reports prev_index / prev_name.

ParameterTypeDescription
index *integer1-based pattern index.

fl_pattern_rename Rename a pattern

Rename a pattern. One rollback step: restores the old name.

ParameterTypeDescription
index *integer1-based pattern index.
name *stringNew pattern name.

fl_pattern_get_length Get pattern length

Pattern length in BEATS (FL's native unit) + derived ticks and bars (via RecPPQ / RecPPB), plus its name and current selection state.

ParameterTypeDescription
index *integer1-based pattern index.

fl_plugin_preset Plugin preset info / next / prev

Read or navigate a plugin's presets. op=info (read-only) returns {preset_count, plugin_name, name_f3, name_f6}; name_f6 is the CURRENT preset name (via midi.GPN_GetCurrentPreset) -- name_f3 is usually empty, don't rely on it. op=next/prev step the preset but have NO ROLLBACK (see the response's warning): FL 26 cannot set a preset by name/index, and navigation itself is best-effort. The response carries a fresh-tick info re-read (`current`) because the same-RPC name can lag the navigation.

ParameterTypeDescription
track *integerMixer track index.
opstringinfo = read-only; next/prev = navigate (no rollback).
slotinteger-1 = channel generator; 0..9 = mixer FX slot.

fl_api_probe Probe FL scripting API (names)

Public names of one FL scripting module (dir(module), names only, budget-paginated). Without pattern: one page {module, total, start, next_start, names}. With pattern: all pages walked, matches filtered, reply carries {match_count, names, truncated}.

ParameterTypeDescription
module *stringFL scripting module.
patternCase-insensitive substring filter; walks all pages.
startintegerPage start (no filter).

fl_undo FL Undo (one step, NOT rollback-covered)

One FL undo step (general.undoUp). WARNING: not covered by fl_rollback_last_change -- undo jumps FL's own history and nothing readable describes what was undone, so no snapshot exists. Undo and rollback do NOT commute (see the response warning); coverage varies by action type. The response includes `last_rollback` -- the newest changelog entry, which an undo may have just cancelled.

fl_capabilities Report FL-MCP capabilities

Report what this FL-MCP install can do automatically vs. what needs a manual step, for THIS OS and transport: MIDI-port mode (virtual vs. pre-created), note-bridge automation + the one-time arm, and the FL API limits. Call this to explain setup or why a note-write might not land.

fl_load_plugin Load a plugin (NOT supported by FL API -- explains why)

Attempt to load a plugin -- but FL's scripting API CANNOT do this, so this tool instead explains why, the drawbacks of UI-automation workarounds, and the reliable path (load manually or use a template), then tells you exactly how to control the plugin once it's loaded. Call it to understand the limitation rather than expecting an actual load.

ParameterTypeDescription
name *stringPlugin name you want loaded, e.g. 'Vital'.
as_generatorbooleanTrue = instrument on a channel; False = effect on a mixer slot.
attempt_focusbooleanBest-effort: bring FL to the foreground to speed up MANUAL loading. Never simulates plugin selection.

fl_playlist_tracks List playlist tracks

List playlist tracks (1-based) with name + mute/solo state. Returns {total, start, tracks, next_start}. Pass next_start as `start` for the following page; next_start is null at the end.

ParameterTypeDescription
limitintegerMax tracks to return. FL has 500 playlist tracks; the default keeps the reply small.
startintegerFirst track to return (0-based offset).

fl_playlist_mute_track Mute/unmute a playlist track

Set a playlist track's mute state (reversible).

ParameterTypeDescription
track *integer1-based playlist track.
mutedbooleanTrue = muted, False = unmuted.

fl_playlist_solo_track Solo/unsolo a playlist track

Set solo only when other tracks have no mute/solo state to disturb. FL solo can change other tracks. Refuse complex existing state rather than recording a single-track undo that cannot restore it.

ParameterTypeDescription
track *integer1-based playlist track.
solobooleanTrue = solo, False = unsolo.

fl_playlist_rename_track Rename a playlist track

Rename a playlist track (reversible).

ParameterTypeDescription
name *stringNew track name.
track *integer1-based playlist track.

fl_playlist_set_track_color Color a playlist track

Set a playlist track's color by name or hex (reversible).

ParameterTypeDescription
color *stringColor name (red, blue, ...) or hex '#33A1FF'.
track *integer1-based playlist track.

fl_arrangement_selection Get arrangement selection

Read the arrangement timeline selection (start/end/active) + current playhead time. Read-only (FL can't author playlist clips via scripting).

fl_arrangement_markers List arrangement markers

List named timeline markers (intro/verse/drop/...), best-effort + capped.

fl_plugin_overview Plugin overview (grouped + controllability)

A digestible map of a plugin/generator: parameters grouped by musical role (oscillator/filter/envelope/lfo/amp/fx/...), plus a controllability tier (full / partial / opaque) so you know whether unit-targeted control or raw normalised nudging is appropriate. Ideal first call for a big synth (Serum/Vital) before diving into specific params.

ParameterTypeDescription
slot *integerMixer-track effect slot 0-9, OR -1 for the channel-rack generator (then `track` is the CHANNEL index).
track *integer
per_roleintegerSample params to show per role.

fl_plugin_calibrate_param Calibrate a plugin parameter

Learn a parameter's real-unit mapping by sweeping it 0..1 and reading FL's display string at each step (then restoring it). Returns the unit (dB/Hz/ms/%/ratio/...) and a norm<->value curve, cached on disk per plugin. Enables fl_plugin_set_param_value. The param is left unchanged.

ParameterTypeDescription
param *Param index or name.
slot *integerMixer-track effect slot 0-9, OR -1 for the channel-rack generator (then `track` is the CHANNEL index).
track *integer
stepsintegerSweep resolution (more = finer curve).

fl_plugin_set_param_value Set a plugin parameter to a real-unit value

Set a parameter to a MUSICAL target in its real unit (Hz/dB/ms/%/...), auto-calibrating first (cached). Falls back with a clear message if the plugin is opaque or the param isn't monotonic -- then use fl_plugin_set_param with a normalised 0..1 value instead. Reversible via fl_rollback_last_change; reports the achieved display string.

ParameterTypeDescription
param *Param index or name.
slot *integerMixer-track effect slot 0-9, OR -1 for the channel-rack generator (then `track` is the CHANNEL index).
target *numberDesired value in the param's real unit (e.g. 2000 for 2 kHz cutoff, -6 for -6 dB).
track *integer
stepsinteger

fl_plugin_intent Apply a semantic plugin intent

Shape ANY plugin by intent, without knowing its param names: locate the relevant knob by keyword (e.g. 'brighter' -> filter cutoff), calibrate it, and nudge it in the right direction/amount. Reversible via fl_rollback_last_change. Returns the param it moved + achieved value. Falls back with a clear message if no matching param or it's opaque.

ParameterTypeDescription
intent *stringMusical move: brighter, darker, more_resonance, less_resonance, more_attack, less_attack, slower_release, faster_release, wider, narrower, more_drive, less_drive.
slot *integerMixer-track effect slot 0-9, OR -1 for the channel-rack generator (then `track` is the CHANNEL index).
track *integer
amountnumberStrength 0..1 (0.5 = moderate).

fl_screenshot Screenshot (agent debugging)

Capture FL Studio's window to a PNG -- for AGENT DEBUGGING (see the plugin window, the hint bar, focus), not part of the music workflow. Only that window is captured by default; set whole_screen=True to capture the entire display, or region=[x,y,w,h] for an explicit crop. Returns {ok, target, path, size, width, height}; Read the path to view it. target is "window", "screen" or "region". Files go to ~/.flstudio-mcp/shots/<timestamp>.png and are cleaned up after 7 days. path= accepts only a name or path INSIDE that shots directory (it is resolved and bound there -- the tool never writes elsewhe…

ParameterTypeDescription
pathFile NAME or full path inside ~/.flstudio-mcp/shots/ (nothing outside is accepted, existing files are never overwritten); omit for a timestamped default.
regionAbsolute crop [x, y, w, h] in LOGICAL points (pyautogui space), e.g. [100, 100, 800, 600]. Overrides the default window capture.
whole_screenbooleanCapture the whole display instead of the FL Studio window. Off by default so the assistant does not receive unrelated windows.