跳到正文
FunCoding

Ableton Live MCP Server

官方 MCP Registry 已收录

Control Ableton Live with 73 typed tools for music production, AI Ears, and offline .als analysis.

Star
111
版本
v2.0.1
许可证
MIT
最近提交
2026年12月1日

Ableton Live MCP Server

CI Release License: MIT Python Glama tool quality

Website and installation guide: abletonmcp.com

Control Ableton Live from an AI assistant. This is a Model Context Protocol (MCP) server that gives Claude, Cursor, Codex, or any MCP client 73 consolidated, typed tools for building tracks, editing MIDI, loading instruments and effects, mixing, listening/measuring audio, and mastering inside a running Ableton Live set, plus offline tools that read and diff saved .als/.adg project files with Live closed.

A Remote Script runs inside Live and exposes the Live API over a local socket. The MCP server turns that into typed, validated tools that an AI can call correctly, with per-tool documentation, read-only and destructive hints, and workflow prompts.

Quickstart

For the validated release target, use macOS, Ableton Live 12.4.16, Python 3.10+, and uv (brew install uv). Windows and Live 11 compatibility code is included but not yet verified.

Package name note: The PyPI package is mcp-server-ableton-live. ableton-live-mcp and ableton-mcp on PyPI are unrelated third-party packages — always launch with uvx [email protected].

1. Register the MCP server.

Codex (local desktop, CLI or IDE host):

codex mcp add ableton -- uvx [email protected]
codex mcp list

For manual configuration and troubleshooting, see the Codex guide.

Claude Code:

claude mcp add AbletonMCP -s user -- uvx [email protected]

Upgrading from 1.x or 2.0.0: bump the pinned @version in your client config (in Claude Code, run claude mcp remove AbletonMCP -s user before re-adding), rerun uvx [email protected] install, and restart Live. 2.0 replaced the 156 single-property 1.x tools with 73 consolidated ones; see the changelog.

Claude Desktop or Cursor, in the mcpServers block of the config file:

{
  "mcpServers": {
    "AbletonMCP": {
      "command": "uvx",
      "args": ["[email protected]"]
    }
  }
}

2. Install the Remote Script. This copies the Live-side script into your User Library:

uvx [email protected] install

Then activate the bridge in Live:

  1. Fully restart Ableton Live.
  2. Open Settings > Tempo & MIDI, then find the MIDI section and its Control Surface list.
  3. In an unused Control Surface row, select AbletonMCP. Leave existing hardware controller rows unchanged.
  4. In that same row, set Input: None and Output: None.

Link is a separate Settings page in current Live versions. In older versions, look under Link, Tempo & MIDI (or Link/MIDI) in Settings/Preferences, then find the MIDI section.

This selection is required for every MCP client. Installation copies the Remote Script; selecting the Control Surface starts it inside Live. The bridge uses a local socket, so its row does not need hardware MIDI input/output ports.

