
FL Studio MCP Mac
io.github.purahmanian由 GitHub 帳號 purahmanian 發布v0.1.2更新於 Oct 24, 2026
macOS-first MCP bridge for FL Studio using CoreMIDI and FL Studio Python MIDI scripts.
概覽
一個本機 macOS MCP 橋接服務,讓助理透過 CoreMIDI 控制 FL Studio 的走帶、速度、混音器與通道,並排入 MIDI 音符。
- 可以做什麼
- 透過本機 MIDI 橋接檢查 FL Studio 狀態與健康狀況,並控制走帶(播放、停止、錄音切換、倒回、歌曲/樣式模式、節拍器)與速度變更。讀取混音器軌道和通道機架內容,並執行明確的混音器與通道修改。產生可匯入 FL Studio 的標準 MIDI 檔案。排入 Piano Roll 音符,需在目標 Piano Roll 中執行隨附的 FL Studio 指令碼才會寫入。
- 適用情境
- 適合在 macOS 上讓助理操作 FL Studio 的工作階段狀態、調整速度、混音器與通道,或從聊天用戶端準備 MIDI 音符資料與檔案。它是 alpha MVP,較適合實驗而非完整的無介面 DAW 自動化。
- 執行需求
- 需要 macOS 與已安裝的 FL Studio,以及在本機安裝的 Python 3 和 flstudio-mcp-mac PyPI 套件。安裝程式會把 FL Studio 硬體指令碼和 Piano Roll 指令碼複製到 FL Studio 的設定資料夾。需在 FL Studio 的 MIDI 設定中把 FLStudioMCP Request 與 Response 虛擬埠對應到控制器。不需要帳號、API 金鑰或網路連線。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 FL Studio MCP Mac,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
FL Studio MCP Mac
macOS-first MCP bridge for FL Studio. It exposes FL Studio transport, mixer, channel, MIDI export, and Piano Roll note-apply workflows to MCP clients such as Claude Desktop, Claude Code, Cursor, and other MCP-capable tools.
This is an alpha MVP. It is intentionally scoped around FL Studio's documented Python MIDI scripting and Piano Roll scripting APIs. It does not promise full headless FL Studio automation.
Why This Exists
Most FL Studio MCP work today is Windows-oriented. macOS has a cleaner CoreMIDI path for virtual ports, and FL Studio supports Python-based MIDI scripts on macOS. This project turns that into a small local MCP server plus companion FL Studio scripts.
What Works
- Live bridge over macOS virtual MIDI ports.
- FL Studio status and health checks.
- Transport: play, stop, record toggle, rewind, song/pattern mode, metronome toggle.
- Tempo changes.
- Mixer track reads and explicit track mutations.
- Channel Rack reads and explicit channel mutations.
- Standard MIDI file generation for import into FL Studio.
- Piano Roll queue file plus an included
.pyscriptto insert persistent notes.
Known Limits
- FL Studio's MIDI scripting API is not a complete DAW API.
- Loading plugins, loading arbitrary audio files, and rendering/exporting are not implemented here.
- Persistent note writing goes through the included Piano Roll script. The MCP server queues notes; you run
Scripts > FL Studio MCP Applyin the target Piano Roll. - Live bridge setup requires FL Studio's MIDI settings to map the request/response ports. The MCP server starts a singleton local MIDI daemon so Claude Desktop, Claude Code, and terminal tests share the same CoreMIDI endpoints.
Install
From this repo:
The installer copies:
device_FLStudioMCP.pyto~/Documents/Image-Line/FL Studio/Settings/Hardware/FLStudioMCP/FL Studio MCP Apply.pyscriptto~/Documents/Image-Line/FL Studio/Settings/Piano roll scripts/
Configure FL Studio on macOS
-
Start the MCP server once so it starts the local MIDI daemon and creates the virtual CoreMIDI ports:
You can stop this foreground MCP process after the ports appear. The background daemon keeps the
FLStudioMCP RequestandFLStudioMCP Responseports available for all MCP clients. -
Open FL Studio and go to
Options > MIDI Settings. -
In the input list, choose
FLStudioMCP Request. -
Set
Controller typetoFL Studio MCP Mac. -
Set the controller output to
FLStudioMCP Response. -
Restart the MCP client if needed. If duplicate
FLStudioMCPports appear, quit old MCP server processes and start the v0.1.1+ daemon again.
MCP Client Config
For detailed setup across Claude Desktop, Claude Code, Cursor, Windsurf, PyPI, and the MCP Registry, see docs/publishing.md.
Example Claude Desktop config:
For source installs where the command is not on PATH:
MIDI Note Workflow
Use fl_create_midi_file when you want a normal .mid file to import.
Use fl_queue_piano_roll_notes when you want to apply notes into the currently open Piano Roll:
- Ask the MCP client to queue notes.
- In FL Studio, open the target channel's Piano Roll.
- Run
Scripts > FL Studio MCP Apply.
Note shape:
Times are in beats. MIDI pitch uses the standard 0-127 scale.
Development
Set FLSTUDIO_MCP_BRIDGE=mock to run the MCP server with deterministic in-memory FL Studio responses for protocol tests:
Normal live mode uses a background daemon. For low-level debugging, set FLSTUDIO_MCP_BRIDGE=direct to make one MCP process own the virtual MIDI ports directly.
For live FL Studio validation steps, see docs/testing.md.
Protocol
The bridge sends base64 JSON over MIDI control-change frames on channel 16:
- CC 120: frame start
- CC 121: one base64 character
- CC 122: frame end
The FL script only accepts whitelisted command names and returns one JSON response for each request.
Privacy
This server runs entirely on your machine. It collects no telemetry and stores no data on any remote service. It communicates only with your local FL Studio instance over macOS virtual MIDI ports (CoreMIDI), and writes files only where you ask: generated MIDI files and the Piano Roll queue JSON under your local Music folder. No account, API key, or network connection is required, and nothing you do in FL Studio leaves your computer.
Built by
Built by Puya Ventures LLC. I build custom MCP servers and AI integrations. Get in touch: [email protected] | Portfolio: https://puyarahmanian.com
License
MIT. See LICENSE.
來源:README.md,提交 4be48b1
工具
0版本歷史
1- v0.1.2最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分