Logo van FL Studio MCP Server

FL Studio MCP Server

Community
karl-andres

MCP Server for FL Studio

Uitgeverkarl-andres
Repositoryfl-studio-mcp
TaalPython
Forks
28
Sterren
207
Beschikbare tools
0
Transporttypestdio
Categorieën
LicentieMIT
Links
  • Koppel tools aan AI-workflows

    FL Studio MCP Server biedt MCP-functionaliteit die compatibele AI-clients en agenten kunnen gebruiken.

  • 0 beschikbare tools

    Bekijk hieronder de aanroepbare acties, inclusief namen en beschrijvingen als de server die beschikbaar stelt.

  • Configuratie om direct te kopiëren

    Gebruik de installatievoorbeelden om deze server in je favoriete MCP-client te configureren.

  • Indicatoren van opensource-interesse

    207 sterren en 28 forks in de gekoppelde repository.

FL Studio MCP Server

Control FL Studio with plain language. An MCP (Model Context Protocol) server that lets AI assistants drive FL Studio through MIDI communication and Piano Roll scripts — compose melodies, adjust mixes, and automate plugins without touching the mouse.

Listed on mcpservers.org Listed on awesome-mcp-servers GitHub stars License: MIT Python 3.10+


Table of Contents


Demo

Ask Claude to analyze your project and compose a melody — notes appear in the Piano Roll in real time:

Claude composing a dark bell melody in FL Studio via MCP

dont mind the scuffed audio, i had to clip with my mic bc apple wouldnt let me record desktop audio lol

https://github.com/user-attachments/assets/d4fc668f-9fe5-4ab4-9f18-76cd661029c6

Hear the original audio if you'd like

https://github.com/user-attachments/assets/c2b1a5e7-1640-41fa-82bc-18ca7cbae9e8


Features

Transport Control

  • Play, pause, stop playback
  • Toggle recording
  • Set playback position
  • Get song length and position
  • Control loop mode (pattern/song)
  • Adjust playback speed

Mixer Control

  • Get/set track volume and pan
  • Mute/solo tracks
  • Arm tracks for recording
  • Set track names and colors
  • Stereo separation control

Channel Rack Control

  • List all channels
  • Get/set channel properties (volume, pan, name, color)
  • Mute/solo channels
  • Route channels to mixer tracks
  • Trigger MIDI notes in real-time
  • Step sequencer control (get/set grid bits)

Plugin Control

  • List plugin parameters
  • Get/set parameter values
  • Navigate presets (next/previous)
  • Query plugin info

Piano Roll Control

  • Add notes to the piano roll with precise timing
  • Add chords with a single command
  • Delete specific notes by MIDI number and time
  • Clear all notes from the piano roll
  • Read piano roll state to see all existing notes
  • Auto-triggering via keystroke (Cmd+Opt+Y on macOS, Ctrl+Alt+Y on Windows)

Limitations

Cannot load plugins — The FL Studio scripting API does not support loading new VST/AU plugins. You can only control parameters of plugins that are already loaded in your project.

No pattern management (yet) — The server can write notes and step-sequencer steps into a pattern, but it has no tools to create, switch, rename, or clone patterns. Everything goes into whichever pattern is currently selected in FL Studio, so pick or create the pattern yourself before asking for notes. (FL Studio's scripting API does support this through the patterns module, so it could be added.)


Requirements

  • FL Studio 20.7+ (MIDI Controller Scripting API)
  • Python 3.10+
  • macOS or Windows
    • macOS: IAC Driver (built-in, needs to be enabled)
    • Windows: loopMIDI

Quick Installation

macOS / Linux

bash
git clone https://github.com/karl-andres/fl-studio-mcp.git
cd fl-studio-mcp
./install.sh

Windows

powershell
git clone https://github.com/karl-andres/fl-studio-mcp.git
cd fl-studio-mcp

# Allow running local scripts for this user (one-time)
Set-ExecutionPolicy -Scope CurrentUser RemoteSigned -Force

.\install.ps1

install.ps1 is the Windows counterpart to install.sh — same steps, PowerShell instead of bash. It installs Python 3.12 specifically (required for prebuilt python-rtmidi wheels on Windows).

Both installers will:

  1. Install uv if not present
  2. Install Python dependencies
  3. Guide you through enabling virtual MIDI ports (IAC Driver on Mac, loopMIDI on Windows)
  4. Install the FL Studio MIDI controller script
  5. Install the Piano Roll script (ComposeWithLLM)
  6. Configure Claude Desktop or Claude Code automatically (scripts/install_mcp_for_claude.sh / scripts/install_mcp_for_claude.ps1)

Windows piano-roll note: The Piano Roll script is launched by sending FL Studio a keystroke (Ctrl+Alt+Y). On Windows this briefly foregrounds the FL Studio window, so FL Studio will pop to the front for a moment each time a tool like fl_send_notes runs. This is expected. See Piano Roll script not triggering if it doesn't fire at all.


Manual Installation

1. Install Python Dependencies

bash
# Using uv (recommended)
uv sync

# Or using pip
pip install -e .

2. Enable Virtual MIDI Ports

macOS (IAC Driver)

  1. Open Audio MIDI Setup (search in Spotlight)
  2. Press Cmd+2 or go to Window > Show MIDI Studio
  3. Double-click on IAC Driver
  4. Check "Device is online"
  5. Click Apply

Windows (loopMIDI)

  1. Download and install loopMIDI
  2. Create a virtual port (any name works)
  3. Keep loopMIDI running while using FL Studio

3. Install FL Studio Scripts

Copy the controller script to FL Studio's Hardware folder:

bash
# macOS
mkdir -p ~/Documents/Image-Line/FL\ Studio/Settings/Hardware/FLStudioMCP
cp fl_controller/device_FLStudioMCP.py ~/Documents/Image-Line/FL\ Studio/Settings/Hardware/FLStudioMCP/

# Windows
mkdir "%USERPROFILE%\Documents\Image-Line\FL Studio\Settings\Hardware\FLStudioMCP"
copy fl_controller\device_FLStudioMCP.py "%USERPROFILE%\Documents\Image-Line\FL Studio\Settings\Hardware\FLStudioMCP\"

Copy the Piano Roll script:

bash
# macOS
cp scripts/ComposeWithLLM.pyscript ~/Documents/Image-Line/FL\ Studio/Settings/Piano\ roll\ scripts/

# Windows
copy scripts\ComposeWithLLM.pyscript "%USERPROFILE%\Documents\Image-Line\FL Studio\Settings\Piano roll scripts\"

4. Configure FL Studio

  1. Restart FL Studio (if it's running)
  2. Go to Options > MIDI Settings
  3. Under Input, find your virtual MIDI port (e.g., "IAC Driver Bus 1")
  4. Set the Controller type to FLStudioMCP
  5. Enable the port (click to highlight it)

5. Configure Your MCP Client

Add to your Claude Desktop config:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
json
{
  "mcpServers": {
    "fl-studio": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/fl-studio-mcp", "fl-studio-mcp"]
    }
  }
}

For Claude Code, add to your MCP settings (~/.claude.json, or run claude mcp add).


Which AI Clients Work With This?

This is a standard MCP server that talks to clients over stdio — it isn't hardcoded to any one AI vendor. In principle, any MCP-compatible client can connect: Claude Desktop, Claude Code, Cursor, Windsurf, Gemini CLI, OpenAI's Codex CLI/Agents SDK, etc.

What's actually tested and auto-configured: only Claude Desktop and Claude Code, via scripts/install_mcp_for_claude.sh (macOS/Linux) and scripts/install_mcp_for_claude.ps1 (Windows). Other clients have no installer support — you'd need to manually add the following MCP server entry to that client's own config:

json
{
  "command": "uv",
  "args": ["run", "--directory", "/path/to/fl-studio-mcp", "fl-studio-mcp"]
}

Replace /path/to/fl-studio-mcp with your local clone path. If you try this with a non-Claude client, please open an issue with what worked or didn't — the protocol should support it, but it hasn't been verified here.


Usage

Running the Server Manually

bash
# Using uv
uv run fl-studio-mcp

# Or after installation
fl-studio-mcp

Piano Roll Workflow

  1. Open FL Studio and select a channel
  2. Open the Piano Roll (F7 or double-click the channel)
  3. The first time, manually run the script: Tools > Scripting > ComposeWithLLM
  4. After that, the MCP tools will auto-trigger the script

Available Tools

Connection

ToolDescription
fl_connectConnect/reconnect to FL Studio
fl_connection_statusGet connection status

Transport

ToolDescription
fl_playStart/pause playback
fl_stopStop playback
fl_recordToggle recording
fl_get_transport_statusGet playback/recording state
fl_set_song_positionSet playback position
fl_get_song_lengthGet song duration
fl_set_loop_modeSwitch between pattern/song mode
fl_set_playback_speedAdjust playback speed (0.25x–4x)

Mixer

ToolDescription
fl_get_mixer_track_countGet number of mixer tracks
fl_get_mixer_track_infoGet track details
fl_get_all_mixer_tracksList all tracks
fl_set_track_volumeSet track volume
fl_set_track_panSet track pan
fl_mute_trackMute/unmute track
fl_solo_trackSolo/unsolo track
fl_arm_trackArm track for recording
fl_set_track_nameRename track
fl_set_track_colorSet track color
fl_set_stereo_separationAdjust stereo width

Channels

ToolDescription
fl_get_channel_countGet number of channels
fl_get_channel_infoGet channel details
fl_get_all_channelsList all channels
fl_get_selected_channelGet selected channel
fl_select_channelSelect/deselect channel
fl_select_one_channelSelect channel exclusively
fl_trigger_noteTrigger MIDI note (real-time)
fl_set_channel_volumeSet channel volume
fl_set_channel_panSet channel pan
fl_mute_channelMute/unmute channel
fl_solo_channelSolo/unsolo channel
fl_set_channel_nameRename channel
fl_set_channel_colorSet channel color
fl_route_channel_to_mixerRoute to mixer track
fl_get_grid_bitGet step sequencer step
fl_set_grid_bitSet step sequencer step
fl_get_step_sequenceGet full pattern
fl_set_step_sequenceSet full pattern

Plugins

ToolDescription
fl_is_plugin_validCheck if plugin exists
fl_get_plugin_nameGet plugin name
fl_get_plugin_param_countGet parameter count
fl_get_plugin_paramsList all parameters
fl_get_plugin_param_valueGet parameter value
fl_set_plugin_param_valueSet parameter value
fl_get_preset_countGet preset count
fl_next_presetNext preset
fl_prev_presetPrevious preset
fl_get_plugin_colorGet plugin color

Piano Roll

ToolDescription
fl_send_notesAdd notes to the piano roll
fl_send_chordAdd a chord (multiple notes at same time)
fl_delete_notesDelete specific notes
fl_clear_piano_rollClear all notes
fl_get_piano_roll_stateRead current piano roll notes
fl_trigger_scriptManually trigger the FL Studio script
fl_get_piano_roll_infoGet piano roll system info
fl_clear_request_queueCancel pending queued changes

Example Workflows

Adjusting a Mix

text
"Set the volume of mixer track 1 to 80% and pan it slightly left"

Creating a Drum Pattern

text
"Create a basic kick pattern on channel 0 with kicks on steps 0, 4, 8, and 12"

Adding a Melody to Piano Roll

text
"Add a C major arpeggio starting at beat 0: C4, E4, G4, C5 - each note quarter duration"

Adding Chords

text
"Add a C major chord at beat 0, then F major at beat 2, then G major at beat 4"

Automating Plugin Parameters

text
"List the parameters of the plugin on channel 0 and set the filter cutoff to 50%"

Troubleshooting

"Not connected to FL Studio"

  1. Ensure FL Studio is running
  2. Check that the FLStudioMCP controller is enabled in MIDI Settings
  3. On Mac, verify IAC Driver is enabled in Audio MIDI Setup
  4. On Windows, verify loopMIDI is running
  5. Restart FL Studio after enabling the controller

"Timeout waiting for FL Studio response"

  1. Make sure FL Studio is in focus
  2. Check the Script output window in FL Studio (View > Script output)
  3. Verify the controller is receiving MIDI (look for activity in MIDI Settings)

Piano Roll script not triggering

  1. First time: manually run Tools > Scripting > ComposeWithLLM in FL Studio
  2. On macOS: grant Accessibility permissions when prompted
  3. On Windows: the MCP server foregrounds the FL Studio window automatically before sending the hotkey — if FL Studio isn't running or is minimized to the system tray, the trigger can't find it and will fall back to a warning telling you to press the hotkey manually
  4. Try pressing Cmd+Opt+Y (macOS) or Ctrl+Alt+Y (Windows) manually to confirm the hotkey is bound to the script in FL Studio
  5. If you just updated the server code (e.g. pulled a fix), fully restart your MCP client (Claude Desktop/Code) — reconnecting the MCP server alone does not respawn the underlying process

No MIDI ports available

  • macOS: Enable IAC Driver in Audio MIDI Setup
  • Windows: Install and run loopMIDI

Architecture

This MCP server uses a hybrid approach:

┌─────────────────┐     ┌─────────────────────────────────────────┐
│   MCP Client    │────▶│           FastMCP Server                │
│  (Claude, etc)  │     │                                         │
└─────────────────┘     │  ┌─────────────────┐  ┌──────────────┐  │
                        │  │ MIDI + JSON     │  │ Piano Roll   │  │
                        │  │ Tools           │  │ Tools (JSON) │  │
                        │  └────────┬────────┘  └──────┬───────┘  │
                        └───────────┼──────────────────┼──────────┘
                                    │                  │
                               MIDI + JSON        JSON Files +
                                    │              Keystroke
                                    ▼                  ▼
                        ┌─────────────────────────────────────────┐
                        │              FL Studio                   │
                        │  ┌──────────────┐  ┌──────────────────┐ │
                        │  │FLStudioMCP   │  │ Piano Roll Script│ │
                        │  │(MIDI Ctrl)   │  │ (ComposeWithLLM) │ │
                        │  └──────────────┘  └──────────────────┘ │
                        └─────────────────────────────────────────┘

How It Works

Transport / Mixer / Channels / Plugins:

  1. MCP server writes command to JSON file
  2. Sends MIDI trigger note to FL Studio
  3. FL Studio controller script reads JSON, executes API, writes response
  4. MCP server reads response

Piano Roll:

  1. MCP server writes note requests to JSON file
  2. Sends keystroke (Cmd+Opt+Y on macOS, Ctrl+Alt+Y on Windows) to trigger FL Studio script — on Windows, the FL Studio window is foregrounded first so the keystroke actually reaches it
  3. Piano Roll script reads JSON and modifies notes

Development

Prerequisites

  • Python 3.10+
  • uv (recommended)

Setup

bash
# Install all dependencies including dev extras
uv sync --dev

# Or with pip
pip install -e ".[dev]"

Available Commands

CommandDescription
uv run fl-studio-mcpRun the MCP server
uv run ruff check .Lint the codebase
uv run ruff check --fix .Lint and auto-fix
uv run pytestRun tests

Project Structure

fl-studio-mcp/
├── fl_controller/
│   └── device_FLStudioMCP.py     # FL Studio MIDI controller script (runs inside FL Studio)
├── scripts/
│   ├── setup.sh                  # FL Studio script installer
│   ├── install_mcp_for_claude.sh # Claude config installer (macOS/Linux)
│   ├── install_mcp_for_claude.ps1# Claude config installer (Windows)
│   └── ComposeWithLLM.pyscript   # Piano Roll script (runs inside FL Studio)
├── src/fl_studio_mcp/
│   ├── server.py                 # FastMCP server entry point
│   ├── tools/                    # MCP tool implementations
│   │   ├── channels.py
│   │   ├── mixer.py
│   │   ├── piano_roll.py
│   │   ├── plugins.py
│   │   └── transport.py
│   └── utils/
│       ├── connection.py         # FL Studio connection wrapper
│       ├── fl_trigger.py         # Piano roll keystroke trigger
│       └── midi_connection.py    # MIDI + JSON communication layer
├── install.sh                    # One-command installer (macOS/Linux)
└── install.ps1                   # One-command installer (Windows)

Credits

Contributing

Contributions are welcome! Feel free to open an issue or a pull request.

Just a heads-up: this project doesn't have a proper test suite, CI, or review process for PRs yet. I'm a student maintaining this in my spare time, so changes are mostly tested by hand in FL Studio. If you'd like to help set up testing or a smoother contribution workflow, that help is especially welcome.

License

MIT

Installatie

TypingMind
{
  "mcpServers": {
    "fl-studio-mcp": {
      "command": "fl-studio-mcp",
      "args": []
    }
  }
}

Gebruik FL Studio MCP Server MCP met meerdere AI-modellen

TypingMind koppelt MCP-tools aan de werkruimte. Zodra FL Studio MCP Server is verbonden, kun je deze dus met verschillende AI-modellen in TypingMind gebruiken, zonder de verbinding voor elk model apart in te stellen. Deze MCP-integratie draait lokaal via de TypingMind MCP-connector op je apparaat.

Installatiehandleiding voor de lokale connector

Gebruik dit als de MCP-server toegang nodig heeft tot lokale bestanden, apps of privébronnen op je computer.

1

Open de MCP-instellingen

Ga in TypingMind naar Instellingen, Geavanceerde instellingen en vervolgens Model Context Protocol. Kies daar Connector instellen.

  1. Open TypingMind in je browser.
  2. Klik op het pictogram Instellingen.
  3. Ga naar Geavanceerde instellingen.
  4. Open het gedeelte Model Context Protocol.
  5. Klik op Connector instellen en kies Dit apparaat.
Instelscherm voor de TypingMind MCP-connector met Dit apparaat geselecteerd
2

Voer de connectoropdracht uit

Kies Dit apparaat, kopieer de opdracht uit TypingMind en voer deze uit in Terminal. Laat het proces draaien zolang je MCP gebruikt.

  1. Kopieer de installatieopdracht die TypingMind toont.
  2. Open Terminal op macOS of Windows Terminal op Windows.
  3. Plak de opdracht en voer deze uit.
  4. Keur de pakketinstallatie goed als Terminal vraagt of je wilt doorgaan.
  5. Laat het proces in het Terminal-venster draaien zolang je MCP-tools gebruikt.
3

Voeg FL Studio MCP Server toe als server

Klik op Servers bewerken zodra de connectorstatus Gereed is en plak de MCP-serverconfiguratie.

  1. Wacht tot de connectorstatus Gereed aangeeft.
  2. Klik op Servers bewerken.
  3. Plak de MCP-serverconfiguratie van FL Studio MCP Server.
  4. Sla de serverlijst op.
  5. Vernieuw om te controleren of de connector nog steeds klaar is voor gebruik.
MCP-instellingen van TypingMind met een actieve server en de knop Servers bewerken
{
  "mcpServers": {
    "fl-studio-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Gebruik de verbinding met verschillende modellen

Sla de serverlijst op, open Plug-ins en schakel de MCP-tools van FL Studio MCP Server in. Selecteer vervolgens een ondersteund AI-model in TypingMind en gebruik de tools in de chat of wijs ze toe aan een AI-agent.

  1. Open de pagina Plug-ins in TypingMind.
  2. Schakel de MCP-tools van FL Studio MCP Server in.
  3. Start een chat en kies het AI-model dat je wilt gebruiken.
  4. Gebruik de MCP-tools in een chat of wijs ze toe aan een AI-agent.
  5. Schakel wanneer nodig over naar een ander AI-model zonder opnieuw verbinding te maken met MCP.
TypingMind-chat met ingeschakelde MCP-tools en een geselecteerd AI-model
Kun je FL Studio MCP Server gebruiken om me hiermee te helpen?
FL Studio MCP Server
Zeker. Ik heb het gelezen.
Dit vond ik met FL Studio MCP Server.

Veelgestelde vragen

Waarvoor wordt de MCP-server FL Studio MCP Server gebruikt?

FL Studio MCP Server is een MCP-server waarmee compatibele AI-clients verbinding kunnen maken met externe tools en context. In TypingMind hoef je deze MCP-server maar één keer toe te voegen om de tools beschikbaar te maken in je AI-werkruimte.

Kan ik FL Studio MCP Server MCP met meerdere AI-modellen in TypingMind gebruiken?

Ja. TypingMind verbindt MCP-tools op werkruimteniveau. Daardoor kun je FL Studio MCP Server gebruiken met verschillende AI-modellen, zoals Claude, ChatGPT, Gemini of andere modellen die je in TypingMind hebt ingesteld, zonder de MCP-server voor elk model afzonderlijk in te stellen.

Waarom FL Studio MCP Server MCP gebruiken met TypingMind?

TypingMind is een van de beste interfaces voor chats met LLM's, omdat het meerdere AI-modellen, prompts, plug-ins, AI-agenten, API-sleutels en MCP-tools samenbrengt in één werkruimte. Als FL Studio MCP Server verbonden is, kun je de MCP-tools ervan gebruiken met je favoriete modellen en je chatworkflow overzichtelijk houden in TypingMind.

Hoe verbind ik FL Studio MCP Server MCP met TypingMind?

FL Studio MCP Server werkt via de lokale MCP-connector van TypingMind. Dit is de beste optie als de MCP-server toegang nodig heeft tot lokale bestanden, desktopapps, opdrachtregeltools of privébronnen op je computer.

Welke tools biedt FL Studio MCP Server MCP in TypingMind?

FL Studio MCP Server biedt MCP-functies die je kunt inschakelen via de pagina Plug-ins in TypingMind. Je kunt ze gebruiken in chats of toewijzen aan AI-agenten.

Moet ik mijn API-sleutels delen met TypingMind om FL Studio MCP Server MCP te gebruiken?

Nee. TypingMind werkt in de eerste plaats lokaal en laat je de controle houden over je modelaanbieders, API-sleutels, prompts en MCP-configuratie. Als FL Studio MCP Server authenticatie vereist, voeg je bij het maken van de verbinding de vereiste headers, OAuth-instellingen of lokale configuratie voor die MCP-server toe.

Gerelateerde MCP-servers

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