tsp-mcp-for-ableton-live

v0.1.3
tsp-mcp-for-ableton-live Checked 4 days ago Published 15 days ago

TSP MCP for Ableton Live: control Ableton Live from Claude and other MCP clients

Tools that let Claude and other MCP clients work inside Ableton Live 12: build tracks, write clips and drum patterns, load instruments and presets, arrange a song, and measure what it sounds like. This project is independent and isn't affiliated with or endorsed by Ableton, Cycling '74, Arturia or Xfer Records. All product names are trademarks of their owners. Live's embedded Python is old and gives threads very little time, so the work is split. The MCP server runs outside Live on a modern Python with the official MCP SDK.

Summary extracted from the README.

TSP for Ableton Live

Tests License: Apache 2.0

Tools that let Claude and other MCP clients work inside Ableton Live 12: build tracks, write clips and drum patterns, load instruments and presets, arrange a song, and measure what it sounds like.

Made by The Seasoned Programmer.

Folder What it is
mcp/ TSP MCP for Ableton Live: an MCP server plus a Live Remote Script, with 57 tools for sessions, tracks, clips, notes, drums, devices, the browser, the arrangement, and Pigments and Serum 2 presets.
max-for-live/ TSP Spatial: a Max for Live audio effect that places a sound in the stereo field and reports loudness, levels, stereo width and frequency balance back to the MCP server, so the AI can check its work without hearing it.

This project is independent and isn't affiliated with or endorsed by Ableton, Cycling '74, Arturia or Xfer Records. All product names are trademarks of their owners.

How it fits together

flowchart LR
    client["Claude Code<br/>or another MCP client"]

    subgraph server["MCP server (Python 3.12+, run by uv)"]
        direction TB
        validate["JSON Schema<br/>validation"]
        serum["Serum 2 preset tools"]
        analysis["get_audio_analysis"]
    end

    subgraph live["Ableton Live 12"]
        direction TB
        script["TSP_MCP Remote Script<br/>(polled on Live's main thread)"]
        lom["Live Object Model<br/>tracks, clips, devices, browser"]
        spatial["TSP Spatial<br/>Max for Live device"]
        script --> lom
    end

    presets[("Serum presets<br/>User Library")]

    client <-- "stdio" --> server
    server <-- "JSON lines over TCP<br/>127.0.0.1:8768" --> script
    spatial -- "OSC over UDP<br/>127.0.0.1:8769" --> analysis
    serum <--> presets

Live's embedded Python is old and gives threads very little time, so the work is split. The MCP server runs outside Live on a modern Python with the official MCP SDK. The Remote Script inside Live stays small, has no threads, and answers requests from Live's display tick about ten times a second.

A tool call

sequenceDiagram
    autonumber
    participant C as MCP client
    participant S as MCP server
    participant R as TSP_MCP Remote Script
    participant L as Live API

    C->>S: call_tool(name, arguments)
    S->>S: validate arguments against the tool's JSON Schema
    alt invalid
        S-->>C: error listing what's wrong
    else valid
        S->>R: {"method": name, "params": ...} over TCP
        Note over R: picked up on the next update_display tick
        R->>L: run the tool as one undo step
        L-->>R: result
        R-->>S: reply, plus a warning if Main has no active Limiter
        opt reply holds retry_after (e.g. create_locator)
            S->>R: call again after the delay
            R-->>S: final reply
        end
        S-->>C: result
    end

Audio measurements

Nothing in Live's API can hear audio. TSP Spatial measures the audio on its track and sends numbers instead:

flowchart LR
    audio["Track audio"] --> place["Azimuth · Width · Distance"]
    place --> out["Device output"]
    place --> meter["Meters<br/>K-weighted loudness, peak, RMS,<br/>correlation, side/mid, low/high bands"]
    meter -- "10× per second<br/>OSC / UDP :8769" --> srv["MCP server"]
    srv -- "get_audio_analysis" --> ai["AI client"]

Setup

Requirements

  • Ableton Live 12 (tested with 12.4.16 Suite on Windows 11). TSP Spatial needs Live Suite or Max for Live.
  • uv
  • An MCP client. The installer registers the server with Claude Code automatically; for other clients it prints the config to add.
  • Python 3 to build TSP Spatial from source (standard library only).

Install the MCP server and Remote Script

flowchart TD
    A["uvx tsp-mcp-for-ableton-live install"] --> B["Finds the User Library<br/>from Live's preferences"]
    B --> C["Copies the TSP_MCP Remote Script<br/>into User Library/Remote Scripts"]
    C --> D{"claude CLI on PATH?"}
    D -- yes --> E["Registers the server as tsp-ableton<br/>(claude mcp add --scope user)"]
    D -- no --> F["Prints the MCP config<br/>to add to your client"]
    E --> G["Restart Live"]
    F --> G
    G --> H["Settings › Link, Tempo & MIDI:<br/>pick TSP MCP as a Control Surface,<br/>Input and Output on None"]
    H --> I["New Claude Code session:<br/>run ableton_bridge_status"]
  1. Install:

    uvx tsp-mcp-for-ableton-live install
    

    --user-library <folder> skips the User Library detection and --no-register skips registering with Claude Code.

  2. Restart Live. Under Settings > Link, Tempo & MIDI, pick TSP MCP in an empty Control Surface slot and leave Input and Output on None.

  3. Start a new Claude Code session and ask it to run ableton_bridge_status.

