ableton-mcp-lofifren

v1.2.0
ableton-mcp-lofifren Checked 3 days ago Published 3 months ago

Ableton Live MCP integration — fork of ahujasid/ableton-mcp adding a 33-personality style system, ~35 extra MCP tools, batch commands, and arrangement-view…

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_session_info

Get detailed information about the current Ableton session

get_track_info

Get detailed information about a specific track in Ableton. Parameters: - track_index: The index of the track to get information about

ParameterTypeDescription
track_index *integer

create_midi_track

Create a new MIDI track in the Ableton session. Parameters: - index: The index to insert the track at (-1 = end of list)

ParameterTypeDescription
indexinteger

set_track_name

Set the name of a track. Parameters: - track_index: The index of the track to rename - name: The new name for the track

ParameterTypeDescription
name *string
track_index *integer

create_clip

Create a new MIDI clip in the specified track and clip slot. Parameters: - track_index: The index of the track to create the clip in - clip_index: The index of the clip slot to create the clip in - length: The length of the clip in beats (default: 4.0)

ParameterTypeDescription
clip_index *integer
track_index *integer
lengthnumber

add_notes_to_clip

Add MIDI notes to a clip. Parameters: - track_index: The index of the track containing the clip - clip_index: The index of the clip slot containing the clip - notes: List of note dictionaries, each with pitch, start_time, duration, velocity, and mute

ParameterTypeDescription
clip_index *integer
notes *array
track_index *integer

set_clip_name

Set the name of a clip. Parameters: - track_index: The index of the track containing the clip - clip_index: The index of the clip slot containing the clip - name: The new name for the clip

ParameterTypeDescription
clip_index *integer
name *string
track_index *integer

set_tempo

Set the tempo of the Ableton session. Parameters: - tempo: The new tempo in BPM

ParameterTypeDescription
tempo *number

load_instrument_or_effect

Load an instrument or effect onto a track using its URI. Parameters: - track_index: The index of the track to load the instrument on - uri: The URI of the instrument or effect to load (e.g., 'query:Synths#Instrument%20Rack:Bass:FileId_5116')

ParameterTypeDescription
track_index *integer
uri *string

fire_clip

Start playing a clip. Parameters: - track_index: The index of the track containing the clip - clip_index: The index of the clip slot containing the clip

ParameterTypeDescription
clip_index *integer
track_index *integer

stop_clip

Stop playing a clip. Parameters: - track_index: The index of the track containing the clip - clip_index: The index of the clip slot containing the clip

ParameterTypeDescription
clip_index *integer
track_index *integer

start_playback

Start playing the Ableton session.

stop_playback

Stop playing the Ableton session.

get_clip_notes

Get all MIDI notes from a clip. Parameters: - track_index: The index of the track containing the clip - clip_index: The index of the clip slot containing the clip Returns note data including pitch, start_time, duration, velocity, and mute for each note.

ParameterTypeDescription
clip_index *integer
track_index *integer

remove_notes_from_clip

Remove MIDI notes from a clip within a specified range. By default removes ALL notes. Use parameters to target specific ranges. Parameters: - track_index: The index of the track containing the clip - clip_index: The index of the clip slot containing the clip - from_time: Start time in beats (default: 0.0 = beginning) - from_pitch: Lowest MIDI pitch to remove (default: 0) - time_span: Duration in beats to clear (default: 99999.0 = all) - pitch_span: Number of pitches above from_pitch to clear (default: 128 = all)

ParameterTypeDescription
clip_index *integer
track_index *integer
from_pitchinteger
from_timenumber
pitch_spaninteger
time_spannumber

delete_clip

Delete a clip from a clip slot, leaving the slot empty. Parameters: - track_index: The index of the track containing the clip - clip_index: The index of the clip slot to clear

ParameterTypeDescription
clip_index *integer
track_index *integer

duplicate_clip_to

Duplicate a clip to another clip slot on the same track. Parameters: - track_index: The index of the track containing the clip - clip_index: The source clip slot index - target_clip_index: The destination clip slot index (must be empty)

ParameterTypeDescription
clip_index *integer
target_clip_index *integer
track_index *integer

set_track_volume

Set the volume of a track. Parameters: - track_index: The index of the track - volume: Volume level from 0.0 (silent) to 1.0 (max). Default is ~0.85.

ParameterTypeDescription
track_index *integer
volume *number

set_track_pan

Set the panning of a track. Parameters: - track_index: The index of the track - pan: Panning from -1.0 (full left) to 1.0 (full right). 0.0 is center.

