lmms-mcp
Provides tools to control a running LMMS instance over its local control socket, enabling instrument track and MIDI clip management, note editing, parameter changes, tempo and transport control, looping, undo/redo, and project saving.
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., "@lmms-mcp Add a synth track with a C major chord for 4 beats and play the song."
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.
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
Install uv.
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-mcpOther MCP clients: run the command after
--as a stdio server.Start LMMS with the control socket on:
lmms --control-socketOr 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
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$TMPDIRor/tmp, thenlmms-<uid>/)Windows:
%LOCALAPPDATA%\LMMS\run\
The bridge reads that file to get the socket address and the token. The default name is
control. If LMMS uses--control-socket=<name>, setLMMS_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 |
|
|
|
|
|
|
|
|
|
|
|
|
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:
C4is 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.
undoacts on the LMMS undo history, which also has your own edits.add_instrument_track,remove_trackandset_loopcannot be undone.
Develop
uv run pytestThe tests use a fake LMMS server. They do not need LMMS.
Windows: tested against a fake pipe server only.
License
MIT
Available Tools
17 toolsadd_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_notesARead-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_summaryARead-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_clipsARead-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_paramsARead-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_pluginsARead-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_tracksARead-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_trackADestructive
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_notesADestructive
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_paramAIdempotent
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_tempoBIdempotent
Set the song tempo. One undo step.
Inputs: bpm (required). Returns: tempo
transportAIdempotent
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
Scored across 17 tools
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.
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.
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.
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
Related MCP Connectors
Remote MCP server for audio stem separation, denoise, reverb, and MIDI export.
MCP server for Producer/Riffusion AI music generation
Create, co-edit, analyze, publish, and export collaborative step-sequencer sessions through MCP.
Generate and edit images, video, and music with Sogni AI through a hosted MCP connection.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceMCP server that enables natural language control of Ableton Live for music production, including track, clip, device, automation, and mixing operations.10MIT
- AlicenseBqualityDmaintenanceEnables 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.37MIT
- AlicenseNot gradedqualityCmaintenanceEnables 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
- AlicenseBqualityNot gradedmaintenanceLets 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.421MIT