Rerun uvx [email protected] install after upgrading from 1.x or 2.0.0 — it automatically backs up and upgrades unmodified official scripts (restart Live after upgrading; your Control Surface selection stays intact, and remember to bump your MCP client's @version pin). See Ableton's guide to third-party Remote Scripts if the entry does not appear.

3. Check the setup.

uvx [email protected] doctor --json

Use the same --user-library "/path/to/User Library" for install and doctor if your library has moved. If a customized or third-party script exists, installation stops: review it before adding --replace. Restart Live before diagnosing; doctor checks both installed bytes and the running bridge version.

4. Start read-only. Ask for the tempo and track names without changes. Then, in a disposable set, try: "Make a lofi beat at 80 BPM with a dusty drum kit, an upright bass, and Rhodes chords, then put a limiter on the master at -1 dB."

What it can do

AreaTools
Session and transportsession info, one-call session snapshot, play/stop, tempo, tap tempo, time signature, loop, locators and cue navigation, scenes, undo/redo, capture MIDI, song scale, global groove and swing, Ableton Link
Tracks and mixercreate, name, and delete MIDI, audio, and return tracks; delete devices; take lanes; group-track fold; volume, pan, mute, solo (including return tracks), arm, sends; input/output routing; meters
Clips and notescreate MIDI and audio clips, compact `bar
Devices and pluginsbrowse and VST3-first plugin search, load/insert/move native devices and rack chains onto any track including Master and Returns, read/set parameters with display units & bounds, VST/AU presets and editor window toggle, sidechain routing, sample preview, rack macro variations, Simpler sample slicing, per-pad drum control, curated device knowledge base
Arrangementplace clips on the timeline, read and delete arrangement clips, write and read clip automation
Generatorsdrum patterns in 7 styles, euclidean rhythms, chord progressions, voice-led jazz voicings, 50-plus genre-aware progressions, voice-leading melodies, walking basslines, motif transforms (invert, retrograde, augment), minimalist processes, humanize, one-call session setup
Batchrun many edits in one round trip; native Undo may require multiple steps
Audio and analysistimeout-proof long-polling record_section, BS.1770-4 LUFS/true-peak/spectrum/stereo analyze_audio_file, loudness-matched compare_audio_files, inline spectrogram PNGs (visualize_audio_file), detect key and scale, scan the mix for problems, diff the session since the last check
Offline (no Live)summarize, list tracks (including Live 12.4 VST3/VST2/AU/Max for Live devices), extract MIDI, detect key, read mixer and locator detail, diff two versions, lint a saved .als, and parse .adg/.adv racks with edition detection
Recipesscaffold a genre starter (lofi, house) in one call

There are also five workflow prompts (make_a_beat, mix_and_master, start_a_track, sound_design, analyze_and_improve) and a set of server instructions that teach the model the conventions before its first call: 0-based indices, beats for time, 0.85 volume equals 0 dB, and native ranges for device parameters.

Notes

Every action is a specific tool with validated arguments; there is no arbitrary-code path. Some tools still make destructive edits (delete a track, replace a clip's notes, overwrite an arrangement region), so save your work before a big session.

Audio analysis and session changes

analyze_audio_file reads WAV (integer and floating point), AIFF/AIFF-C, FLAC, Ogg Vorbis, MP3, AAC and M4A/MP4 (AAC or Apple Lossless) locally. The package installs the PyAV decoder dependency. It preserves the file, sample rate, channel layout and floating-point headroom; compressed files are measured after decoding. Analysis supports section slicing via start_seconds + max_seconds (default 30 s, up to 120 s, with a 32-million-sample processing budget), and reports when the result is partial. Measurements include sample peak, RMS, ITU-R BS.1770-4 LUFS, 4x oversampled true peak, 7-band spectral balance, and stereo phase correlation / mid-side width (compare_audio_files adds section-aligned loudness-matched A/B and reference-track deltas; visualize_audio_file returns an inline log-frequency spectrogram and waveform PNG via MCP ImageContent so vision-capable agents can see rhythm, phrasing, pitch contours, and reverb tails).

session_diff distinguishes renames, reordering and duplicate track names using identifiers from the running bridge. Call it before and after an edit; the first call establishes the comparison baseline. Installing an updated Remote Script and restarting Live keeps the bridge's snapshot format matched to the server.

Focusing the toolset

The server registers 73 consolidated tools across 11 domain groups (all enabled by default). Set ABLETON_TOOLSETS to load only the groups you need, for example ABLETON_TOOLSETS=session,tracks,clips,devices,audio,analysis. Groups (each may span several modules): session, tracks, clips, devices, browser, arrangement, generators, audio, analysis, offline, recipes. Unset loads everything.

Conventions

  • Indices are 0-based. Times and lengths are in beats. Volume uses Live's 0.0 to 1.0 fader range where 0.85 is 0 dB.
  • Use one controlling agent per Live instance. The snapshot clips field counts Session slots only; inspect Arrangement clips before concluding a track is empty.
  • Device parameters use each parameter's own range. Read get_device_parameters first and check min, max, and the display value before setting. Numeric strings such as "0.5" use native units for continuous parameters. Quantized parameters match exact display labels first, including numeric labels: "8" can select the label at native index 7, while the number 8 selects native index 8. The result warns when that label match changes the numeric interpretation. Send an actual number to choose by native position. Display strings such as "-12 dB" request a supported display mapping. Top-level and rack setters share these rules.
  • write_automation replaces a single Session clip parameter envelope. A point holds until the next point or clip end unless a positive duration is supplied. Linear ramps become bounded stepped envelopes (at most 4,096 steps). Quantized parameters require integer point values and do not support ramp mode. On verified Live 12.4.16, a write starting at beat zero extends only its first envelope step slightly before zero in one Live callback without changing the manual parameter value, and refuses a nonzero automation state before editing. Beat-zero writes must be standalone calls outside batches; other Live versions retain later-starting writes. Inspect manual_value_changed, prior automation state, and start_settled readback. read_automation returns at most 1,024 samples at explicit beat positions or on a start/end/step grid. A grid includes its end only when the end is on the grid. These are Live's sampled values, not original control points; sample just after step boundaries when checking a transition. These are clip envelopes.
  • write_clip_notation(replace=true) and edit_notes(replace=true) replace the clip's notes. Default edit_notes adds or removes a subset without touching the rest. Shifted clips with automation require a distinct dest_clip_index for motif transforms.
  • Placing a session clip into the arrangement overwrites whatever is under it, which is also how you replace a section.
  • Start, stop and seek replies include requested, observed, and confirmed after a later Live tick. Continue dependent work only when confirmed=true.
  • Batches preflight all commands before editing, contain at most 128 commands, and stop on runtime errors with completed-step details. They are not atomic transactions and do not roll back automatically; require_single_undo=true rejects unsupported multi-edit requests before applying anything. Transport, locators, save, undo/redo, deferred scans and composite tools require standalone calls. Locators require stopped playback for exact placement.
  • Tool replies retain text and expose JSON under structuredContent.data. Failures have isError=true and structuredContent.error, including partial results and an operation ID when available. get_session_info(operation_id=...) inspects the last 256 mutation receipts; reads do not evict them. An expired receipt is not proof an edit failed.
  • Cancellation prevents edits that have not started. A started multi-command edit finishes its workflow; recording has explicit cancellation and recovery points. Shutdown waits for those workers before closing the connection.
  • record_section requires stopped transport and other tracks disarmed, and by default (disable_loop=true) pauses and restores any Arrangement loop that would wrap during capture (pass disable_loop=false to refuse instead). Short captures finish in one call; longer captures (> wait_seconds, default 45 s) run in a managed background job and return status="recording" with a job_id so they never hit 60–120 s MCP client timeouts (poll with record_section(job_id=...) or abort cleanly with cancel=true). It returns a cropped delivery file using Live's warp markers while preserving raw_file_path (when exact extraction is unavailable or tempo changes, capture.cropped=false retains the raw file and disarmed track with a warning). Any failure or cancellation after the requested end is observed retains the disarmed take; cleanup never rewinds the playhead. It is a real-time capture, not a sample-accurate offline render (use Cmd+Shift+R in Live for fast offline full-song exports).
  • Browser and Session-note scans continue across Live ticks within bounded budgets. Check partial and limit_reasons before treating a missing match or key estimate as complete coverage.

The reliability updates require bridge protocol 2; rerun uvx [email protected] install and restart Live after updating. uv remains the installation and launch tool. Audio calculations use an optional native module supplied in platform wheels; a universal Python wheel provides a compiler-free fallback where no native wheel matches. Source builds can select that fallback with ABLETON_MCP_PURE_PYTHON=1. The Live-side Remote Script remains Python 3.7 compatible.

Troubleshooting

  • AbletonMCP is missing from the Control Surface list: the folder has to be named exactly AbletonMCP, and Live only scans scripts at startup, so restart it.
  • Every command times out: a dialog is open in Live and it blocks the script. On the trial, that is the startup nag. Dismiss it and retry.
  • Port 9877 is not listening: Live is not running, or the Control Surface is not set. If another program already uses 9877, set ABLETON_MCP_PORT in Live's launch environment and ABLETON_PORT for the server so both sides match.
  • You cannot export or freeze from a tool: Live's API has no render or freeze function, so those stay manual. For rendered audio, export with the shortcut and analyse the file separately.

Security

The Remote Script listens on 127.0.0.1:9877 with no authentication. It is bound to loopback so only local processes can reach it. Do not forward that port or change the bind address to a public interface. See SECURITY.md.

Development

ableton_live_mcp/
  server.py        entrypoint: runs the MCP server or a setup subcommand
  app.py           FastMCP app, lifecycle, and server instructions
  connection.py    socket client to the Remote Script
  cli.py           install / uninstall / doctor subcommands
  tools/           session, tracks, clips, devices, browser, arrangement,
                   generators, audio, analysis, offline, recipes, prompts
  remote_script/
    __init__.py    the Live-side script and its command dispatch tables
tests/             protocol, dispatch-contract, and registration tests
uv run --extra dev pytest      # tests
uvx ruff check .               # lint

CI defines lint, a byte-compile of the Remote Script, and the full offline suite on Ubuntu with Python 3.10, 3.11, 3.12, 3.13 and 3.14, plus Python 3.13 on Windows and macOS. Native audio wheels have their own platform build/parity jobs; actual Live acceptance remains separate.

Frequently asked questions

What is the Ableton Live MCP Server?

It is a local Model Context Protocol server that lets AI clients such as Claude, Cursor, and Codex inspect and control Ableton Live through typed tools. It can build tracks, edit MIDI, load and configure devices, arrange clips, mix a set, and analyze saved .als projects.

How is this different from other Ableton MCP servers?

This server exposes 73 specific, validated tools rather than an arbitrary-code execution tool. It includes destructive/read-only hints, workflow prompts, built-in music generators, AI Ears audio analysis/spectrograms, mixing tools, and offline .als/.adg inspection. The Remote Script and MCP package are versioned and tested together.

Can it work while Ableton Live is closed?

The real-time control tools require Ableton Live and the bundled Remote Script to be running. The offline tools can summarize, inspect, lint, extract MIDI from, and diff saved .als, .adg, and .adv files without launching Live.

Which MCP clients are supported?

Any client that can launch a local stdio MCP server can use it, including Claude Desktop, Claude Code, Cursor, Codex, and compatible IDEs. The canonical command is uvx [email protected].

Is this an official Ableton product?

No. It is an independent, open-source integration and is not affiliated with or endorsed by Ableton.

Credits and license

MIT licensed, maintained by Wouter Stierhout. See LICENSE. Ableton and Live are trademarks of Ableton AG. This independent open-source project is not affiliated with or endorsed by Ableton AG.

同类 MCP Server

官方

markitdown

Convert various file formats (PDF, Word, Excel, images, audio) to Markdown.

MImicrosoft/markitdown199k近 7 天新增 876 个 star

HyperFrames by HeyGen

Official HyperFrames by HeyGen: the best AI video editor in chat. Captions, motion graphics, MP4.

HEheygen-com/hyperframes93k近 7 天新增 3,834 个 star

精选

tldraw

在画布上与智能体协作,绘制图形并实时执行代码。

TLtldraw/tldraw52k近 7 天新增 101 个 star

Next AI Draw.io

draw.io diagrams your AI agent draws on a live browser canvas that you can also edit by hand

DADayuanJiang/next-ai-draw-io37k近 7 天新增 101 个 star

精选

mcp-for-blender

让智能体在 Blender 里建模,搭建和修改 3D 场景。

AHahujasid/mcp-for-blender37k近 7 天新增 818 个 star

screenpipe

Search your local screen recordings, audio transcripts, and computer activity from screenpipe.

SCscreenpipe/screenpipe23k近 7 天新增 83 个 star