ParameterTypeDescription
pan *number
track_index *integer

set_track_send

Set a send amount on a track (for routing to return tracks). Parameters: - track_index: The index of the track - send_index: The index of the send (0 = Send A, 1 = Send B, etc.) - value: Send amount from 0.0 (none) to 1.0 (full)

ParameterTypeDescription
send_index *integer
track_index *integer
value *number

fire_scene

Fire (launch) a scene, triggering all clips in that row across all tracks. Parameters: - scene_index: The index of the scene to fire (0-based)

ParameterTypeDescription
scene_index *integer

create_audio_track

Create a new audio track in the Ableton session. Parameters: - index: The index to insert the track at (-1 = end of list)

ParameterTypeDescription
indexinteger

undo

Undo the last action in Ableton.

batch_commands

Execute a list of commands in a single round-trip to Ableton. The whole batch runs atomically inside one main-thread closure, so a single subsequent ``undo`` reverts the entire sequence. Execution stops at the first failure and partial results are returned. Parameters: - commands: list of {"type": str, "params": dict}. Allowed types are any modifying or read-only command (e.g. ``create_midi_track``, ``add_notes_to_clip``, ``set_track_volume``). Nested ``batch_commands`` is not allowed. Returns a JSON object with: - ``results``: list of per-…

ParameterTypeDescription
commands *array

get_browser_tree

Get a hierarchical tree of browser categories from Ableton. Parameters: - category_type: Type of categories to get ('all', 'instruments', 'sounds', 'drums', 'audio_effects', 'midi_effects')

ParameterTypeDescription
category_typestring

get_browser_items_at_path

Get browser items at a specific path in Ableton's browser. Parameters: - path: Path in the format "category/folder/subfolder" where category is one of the available browser categories in Ableton

ParameterTypeDescription
path *string

load_drum_kit

Load a drum rack and then load a specific drum kit into it. Parameters: - track_index: The index of the track to load on - rack_uri: The URI of the drum rack to load (e.g., 'Drums/Drum Rack') - kit_path: Path to the drum kit inside the browser (e.g., 'drums/acoustic/kit1')

ParameterTypeDescription
kit_path *string
rack_uri *string
track_index *integer

add_chord_progression

Write a chord progression into an existing MIDI clip in one call. Parameters: - track_index, clip_index: target clip (must already exist; use ``create_clip_with_notes`` to create the clip in the same call) - chords: list of chord symbols, e.g. ["Cm", "Fm", "G7", "Cm"] or ["Fmaj7", "Em7", "Dm7", "Cmaj7"] - rhythm: how long each chord lasts — "whole" (4 beats), "half", "quarter", "eighth", "sixteenth" - octave: middle octave for the chord roots (4 = middle C area) - velocity: 0-127 MIDI velocity for every note

ParameterTypeDescription
chords *array
clip_index *integer
track_index *integer
octaveinteger
rhythmstring
velocityinteger

add_scale_run

Write a scalar run (sequence of notes from a scale) into an existing clip. Parameters: - scale: e.g. "C minor", "F# dorian", "Eb major pentatonic" - start_beat, end_beat: time range in the clip - direction: "up", "down", or "updown" - note_duration: length of each note in beats (default 1/16) - octave: starting octave (4 = middle C) - velocity: 0-127 Generates ascending/descending notes from the chosen scale, packed into the [start_beat, end_beat) range with ``note_duration`` per note.

ParameterTypeDescription
clip_index *integer
scale *string
track_index *integer
directionstring
end_beatnumber
note_durationnumber
octaveinteger
start_beatnumber
velocityinteger

add_drum_pattern

Write a preset drum pattern into an existing clip. Patterns are defined in 1-bar (4 beats) building blocks and tile to fill ``length``. Parameters: - pattern: "four_on_floor" | "trap" | "breakbeat" | "boom_bap" - length: clip length in beats (pattern tiles to fill this) - kit_map: optional override mapping drum names ("kick", "snare", "hat", "open_hat", "clap", "tom") to MIDI pitches. Defaults to General MIDI drum mapping (kick=36, snare=38, hat=42, open_hat=46). - velocity: 0-127

ParameterTypeDescription
clip_index *integer
track_index *integer
kit_map
lengthnumber
patternstring
velocityinteger

quantize_clip

Quantize all notes in a clip to a grid by snapping each note's ``start_time`` to the nearest grid line. Parameters: - grid: "1/4" | "1/8" | "1/16" | "1/32" Implementation: read existing notes, round start times, then in one batch remove the old notes and write the new ones. The whole edit is atomic from Live's perspective.

