FL Studio Agent

io.github.origami-research由 GitHub 帳號 origami-research 發布v0.1.6更新於 Oct 29, 2026

Drive FL Studio from an AI agent: write notes, set tempo and levels, check what sounds, render.

已驗證STDIO僅桌面開發者工具媒體與設計

概覽

AI 產生的概覽

讓 AI 助理在你自己的 FL Studio 裡寫音符、設定速度與音量、檢查哪些通道有聲音,並渲染混音。

可以做什麼
  • 透過執行針對 FL SDK 的 Python 來寫入與清除音符、速度、音量與外掛參數
  • 讀取目前的音樂場景,包括依通道與樣式檢視音符
  • 播放數小節並讀取混音台音量表,查看哪些通道有聲音以及靜音的原因
  • 將即時編排播放一次並錄製成 WAV 檔
  • 對渲染出的 WAV 做確定性分析
適用情境
適合希望助理在真實的 FL Studio 專案中編寫或調整段落,並透過音量表與渲染混音來驗證結果的音樂製作人,而非離線編輯專案檔。
執行需求
在 macOS 或 Windows 上以 uvx(Python 3.12)啟動的本機程序,需已安裝 FL Studio 2026。需執行一次安裝指令以安裝控制器腳本與原生 Bridge 外掛,並在 FL Studio 中開啟 FLMCP Agent.flp 專案。Windows 上還需 loopMIDI 並建立名為 FLMCP Req 與 FLMCP Res 的兩個埠。需設定環境變數 FLMCP_FL_LICENSE 為 trial 或 licensed。
安裝前請注意
run 工具會執行模型撰寫的 Python;它被限制在獨立工作區資料夾內,但可連上公開網際網路,且在 macOS 上不會阻擋區域網路中的其他電腦。引擎、FL Studio 與 Bridge 本身不在沙箱內。安裝過程會下載預先建置的外掛並寫入 FL 的資料夾,Windows 上需系統管理員終端。試用版無法重新開啟已儲存的專案,因此不要儲存該代理專案。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 FL Studio Agent,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

FL Studio Agent

[Claude writes a lo-fi beat in FL Studio and plays it to check the mixer meters before it renders]

fl-studio-agent lets an AI agent work in your own FL Studio. It writes notes, sets tempo, levels and plugin parameters, checks which channels sound, and renders the mix. It is an MCP server, a Python SDK, and a native Bridge plugin.

[Install in Cursor] [Install in VS Code] [Claude Desktop bundle] [PyPI] [License: MIT]

Claude Code:

bash
claude mcp add --scope user fl-studio -- uvx --python 3.12 fl-studio-agent

Quick start

