Skip to main content
Glama

PatternPilot

PatternPilot connects AI assistants to FL Studio over MCP. Ask for a melody, stage a chord progression, inspect the mixer, or control project tempo with live writes enabled. The included desktop chat supports common requests offline, with no API key.

PatternPilot does not open a network port or modify FL Studio's installation. Run the MCP server and DAW on the same machine under the same OS user.

Status: Offline tests use simulated FL modules and a real MCP stdio connection. Live validation on Windows and macOS is still required. Linux is suitable for development; FL Studio under Wine and split-machine setups are not supported yet.

Try the read-only bridge

  1. On the machine running FL Studio, install uv and clone the repository:

    git clone https://github.com/cyberneticangel/PatternPilot.git
    cd PatternPilot
    uv sync --locked
    uv run patternpilot install-bridge --fl-user-data "PATH TO YOUR FL STUDIO USER DATA"

    Find the FL user data path in Options → File settings. Pass its root (the folder that contains Settings), not the FL installation folder. The installer prints both installed script paths and the mailbox path. The default mailbox is %LOCALAPPDATA%\fl-mcp on Windows or ~/.fl-mcp on macOS/Linux. Keep it on a local, non-synced filesystem. If you use --mailbox, pass the same path to install-bridge, doctor, serve, and chat.

  2. In Options → MIDI settings, select and enable a dedicated input and choose FL MCP (user) as its controller type. A dedicated virtual MIDI input may be needed; do not replace the script on a controller you rely on. The mailbox carries the requests, not the MIDI input. Check View → Script output for FL MCP ready: read-only.

  3. With FL Studio open, run:

    uv run patternpilot doctor

    Expect "bridge_ready": true plus the BPM, playback state, and FL build. Run it once stopped and once while playing. If the heartbeat or live read fails, see the DAW acceptance checklist.

  4. Once doctor works, open the standalone chat, or add the server to an MCP host using patternpilot serve over stdio. For OpenCode V2, run from the project on the DAW machine:

    opencode mcp add patternpilot -- uv run --project "ABSOLUTE PROJECT PATH" patternpilot serve
    opencode mcp list

    If uv is not on the host's PATH, use its absolute path or the absolute path to the installed patternpilot executable. The same executable and arguments work in MCP Inspector: npx -y @modelcontextprotocol/inspector …. Stop the MCP host before running doctor again if it owns the mailbox. A host reporting “connected” only confirms that the MCP process started.

Related MCP server: FL Studio MCP Server

Desktop chat

Run uv run patternpilot chat on a desktop with Tkinter available. The window works offline, without an API key or another MCP host. It recognizes common production requests and offers setup help; it is not a general-purpose chatbot.

  • “Make a dark melody in F minor” stages a four-bar melody in 4/4. You can also ask for a bright, calm, or tense melody, and specify up to eight bars.

  • “Draw a Cmaj7 chord” or “Draw chords: Fm, Dbmaj7, Ab, Eb” stages notes with one four-beat chord per slot by default.

  • “Set BPM to 128” asks for confirmation and applies the change if live writes are enabled. Use uv run patternpilot chat --allow-writes and reinstall the controller with --replace --allow-writes as described below.

  • “Status” checks live BPM and playback. “Help” shows example requests.

To add staged notes, open the intended instrument and pattern in FL Studio, then choose Piano Roll → Tools → Script… → FL MCP Apply Notes. Enable Preview staged notes, set the starting beat if needed, then confirm or cancel. Staging alone does not change a project or require the live MIDI controller to be active. The latest batch replaces the previous one, expires after 15 minutes, and can be applied more than once if you run the script again. Use the chat or external MCP host one at a time for live reads and edits.

Tools

Tool

What it does

get_status

Live bridge readiness, capabilities, BPM, transport and project generation.

list_mixer_tracks

Master and ordinary inserts; excludes FL's special Current utility track.

list_channels

All Channel Rack groups using global indices.

get_current_pattern

Current pattern number, name, and duration in beats, not notes.

stage_piano_roll_chords

Stages one or more chord symbols with configurable octave, inversion, and duration.

stage_piano_roll_melody

Stages an in-key melody with a selected mood, length, and optional reproducible seed.

set_playback

Starts or stops playback; rejects changes while recording. Stop may reset the playhead.

set_mixer_track

Sets one of mute, normalized volume, or pan on a non-Master insert.

set_bpm

Sets project tempo (10–522 BPM) and reports the DAW's readback; refuses during recording.

