Skip to main content
Glama

ableton-copilot-mcp

An MCP (Model Context Protocol) server built on ableton-js for real-time interaction and control with Ableton Live's Arrangement View, dedicated to assisting music producers in their music production.

🎯 Note

As a music producer, I have some understanding of using Ableton for music creation. During the creative process, we often need to handle various tedious operations, such as humanizing note properties, merging notes, recording one track to another audio track, etc. Previously, we could only rely on the functions provided by the host DAW for these operations. However, with the emergence of large language models and MCP, we now have the possibility to let AI help us with automation. Although it's still not realistic for AI to directly generate notes or create a complete song (it can't generate a good-sounding song), having AI assist us with auxiliary operations presents a new possibility.

Related MCP server: ableton-mind

🎥 Demo

This is a simple demonstration video of MIDI operations.

https://github.com/user-attachments/assets/8d635c4c-a1f2-44be-93ae-062038d14c71

🚀 Features

🎵 Song Control

  • Get basic song information (root note, scale name, tempo, song length, etc.)

  • Get a list of all tracks

  • Create MIDI, audio, and return tracks

  • Delete and duplicate tracks

🎹 Track Management

  • Get all clips in a track

  • Create empty MIDI clips in the arrangement view tracks

  • Create audio clips in tracks based on provided sample file paths

  • Set track properties (mute, color, name, arm, solo, etc.)

  • Duplicate MIDI clips to specified tracks

🎼 Clip Operations

  • Get clips in the piano roll view

  • Get and manage all notes in a clip

  • Add, delete, and replace notes in clips

  • Set clip properties (name, color, looping, loop_start, loop_end, etc.)

🎧 Audio Operations

  • Supports recording track content based on time range

🔌 Device Management

  • Load audio effects, instruments and plugins

  • Modify device parameters

  • Browse available devices in the library

📝 State Management

  • Operation history tracking and detailed logging

  • Support for operation rollback (currently only supports note operations)

  • Browse and restore previous states

📝 To-Do List

  • Support automatic envelope adjustment

  • Support more snapshot types (track properties, device parameters, etc.)

⚠️ Warning

  • Direct manipulation of MIDI clips by AI may result in the loss of original notes and cannot be undone with Ctrl + Z. Please operate with caution. If needed, you can ask the AI to help you roll back note operations.

📥 Installation

Prerequisites

  • Node.js environment: Ensure Node.js is installed (v20+ recommended) and the npx command is available

    🔗 Download: Node.js official website

Installation Steps

1. Install AbletonJS MIDI Remote Scripts

Choose ONE of the following three methods to install MIDI Remote Scripts:

  • Method 1: One-line installation (Recommended)

    npx @xiaolaa2/ableton-copilot-mcp --install-scripts
    # or use the short form
    npx @xiaolaa2/ableton-copilot-mcp -is
  • Method 2: Tool-assisted installation

    1. First, start ableton-copilot-mcp (see Usage section below)

    2. Let AI assistant or manually call the MCP tool init_ableton_js to complete the installation automatically

  • Method 3: Manual installation

    1. Create a folder named "Remote Scripts" in your Ableton User Library:

      • Windows: C:\Users\[username]\Documents\Ableton\User Library\Remote Scripts

      • Mac: /Users/[username]/Music/Ableton/User Library/Remote Scripts

    2. Download MIDI Remote Scripts from the ableton-js project

    3. Copy the downloaded midi-script folder to the location above

    4. Rename it to AbletonJS

🔧 Usage

Quick Start

  1. Launch Ableton Live

  2. Enable AbletonJS Control Surface

    • Open Ableton Live Preferences: Preferences → Link/MIDI

    • In the MIDI tab, locate the Control Surface section

    • Select AbletonJS from the dropdown menu

  3. Connect using an MCP client

    The following clients can be used as MCP endpoints:

Client Configuration

Cursor Configuration Example

Add the following configuration to your Cursor settings:

"ableton-js-mcp": {
    "command": "npx",
    "args": [
        "-y",
        "@xiaolaa2/ableton-copilot-mcp"
    ]
}

For the latest version:

"ableton-js-mcp": {
    "command": "npx",
    "args": [
        "-y",
        "@xiaolaa2/ableton-copilot-mcp@latest"
    ]
}

Custom Storage Path (Optional)

You can specify a custom data storage location using the BASE_PATH environment variable:

"ableton-js-mcp": {
    "command": "npx",
    "args": [
        "-y",
        "@xiaolaa2/ableton-copilot-mcp"
    ],
    "env": {
        "BASE_PATH": "D:\\ableton_copilot_mcp"
    }
}