You need FL Studio 2026 on macOS or Windows and uv.

  1. Install uv if you don't have it. macOS: curl -LsSf https://astral.sh/uv/install.sh | sh. Windows: powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex", then open a new terminal so uvx is on your PATH. Also on Windows, install loopMIDI, add two ports named exactly FLMCP Req and FLMCP Res, and tick Autostart loopMIDI in its tray menu so the ports come back after a restart (Windows has no virtual MIDI ports; macOS needs nothing).

  2. Set up FL Studio once. Start FL once if you never have, close it, then run (on Windows, in a terminal opened as administrator, because FL's plugin folder is under Program Files):

    bash
    uvx --python 3.12 --from fl-studio-agent fl-mcp-install

    It installs the controller and note scripts, assigns the controller's MIDI ports, creates the agent's own project (FLMCP Agent.flp; your other projects are never touched), and downloads the prebuilt Bridge plugin, the native FL effect the server requires to write notes and render, checking it against the release's SHA-256 sums. It is safe to rerun. To update later, run it with fl-studio-agent@latest in place of fl-studio-agent and restart FL and your client.

  3. Open the agent project in FL Studio: File > Open, FLMCP Agent.flp in FL's Projects folder (Documents/Image-Line/FL Studio/Projects). It carries the Bridge on its Master insert; in any other song there is no Bridge running, so notes and render are refused.

  4. Add the server to your client with a button above or a config below, and ask for "a 4-bar chord loop in A minor".

Claude Code
bash
claude mcp add --scope user fl-studio -- uvx --python 3.12 fl-studio-agent

Check it with claude mcp list.

Claude Desktop

Download fl-studio-agent.mcpb and open it (or drag it into Settings > Extensions). Claude Desktop installs the package itself; you still run step 2 once, which also installs the Bridge plugin the server requires into FL.

Or add this to claude_desktop_config.json (Settings > Developer > Edit Config):

json
{  "mcpServers": {    "fl-studio": {      "command": "uvx",      "args": [        "--python",        "3.12",        "fl-studio-agent"      ]    }  }}

If Claude Desktop reports spawn uvx ENOENT, it cannot see your shell's PATH: replace "uvx" with the full path that which uvx (macOS) or where uvx (Windows) prints.

Cursor

Use the Install in Cursor button above, or add this to ~/.cursor/mcp.json:

json
{  "mcpServers": {    "fl-studio": {      "command": "uvx",      "args": [        "--python",        "3.12",        "fl-studio-agent"      ]    }  }}
VS Code

Use the Install in VS Code button above, or run (macOS/Linux shell quoting):

bash
code --add-mcp '{"name": "fl-studio", "type": "stdio", "command": "uvx", "args": ["--python", "3.12", "fl-studio-agent"]}'
Windsurf and other clients

Add the standard entry to the client's MCP config (Windsurf: mcp_config.json, see its MCP docs):

json
{  "mcpServers": {    "fl-studio": {      "command": "uvx",      "args": [        "--python",        "3.12",        "fl-studio-agent"      ]    }  }}

Troubleshooting

Run the doctor while FL Studio is open:

bash
uvx --python 3.12 --from fl-studio-agent fl-mcp-doctor

It prints one JSON report of the control plane (controller script and MIDI ports), the note plane (the Bridge), and the agent project. Its status is ok only when all of them are connected, and not_ready otherwise, with a fix for each one that is not. The usual fixes: open FLMCP Agent.flp in FL Studio before your client starts the server (the doctor reports no running Bridge when another song is open, and rerunning step 2 when none is installed); after an upgrade rerun step 2 with fl-studio-agent@latest (a stale controller is reported); on Windows, keep loopMIDI running with both ports. Using the FL Studio trial? Set FLMCP_FL_LICENSE=trial in the server's env, and answer No when FL asks to save FLMCP Agent.flp: the trial cannot reopen a song it saved. If it was saved, delete it and rerun step 2, which creates it again. uvx --python 3.12 fl-studio-agent --version prints the installed version.

Tools

The server exposes five tools, one per job:

ToolPurpose
runExecute Python against the FL SDK: write and clear notes, tempo, levels, parameters. Its docstring is the SDK cheatsheet.
get_sceneRead what FL has now: a compact musical summary, or the notes (detail="notes", by channel and pattern).
checkPlay a few bars and read FL's mixer meters: which channels sounded, their peaks, and why a silent one is silent.
renderPlay the live arrangement once and record the mix to WAV.
analyzeAnalyze a WAV deterministically.

The working rhythm is write, check at milestones, render at the end. Every result is what FL now has, so nothing needs waiting for, saving, or re-reading. FL's transient refusals ("operation unsafe at current time", a busy control wire) are retried inside the engine; a model sees only errors it can act on. Setup diagnostics are for the operator, not the model: fl-mcp-doctor prints the same report as JSON.

How it works

Three complementary lanes: flpkit edits project files, the native Bridge plugin performs live host operations, and the MIDI controller script handles live controller operations. SETUP.md covers installing from a source checkout and building the Bridge.

Security

The Python the model writes in run, and the shell and file tools when they are on, runs in a sandbox limited to its own workspace folder, on macOS and Windows. It can read and write that folder and reach the public internet, so pip install works. It cannot read your home folder or your other files, reach services on this computer (FL's control ports included), or touch other programs. The engine itself, FL Studio and the Bridge are not sandboxed; the model's code reaches FL only through the engine. Before any model code runs, the engine checks that the sandbox holds and refuses to run the code if it does not; the MCP server reports confined=true. On macOS the sandbox does not block other computers on your local network. Details: docs/38.

Development

For a disposable live smoke session, run fl-mcp-dev-session. For the local merge gate, run:

bash
scripts/gate.sh

The gate is the authoritative test count and verification contract; see docs/gate.md for its current stages.

Documentation

來源:README.md,提交 69dc76d

工具

0
SourceWeft 曾在隔離沙箱中以無憑證方式啟動該軟體包一次,以列出其工具,但未能完成:伺服器未能啟動。

版本歷史

2
  1. v0.1.6最新Oct 29, 2026
  2. v0.1.2Oct 23, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分