FL Studio MCP

by ohhalim
  • Apple

Integrations

  • Provides support through a dedicated Discord server for setup assistance, feature requests, and sharing music created with the tool

  • Enables sending MIDI data to FL Studio through virtual MIDI ports, with support for specifying notes, velocity, note length, and position timing

flstudio MCP

这是将 Claude 连接到 FL Studio 的 MCP 服务器。

花了三天时间制作完成。我们正在开源它,看看能带来什么实际效果。可能性无穷无尽。

如果您遇到任何问题,请加入我们的 discord,我们可以为您设置。

(如果您对音乐和人工智能的未来感兴趣或想要请求功能,也请加入。我们正在与您一起构建它)

https://discord.gg/ZjG9TaEhvy

步骤 1:下载文件

您应该会看到两个主要项目。

  • 名为“Test Controller”的文件夹
  • 一个名为trigger.py的python文件Test Controller文件夹有一个名为device_test.py的文件,它从MCP服务器接收信息。trigger.py是MCP服务器。

将测试控制器文件夹放在 Image-Line/FL Studio/Settings/Hardware 中(不要更改此文件或文件夹的名称)

步骤 2:为 Claude 设置 MCP

按照本教程了解如何通过编辑 claude_desktop_config 文件在 Claude 中设置 MCP 服务器。

https://modelcontextprotocol.io/quickstart/server

如果你遵循此过程,请确保将任何提及 weather.py 的内容更改为 trigger.py

如果 Hammer 图标没有出现,请打开任务管理器并强制关闭 Claude 进程。

然后它就会显示出来。

这是我的配置文件的样子

步骤3:设置虚拟MIDI端口

对于 Windows

对于 Windows,请从这里下载 LoopMIDI。

https://www.tobias-erichsen.de/software/loopmidi.html

安装 LoopMIDI 并使用 + 按钮添加端口。

这就是我的样子:

对于 Mac

您的 MIDI 端口将自动设置为接收数据。

步骤4:设置MIDI控制器

打开 FL Studio。

前往选项 > MIDI 设置。

在输入选项卡中,单击刚刚使用 LoopMIDI 创建的 MIDI 输入。

将控制器类型从(通用控制器)更改为测试控制器。

步骤5:下载软件包

前往包含trigger.py文件的文件夹。(这是MCP服务器文件)

激活 conda 环境(就像您在 Claude MCP 设置教程中学到的那样)

运行此命令下载必要的软件包:uv pip install httpx mido python-rtmidi Typing fastmcp FL-Studio-API-Stubs(uv 应该从 Claude MCP 设置中安装)

步骤 6:验证 MCP 连接

告诉 Claude 获取可用的 MIDI 端口。

这应该使用 MCP 从 FL Studio 获取端口。

如果是 Windows,请复制您使用 LoopMIDI 创建的端口及其前面的数字。

如果是 Mac,请复制默认端口。

就我而言,我复制 loopMIDI 端口 2

在文本编辑器中打开trigger.py,并将默认端口替换为刚刚复制的端口名称。output_port = mido.open_output('loopMIDI Port 2')

第七步:制作音乐

使用 MCP 发送旋律、和弦、鼓等。

单击您想要录制的乐器,它将实时录制到该乐器的钢琴卷。

当我开始新的聊天时,我倾向于使用这个提示:这是注释的格式:注释(0-127),速度(0-100),节拍长度(十进制),节拍位置(十进制)

第 8 步:分享你的成果

在我们的 Discord 上分享您的作品: https://discord.gg/ZjG9TaEhvy

致谢

FL Studio API Stubs: https://github.com/IL-Group/FL-Studio-API-Stubs Ableton MCP: https://github.com/ahujasid/ableton-mcp

书呆子的东西

如果您想做出贡献,请继续。

其工作原理是,device_test.py 充当一个虚拟 MIDI 控制器。MCP 服务器 (trigger.py) 通过打开虚拟端口并通过名为 MIDO 的库发送 MIDI 消息来与该 MIDI 控制器通信。

MIDI 消息的问题在于它只有 7 位,所以我们只能发送 0-127 之间的数字。

因此,我们将所有 MIDI 数据(如音符位置等)加密为设备知道如何读取的多个 MIDI 音符。

希望 Image Line 可以通过他们的 API 为我们提供更多访问其 DAW 的权限,这样我们就不必再做这些 MIDI 的无聊事了。

Related MCP Servers

  • -
    security
    F
    license
    -
    quality
    An MCP server that enables AI assistants like Claude to interact with Anki flashcard decks, allowing users to create, manage, and update flashcards through natural language conversations.
    Last updated -
    1
    TypeScript
  • -
    security
    A
    license
    -
    quality
    An MCP server that enables Claude to interact with Port.io's AI agent, allowing users to trigger the agent with prompts and receive structured responses including status, output, and action items.
    Last updated -
    5
    Python
    MIT License
    • Linux
    • Apple
  • -
    security
    A
    license
    -
    quality
    An MCP server that implements Claude Code-like functionality, allowing the AI to analyze codebases, modify files, execute commands, and manage projects through direct file system interactions.
    Last updated -
    144
    Python
    MIT License
    • Apple
    • Linux
  • -
    security
    F
    license
    -
    quality
    A Model Context Protocol (MCP) server that provides access to the Beatport Developer API, allowing Claude to interact with music data from Beatport's electronic music catalog.
    Last updated -
    Python
    • Apple

View all related MCP servers

ID: ri7fgia9vd