Ableton MCP Server

io.github.ntwormv0.7.0更新于 Oct 11, 2026

Inspect, analyze, and safely edit a running Ableton Live Set on Windows; 97 tools.

概览

AI 生成的概览

让助手通过 97 个工具检查、分析并安全编辑 Windows 上正在运行的 Ableton Live 12 工程,涵盖走带、轨道、设备、片段、混音分析和离线 groove 生成。

功能
提供 97 个工具,分为走带与会话控制(get_session_info、set_tempo、start_playback、fire_clip)、轨道与设备(get_track_list、live_find_track、get_device_list、set_parameter_value、create_clip、add_notes_to_clip、delete_clip)、生命周期与自动化(save_set、quit_ableton、create_clip_automation)、离线混音分析(analyze_audio、find_frequency_masking、analyze_mix)、Groove Intelligence(groove_search、groove_evidence、groove_generate、groove_compare、groove_apply)以及检查与批量执行(run_batch、get_locators、get_ableton_logs)。它会写入 Live 的本地套接字,并在返回结果前校验对象模型状态,还会返回结构化错误码,例如 CAPABILITY_UNAVAILABLE、AMBIGUOUS_MATCH 和 VERIFICATION_FAILED。Groove 的检索、证据、生成和比较均在离线进行,只有受保护的 groove_apply 会写入 Live。
适用场景
当你希望 AI 助手查询并驱动 Windows 上正在运行的 Ableton Live 12 会话时使用:读取会话与轨道状态,调整速度、参数和颜色,创建或编辑 MIDI 片段,执行分组批量编辑,离线分析混音,或生成并比较 groove 后再应用其中一个。它面向本地工作的制作人和音频开发者,不适合云端或无界面环境。在依赖轨道索引、run_batch 或 TCP 回环连接 Live 之前,请先阅读已知问题摘要。
运行要求
仅支持 Windows 桌面;作为本地 stdio 进程由 MCP 客户端启动。需要 Ableton Live 12、Python 环境(安装脚本会创建 .venv-win),并把随附的 Remote Script 安装到 Ableton 的 User Library,然后在 Preferences -> Link, Tempo & MIDI -> Control Surfaces 中选择 AbletonMCPServer。服务器通过 TCP 127.0.0.1:9888 与 Remote Script 通信,并通过 WebSocket 127.0.0.1:9889 与 Extension Host 桥接通信。.mcpb 包在首次启动时需要 uv 和网络访问。未声明认证、环境变量或请求头。
安装前请注意
它可以写入并修改你的 Live Set:相关工具会创建和删除片段、添加音符、设置参数、颜色、warp 状态、保存工程以及退出 Ableton;run_batch 会把多条命令合并为一个撤销步骤,若后续命令失败,前面已成功的部分仍会保留。Groove 相关功能中只有 groove_apply 会改动 Live,且必须先针对明确的目标和空槽位预览,再提交一次。关于轨道索引、run_batch 和 TCP 回环的已知陷阱已有文档,建议先阅读。未声明任何 API 密钥或云端端点。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Ableton MCP Server,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

ableton-mcp-server

:globe_with_meridians: Live Landing Page & Interactive 97-Tool Catalog · Architecture Diagram · Agent Playbook · Tool Index

An open Model Context Protocol (MCP) server that enables AI agents (Antigravity, Gemini, Codex) and audio developers to query, analyze, drive, and automate a running Ableton Live 12 Set.

The current tool surface is 97 tools over TCP, WebSockets, composed routes, and local execution (with primary device resolution via device_name, track_index, and clip_index); the current v0.7.0 release ships 97 tools. Historical milestones exposed 65 certified tools in v0.5.2 , 88 tools in the v0.5.6 source milestone , and 96 tools in the v0.6.0 release . v0.7.0 adds plan_user_journey, an updated retrieval seed v3 with per-collection SD3/GM articulation mapping, and a dedicated UDP realtime control channel. Groove retrieval, evidence, generation, and comparison stay offline; only the guarded apply path reaches Live. A FastMCP server in Python communicates with a MIDI Remote Script on TCP 127.0.0.1:9888 and an Extension Host bridge over WebSockets on 127.0.0.1:9889.

Groove Intelligence is offline by default. Its deterministic generator needs no provider installation; an optional neural provider is isolated behind a fixed allowlist, bounded local IPC, resource limits, and signed laboratory gates. Provider failures always return the equivalent deterministic artifact, and no provider receives corpus paths, raw MIDI, notes, SQL, credentials, or network access. See the provider laboratory contract. The curated seed ships inside the wheel; ABLETON_GROOVE_SEED_BUNDLE can override it explicitly, while derived artifacts stay in LocalAppData. Groove retrieval, evidence, comparison, and deterministic generation are portable and do not depend on the private source library. A generation request can use one primary groove plus up to seven references; incompatible PPQ, meter, or rights are rejected explicitly. Within the Groove Intelligence surface, the only Live mutation is guarded groove_apply, which must be previewed against an explicit target and empty slot before one commit.


