bitwig-gemini-mcp
Enables AI agents to control and monitor Bitwig Studio in real-time using natural language commands through MCP and OSC.
README
Bitwig Studio Gemini Agent Bridge (MCP)
This project provides a direct integration bridge between Gemini (via Model Context Protocol - MCP) and Bitwig Studio (via Open Sound Control - OSC). It allows an AI agent or the Gemini client to manage, control, and monitor your Bitwig Studio projects in real-time.
🏗️ Architecture
┌──────────────────────────┐ ┌─────────────────────────┐ ┌─────────────────────────┐
│ │ JSON-RPC │ Node.js MCP Server │ OSC / UDP │ Bitwig JS Controller │
│ Gemini Client / IDE │ ──────────> │ │ ──────────> │ │
│ │ <────────── │ (mcp-server.js) │ <────────── │ (AntigravityController)│
└──────────────────────────┘ (Stdio) └─────────────────────────┘ (Ports 9000/9001) └───────────────────┘
│
│ Bitwig Controller API
▼
┌─────────────────────────┐
│ Bitwig Studio DAW │
└─────────────────────────┘
The bridge consists of two main components:
- Node.js MCP Server: Listens to Gemini commands over standard input/output, maps them to OSC messages, and sends them to Bitwig over UDP. It also starts a UDP receiver to get real-time status updates (playback, track volume, solo, mute) from Bitwig.
- Bitwig Controller Script: A JavaScript extension loaded directly inside Bitwig Studio that opens a UDP socket (port
9000) to receive OSC commands, executes actions natively using the Bitwig Controller API, and pushes state changes back to Node.js (port9001).
📂 Project Structure
/home/bedri/Bitwig Studio/Projects/BitWig/
├── package.json # Project manifest (dependencies: node-osc)
├── package-lock.json # Package lockfile
├── mcp-server.js # Node.js MCP server (Stdio JSON-RPC bridge)
├── start-mcp.sh # Executable launcher script
└── README.md # This documentation
/home/bedri/Bitwig Studio/Controller Scripts/
└── AntigravityController.control.js # Extension script loaded by Bitwig Studio
🚀 Setup & Activation
The project has been automatically deployed, but here are the configuration references:
1. Gemini MCP Registration
The server is registered in your local Gemini Configuration file (~/.gemini/config/mcp_config.json) under the bitwig-agent key:
"bitwig-agent": {
"command": "node",
"args": [
"/home/bedri/Bitwig Studio/Projects/BitWig/mcp-server.js"
]
}
2. Enable in Bitwig Studio
- Launch Bitwig Studio.
- Open the dashboard (click the Bitwig logo at the top center) and navigate to Settings > Controllers.
- Click Add Controller.
- Set Vendor to
Antigravityand Model toGemini Controller Bridge. - The extension will automatically bind, starting the UDP servers on ports
9000(listening) and9001(sending).
🛠️ Supported Tools & Commands
Gemini is equipped with the following tools through this MCP server:
| Tool Name | Parameters | Description |
|---|---|---|
get_state |
None | Retrieves transport play state, BPM, arranger loop status, and list of existing tracks. |
play |
None | Starts playback in Bitwig. |
stop |
None | Stops playback. |
record |
None | Toggles arranger recording. |
toggle_loop |
None | Toggles the arranger loop. |
set_tempo |
bpm (number) |
Adjusts the project tempo (e.g. 128.5). |
set_track_volume |
track_index (int), volume (float 0.0 - 1.0) |
Sets the volume level of a track. |
set_track_pan |
track_index (int), pan (float 0.0 - 1.0) |
Adjusts the panning of a track (0.5 is center). |
set_track_mute |
track_index (int), mute (bool) |
Mutes/unmutes a track. |
set_track_solo |
track_index (int), solo (bool) |
Solos/unsolos a track. |
set_track_arm |
track_index (int), arm (bool) |
Arms/disarms a track for recording. |
launch_scene |
scene_index (int) |
Launches a scene by index. |
undo |
None | Executes native Undo. |
redo |
None | Executes native Redo. |
💬 Example Prompts
You can now command your DAW in natural language:
- "Start playback in Bitwig"
- "Set the project BPM to 124"
- "Mute track 2 and solo track 0"
- "Get the current tracks list and their volumes"
- "Turn arranger loop on"
- "Undo the last action"
🔍 Troubleshooting
Flatpak Network Permissions
Because Bitwig is packaged as a Flatpak on your Linux system, it runs in a sandbox. If the OSC connection fails, grant Bitwig permission to share the host's loopback network interface by running the following command:
flatpak override --user --share=network com.bitwig.BitwigStudio
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。