ParameterTypeDescription
clip_index *integer
track_index *integer
gridstring

list_personalities

List every available 'personality' style profile, grouped by role. Roles: - **solo** — melodic / lead lines (Coltrane, Kenny G, Oscar Peterson, Miles Davis, Charlie Parker, Wayne Shorter) - **comp** — chord voicings / comping (Bill Evans rootless, McCoy Tyner quartal, Herbie Hancock) - **bass** — bass lines (James Jamerson, Jaco Pastorius, Pino Palladino) - **drums** — drum patterns (Questlove pocket, Tony Williams swing, Vinnie Colaiuta polyrhythms) Each personality declares a ``tempo_sweet_spot`` and a comfortable ``tempo_range``; outside…

add_personality

Generate a part in the style of a named personality and write it into an existing MIDI clip. The personality's role (solo / comp / bass / drums) determines what kind of part is generated — see ``list_personalities``. Parameters: - track_index, clip_index: target clip (must already exist) - personality: one of the keys returned by ``list_personalities`` - chord_progression: list of chord symbols, e.g. ["Cm","Ab","Eb","Bb"]. Drum personalities ignore chord content but still use the length. - bars_per_chord: how many 4/4 bars each chord lasts (default 1)…

ParameterTypeDescription
chord_progression *array
clip_index *integer
personality *string
track_index *integer
bars_per_chordinteger
octave_offsetinteger
seed
tempo

add_personality_solo

Legacy alias for ``add_personality`` restricted to ``solo`` personalities. Prefer ``add_personality`` (which auto-dispatches by role). Kept so older callers don't break.

ParameterTypeDescription
chord_progression *array
clip_index *integer
personality *string
track_index *integer
bars_per_chordinteger
octave_offsetinteger
seed
tempo

add_blended_personality_solo

Generate a solo from a *blended* personality — interpolated between two real personalities. Currently solo-only. Parameters: - personality_a, personality_b: keys of two ``solo`` personalities - ratio: 0.0 = all A, 1.0 = all B, 0.5 = perfectly mixed - all other arguments: same as ``add_personality`` Numeric profile fields (density, swing, range bounds, velocity range, chord-tone emphasis, etc.) are linearly interpolated. Categorical pools (scale modes, phrase arc) take from A when ratio < 0.5 and B otherwise.

ParameterTypeDescription
chord_progression *array
clip_index *integer
personality_a *string
personality_b *string
ratio *number
track_index *integer
bars_per_chordinteger
octave_offsetinteger
seed
tempo

transpose_clip

Transpose every note in a clip by ``semitones`` (positive = up, negative = down). Notes that would land outside the MIDI range [0, 127] are clamped. Implementation: read notes, mutate pitches, batch(remove + add).

ParameterTypeDescription
clip_index *integer
semitones *integer
track_index *integer

set_time_signature

Set the song's time signature. Parameters: - numerator: top number (1-99) - denominator: bottom number, must be a power of 2 (1, 2, 4, 8, 16)

ParameterTypeDescription
denominator *integer
numerator *integer

set_clip_loop

Set a clip's loop region (in beats) and whether the clip loops. Parameters: - track_index, clip_index: which clip - loop_start: loop start in beats - loop_end: loop end in beats (must be > loop_start) - loop_on: enable looping

ParameterTypeDescription
clip_index *integer
loop_end *number
loop_start *number
track_index *integer
loop_onboolean

set_clip_length

Resize a clip by moving its end_marker. Length is measured in beats from the clip's start_marker.

ParameterTypeDescription
clip_index *integer
length *number
track_index *integer

set_track_arm

Arm or disarm a track for recording.

ParameterTypeDescription
arm *boolean
track_index *integer

set_track_mute

Mute or unmute a track.

ParameterTypeDescription
mute *boolean
track_index *integer

set_track_solo

Solo or unsolo a track.

ParameterTypeDescription
solo *boolean
track_index *integer

delete_track

Delete a track. NOTE: deleting a track shifts the indices of every track after it down by one. When deleting multiple tracks in a batch, delete in descending index order to avoid index drift.

ParameterTypeDescription
track_index *integer

set_master_volume

Set the master track volume. Parameters: - volume: 0.0 (silent) to 1.0 (max). Default unity is ~0.85.

ParameterTypeDescription
volume *number

set_device_parameter

