medit-mcp
Powers generate_song to create a complete sung song from a style and lyrics using ElevenLabs Music, placing the generated audio on new tracks.
Provides MIDI import and export, allowing arrangements to be exchanged with other DAWs, instruments, and MIDI-capable tools.
Powers generate_audio to create loops and sound effects of a requested number of bars via Stable Audio on Replicate, placing generated audio on new tracks.
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., "@medit-mcp make a sad lo-fi song in A minor at 80 BPM"
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.
🇮🇹 Italiano: README.it.md · Sister projects: editorvideo-ai (vedit), editorimage-ai (pedit)
Install
uv tool install medit-mcp
medit uiThe editor opens at http://127.0.0.1:8780. Let Claude Code write music with you:
claude mcp add medit -- medit-mcp. Something wrong? medit doctor.
Related MCP server: strudel-ai
What it is
An ordinary DAW — arrangement, piano roll, mixer, effects — where everything you can do with the mouse, an AI can also do on command. The buttons, the built-in assistant and any MCP agent call the exact same operations. Nothing is AI-only, nothing is mouse-only, and nothing is destructive: notes stay notes, effects stay editable, imported audio is never rewritten, every step undoes.
Writes real music | Chords from symbols or roman numerals ( |
Sounds on its own | 31 built-in sounds — pianos, e-piano, pads, strings, supersaw, 808, reese, acid, guitars, harp, 5 drum kits — rendered in numpy, levels calibrated in LUFS. Plus a sampler for your own files. |
The agent can't hear, so it looks and measures |
|
Mixes and masters | 21 effects (EQ, compressor, true-peak limiter, convolution reverb, tempo-synced delay, chorus, saturation, lo-fi, pump…), buses and sends, automation, |
Works with your files | Import WAV, MP3, FLAC, OGG, AIFF (m4a and video audio with ffmpeg) with BPM and key detection; import and export MIDI; export mixdown and stems. |
Generative AI, local or with your key |
|
Remembers you, and asks | Shared memory across songs, clickable questions in the editor, versions you can compare, a chat saved next to each song. |
Driving it from an agent (MCP)
claude mcp add --transport http medit-live http://127.0.0.1:8780/mcp/ # the song open in the browser
claude mcp add medit -- uvx medit-mcp # stdioproject_create(bpm, key) → structure → add_drums / add_chords / add_bassline / add_melody
→ set_instrument / add_effect / add_bus + set_send → preview + analyze_mix
→ review_song → auto_master → export_audio (only when the user asks)Development
See AGENTS.md. pytest (backend), cd frontend && npm run build && npm test (UI).
MIT license.
Available Tools
92 toolsadd_arpeggioC
Arpeggiate the chords. pattern: up, down, updown, random, chord_tones_octave, alberti; rate in beats (0.25 = 16ths); gate = note length fraction. track omitted = a new "Arp" track.
Inputs: progression (required), bar, bars, gate, +10 more.
add_audioA
Put an audio file (wav, mp3, flac, ogg, aiff; m4a/video with ffmpeg) on an audio track (new if track is omitted) at bar. BPM and key are detected. offset = seconds to skip in the file; bars trims it. adopt_tempo=true sets the song BPM (and key if empty) to the file's: to build on top of a beat.
Inputs: bar, bars, name, path, +5 more.
add_basslineC
A bass line following the chord roots. style: root, pulse, quarter, octave, walking, syncopated, 808, offbeat, arp. track omitted = a new "Bass" track.
Inputs: progression (required), bar, bars, name, +7 more.
add_busB
An effect return bus with a ready chain (big reverb bus, plate bus, delay bus, or none). Feed it with set_send from the tracks: one reverb shared by everything sounds like one room.
Inputs: name, chain, project, volume_db.
add_chordsB
Chords from a progression: "Am F C G" (one per bar), "Am:2 F:2" (beats), "| Am | F | C G |", roman numerals in the song key "vi IV I V" / "ii7 V7 Imaj7" / "i bVI bIII bVII". Voice-led like a keyboard player. style: block, pad, half, quarter, eighths, offbeat, syncopated, ballad, strum, stabs. bars repeats the progression to fill them. track omitted = a new "Chords" track (sound = preset).
Inputs: progression (required), bar, bars, name, +8 more.
add_clipC
A MIDI clip on a track at bar, bars long (default: as long as its notes). notes: [{"pitch": "C4", "start": 0, "length": 1, "velocity": 100}] or ["C4", 0, 1, 100] (start/length in beats from the clip start). melody: text notation (see add_melody). loop_bars repeats the first N bars to fill the clip.
Inputs: track (required), bar, bars, name, +4 more.
add_drumsC
A drum pattern: pop, rock, house, techno, trap, hiphop, lofi, reggaeton, dnb, funk, disco, afrobeats, ballad, halftime. intensity sparse | normal | busy; fill_every=4 puts a fill at the end of every 4th bar; crash on the first beat; swing (default per genre). track omitted = a new "Drums" track with a kit suited to the genre. GM notes: kick 36, snare 38, clap 39, closed hat 42, open hat 46, crash 49.
Inputs: bar, bars, loop, name, +11 more.
add_effectA
Insert an effect on a track (or target="master") at the end of its chain (or at index). Chain order matters: eq -> compressor -> saturation -> modulation -> delay/reverb. type: see list_effects.
Inputs: type (required), target (required), index, params, +1 more.
add_melodyB
A melody in text: "E5:1 D5:0.5 C5:0.5 A4:2 r:1 ..." = note:beats, r = rest, [C4 E4 G4]:2 = chord, ! accent, ? soft, ~ tie to the next equal note. Durations carry over when omitted. track omitted = a new "Lead" track.
Inputs: melody (required), bar, bars, name, +3 more.
add_notesB
Add notes to a MIDI clip: notes as in add_clip, or melody text starting at beat at.
Inputs: clip (required), at, notes, melody, +1 more.
add_sectionC
A section marker (intro, verse, pre-chorus, chorus, bridge, drop, outro...) with optional lyrics.
Inputs: bar (required), bars (required), name (required), lyrics, +1 more.
add_trackB
New track. kind: midi (plays notes with an instrument), audio (audio files), bus (effect return, fed by set_send). sound = a preset from list_sounds (e.g. "electric piano", "808", "trap kit"), or instrument = synth | fm | pluck | drums | sampler with params. role (drums, bass, chords, pad, lead, vocal, arp, fx) helps balance_mix and review.
Inputs: pan, kind, name, role, +6 more.
ai_servicesC
Online music services (ElevenLabs Music, Replicate) and which is the default for backend="auto".
API keys are NOT set here: the user adds them in the editor (AI services) or with
medit key <service> <key>; they stay on their computer. model = Replicate model (owner/name).
Inputs: model, default, service.
ai_statusA
What AI is available HERE: song generation (ComfyUI ACE-Step or a cloud service), sound/loop generation (Stable Audio or cloud), stem separation (Demucs), the user's voice models (Applio), audio-to-MIDI (always). Each missing piece says exactly what to install or download.
Inputs: no named parameters.
analyze_audioC
BPM, key and loudness of an audio file (or an asset of the song): to match a sample or a beat.
Inputs: path, asset, project.
analyze_mixB
MEASURE the mix (or one track, post-fader): integrated LUFS, true peak, peak, RMS, crest, loudness range, energy per band (sub, bass, low_mid, mid, high_mid, air in dB vs total), stereo correlation.
Inputs: track, end_bar, project, start_bar.
apply_chainC
Append a ready chain to a track or the master (replace=true clears the chain first).
Inputs: name (required), target (required), project, replace.
ask_userA
Ask the user 1-4 questions with clickable options, in the editor, and wait for the answer. Each: {"domanda": "...", "titolo": "short", "opzioni": [{"etichetta": "...", "descrizione": "..."}, ...], "multipla": false}. 2-6 options, recommended first; the user can always type another answer. For choices that are theirs: genre, key, tempo, structure, sound, which version. Needs the editor open (open_ui or medit ui); otherwise ask in the conversation.
Inputs: domande (required).
audio_to_midiA
Turn an audio clip into MIDI notes on a new track: mode melody (one line at a time: singing, humming, whistling, a bass, a solo; separate_stems first for a full mix) or drums (beatbox -> kick/snare/hat). grid quantizes in beats (0 = off). Then edit the notes or change the sound.
Inputs: clip (required), grid, mode, name, +2 more.
auto_masterA
Master the song to a loudness: adds the master chain if there is no limiter (style streaming or loud) and finds the limiter gain by measuring. -14 LUFS streaming, -9 club; ceiling -1 dBTP.
Inputs: style, project, ceiling_db, target_lufs.
balance_mixB
Gain staging: set each track volume to a typical loudness for its role (drums loudest, pads lowest). A starting point; then adjust by taste.
Inputs: project, target_lufs.
batchA
Many edits in ONE call and ONE undo step, all or nothing: [{"tool": "add_chords", "args": {...}}, {"tool": "set_track", "args": {...}}, ...]. look=true also returns the arrangement image.
Inputs: ops (required), look, project.
clear_automationB
Remove the automation of a target (or all of the track).
Inputs: track (required), target, project.
close_uiA
Stop the web editor started with open_ui.
Inputs: no named parameters.
comfy_settingsC
ComfyUI address and which checkpoints to use for songs (ACE-Step) and sounds (Stable Audio). Empty string = back to automatic.
Inputs: url, song_checkpoint, audio_checkpoint.
compare_versionsB
What changes between two versions (b omitted = the current song): tempo/key, tracks added, removed, changed (with note counts), sections, loudness.
Inputs: a (required), b, project.
convert_voiceA
Re-sing a vocal clip with one of the user's voice models (Applio RVC, see voice_models): e.g. turn a generated vocal into the user's own voice. Works best on an isolated vocal (separate_stems first). pitch in semitones (-12 female -> male, +12 male -> female). New track; the original is muted.
Inputs: clip (required), model (required), pitch, project, +4 more.
copy_barsA
Copy everything in bars [from_bar, from_bar+bars) to to_bar (all tracks, or only tracks): to repeat a whole verse or chorus. Section markers are copied too unless sections=false.
Inputs: bars (required), to_bar (required), from_bar (required), tracks, +2 more.
delete_barsC
Remove bars (and what is in them) and close the gap.
Inputs: bars (required), at_bar (required), project.
delete_presetC
Delete a sound or chain the user saved.
Inputs: name (required).
delete_snapshotC
Delete a saved version.
Inputs: name (required), project.
duplicate_clipC
Copies of a clip one after the other (or at bar).
Inputs: clip (required), bar, times, project.
duplicate_trackB
Copy a track with clips, instrument and effects (to layer a sound or try a variation).
Inputs: track (required), name, project.
edit_notesB
Change the selected notes (all, or filtered by pitch / beat range / indices): transpose semitones, shift beats, set or scale velocity, set or scale length, legato (each note lasts until the next).
Inputs: clip (required), end, pitch, shift, +9 more.
export_audioB
Write the song to an audio file (.wav .flac .mp3 .ogg .aiff .m4a). ONLY when the user asks. start_bar/end_bar export a part.
Inputs: path (required), end_bar, project, quality, +3 more.
export_midiC
Write the MIDI tracks to a standard .mid file. ONLY when the user asks.
Inputs: path (required), tracks, project.
export_stemsB
One audio file per track (post-fader, no master), all the same length. ONLY when the user asks.
Inputs: folder (required), format, project, bit_depth.
fit_to_scaleA
Move the notes of a clip (or a whole track) that are outside the song's scale (or key/mode) to the nearest scale note.
Inputs: target (required), key, mode, project.
forgetC
Remove from the shared memory the entries containing match.
Inputs: match (required).
generate_audioB
Generate a sound from a description onto an audio track: a drum loop, a texture, an instrument phrase, a riser, an effect. bars = exact length in bars at the song tempo (the tempo goes in the prompt). backend: auto, comfyui (Stable Audio Open, up to 47 s), elevenlabs, replicate.
Inputs: prompt (required), bar, bars, name, +5 more.
generate_songB
Generate a whole song as audio (with sung vocals) on a new audio track. prompt = style tags: genre, mood, instruments, voice ("melancholic indie pop, female breathy vocal, acoustic guitar, 90 BPM"). lyrics with section tags "[Verse] ...
[Chorus] ..."; omitted = the lyrics of the song's sections. seconds omitted = the length of the song form. Tempo and key come from the song. backend: auto, comfyui (local ACE-Step 1.5), elevenlabs. Takes minutes on a small GPU.
Inputs: prompt (required), bar, name, seed, +7 more.
get_notesA
All notes of a MIDI clip as [pitch, start_beat, length_beats, velocity], sorted by time. The position in this list is the index used by remove_notes / edit_notes.
Inputs: clip (required), project.
humanizeB
Small random timing (beats) and velocity changes so a part sounds played, not programmed.
Inputs: clip (required), seed, timing, project, +1 more.
import_audioA
Add an audio file to the song's files without placing it (BPM/key measured). Place it with add_audio(asset=).
Inputs: path (required), project.
import_midiA
Import a .mid file: one track per instrument (channel 10 = drums), built-in sounds chosen from the General MIDI program. adopt_tempo=true takes its BPM and time signature.
Inputs: path (required), bar, project, adopt_tempo.
insert_barsB
Open empty bars at at_bar: everything after moves right (clips across are split).
Inputs: bars (required), at_bar (required), project.
instrument_paramsA
Parameters of an instrument type (synth, fm, pluck, drums, sampler) with defaults and meaning, to shape a sound with set_instrument(params=...).
Inputs: type.
list_chainsB
Ready effect chains (vocal, bass, drum bus, pad space, lofi, radio, slapback, reverb/delay buses, master streaming, master loud) and the user's own.
Inputs: no named parameters.
list_effectsB
Effects with their parameters (ranges, defaults) and which ones can be automated.
Inputs: name.
list_soundsC
Built-in and saved sounds (instrument presets) by category: keys, pad, lead, pluck, guitar, bass, drums.
Inputs: category.
memoryC
The whole memory shared by all songs, and where its file is.
Inputs: no named parameters.
move_effectD
Reorder a chain.
Inputs: to (required), index (required), target (required), project.
move_trackD
Reorder: index 0 = top.
Inputs: index (required), track (required), project.
music_referenceB
Music theory at hand: the scale and diatonic chords of the key (the song's if omitted), proven progressions for a mood/genre (roman numerals, usable directly in add_chords), and the styles accepted by add_chords, add_bassline, add_arpeggio and add_drums.
Inputs: key, mode, mood, project.
open_uiB
Open the web editor on THIS song (same in-memory song, live updates, with play).
Inputs: port, project.
previewA
LOOK at the song. view: arrangement (tracks x bars, sections, clips with mini notes/waveforms), piano_roll (notes of clip= or track=, scale rows highlighted), mix (master waveform + spectrogram). bars=[first, last] zooms.
Inputs: bars, clip, view, track, +2 more.
project_createA
Create a song. key: C, F#, Bb...; mode: major, minor, dorian, mixolydian, phrygian, lydian, harmonic_minor, pentatonic_minor, blues... (or key="A minor"). time_sig [4,4] default. from_audio= starts from an audio file (a beat, a demo): it goes on an audio track and the song takes its detected BPM. path=<file.json> saves it (autosave after every edit).
Inputs: bpm, key, mode, name, +3 more.
project_infoB
The song: tempo, key, sections (with lyrics), tracks with instrument, volume, effects, sends and clips. detail: brief | normal | full (full adds every note and parameter).
Inputs: detail, project.
project_openB
Open a song (.json), or start one from an audio file (.wav .mp3 .flac...) or a MIDI file (.mid).
Inputs: path (required).
project_saveC
Save the song (.json). path= saves to a new file (save as).
Inputs: path, project.
quantizeA
Snap notes to a grid in beats (0.25 = 16ths, 0.5 = 8ths, 0.333 = triplets). strength < 1 keeps some feel; swing 0-1 delays the off-beats of the grid; lengths=true snaps durations too.
Inputs: clip (required), grid, swing, lengths, +2 more.
redoC
Redo the last undone edit.
Inputs: project.
rememberA
Save to the memory shared by ALL songs (MEMORIA.md) a preference of the user: usual tempos and genres, favourite sounds and chains, master loudness, where exports go, things to avoid. One short, concrete line. section groups: preferences, sounds, mix, genres...
Inputs: note (required), section.
remove_clipC
Delete a clip.
Inputs: clip (required), project.
remove_effectC
Remove an effect from a chain.
Inputs: index (required), target (required), project.
remove_notesB
Remove notes by pitch (one or a list), by beat range [start, end), by index (get_notes), or all.
Inputs: clip (required), all, end, pitch, +3 more.
remove_sectionB
Delete a section marker (the clips stay).
Inputs: section (required), project.
remove_trackC
Delete a track and its clips.
Inputs: track (required), project.
report_issueC
Log what is broken/clumsy/missing (kind: bug, scomodo, sbagliato, manca, lento), then go on.
Inputs: kind (required), title (required), tool, details.
restore_snapshotB
Bring the song back to a saved version (undo reverts it).
Inputs: name (required), project.
review_songB
CHECK before saying done: empty or overlapping clips, notes out of key, bass too high, clipping, loudness far from target, muddy/harsh/thin/boomy balance, phase problems, tracks too hot, empty sections, missing files. Each warning names the tool that fixes it.
Inputs: project, target_lufs.
save_chainC
Save the effect chain of a track (or master) as a chain of the user, usable in every song.
Inputs: name (required), target (required), desc, project.
save_soundC
Save the instrument of a track as a sound of the user, usable in every song (list_sounds).
Inputs: name (required), track (required), desc, project.
separate_stemsA
Split an audio clip into vocals, drums, bass and other (two_stems=true: vocals + instrumental), one new track per stem at the same position; the original clip is muted, not deleted. Needs Demucs.
Inputs: clip (required), model, project, two_stems.
set_automationB
An automation curve: points [[bar, value], ...], linear in between. target: volume (dB), pan (-1..1), or fx.. for an automatable effect parameter (e.g. fx.0.cutoff for a filter sweep, fx.2.mix for more reverb in the chorus). Replaces the curve of that target.
Inputs: track (required), points (required), target (required), project.
set_clipC
Move (bar, track), resize (bars), trim audio (offset seconds), gain_db, fades (in beats), loop_bars (0 = no loop), transpose in semitones (audio: changes pitch and speed), mute a clip.
Inputs: clip (required), bar, bars, name, +9 more.
set_instrumentA
Change the sound of a MIDI track: sound = preset name (replaces it), or params = some parameters to tweak the current one (merged: e.g. {"cutoff": 900, "release": 0.6}). See instrument_params.
Inputs: track (required), type, sound, params, +1 more.
set_masterC
Master volume (the master effects are edited with add_effect target="master").
Inputs: project, volume_db.
set_notesA
Replace all the notes of a clip (extend=true lengthens the clip if notes run past its end).
Inputs: clip (required), notes (required), extend, project.
set_sectionC
Rename, move, resize a section or write its lyrics (one line per phrase).
Inputs: section (required), bar, bars, name, +2 more.
set_sendB
Send a track (post-fader) to a bus at level_db (-30 subtle .. -6 a lot). remove=true stops it.
Inputs: bus (required), track (required), remove, project, +1 more.
set_songA
Song settings: name, bpm (notes stay on the grid), key + mode (only the label used by the theory tools: to move the notes use transpose), time_sig, swing 0-1 (delays off-beat 16ths of all MIDI), loop=[first_bar, last_bar] for playback.
Inputs: bpm, key, loop, mode, +5 more.
set_trackC
Mixer settings of a track: volume_db (-96..+24), pan (-1 left .. 1 right), mute, solo, name, color, role.
Inputs: track (required), pan, mute, name, +5 more.
snapshotB
Save a named version of the song without changing it: before trying another direction.
Inputs: name (required), note, project.
snapshotsC
Saved versions, newest first.
Inputs: project.
split_clipC
Cut a clip in two at a bar (e.g. 5 or 5.5).
Inputs: clip (required), at_bar (required), project.
structureC
Lay out the whole song form at once: [{"name": "intro", "bars": 4}, {"name": "verse", "bars": 8, "lyrics": "..."}, {"name": "chorus", "bars": 8}, ...], back to back from start_bar.
Inputs: sections (required), project, replace, start_bar.
system_infoC
medit version, optional parts, ffmpeg, where settings and memory live, and whether the web editor is open.
Inputs: no named parameters.
transposeB
Transpose a clip, or every clip of a track, by semitones (12 = one octave).
Inputs: target (required), semitones (required), project.
undoC
Undo the last edit.
Inputs: project.
update_effectC
Change parameters of an effect (merged) or switch it on/off (enabled).
Inputs: index (required), target (required), params, enabled, +1 more.
voice_modelsB
The user's voice models in Applio (RVC), for convert_voice. applio_path tells medit where Applio is.
Inputs: applio_path.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 92 tools
Most tools target a clearly distinct resource+action (add_chords vs add_bassline, list_effects vs apply_chain, preview vs analyze_mix vs review_song), and the long descriptions actively steer selection. A few boundaries still blur: set_notes vs add_notes vs edit_notes, add_audio vs import_audio, and structure vs add_section can be confused at a glance, though the descriptions disambiguate them.
The dominant convention is consistent snake_case verb_noun (add_track, set_clip, remove_effect, export_stems), applied across nearly the whole surface. Deviations are noun-only or bare-verb names (preview, batch, transpose, quantize, structure, snapshot, undo/redo, memory), which are still readable and conventional but break the pattern.
92 tools is far beyond what an agent can hold in working context, and the listing is long enough that discovery itself becomes a problem. The DAW domain is genuinely broad so few tools are outright redundant, but this surface should be split (editing, mixing/analysis, AI generation, project/versioning) or funnelled through batch.
Coverage is exceptional: project lifecycle, tracks/buses, clips, note editing, song sections, effects chains, automation, mixing analysis, AI generation/separation, import/export, snapshots/versioning, undo, UI and user memory. I struggled to find a real dead end — even recovery (undo, restore_snapshot), guidance (review_song naming the fixing tool) and progressive disclosure (preview detail levels) are present.
Maintenance
Related MCP Connectors
Browser DAW for AI assistants: build multitrack songs with MIDI, effects, stems and generation.
Score video, make music as an agent: 100+ AI instruments play your MIDI, audio, stems, Logic/Ableton
Autonomous music production for AI agents with MIDI generation, QC and provenance.
Make full songs with vocals, split stems, transcribe and analyze audio from your AI assistant.
Related MCP Servers
- AlicenseBqualityAmaintenanceEnables AI agents to control a browser-based digital audio workstation (openDAW) for music production, including track creation, effects, MIDI, automation, and rendering.100Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to create and edit Strudel music code, render offline WAV audio, and obtain structured hearing reports with waveform, spectrogram, BPM, and onset analysis.AGPL 3.0
- FlicenseNot gradedqualityBmaintenanceProvides AI agents with reversible DAW control for music production, enabling inspection of instruments and parameters, batch edits, and evaluated revision runs with audio feedback and rollback.2-
- AlicenseNot gradedqualityBmaintenanceEnables coding agents to compose, edit and run multi-agent pipelines represented as songs, where channels are agents, notes are agent calls, and mixer buses carry each agent's output to the next. Lets agents create and modify arrangements, validate and render projects headlessly, play them back live in a studio window, and export the result as WAV or MP3, with every change undoable and cached takes replayed for free.43 npmMIT