Skip to main content
Glama

lmms-mcp

An MCP server that lets an MCP client (for example Claude Code) control a running LMMS through the LMMS local control socket. You hear each change live: the model can add instrument tracks, write MIDI clips, turn knobs, change the tempo, play and loop the song, undo, and save.

Status: work in progress. The control socket is not in LMMS yet. It is proposed in a pull request to LMMS/lmms. Until it is merged, build LMMS from the control-socket branch of abdyer/lmms.

Install

  1. Install uv.

  2. Add the bridge to Claude Code:

    claude mcp add --transport stdio --scope user lmms -- uvx --from git+https://github.com/abdyer/lmms-mcp@v0.1.0 lmms-mcp

    Other MCP clients: run the command after -- as a stdio server.

  3. Start LMMS with the control socket on:

    lmms --control-socket

    Or turn on the control socket in LMMS Settings, then restart LMMS.

You can start LMMS before or after the MCP client.

Related MCP server: ableton-mcp

How it connects

  1. When the control socket is on, LMMS writes a connection file, <name>.json, in a per-user runtime folder:

    • macOS: $TMPDIR/lmms/

    • Linux: $XDG_RUNTIME_DIR/lmms/ (or $TMPDIR or /tmp, then lmms-<uid>/)

    • Windows: %LOCALAPPDATA%\LMMS\run\

  2. The bridge reads that file to get the socket address and the token. The default name is control. If LMMS uses --control-socket=<name>, set LMMS_CONTROL=<name> for the bridge.

The bridge connects on the first tool call, not at start-up. After LMMS restarts, the next call connects again.

Tools

There is one tool for each control socket method:

Read

Edit

get_project_summary

add_instrument_track, remove_track

list_tracks

add_midi_clip, set_notes

list_clips

set_param

get_notes

set_tempo, transport, set_loop

list_plugins

undo, redo

list_params

save_project

  • Positions and lengths are in beats, where one beat is one quarter note. In 4/4 a bar is 4 beats. Steps of 1/48 beat are allowed.

  • A pitch is a MIDI number or a note name: C4 is 60, F#3, Bb2.

  • Note volume is 0 to 200 (100 is normal), and pan is -100 (left) to 100 (right).

  • Tracks, clips and knobs have a handle and a path, for example tracks/"Bass"/knobs/"Volume". Each tool that takes an object accepts either.

  • One edit call is one undo step. undo acts on the LMMS undo history, which also has your own edits. add_instrument_track, remove_track and set_loop cannot be undone.

Develop

uv run pytest

The tests use a fake LMMS server. They do not need LMMS.

Windows: tested against a fake pipe server only.

License

MIT

Available Tools

17 tools
add_instrument_trackA

Add an instrument track at the end of the Song Editor. Call list_plugins first.

This cannot be undone with undo.

Inputs: plugin (required), name. Returns: pan, name, path, solo, +8 more

add_midi_clipA

Add an empty MIDI clip to an instrument track, then add notes with set_notes. One undo step.

Inputs: start (required), track (required), length. Returns: kind, name, path, index, +5 more

get_notesA
Read-only

Get the notes of a MIDI clip, sorted by start, then pitch. Call this before set_notes.

Note start is in beats from the clip start; length is in beats.

Inputs: clip (required). Returns: clip, notes

get_project_summaryA
Read-only

Get the project: file, tempo, time signature, beats per bar, length, transport, loop and tracks.

Call this first. Positions and lengths are in beats (one beat = one quarter note).

Inputs: no named parameters. Returns: gen, file, loop, tempo, +6 more

list_clipsA
Read-only

List the clips of a track in timeline order. Start and length are in beats from the song start.

Inputs: track (required). Returns: clips, track

list_paramsA
Read-only

List knobs (parameters) with range, value and display value. Call this before set_param.

Start with a track. For a large plugin, then list one group path from groups.

Inputs: target (required). Returns: knobs, groups, target