To update, run uvx tsp-mcp-for-ableton-live@latest install and restart Live. To remove it, run uvx tsp-mcp-for-ableton-live uninstall.

Install TSP Spatial (optional)

cd max-for-live
python build.py --install

That builds devices/TSP Spatial.amxd and copies it to User Library/TSP MCP/Devices. Drop it on any track you want measured, then ask the AI to call get_audio_analysis.

Working from a checkout

git clone https://github.com/TheSeasonedProgrammer/tsp-ableton.git
cd tsp-ableton/mcp
uv run --directory server tsp-mcp-for-ableton-live install --dev

--dev makes Live load the tools from your checkout, so tool edits only need ableton_reload_tools instead of a Live restart. Changes to TSP_MCP/__init__.py still need a reinstall and a restart.

Ports and environment variables

Variable Default Used for
ABLETON_BRIDGE_HOST 127.0.0.1 Address the MCP server connects to for the Remote Script, and listens on for TSP Spatial. The Remote Script and TSP Spatial always use 127.0.0.1, so leave this alone unless you change those too.
ABLETON_BRIDGE_PORT 8768 TCP between the MCP server and the Remote Script
ABLETON_ANALYSIS_PORT 8769 UDP measurements from TSP Spatial (the device has 8769 built in)
SERUM2_PRESETS from Serum's preferences Folder holding .SerumPreset files

Everything listens on 127.0.0.1 only.

Hearing safety

Generated parts and new sounds can be much louder than expected. TSP MCP warns, in tool replies and in Live's status bar, whenever the Main track has no active Ableton Limiter. A Limiter can't make loud music quiet or control your monitor level, so start with your volume low.

Privacy

TSP for Ableton Live doesn't collect any data. It has no telemetry, analytics, crash reporting or usage tracking, and nothing you make is used for AI training by this project.

  • Everything stays on your computer. The MCP server talks to Live over TCP on 127.0.0.1, and TSP Spatial sends its measurements over UDP to 127.0.0.1. Neither contacts any outside service.
  • Files it writes are local: the Remote Script in your User Library, .vstpreset and Serum preset files it creates there, a cache of the tool list, and messages in Live's own Log.txt.
  • The only downloads are the package and its dependencies, fetched by uvx from PyPI when you install or update.

Your MCP client is a separate product. Whatever you ask the AI, and the tool results it reads, such as track names, clip contents and measurements, go to your AI provider under that provider's own terms and privacy settings, the same as anything else you share in a conversation.

Tests

# MCP server and Remote Script, against a fake Live, on Live's Python version
cd mcp
uv run --no-project --python 3.11 python -m unittest discover -s tests

# TSP Spatial build
cd max-for-live
python -m unittest discover -s tests

mcp/tests/live_check.py runs the tools against a real running Live; see mcp/README.md.

Repository layout

.
├── mcp/
│   ├── server/                         Python package published as tsp-mcp-for-ableton-live
│   │   └── src/tsp_mcp_for_ableton_live/
│   │       ├── server.py               MCP server (stdio), bridge client, analysis listener
│   │       ├── install.py, cli.py      install / uninstall commands
│   │       ├── serum.py, analysis.py   Serum 2 presets, TSP Spatial measurements
│   │       └── remote_script/TSP_MCP/  the Remote Script that runs inside Live
│   │           └── ableton_tools/      tool handlers, one module per area
│   └── tests/                          fake Live, bridge tests, live check
└── max-for-live/
    ├── build.py                        generates the .amxd from source
    ├── src/tsp_spatial.genexpr         gen~ audio code
    ├── devices/TSP Spatial.amxd        built device
    └── tests/

The detailed docs, including every tool, conventions, and the quirks of Live's API, are in mcp/README.md and max-for-live/README.md.

Releasing

The MCP server is published to PyPI as tsp-mcp-for-ableton-live, which is what uvx installs.

flowchart LR
    A["Bump version in<br/>mcp/server/pyproject.toml"] --> B["Push to main"]
    B --> C["Publish a GitHub release<br/>tagged vX.Y.Z"]
    C --> D["Tests run"]
    D --> E["Tag checked against version,<br/>package built"]
    E --> F["Uploaded to PyPI<br/>(trusted publishing)"]

The installer registers the exact installed version with the MCP client, so every release needs a new version number, and the tag must be v plus that version.

License

Licensed under the Apache License, Version 2.0. See NOTICE.