⚡ What is Model Context Protocol (MCP) & How Agents Use It

Model Context Protocol (MCP) is an open standard for secure, local communication between Large Language Models (LLMs) and desktop applications.

Local IPC / stdio (Not a Cloud Service):
ableton-mcp-server runs locally on your host OS over standard input/output (stdio) or IPC loopback. The AI agent spawns the ableton-mcp-server.exe process directly. There are no external cloud endpoints or API keys required, guaranteeing zero network latency and maximum privacy.

How AI Agents Interact with Ableton Live:

  1. Tool Discovery (tools/list): When an MCP client (Antigravity, Cursor, Windsurf) launches the server, it automatically discovers all 97 tool schemas .
  2. Tool Execution (tools/call): When the LLM decides to manipulate Ableton Live, it issues JSON-RPC messages (e.g. set_tempo(tempo=128.0) or create_clip(...)).
  3. Write-Then-Verify Loop: The server writes to Live's local socket and verifies object model state before returning a result.
  4. Self-Correcting Error Taxonomy: If an error occurs, the server returns structured codes (CAPABILITY_UNAVAILABLE, AMBIGUOUS_MATCH, VERIFICATION_FAILED), enabling the agent to reason and adapt.

Recommended System Prompt for AI Agents:

text
You have direct access to an active Ableton Live Set via ableton-mcp-server (97 tools) <!-- TOOL_COUNT: active_total -->.1. Always start by inspecting the project state using `get_session_overview()` or `get_track_list()`.2. To modify track properties, resolve the target track index using `live_find_track(name_pattern)` first.3. For parameter adjustments, query parameters via `get_device_list()` and `get_parameter_value()`, then apply changes using `set_parameter_value()`.4. When executing multiple operations, bundle them using `run_batch(commands)` for one grouped undo step; a successful prefix persists if a later command fails.5. Respect the error taxonomy: if you receive `AMBIGUOUS_MATCH` or `VERIFICATION_FAILED`, inspect track context and retry.

🛠️ Use It

License is MIT. Copy, fork, ship — see LICENSE.

Windows Install (one-shot):

powershell
powershell -ExecutionPolicy Bypass -File .\scripts\setup_windows.ps1

Preview the exact Remote Script copy plan without creating .venv-win, installing dependencies, or writing to Ableton's User Library:

powershell
powershell -ExecutionPolicy Bypass -File .\scripts\setup_windows.ps1 -DryRun

If the environment already exists, the equivalent CLI preview is:

powershell
.\.venv-win\Scripts\ableton-mcp.exe install-script --dry-run

Then restart Live, select AbletonMCPServer under Preferences -> Link, Tempo & MIDI -> Control Surfaces, and verify the installation:

powershell
.\.venv-win\Scripts\ableton-mcp.exe doctor --json

Verify Install

You can verify your installation integrity using either the built-in CLI tool or direct SHA-256 hash comparison:

1. CLI Remote Script Status

Run install-status to compare installed Remote Script files against the bundled source:

powershell
.\.venv-win\Scripts\ableton-mcp.exe install-status --json

A healthy, up-to-date installation returns "status": "current":

json
{  "status": "current",  "source": "C:\\path\\to\\ableton-mcp-server\\AbletonMCPServer_RemoteScript",  "target": "C:\\Users\\<user>\\Documents\\Ableton\\User Library\\Remote Scripts\\AbletonMCPServer_RemoteScript",  "missing_files": [],  "mismatched_files": []}
2. SHA-256 Checksum Audit

During setup, setup_windows.ps1 automatically verifies and prints the Remote Script's SHA-256 hash:

text
Remote Script verification:  algorithm: SHA256  hash: 3E3504D661FA2DCE7582F50C56F0C71EB79892F7A4520BD3F1B8571EEDBB14DE  path: C:\Users\<user>\Documents\Ableton\User Library\Remote Scripts\AbletonMCPServer_RemoteScript\__init__.py

To manually compute and verify the SHA-256 checksum of the installed __init__.py at any time:

  • Windows (PowerShell):
    powershell
    Get-FileHash "$HOME\Documents\Ableton\User Library\Remote Scripts\AbletonMCPServer_RemoteScript\__init__.py" -Algorithm SHA256
  • macOS / Linux:
    bash
    shasum -a 256 "$HOME/Music/Ableton/User Library/Remote Scripts/AbletonMCPServer_RemoteScript/__init__.py"