list_pluginsA
Read-only

List the instrument plugins that can load. Give a plugin name to add_instrument_track.

A plugin with needs_file=true makes no sound until the user loads a file in it.

Inputs: no named parameters. Returns: plugins

list_tracksA
Read-only

List the tracks in Song Editor order: mute, solo, clip count, and instrument, volume and pan.

To change mute, solo, volume or pan, use list_params and set_param on the track.

Inputs: track. Returns: tracks

redoA

Redo the most recently undone change in LMMS, like Edit > Redo. List again to see the result.

Inputs: no named parameters. Returns: redone

remove_trackA
Destructive

Remove an instrument track and all its clips. Ask the user to confirm first.

This cannot be undone. The index paths of later tracks move down by one.

Inputs: track (required). Returns: removed

save_projectA

Save the project, like File > Save, or like Save As when you give path. It never opens a dialog.

Inputs: path, overwrite. Returns: file, modified

set_loopA

Change the Song Editor loop. Give at least one argument. This cannot be undone with undo.

Inputs: end, begin, enabled. Returns: end, begin, enabled

set_notesA
Destructive

Change the notes of a MIDI clip: give replace, or add and/or remove. One undo step.

Removes happen before adds, so to move or resize a note, remove it and add it in one call. If one entry is wrong, nothing changes.

Inputs: clip (required), add, remove, replace. Returns: clip, added, removed, note_count

set_paramA
Idempotent

Set one knob to a value in its own units (see min, max and options from list_params). One undo step.

A value out of range is an error; it is not clamped.

Inputs: knob (required), value (required). Returns: max, min, name, path, +10 more

set_tempoB
Idempotent

Set the song tempo. One undo step.

Inputs: bpm (required). Returns: tempo

transportA
Idempotent

Play, pause, stop or seek the Song Editor. The same action twice has no extra effect. No undo step.

Inputs: action (required), position. Returns: mode, state, position

undoA

Undo the most recent change in LMMS, like Edit > Undo. It can be the user's own edit.

List again to see the result.

Inputs: no named parameters. Returns: undone

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 17 tools

    Disambiguation5/5

    Each tool targets a clearly distinct resource and action: listing tracks vs clips, getting vs setting notes, listing plugins vs params, transport vs loop, and undo/redo are all unambiguous. Cross-references in descriptions further clarify when to use related tools like list_params and set_param.

    Naming Consistency4/5

    All names use snake_case and most follow a verb_noun pattern (set_tempo, list_tracks, add_midi_clip, save_project). A few standard actions like transport, undo, and redo omit the noun, which is a minor deviation but still predictable.

    Tool Count4/5

    The 17 tools cover the DAW's core operations with little redundancy, and each appears to earn its place. The count is slightly above the ideal 3–15 range but remains reasonable for a DAW control surface.

    Completeness3/5

    Core workflows are well covered: project summary, tempo, tracks, clips, notes, params, transport, loop, undo/redo, and save. However, clips can be added and read but not deleted or updated (no remove_clip or set_clip), which is a notable lifecycle gap.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      MCP server that enables natural language control of Ableton Live for music production, including track, clip, device, automation, and mixing operations.
      10
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Enables AI assistants to control Ableton Live through MCP, allowing MIDI writing, audio import, device parameter adjustment, clip arrangement, and playback control over a localhost-only connection.
      37
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables MCP-capable agents to control a running LMMS session to compose, arrange, mix, and export music, including creating tracks, editing notes, loading presets and samples, automating parameters, and rendering audio or MIDI.
      GPL 2.0
    • A
      license
      B
      quality
      Not graded
      maintenance
      Lets MCP clients read and edit a Lemon Studio music project—tempo, notes, channels, patterns, clips, mixer tracks, effects, and plugin parameters—with batched edits that land as a single undo step, plus transport controls for play/pause/stop and project save/render.
      42
      1
      MIT