ableton-control-deck
README.md
# Ableton Control Deck
Tell an SI what to change in Ableton Live. Control Deck does it on your Mac, then checks Live actually did it.
**Docs, demo & setup guide:** [remymazmanian.com/ableton-control-deck/](https://remymazmanian.com/ableton-control-deck/)

Ableton Control Deck is a local [MCP](https://modelcontextprotocol.io) bridge for Ableton Live. It gives any MCP client — Claude Code, Claude Desktop, Codex, or anything else that speaks MCP — exact, read-back-verified control of Live tracks, clips, transport, devices, and third-party plug-in parameters, plus a local status dashboard.
Everything runs on your machine and binds only to loopback addresses. Nothing is published or exposed to the network.
> Ableton and Ableton Live are trademarks of Ableton AG. This project is an independent community tool and is not affiliated with or endorsed by Ableton.
## How it works
- A Live remote script (`remote-script/Control_Deck/`) runs as a Control Surface inside Ableton Live and listens on UDP port `50711` for an authenticated local request protocol. The Live API it exposes is an explicit allowlist, never a generic method executor.
- The MCP server (`src/index.ts`, compiled to `dist/`) exposes Live control as MCP tools and talks to the remote script through a dependency-free local UDP client (`src/ableton-client.ts`).
- A per-install secret, generated by `npm run setup` and never committed, authenticates every request between the two.
- A read-only status service (`src/dashboard-server.mjs`, port `50712`) and a Next.js dashboard (`dashboard/`, port `50713`) show bridge health, the current Live session, loaded devices, and a searchable local inventory of VST3, VST2, Audio Unit, and CLAP plug-ins.
- An optional Max for Live device, **Control Deck OmniHost** (`max-for-live/`), hosts a VST3 instrument directly and exposes its *complete* published parameter catalog — thousands of parameters, far beyond Live's automatic device panel — over its own loopback channel (UDP `50714`).
- An optional native macOS wrapper (`macos/`) shows the dashboard in a WebKit window locked to the local address; external navigation is blocked.
- An optional local SQLite sample index (`src/sample-index.ts`) makes an external sample drive searchable by keyword, BPM, key, and one-shot/loop kind, without ever writing to the source audio.
## Design rules
- Track and device mutations require both the index and the exact current name; stale names are refused.
- Plug-in loading resolves through Live's own Browser index and refuses ambiguous names instead of guessing.
- Destructive operations (`delete_track`, index rebuilds) require explicit confirmation flags.
- Every mutation is followed by a separate read-back query, and the tool reports the value Live actually shows.
- Completed request IDs are cached by the bridge, so a duplicated UDP request can never run a mutation twice.
## Tools
- Status, transport, tempo, time signature, and song position with readback verification
- List, create, rename, and safely delete tracks
- Create Session View MIDI clips and write validated note content. Note writes larger than one UDP datagram are split into ordered batches and applied to the same clip.
- Mixer control: volume in dB, pan, mute, solo, arm, and sends on tracks, return tracks, and the master, read back as Live displays them; create and delete return tracks
- Read, change, and remove notes in Session clips by note id; quantize, transpose, humanize, duplicate the loop, and crop
- Load samples from your sample index, or any audio file, into a Session slot, the Arrangement, or Simpler
- Turn devices on and off, and delete them with confirmation
- Write chord progressions from Roman numerals (voice-led, in the song's key) and drum patterns mapped to your Drum Rack's pads
- Export a clip to a MIDI file, and import a MIDI file into a clip
- Set the song's key and scale, groove, Arrangement loop, punch, overdub, and record quantization; Capture MIDI
- Switch between the Session and Arrangement views, and show or hide the clip editor, device chain, and Browser
- Draw automation inside clips: steps or ramps for volume, pan, sends, or any device parameter, including inside racks
- Build the Arrangement from a list of sections (scene and bars), with named locators
- Take snapshots of the set and list exactly what changed since
- Capture a track's, return's, or the master's audio for a set length and measure it: loudness (LUFS), peak, stereo width, spectrum with note names, and the level over time; or measure any WAV or AIFF file
- Sound design: Wavetable's wavetables, oscillator effects, unison, voicing, and filter routing, its modulation matrix, and Simpler's modes; list a native device's presets (Live's and your own) and load one
- Read every track's level in dB, and run a mix check that flags clipping, missing headroom, silent tracks, lopsided panning, and buried tracks
- Reach into racks: set macros, store and recall macro variations, rename, mute, and solo chains, mute and solo drum pads, and set any parameter of a device inside a rack
- Launch and stop Session clips and scenes, and see what is playing or queued
- Create, duplicate, rename, recolor, and delete scenes, with per-scene tempo and time signature
- Session clip properties: loop, markers, launch mode and quantization, color, mute, and audio gain, transpose, and warp; duplicate a clip to an empty slot or delete it with confirmation
- One Live undo step per change, plus `undo` and `redo`
- Save the open set in place and report whether it has unsaved changes (macOS)
- While Live records, changes to the set and device loads are refused; transport and recording controls still work
- Track color, group folding, duplication, and input and output routing by exact name
- Inspect scenes, clips, selection, devices, and every parameter Live exposes
- Discover, resolve, and load VST3 and AU plug-ins on an exact track, a return track, or the master through Live's Browser; VST2 plug-ins are refused
- List a plug-in's own presets and switch to one by exact name
- Load native Live devices (Drum Rack, Echo, Reverb, ...) by exact Browser name with ambiguity refusal, onto tracks, return tracks, or the master
- Read and set third-party plug-in parameters with normalized values and readback
- Control a fully indexed VST3 instrument through OmniHost, past Live's parameter ceiling
- Search a local sample index by keyword, folder, BPM, key, duration, and tags
- List, add, rename, and delete Arrangement locators; adding or deleting one needs playback stopped and puts the playhead back afterwards
- `list_arrangement_clips` lists a track's Arrangement clips with start, end, name, and whether each clip is MIDI or audio. You can still tile a Session clip into the Arrangement, and clear a track's Arrangement when you confirm it.
- `create_arrangement_midi_clip` creates an empty MIDI clip in the Arrangement. It works with Live 12.1.10 or newer. You pass the track's index and its current name; if that name does not match, nothing is created, and the new clip is read back.
- `get_arrangement_clip_notes`, `add_arrangement_clip_notes`, `modify_arrangement_clip_notes`, and `remove_arrangement_clip_notes` read, add, change, and remove notes on an Arrangement MIDI clip. The same track-name check applies, and every write is read back from Live. Add and modify accept up to 10000 notes and send them as sequential batches that fit one datagram.
- `load_user_library_item` loads a saved User Library item, such as an Instrument Rack that holds Pigments or Serum 2, by its exact name onto a track you name exactly. A preset file sitting on disk, such as a `.vstpreset`, is refused.
## Requirements
- **macOS 13 Ventura or newer** (Apple silicon and Intel), or **Windows 10 or 11** (x64 and Arm64). AU plug-ins are macOS-only.
- Ableton Live 11 or newer (tested target: Live 12)
- Node.js 20+
- Max for Live (optional — only for the OmniHost device)
Full documentation — component descriptions, Live setup, the complete MCP tool reference, troubleshooting, and uninstall — lives in [HELP.md](HELP.md).
## Install
### macOS installer
`Ableton Control Deck <version>.pkg` is signed and notarized and includes its own Node.js, so nothing else needs installing first. Open it and follow the steps. It puts the program in `/Library/Application Support/Ableton Control Deck`, puts the app and **Uninstall Ableton Control Deck** in `/Applications/Ableton Control Deck`, sets up Live and the background services for you, and opens the connection guide. Your settings and snapshots go in `~/Library/Application Support/Ableton Control Deck`. Then do steps 4 and 5 below.
The bundled Node.js is the LTS release current when the package was built, and checked against nodejs.org's checksums and signature. If Homebrew has a newer Node.js, Control Deck uses that instead.
### Windows installer
`Ableton-Control-Deck-<version>-Windows-Setup.exe` is signed and includes its own Node.js for x64 or Arm64, so nothing else needs installing first. It installs for your Windows account only, with no administrator prompt. It puts the program in `%LOCALAPPDATA%\Programs\Ableton Control Deck`, sets up Live and the background services for you, adds **Ableton Control Deck** to the Start menu (it opens the dashboard), and offers to open the connection guide. Your settings and snapshots go in `%LOCALAPPDATA%\Ableton Control Deck`. Uninstall it from Installed apps. Then do steps 4 and 5 below.
### Quickstart from the source (no coding required)
1. **Install Node.js** — download the LTS version from [nodejs.org](https://nodejs.org) and run its installer with the default options. (Control Deck runs on it; you never have to touch it again.)
2. **Download Control Deck** — use GitHub's green **Code → Download ZIP** button, unzip it, and move the folder somewhere permanent, like your home folder. Don't leave it in Downloads — the installer pins services to the folder's location and will ask you to move it.
3. **Run the installer** — on macOS, right-click `Install Ableton Control Deck.command` and choose **Open** (macOS requires the right-click the first time for downloaded files). On Windows, double-click `Install Ableton Control Deck.cmd`. It installs everything, starts the background services, and opens the connection guide when it's done. It's safe to run again at any time.
4. **Enable the Control Surface in Live** — Settings (Options → Preferences on Windows) → Link, Tempo & MIDI → pick **Control Deck** in a free Control Surface slot (restart Live first if it was open during setup).
5. **Connect your SI agent** — the guide that opened ([http://127.0.0.1:50713/connect](http://127.0.0.1:50713/connect)) has copy-paste instructions for every client.
### Developer setup
`npm run setup` is the same engine the installer uses — dependency install, TypeScript + OmniHost + dashboard builds, per-machine secret, remote-script install, and background services (launchd agents on macOS, Task Scheduler tasks on Windows), written *and* started. It's idempotent; re-run it after pulling changes or moving the checkout.
```sh
npm run setup
```
Flags for a tighter loop: `--skip-build` (no npm installs/builds), `--skip-remote-script`, `--skip-agents`. The granular pieces are still available as individual scripts (`build`, `build:omnihost`, `install:omnihost`, `index:plugins`, `samples:index`, and the dashboard's own `dev`/`build`/`check`).
What setup manages:
1. a per-machine secret, shared by the remote script and clients and never committed: `~/Library/Application Support/Ableton Control Deck/bridge-token` on macOS, `%LOCALAPPDATA%\Ableton Control Deck\bridge-token` on Windows. It stays out of the User Library, which is often synced to the cloud. An older `data/bridge-token` is moved there unchanged.
2. the remote script, in the User Library that Live's own settings point to (`Remote Scripts/Control_Deck/`),
3. two services pointing at this checkout: launchd agents `com.abletondeck.api` and `com.abletondeck.dashboard` on macOS, or the Task Scheduler tasks "Ableton Control Deck API" and "Ableton Control Deck Dashboard" on Windows. The Windows tasks start at sign-in, run without a window, and restart if they stop.
Then add the MCP server to your client. For example, for Claude Code:
```sh
claude mcp add ableton -- node /path/to/ableton-control-deck/dist/src/index.js
```
In Live, open **Settings → Link, Tempo & MIDI** and confirm **Control Deck** is selected as a Control Surface.
### Connecting other agents
The dashboard's **Connect** page ([http://127.0.0.1:50713/connect](http://127.0.0.1:50713/connect)) has copy-paste setup guides — rendered with your machine's real install path — for Claude Code, Claude Desktop, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Grok CLI, fully local LLM harnesses (LM Studio, Ollama via mcphost), and any other MCP client, plus an honest discussion of what it would take (and cost, security-wise) to expose the bridge to remote connectors like claude.ai. The short version: any agent that can launch a stdio MCP server can drive Live; remote cloud connectors are deliberately out of scope.
## Control Deck dashboard
Open the deck at [http://127.0.0.1:50713](http://127.0.0.1:50713) (it starts at login if you activated the launch agents). It shows bridge health, the current Live session, the selected track's device chain, and a searchable local inventory of installed plug-ins. Its settings page controls bridge connection, refresh behavior, library defaults, density, color, and motion. Project changes continue to use the exact, read-back-verified MCP tools.
The optional native app is built with `npm run build:macos` as `Ableton Control Deck.app`.
## Local commands
```sh
npm run check # type-check + syntax-check all sources
npm test # unit tests (client, tools, validation, safety)
npm run test:bridge # remote-script protocol tests (Python)
npm run index:plugins # rebuild the local plug-in inventory
npm run samples:index # refresh the sample index
npm run build:macos # build the native wrapper app
npm run build:pkg # build, sign, and notarize the macOS installer (build/)
npm run build:win # build and sign the Windows installer on a Windows PC over SSH (build/)
npm run uninstall # remove what setup installed; asks whether to keep settings
```
`build:pkg` needs the Developer ID Application and Installer certificates and a `notarytool` keychain profile; see the top of `installer/macos/build-pkg.sh`. `-- --no-notarize` skips notarization. `build:win` runs `installer/windows/build-installer.ps1` on `WIN_HOST` (default `remym@remydesktop`), which needs Node.js, Inno Setup 6, and Azure Artifact Signing as set up in `installer/windows/sign.cmd`; `-- --no-sign` skips signing.
The dashboard has its own build check:
```sh
cd dashboard
npm run check
```
## Security model
- The bridge listens on `127.0.0.1` UDP `50711` only; the status service, dashboard, and OmniHost all bind to loopback only.
- Every bridge request must carry the per-install secret from `data/bridge-token`. The remote script refuses to start if the secret was never stamped.
- The Live API surface is an explicit allowlist with exact-target safeguards, so a confused agent fails loudly instead of editing the wrong thing.
- The MCP server logs requests locally to `logs/control-deck.jsonl` so you can audit what an agent did.
## License
[MIT](LICENSE)
This server cannot be deployed
Maintenance
ActivityNo data
ResponsivenessOutdated data