Agent Configuration (mcp.json):

json
{  "mcpServers": {    "ableton": {      "command": "C:\\path\\to\\ableton-mcp-server\\.venv-win\\Scripts\\ableton-mcp-server.exe",      "args": []    }  }}

If you operate from WSL2, point the MCP client at the Windows binary so loopback stays in the host network namespace:

text
/path/to/ableton-mcp-server/.venv-win/Scripts/ableton-mcp-server.exe

MCP Bundle (.mcpb)

scripts/build_mcpb.py packs the server as an MCP Bundle for Windows. The bundle carries the wheel and a locked launcher project; on first launch the host's uv installs Python and the dependencies from PyPI. It contains the server only, so the Remote Script and the Extension still install as described above.

powershell
.\.venv-win\Scripts\python.exe scripts\build_mcpb.py build --out-dir dist\mcpb.\.venv-win\Scripts\python.exe scripts\build_mcpb.py smoke dist\mcpb\ableton-mcp-server-<version>.mcpb

build needs uv, Node.js (npx runs the pinned @anthropic-ai/mcpb CLI), and network access. smoke extracts the bundle, launches it over stdio, and checks initialize, tools/list against the catalog, and one offline tool, without Ableton Live.


📦 What It Does (97 MCP Tools)

v0.6.0 extends the certified 65-tool v0.5.2 baseline . v0.5.3 introduced colour writes, clip-target diagnostics, and five hierarchy tools that validate then return CAPABILITY_UNAVAILABLE; v0.6.0 adds offline music generation, Groove retrieval, and guarded apply. See the offline music reference.

The 97 MCP tools are grouped into operational domains :

  • Transport & Session: get_session_info, set_tempo, start_playback, stop_playback, get_loop_settings, set_loop, set_loop_start, set_loop_length, set_current_song_time, get_song_length, get_session_overview, get_scenes, get_scene_state, fire_scene, fire_clip.
  • Tracks & Devices: get_track_list, live_find_track, live_find_device, live_find_clip, get_track_state, get_device_list, list_device_params, get_parameter_value, get_plugin_presets, set_plugin_preset, get_clip_summary, set_parameter_value, create_clip, get_clip_notes, add_notes_to_clip, delete_clip, clear_clip_notes, set_clip_properties, get_clip_info, set_track_property, set_track_color, set_clip_color, diagnose_clip_targets, create_midi_track, create_audio_track, rename_track, move_track, reorder_tracks, move_track_to_group, ungroup_track, merge_groups, get_routing, diff_snapshots_tool, take_snapshot, get_selected_context, get_composition_structure, diagnose_midi_clip, search_browser, load_device_to_track, get_warp_state, set_warp_state.
  • Lifecycle & Automation: lifecycle_status, save_set, quit_ableton, live_fade, create_clip_automation.
  • Offline Mix Analysis: analyze_audio, find_frequency_masking, analyze_mix, extract_single_cycle (LUFS-I, True Peak, dynamic range, spectral collision).
  • Groove Intelligence (offline by default): groove_search, groove_evidence, groove_generate, groove_compare, groove_apply (genre/subgenre/style/section taxonomy, V2 projections, deterministic multi-parent generation, late kit mapping, and one guarded Live commit).
  • Inspection & Batch Execution: run_batch, get_locators, create_cue_point, delete_cue_point, bulk_create_cue_points, get_control_surfaces, get_browser_categories, get_project_metadata, get_ableton_logs, get_bridge_status.

Offline Music Generation

InventoryToolsLive boundary
Deterministic music generationmusic_generate_drum_groove, music_generate_bass, music_plan_productionOffline by default; only an explicit apply request reaches Live.

💡 Inspiration & Prior Art

This project builds on design insights from seminal open-source projects:

Full notes in docs/INSPIRATION.md.


⚠️ Known Bugs

Live's Object Model exposes a number of traps (path-id drift, undo semantics, WSL loopback, protocol drift, allowlist surprises) that an AI agent can hit without warning. Each one has a known workaround in the codebase; every trap is documented in docs/KNOWN_BUGS.md. Read the executive summary at the top of that file before relying on track indexes, run_batch, or a TCP loopback to Live.


📜 License

MIT — Copyright (c) 2026 Gabriel Worm (ntworm). See LICENSE.

来源:README.md,提交 d7ecfdf

工具

0
工具元数据尚未被收录。

版本历史

1
  1. v0.7.0最新Oct 11, 2026