Set a device parameter on a track using a RAW Live value (not normalized). The value is clamped to the parameter's min/max. Use ``get_track_devices`` to discover the parameter's index, name, and value range. Parameters: - track_index: which track the device is on - device_index: position of the device in the track's device chain (0-based) - parameter_index: position of the parameter in the device (0-based; index 0 is usually the on/off toggle) - value: raw Live value, e.g. 1000.0 for a filter cutoff in Hz

ParameterTypeDescription
device_index *integer
parameter_index *integer
track_index *integer
value *number

create_scene

Create a new scene at the given index (-1 = end of list).

ParameterTypeDescription
indexinteger

set_scene_name

Set a scene's name.

ParameterTypeDescription
name *string
scene_index *integer

set_scene_tempo

Set a per-scene tempo. Firing this scene will set the song tempo to this value.

ParameterTypeDescription
scene_index *integer
tempo *number

search_browser

Search the Ableton browser by name. Walks the browser tree depth-first and returns up to 50 matches whose names contain the query (case-insensitive). Parameters: - query: substring to match (e.g. "808", "Operator", "Reverb") - category: "all" | "instruments" | "sounds" | "drums" | "audio_effects" | "midi_effects" Returns a list of matches with ``name``, ``uri``, ``path``, and ``is_loadable``. Pass the ``uri`` to ``load_browser_item`` to load the result onto a track.

ParameterTypeDescription
query *string
categorystring

load_instrument_by_name

Convenience composite: search the browser by name and load the first loadable match onto the given track. Equivalent to calling ``search_browser`` then ``load_browser_item`` yourself. Parameters: - track_index: where to load the instrument - name: substring of the instrument name (e.g. "Operator", "808 Core") - category: which browser category to search; defaults to "instruments"

ParameterTypeDescription
name *string
track_index *integer
categorystring

browse_for_role

Walk Ableton's browser for instruments suited to a specific role and return quality-ranked candidates. Roles: - **drums** — searches drum racks and drum kits - **bass** — bass instruments (electric, fretless, upright, slap) - **lead** — synth leads - **keys** — pianos / Rhodes / Wurlis / organs / electric pianos - **pad** — pads / atmospheres - **brass** — trumpet / sax / horn - **guitar** — clean guitar / jazz guitar Each item is scored — Instrument Racks (.adg) > Device Presets (.adv) > bare devices > raw samples (.wav). One-…

ParameterTypeDescription
role *string
max_resultsinteger

load_instrument_for_personality

Load the best Ableton instrument for the named personality onto a track. Each personality has a ``BROWSER_HINTS`` list (e.g. Coltrane → ['tenor sax', 'saxophone', 'sax', 'brass']). This tool walks those hints in order, runs a quality-scored ``search_browser`` for each, and loads the highest-scored Instrument Rack / Device Preset across all hints onto the given track. The Live API REPLACES the existing instrument when you load another one, so this is also a clean way to swap out a placeholder Operator for the "right" instrument for a personality. Parame…

ParameterTypeDescription
personality *string
track_index *integer
prefer_presetboolean

get_track_devices

List the devices loaded on a track, including each device's parameters with their current value, min, and max. Use this to discover parameter indices and ranges before calling ``set_device_parameter``.

ParameterTypeDescription
track_index *integer

create_track

Create a track with optional name, instrument, volume, and pan in a single round-trip. Parameters: - type: "midi" or "audio" - name: optional track name - instrument_uri: optional browser URI to load (use ``search_browser`` first) - volume: optional 0.0-1.0 mixer volume - pan: optional -1.0 to 1.0 panning - index: insert position (-1 = end)

ParameterTypeDescription
indexinteger
instrument_uri
name
pan
typestring
volume

create_clip_with_notes

Create a MIDI clip and populate it with notes in a single batched call. Parameters: - track_index, clip_index: where to put the clip - length: clip length in beats - notes: list of note dicts {pitch, start_time, duration, velocity?, mute?} - name: optional clip name

ParameterTypeDescription
clip_index *integer
length *number
notes *array
track_index *integer
name

create_clips_with_notes

Create and populate multiple MIDI clips in one remote batch. Parameters: - clips: list of clip specs. Each spec must contain: - track_index: target track - clip_index: target clip slot - length: clip length in beats - notes: list of note dicts {pitch, start_time, duration, velocity?, mute?} - name: optional clip name This is the bulk form of ``create_clip_with_notes`` and is intended for song-sketch workflows where several parts are authored at once.

ParameterTypeDescription
clips *array

generate_personality_clip

