mcp-midi-controller
A Model Context Protocol server, written in
Go, that turns a MIDI/OSC rig into something you can set up, sound-design and
manage scenes for conversationally.
It is a rig-setup and scene-management layer, not a real-time/live
controller — an LLM-driven server has request/response latency and does not
belong in the live foot-control path. Use your footswitch (e.g. a Morningstar
ML10X) to play live; use this to build the sounds and scenes it recalls.
Status: functional. The core is implemented end-to-end — engine, BLE-MIDI /
OSC / USB transports, dynamic per-device tools with per-control value schemas,
scenes (save/recall), device authoring + MIDI-learn, desired-state persistence,
and the systemd-managed loopback daemon (see docs/design.md).
What remains is per-control hardware validation on the live rig (the harness
is scripts/validate.sh).
What it does
- Controls a heterogeneous rig from one conversation:
- Pedals over BLE-MIDI (Boss MD-200, Eventide H90, Two Notes Opus,
Morningstar ML10X) — typically behind a BLE-MIDI hub (e.g. a CME WIDI
Thru6).
- Behringer X32 over OSC/UDP (on WiFi).
- AUM on iPad and its AUv3 plugins/synths (Battalion, iSem, Agonizer,
Korg iMS-20, FabFilter, …) over the
auv3midi LAN channel into AUM. Plugin
device types are generated and verified with the companion
auv3-probe iPad app, which dumps
each plugin's AUParameterTree to the daemon's built-in probe receiver (a
LAN listener separate from the loopback MCP endpoint). Agents then see what's
available via the list_auv3_probes / get_auv3_probe tools and turn a dump
into a device type with import_auv3_probe.
- Sees and touches AUM over USB: the
ipad_* tools drive the iPad's screen
through WebDriverAgent (screenshots, the accessibility tree, tap / double-tap /
hold / swipe / drag, text entry), the aum_* tools run AUM's operations by
name (channels, nodes, transport, files, MIDI routing and control, settings,
the File Player) and verify each result, and get_aum_ui / wait_for_aum_ui
read AUM's tempo, session, transport, fader levels, mute / solo / arm and node
bypass back from its own display, so MIDI the daemon sends is verified against
what AUM actually shows. See docs/ipad-control.md.
- Owns BLE discovery + pairing itself (via BlueZ over D-Bus) — no manual
bluetoothctl.
- Extendable without writing Go: add gear by dropping a YAML device type, or
have an agent author one via MIDI-learn.
- Scenes: snapshot and recall sounds across the whole rig; scenes are
partial and layerable.
- Songs: write a multi-track song as one YAML document — tracks with
their instrument and effect chain, patterns, sections with their own sound,
an arrangement — and the daemon authors the AUM session that hosts it,
loads it into AUM and plays it: from a sequencer in the session that holds
the whole song, or live through the brain (
save_song, load_song,
play_song). See docs/songs.md.
- Craft agents: the Claude Code
midi-crafts plugin gives each musical
craft its own tools and instructions, starting with mastering_engineer.
It works on one song with explicit load consent and reports saved revisions
and measured results. See installation and use.
- Recordings: record a song while it plays, or whatever an audio tap
hears, into a seamless FLAC or WAV file, and upload it to your own Google
Drive (
play_song with record, start_recording, upload_recording).
See docs/recording.md.
- Rig-as-code: your device types, devices and scenes live in one
git-trackable directory.
How it is wired
MCP client (Cursor/Claude) ──HTTP 127.0.0.1──▶ mcp-midi-controller daemon
├─ engine (type registry, devices,
│ desired-state, scenes)
└─ transports
├─ blemidi (BlueZ D-Bus + BLE-MIDI GATT)
├─ usbmidi (ALSA rawmidi editors)
├─ usbhid (hidraw editors)
├─ osc (X32)
└─ auv3midi (LAN channel into AUM)