💡 Tip: The storage path is used to save log files, operation history, and state snapshots

✅ Compatibility Testing

Compatibility primarily depends on the version support of the ableton-js library.

Ableton Live Version

Test Status

12.1.10

✅ Tested and working

11.x

⚠️ Not tested yet

10.x

⚠️ Not tested yet

🤝 Contributing

Issues and contributions are welcome. Please submit issues or suggestions through GitHub Issues.

📄 License

This project is licensed under the MIT License.

⚠️ Disclaimer

This is a third-party integration and not made by Ableton.

Available Tools

23 tools
add_notes_to_clipC

Add notes to clip by clip id

Inputs: clip_id (required), notes (required).

create_empty_midi_clipC

create empty midi clip on track

Inputs: length (required), time (required), track_id (required).

create_trackC

create track and return raw track

Inputs: type (required), index.

crop_clipB

Crops the clip. The region that is cropped depends on whether the clip is looped or not. If looped, the region outside of the loop is removed. If not looped, the region outside the start and end markers is removed.

Inputs: clip_id (required).

delete_trackC

delete track by index

Inputs: index (required), type (required).

duplicate_clip_loopB

Makes the loop twice as long and duplicates notes and envelopes. Duplicates the clip start/end range if the clip is not looped.

Inputs: clip_id (required).

duplicate_clip_regionC

Duplicates the notes in the specified region to the destination_time. Only notes of the specified pitch are duplicated if pitch is not -1. If the transposition_amount is not 0, the notes in the region will be transposed by the transposition_amount of semitones. Raises an error on audio clips..

Inputs: clip_id (required), destination_time (required), pitch (required), region_end (required), +2 more.

duplicate_clip_to_trackD

duplicate clip to track

Inputs: clip_id (required), time (required), track_id (required).

duplicate_trackC

duplicate midi or audio track by index

Inputs: index (required).

get_all_notes_by_clipidD

Get clip all notes by clip id

Inputs: clip_id (required).

get_all_tracksD

get all tracks

Inputs: no named parameters.

get_clip_info_by_idC

Get clip info by clip id

Inputs: clip_id (required).

get_clips_by_track_idD

get all clip by track id

Inputs: track_id (required).

get_detail_clipC

Get detail clip/piano roll clip

Inputs: no named parameters.

get_song_infoB

get song basic info, include tempo, time signature, root_note(begin from 0, C..B), scale name, song length

Inputs: no named parameters.

get_track_available_input_routingsD

get track available input routings

Inputs: track_id (required).

get_track_info_by_idD

get track info by id

Inputs: track_id (required).

get_tracks_countC

get midi + audio tracks count

Inputs: no named parameters.

record_by_time_rangeA

Opens Ableton's audio record button and starts playback from start_time to end_time. Before recording, please: ENSURE: 1. Set the recording track to record mode 2. Set the recording track's input routing to Resample or a specific audio track/input routing 3. After recording, disable the track's record mode

Inputs: end_time (required), start_time (required).

remove_clip_all_notesC

Remove clip all notes by clip id

Inputs: clip_id (required).

replace_all_notes_to_clipD

Replace clip all notes by clip id

Inputs: clip_id (required), notes (required).

set_clip_propertyD

set clip property

Inputs: clip_id (required), property (required).

set_track_propertyD

set track property

Inputs: property (required), track_id (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.7/5.0

    Scored across 23 tools

    Disambiguation4/5

    Most tools have distinct purposes, but some overlap exists. For example, 'add_notes_to_clip', 'replace_all_notes_to_clip', and 'remove_clip_all_notes' all modify clip notes, which could cause confusion. However, descriptions clarify their specific actions, and other tools like 'crop_clip' or 'duplicate_clip_region' are clearly differentiated.

    Naming Consistency5/5

    Tool names follow a highly consistent verb_noun pattern with snake_case throughout. Examples include 'create_empty_midi_clip', 'get_all_tracks', and 'set_clip_property'. There are no deviations in naming conventions, making the set predictable and easy to parse.

    Tool Count4/5

    With 23 tools, the count is slightly high but reasonable for a comprehensive Ableton Live automation server. It covers track, clip, and note operations extensively, though it might feel heavy compared to simpler domains. The tools are well-scoped, with each serving a specific function in music production workflows.

    Completeness5/5

    The tool set provides complete coverage for Ableton Live automation, including CRUD operations for tracks and clips, note manipulation, recording, and property settings. There are no obvious gaps; tools like 'get_song_info' and 'record_by_time_range' support core workflows, and the surface allows agents to perform end-to-end music production tasks without dead ends.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers