FL-MCP
MCP server for FL Studio. Any MCP client that can start a local server (Claude, Codex CLI, Gemini CLI, Cursor, VS Code, local models) can inspect and control the FL Studio running on your computer: drive every plugin by name and in real units, produce a whole song fast, mix and master it by measurement, and do the things FL's scripting API cannot.
- Local. The server runs on your machine and talks to FL Studio through a virtual MIDI port. No cloud is involved in controlling FL.
- 14 tools, about 4k tokens for the whole list (a test holds the line). Flat schemas (no
$ref/anyOf/title) and plain JSON results, so small and strict models can use them. An opt-in 15th tool, fl_desk, adds screen and keyboard control.
- Beyond the API. Where FL's scripting API stops (load a plugin, write notes, export audio, create channels), a ladder of other routes takes over: FL's own UI driven from inside FL, generated
.flp projects, FL's command-line render, and the desktop. See docs/CAPABILITIES.md.
- Guides for every client. What a model needs to know about producing, mixing and plugins ships as MCP resources and prompts, and as a Claude Code plugin with skills.
- Safe link to FL: a small controller script inside FL answers framed MIDI CC messages. No
exec/eval, no network, no SysEx. Only allowlisted FL API modules are reachable.
- Windows and macOS, FL Studio 2024+ (scripting API 33+). Python 3.10-3.12 (
python-rtmidi has no wheels for 3.13+; uv picks a matching Python for you).
Status. Verified live against FL Studio 2025 (Producer Edition v25.2.5 [build 5319], API 40) on Windows 11 (fl-mcp selftest --deep: 17/17 checks passing), as well as against a stateful fake FL built on the official API stubs, real FL Studio project files (.flp), and the ITU-R BS.1770 reference loudness filter. After setup run fl-mcp selftest: it checks every layer against your FL, puts back what it touched, and saves a report you can send with an issue.
Setup
Quickest zero-touch setup (fl-mcp onboard):
fl-mcp onboard --install-midi --desktop
fl-mcp onboard installs the FL Studio controller & piano roll scripts (FL 20–26+), ensures the virtual MIDI port (loopMIDI on Windows / CoreMIDI IAC on macOS), pairs FL Studio's F10 MIDI settings automatically in Registry on Windows (when FL is closed), starts the persistent background Studio + HTTP MCP daemon, and registers detected AI clients across 12 clients (claude-desktop, claude-code, cursor, vscode, windsurf, gemini, antigravity, codex, cline, roo-code, zed, opencode). Use fl-mcp config <client|all> --write --transport http or Studio's One-Click Auto-Setup button for individual control.
Manual setup steps:
1. Install (needs uv):
uv tool install "fl-mcp[audio] @ git+https://github.com/Rtur2003/FL-MCP"
fl-mcp setup --write
fl-mcp setup copies the controller script and the piano roll script into Documents/Image-Line/FL Studio/Settings, checks the MIDI port, and prints the exact text that registers the server with your client. (fl-mcp install does only the copying; --fl-dir points at a user data folder elsewhere.) The audio extra adds numpy, scipy and soundfile for loudness analysis; leave it out for a smaller install.
2. Loopback MIDI port
- Windows: install loopMIDI and create a port named
FL MCP.
- macOS: Audio MIDI Setup > MIDI Studio > enable the IAC Driver (found automatically).
3. FL Studio: Options > MIDI Settings
- Input: select
FL MCP, enable it, controller type FL MCP, port number N.
- Output: select
FL MCP, enable it, port number the same N.
- Restart FL Studio (or reselect the controller type to reload the script).
4. Check: fl-mcp doctor (each layer in one line), then fl-mcp selftest (every feature, with a report; --deep also loads a plugin through FL's browser and undoes it).
5. Add to your client: fl-mcp config <client|all> [--write] prints or writes the config for claude-desktop, claude-code, cursor, vscode, windsurf, gemini, antigravity, codex, cline, roo-code, zed, and opencode (--source auto|pypi|git|local, --transport http|stdio). Or use fl-mcp onboard to auto-configure scripts, virtual MIDI, FL F10 bindings, daemon, and detected clients together. For example:
claude mcp add fl-studio -- uvx --from "fl-mcp[audio]" fl-mcp
Claude Desktop can instead install the .mcpb extension (python packaging/build_mcpb.py builds it); full release bundles (wheel, sdist, .mcpb, Claude Code plugin zip, standalone FL scripts bundle, SHA256SUMS.txt) are built via python packaging/build_release.py or automatically when a v* tag is pushed.
Studio desktop app, background service & live traffic inspector