Create a clip, generate a personality part, write notes, and optionally name the clip in one call. Parameters: - track_index, clip_index: target clip location - personality: one of the keys returned by ``list_personalities`` - chord_progression: list of chord symbols - bars_per_chord: how many 4/4 bars each chord lasts - tempo: optional BPM override; defaults to the current Live tempo - octave_offset: shift natural register up/down N octaves - seed: optional RNG seed - name: optional clip name - length: optional clip length in beats. Defaults t…

ParameterTypeDescription
chord_progression *array
clip_index *integer
personality *string
track_index *integer
bars_per_chordinteger
length
name
octave_offsetinteger
seed
tempo

duplicate_clip

Duplicate a MIDI clip to any other track + slot. Unlike the upstream ``duplicate_clip_to``, this works across tracks. Both tracks must be MIDI tracks; the destination slot must be empty.

ParameterTypeDescription
dst_slot *integer
dst_track *integer
src_slot *integer
src_track *integer

setup_session

Bootstrap an Ableton session in (effectively) one round-trip: set tempo, set time signature, and create a list of tracks with optional names, instruments, volume, and pan. Parameters: - tempo: BPM (e.g. 120.0) - time_signature: [numerator, denominator], e.g. [4, 4] or [6, 8] - tracks: list of dicts. Each entry may contain: - type: "midi" or "audio" (default "midi") - name: optional track name - instrument_uri: optional browser URI (load via ``search_browser`` first) - volume: optional 0.0-1.0 - pan: optional -1.0 to 1.0…

ParameterTypeDescription
tempo
time_signature
tracks

get_arrangement_info

BETA: Report arrangement-view state — capabilities, song length, loop region, locators (cue points), and per-track arrangement clips. The ``capabilities`` field tells you which BETA operations this Live version supports. ``can_duplicate_to_arrangement`` is the most important one — it gates ``add_clip_to_arrangement`` and ``bounce_session_to_arrangement``.

add_clip_to_arrangement

BETA: Copy a session clip onto the arrangement timeline at the given time (in beats). Requires a Live version that exposes ``Track.duplicate_clip_to_arrangement``. Use ``get_arrangement_info`` first to confirm support.

ParameterTypeDescription
arrangement_time *number
clip_slot_index *integer
track_index *integer

arrange_clips

BETA: Copy many session clips onto the arrangement timeline in one remote batch, with optional arrangement-loop setup. Parameters: - placements: list of placement specs. Each spec must contain: - track_index: source track - clip_slot_index: source clip slot - arrangement_time: destination time in beats ``slot`` and ``time`` are accepted as aliases for ``clip_slot_index`` and ``arrangement_time``. - loop_start, loop_end: optional arrangement loop bounds in beats. Provide both or neither. - loop_on: whether to enable the loop wh…

ParameterTypeDescription
placements *array
loop_end
loop_onboolean
loop_start

set_arrangement_loop

Set the arrangement loop region (in beats) and whether the loop is enabled. Stable across Live 11+.

ParameterTypeDescription
end *number
start *number
loop_onboolean

add_arrangement_locator

Add a named locator (cue point) at the given arrangement time. Useful for marking verse / chorus / bridge boundaries. If a locator already exists at that exact time, this only renames it.

ParameterTypeDescription
time *number
namestring

bounce_session_to_arrangement

BETA: Render a sequence of scenes onto the arrangement timeline. For each scene in ``scene_order`` (in order), every clip in that scene's row is dropped onto the arrangement at the running time cursor. The cursor advances by ``bar_length`` beats after each scene. This is the closest thing to a one-call "session sketch → arrangement" flow. Requires a Live version that supports ``Track.duplicate_clip_to_arrangement``. Parameters: - scene_order: list of scene indices in playback order, e.g. [0, 0, 1, 2, 1, 3] - bar_length: how many beats each scene occ…

ParameterTypeDescription
scene_order *array
bar_lengthnumber

render_arrangement_to_wav

Bounce a region of the Arrangement to a .wav file WITHOUT the user opening Ableton's Export Audio/Video dialog. Live's Object Model has no direct "export to file" call, so this does what any headless Ableton render does under the hood: point an audio track's input at Live's built-in 'Resampling' source (the master bus, post-fader, with no feedback loop), arm it, and record an Arrangement pass in real time. There is no faster-than-realtime bounce over this API, so the call blocks for roughly (end_beat - start_beat) converted to seconds at the session's curr…

ParameterTypeDescription
end_beat *number
start_beat *number
track_index *integer
out_pathstring
tail_secondsnumber