List tools accept start and limit (maximum 16); follow next_start until it is null. Check get_status for capabilities on the installed scripting API. Live write tools are absent from the MCP catalog by default. To enable them after the read-only smoke test, reinstall with --replace --allow-writes, reload the FL controller, and start serve --allow-writes or chat --allow-writes. Use a disposable project and enable host confirmations where available. Disable both flags and reload/restart to turn writes off again.

For mixer edits, use the index, exact name (as expected_name), instance, and project from a fresh list_mixer_tracks call. For example, pass change: {"field":"volume","value":0.6}. before and after report FL's readback; FL may quantize a value. Index/name checks do not guarantee identity across same-name replacements, so don't rearrange inserts during an edit. Do not assume FL Undo is available for every operation. If a write returns outcome_unknown or is canceled, read back state before deciding whether to retry. The server does not automatically replay writes.

This version does not edit existing Piano Roll notes, place Playlist clips, load plugins, record, render, or save/open projects.

Development and removal

uv sync --locked
uv run pytest
uv run ruff check .
uv build

fl-mcp remains available as a CLI alias. The FL controller and Piano Roll scripts still use their existing FL MCP menu names.

To uninstall, disconnect the MCP host and chat, disable the FL MIDI input used by the bridge, and remove these from the FL user data folder:

  • Settings/Hardware/FL MCP/device_fl_mcp.py

  • Settings/Piano roll scripts/FL MCP Apply Notes.pyscript

Once both sides are closed, the dedicated mailbox directory can also be removed. Do not remove its lock files while either side is running.

License

GNU Affero General Public License v3.0.

Available Tools

6 tools
get_current_patternA
Read-only

Read the current pattern number, name and length in beats. Does not read notes.

Inputs: no named parameters. Returns: name, length_beats, pattern_number

get_statusA
Read-only

Get live BPM, playback state, song/pattern mode and bridge readiness.

Inputs: no named parameters. Returns: status

list_channelsB
Read-only

Read Channel Rack names and mixer assignments over all groups using global indices.

Inputs: limit, start. Returns: total, channels, next_start, index_scope

list_mixer_tracksB
Read-only

Read Master and ordinary mixer inserts. Excludes FL's Current utility track.

Inputs: limit, start. Returns: total, tracks, project, instance, +1 more

stage_piano_roll_chordsA
Destructive

Stage chords such as Cmaj7 or Fm. 16 steps per quarter note; C5 is MIDI 60.

Replaces the pending batch, not project notes. Apply it manually in the Piano Roll.

Inputs: chords (required), octave, inversion, steps_per_chord. Returns: batch, beats, symbols, next_step, +1 more

stage_piano_roll_melodyA
Destructive

Generate and stage a monophonic melody in 4/4; apply it manually in FL.

Replaces the pending batch, not project notes. Supply a seed to repeat a take.

Inputs: key (required), bars, mode, mood, +1 more. Returns: bars, seed, batch, label, +3 more

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 6 tools

    Disambiguation4/5

    Most tools are clearly separated by resource and action: status vs. pattern metadata, mixer tracks vs. channel rack, chords vs. melody. The only mild overlap is between list_mixer_tracks and list_channels, since channels carry mixer assignments, but the descriptions make the distinction clear.

    Naming Consistency5/5

    All six tools follow a consistent snake_case verb_noun pattern (get_status, list_channels, stage_piano_roll_chords). Verb choice is predictable by intent: get for single-object reads, list for collections, stage for pending mutations.

    Tool Count4/5

    Six tools is a tight, purposeful set for a scoped FL Studio inspection/staging server, with no filler. It is slightly lean on the write side, with only two staging tools and no apply/clear counterpart.

    Completeness3/5

    Core read surfaces (transport, mixer, channels, pattern metadata) are covered, but there are notable gaps: no tool to read existing pattern notes, no transport control, no mixer level/pan operations, and staged content must be applied manually outside the toolset. These are disclosed in the descriptions but still leave agents at dead ends for round-trip workflows.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that connects AI assistants to FL Studio for music production via Virtual MIDI. It enables users to control transport, manage the mixer, write notes, and manipulate plugin parameters through natural language.
      1
      MIT
    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables AI assistants to control FL Studio on Windows through a local MCP server without cloud dependencies. Bridges MCP clients to FL Studio's Python scripting environment via file-based IPC for project management, transport control, and UI workflow automation.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to control a running FL Studio project — transport, mixer routing and levels, channel rack, plugins, patterns, step sequencer, and piano roll — through a virtual MIDI trigger plus JSON command channel, with optional Windows UI automation and offline audio analysis of bounces. Also exposes raw access to the FL scripting API for undo history, markers, and device and project info.
      MIT