io.github.peterkolbe/ableton-for-ai
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@io.github.peterkolbe/ableton-for-ai What's the current tempo and track list?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Ableton for AI
For AI Agents: Please read AGENTS.md for detailed technical context and protocol specifications before working on this project.
Ableton for AI is the bridge between your DAW and AI models. It makes Ableton projects hearable and visible to AI models by implementing the Model Context Protocol (MCP) and exporting detailed project data.
What can it do?
Connect Ableton Live directly to MCP-capable AI clients (like Claude Desktop, Cursor, or Cline). The AI can inspect, analyze, and even modify your project in real-time.
Included Tools:
get_overview: SESSION DISCOVERY. Provides tempo, locators, and a list of all tracks with their current mixer state (volume, panning, etc.).get_track: TRACK INSPECTION. Comprehensive data for a single track: metadata, complete device chain, and all device parameters (with UI-readable strings).get_tracks: BULK TRACK INSPECTION. Query full data for a range of tracks in a single parallelized call.analyze_stems: DEEP AUDIO ANALYSIS. Triggers generation of audio summaries (.summary.json) and spectrograms (.spectrogram.webp) for all tracks.set_track_volume/set_track_panning: MIXER CONTROL. Remotely adjust track faders and panning.set_device_parameter: REMOTE CONTROL. Precisely adjust any parameter of any device in the project.
Included Resources:
ableton://stems/{track_name}/summary: AUDIO SUMMARY. Compact analysis (JSON) containing LUFS, Peak, RMS, 10ms-frames, detected transients, and alegendfield.ableton://stems/{track_name}/spectrogram: VISUAL ANALYSIS. Log-frequency spectrogram image (WebP) for visual frequency inspection.ableton://stems/available/summaries: Discovery resource for all tracks with available audio summaries.ableton://stems/available/spectrograms: Discovery resource for all tracks with available spectrograms.
Related MCP server: ableton-mind
How do I get started?
1. Prepare your environment
Install AbletonOSC
This project relies on AbletonOSC to communicate with Ableton Live.
Download and install AbletonOSC.
Follow the instructions there to add it as a Control Surface in Ableton Live's Link/Tempo/MIDI settings.
Install ableton-for-ai
Option A: uv (Recommended)
uv lets you run the server directly without installing anything globally:
brew install uv # macOS (Homebrew)
# or: curl -LsSf https://astral.sh/uv/install.sh | sh (macOS/Linux)
# or: powershell -c "irm https://astral.sh/uv/install.ps1 | iex" (Windows)Option B: pip
Requires Python 3.11+ (python.org or brew install python):
pip install ableton-for-ai2. Connect to your Chatbot (MCP Client)
Add the server to your MCP client configuration (e.g. Claude Desktop, Cursor, or Cline).
Via uvx (if you installed uv)
{
"mcpServers": {
"ableton-for-ai": {
"command": "uvx",
"args": ["ableton-for-ai"],
"env": {
"STEMS_SOURCE_DIR": "/path/to/your/exported/stems"
}
}
}
}Via pip (if you installed with pip)
{
"mcpServers": {
"ableton-for-ai": {
"command": "ableton-for-ai",
"env": {
"STEMS_SOURCE_DIR": "/path/to/your/exported/stems"
}
}
}
}STEMS_SOURCE_DIR must point to the folder where your exported audio stems are located. You need to export stems manually from Ableton Live (e.g. via "Export Audio/Video" with individual tracks selected), as there is currently no OSC API for triggering exports. The audio analysis tools (analyze_stems) will look for files in this directory.
Where to put this config
Claude Desktop (macOS):
~/Library/Application Support/Claude/claude_desktop_config.jsonClaude Desktop (Windows):
%APPDATA%\Claude\claude_desktop_config.jsonCursor / Cline: See their respective MCP documentation.
Restart your MCP client after saving the config.
3. Use it
Once connected, you can ask the AI about your project state. The AI will use the included tools and resources to fetch data directly from Ableton.
For audio analysis: Export your stems from Ableton Live first (e.g. via File β Export Audio/Video with individual tracks selected) into your configured STEMS_SOURCE_DIR. This step must be done manually, as there is no API for triggering exports.
For complex tasks (e.g. mix feedback): Give the chatbot context about your project. A good starting prompt includes genre, goal, and where your exported stems start (beat or locator). See agent-templates/mix-engineer.md for a ready-to-use prompt template.
Example prompts:
"What is the current tempo and how many tracks do I have?"
"Check the EQ settings on my Lead Synth track."
"Show me an overview of the mixer state."
"Analyze the stems and tell me if there are any frequency clashes."
"Show me the spectrogram for the 'Kick' track."
βοΈ Configuration
You can customize the server behavior by setting environment variables or editing config.py (when running from source).
Variable | Default Value | Description |
|
| Logging verbosity ( |
| auto | Where analysis output is stored. Defaults to |
|
| Path where exported stems are located. |
|
| Audio format to analyze ( |
|
| Quality of WebP spectrograms (1-100). |
|
| List of Ableton device classes to include in extraction. |
|
| List of specific plugin names to include. |
π Using Custom VSTs / Plugins
1. Register the Plugin Name
In config.py, add the exact name of the plugin as it appears in Ableton to RELEVANT_DEVICE_NAMES.
2. Auto-Populate Parameters (The Options.txt Trick)
By default, Ableton Live only exposes the parameters of a third-party plugin, if the overall parameter number threshold (_PluginAutoPopulateThreshold) is below 64 ( default), see here. You can change this to 128 and hope that your favorite custom VSTs will be exposed. If they are still not exposed, because there are too many (e.g. Fab Filter Pro Q 4), you have to configure the parameters within ableton.
Force Ableton to automatically expose parameters by adding -_PluginAutoPopulateThreshold=128 to your Options.txt:
Mac:
~/Library/Preferences/Ableton/Live [Version]/Options.txtWindows:
%AppData%\Ableton\Live [Version]\Preferences\Options.txt
Mac Terminal Commands
To quickly set this up on a Mac, you can use these commands (replace [Version] with your actual Live version, e.g., 12.3.6):
# 1. Navigate to the Preferences folder
cd ~/Library/Preferences/Ableton/Live\ 12.3.6/
# 2. Create the Options.txt file (if it doesn't exist)
touch Options.txt
# 3. Append the setting to the end of the file
echo "-_PluginAutoPopulateThreshold=128" >> Options.txtOR open the file in a text editor and add the setting manually, e.g.
idea ~/Library/Preferences/Ableton/Live\ 12.3.6/Options.txtπ CLI: Analyze & Upload (No MCP required)
This method is ideal for LLMs that don't support MCP directly (like ChatGPT or the Claude Web Interface). It runs the same analysis pipeline locally and exports the results as files you can upload to any chatbot.
Available Commands
Full audio analysis (summaries + spectrograms + full analysis JSONs):
ableton-for-ai-cli analyze_stemsExtract Ableton project metadata only (tracks, devices, parameters):
ableton-for-ai-cli extract_ableton_project_dataFull pipeline (audio analysis AND project data extraction):
ableton-for-ai-cli analyze_stems_and_extract_ableton_project_dataThe OSC daemon starts automatically β no need to launch it manually.
Output
The results will be stored in the ./out directory, organized into subfolders:
./out/project/: Contains the Ableton project JSON file../out/summaries/: Contains compressed audio analysis JSONs (optimized for AI)../out/spectrograms/: Contains spectrogram WebP images for each stem../out/analyses/: Contains full high-resolution analysis JSONs.
Mixing with AI (Manual Upload)
Export your stems from Ableton into your
STEMS_SOURCE_DIR.Run
ableton-for-ai-cli analyze_stemsto generate analysis files.Drag and drop the files from your
outfolder into the chatbot (spectrograms.webp+ analysis.json).Use a prompt like this:
I have attached several audio analysis files (spectrograms and energy analysis).
The given files only reflect a part of the project timeline, see below in Part.
Genre: Drum and Bass
Goal: Improve the clarity of the lead synth and make sure it doesn't clash with the vocals.
Part: The *.analysis.json and *.spectrogram.webp ONLY reflect the part starting at beat 113.
Please analyze the attached files and provide concrete mixing advice.π οΈ Development & Contributing
Local Setup (from source)
git clone https://github.com/peterkolbe/ableton-for-ai.git
cd ableton-for-ai
uv syncRun the MCP server from source:
{
"mcpServers": {
"ableton-for-ai": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/ableton-for-ai",
"run",
"mcp_server_ableton.py"
],
"env": {
"STEMS_SOURCE_DIR": "/path/to/your/stems"
}
}
}
}Run CLI commands from source:
uv run ableton_client.py analyze_stems
uv run ableton_client.py extract_ableton_project_data
uv run ableton_client.py analyze_stems_and_extract_ableton_project_dataMCP Inspector (Debugging)
The MCP Inspector is useful for testing and debugging the MCP server during development.
Start it directly via terminal:
npx -y @modelcontextprotocol/inspector uv '--directory /absolute/path/to/ableton-for-ai run mcp_server_ableton.py'Or start the Inspector without presets and configure it manually:
npx -y @modelcontextprotocol/inspectorThen enter the following in the Inspector UI:
Command:
uvArguments:
--directory /absolute/path/to/ableton-for-ai run mcp_server_ableton.py
Linting & Formatting
uv run ruff check .
uv run ruff format .Publishing to MCP Registry
To publish a new version to the official MCP Registry:
brew install mcp-publisher
mcp-publisher login github
mcp-publisher publishVerify the publication:
curl "https://registry.modelcontextprotocol.io/v0/servers?search=io.github.peterkolbe/ableton-for-ai"Make sure to update the version in both server.json and pyproject.toml before publishing.
β οΈ Known Limitations & Troubleshooting
Automation Tracking
Not Supported: Automation data is not included in the exports.
Technical Reason: The underlying
AbletonOSCscript does not reliably expose automation status or points in its current version.
π License
This project is licensed under the MIT License.
Available Tools
12 toolsanalyze_stemsA
DEEP AUDIO ANALYSIS: Triggers the generation of summaries and spectrograms for all tracks.
This is a heavy operation that:
Generates '.summary.json' (Frames, Transients, LUFS) for AI consumption.
Generates '.spectrogram.webp' (Log-frequency visualizations).
Generates '.analysis.json' (Full resolution data for internal use).
ACTION: Use this when you need fresh audio data (e.g., after the user recorded new parts or changed audio effects that significantly alter the sound).
Inputs: no named parameters. Returns: result
get_overviewA
SESSION DISCOVERY: Returns a high-level overview of the current Live set.
Includes:
Tempo and Locators (Song structure).
Simplified Track list with mixer states (Index, Name, Volume, Panning, Mute, Solo).
Use this for initial navigation and to identify track indices for further 'get_track' calls.
Inputs: no named parameters. Returns: object
get_trackA
TRACK INSPECTION: Returns comprehensive data for a single track.
Includes:
Mixer state (Volume, Panning, etc.).
Complete Device Chain.
All Device Parameters (including UI-readable strings like "-12.0 dB" or "1500 Hz").
Use this when you need to understand exactly how a specific track is processed or which parameters are available for manipulation.
Inputs: track_index (required). Returns: object
get_tracksA
BULK TRACK INSPECTION: Query full data for multiple tracks in a single call.
Parameters:
index_min: Starting track index.
index_max: Ending track index.
Returns an array of track objects, identical in structure to 'get_track'. Highly efficient for analyzing groups of tracks (e.g., all drum tracks).
Inputs: index_min (required), index_max (required). Returns: object
list_resourcesB
List resources available on the server.
Inputs: no named parameters. Returns: result
read_resourceC
Read a resource available on the server.
Inputs: uri (required). Returns: Canonical result type for resource reads. Provides explicit control over resourβ¦
set_device_parameterA
REMOTE CONTROL: Sets a specific device parameter.
Parameters:
track_index: The index of the track.
device_index: The index of the device in the chain.
parameter_index: The index of the parameter to change.
value: The new normalized value (0.0 to 1.0).
Note: For UI-readable values (like dB or Hz), check 'get_track' output first, but always send the normalized 0.0-1.0 value for the actual change.
Inputs: track_index (required), device_index (required), parameter_index (required), value (required). Returns: object
set_device_parametersA
BULK REMOTE CONTROL: Sets multiple parameters for a device at once.
Parameters:
values: A list of floats representing the new values for ALL parameters of the device.
Recommended for loading 'presets' or making simultaneous multi-parameter adjustments.
Inputs: track_index (required), device_index (required), values (required). Returns: object
set_track_muteC
Toggles the mute status of a track (True=Muted, False=Active).
Inputs: track_index (required), mute (required). Returns: object
set_track_panningA
MIXER CONTROL: Sets the panning of a track.
value: -1.0 (Left) to 1.0 (Right), 0.0 is Center.
Inputs: track_index (required), value (required). Returns: object
set_track_soloC
Toggles the solo status of a track (True=Solo, False=Normal).
Inputs: track_index (required), solo (required). Returns: object
set_track_volumeB
MIXER CONTROL: Sets the volume of a track.
value: 0.0 to 1.0 (corresponds to Ableton's internal fader scaling).
Inputs: track_index (required), value (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 12 tools
Each tool targets a distinct action or resource: analysis, session overview, single/bulk track inspection, device parameter control (single and bulk), and individual mixer controls. No overlapping purposes; descriptions clearly differentiate them.
All tool names use snake_case and follow a verb_noun pattern, but verbs vary (get_, set_, list_, read_, analyze_). While readable, the mix is slightly inconsistent; e.g., list_resources vs get_track.
12 tools is well-scoped for an Ableton Live MCP server covering session discovery, track inspection, device parameter control, mixer control, and audio analysis. No unnecessary tools; each serves a clear purpose.
The set covers core inspection, parameter control, and mixer operations. Minor gaps exist (e.g., no track/device creation or deletion, no transport control), but the domain focus on AI-driven adjustment and analysis makes it acceptably complete.
Maintenance
Related MCP Connectors
MCP server for Producer/Riffusion AI music generation
Remote MCP server for audio stem separation, denoise, reverb, and MIDI export.
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Nifty's MCP server β exposes tasks, projects, messages, and files as tools for AI agents.
Related MCP Servers
- AlicenseCqualityDmaintenanceA Model Context Protocol server that enables real-time interaction with Ableton Live, allowing AI assistants to control song creation, track management, clip operations, and audio recording workflows.2343 npm94MIT
- AlicenseAqualityCmaintenanceMCP server for Ableton Live that exposes the Live Object Model to LLMs, enabling natural language control of music production.3660 npm12MIT
- FlicenseBqualityDmaintenanceMCP server for controlling Ableton Live, enabling AI assistants to interact with Live sessions through tools for track/clip/scene management, playback control, and device parameter adjustments.48-
- AlicenseNot gradedqualityCmaintenanceAn MCP server that exposes Ableton Live control (session state, transport, tracks, devices, clips, MIDI note editing) as tools for LLM agents, enabling natural language manipulation of a Live session.1MIT