medit-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Editor musicale (DAW) non distruttivo: tracce MIDI con strumenti interni (synth, FM, corde pizzicate, batteria, sampler), tracce audio, bus di effetti, master.
Flusso: project_create (bpm, key, mode) -> structure (intro/strofa/ritornello...) -> add_drums / add_chords / add_bassline / add_arpeggio / add_melody (oppure add_clip + add_notes) -> suoni (set_instrument, list_sounds) -> effetti (add_effect, apply_chain, add_bus + set_send) -> preview + analyze_mix -> review_song -> auto_master -> export_audio (solo se l'utente lo chiede).
POSIZIONI. L'arrangiamento e' in battute 1-based: bar=1 e' l'inizio, bar=9.5 la meta' della nona; le lunghezze in battute (bars). Le note stanno in beat dentro la clip (0 = inizio clip, 1 beat = una semiminima). Altezze: numero MIDI o nome (C4 = 60 = Do centrale, F#3, Bb5). Tracce, clip e sezioni per id o per nome.
== NON PUOI ASCOLTARE: GUARDA E MISURA == preview(view="arrangement") mostra tracce, clip e sezioni; view="piano_roll" (clip= o track=) le note con le righe della scala; view="mix" forma d'onda e spettrogramma. analyze_mix da' LUFS, true peak, bande di frequenza, stereo (anche di una traccia sola: track=). get_notes legge le note esatte. Una parte non guardata e' una parte non fatta.
== COME SCRIVERE MUSICA ==
Armonia prima di tutto: una tonalita' (music_reference da' scala, accordi diatonici e progressioni collaudate per umore/genere), poi ritmo, basso, melodia. Accordi fuori tonalita' solo se voluti (bVII, prestiti dal minore).
Registri separati: basso C1-C3, accordi/pad C3-C5, melodia C4-C6. Due parti nello stesso registro si impastano.
Il basso segue le fondamentali degli accordi e si incastra con la cassa.
Melodia: soprattutto gradi congiunti, pochi salti (e dopo un salto si torna indietro), note lunghe e note dell'accordo sui tempi forti, frasi di 2-4 battute a domanda/risposta, un motivo che ritorna. Il ritornello sale di registro rispetto alla strofa. Con un testo: una nota per sillaba, gli accenti delle parole sui tempi forti.
Contrasto fra sezioni: strofa piu' vuota, ritornello pieno (piu' tracce, intensity="busy", accordi in ottava sopra); fill di batteria prima dei cambi (fill_every), crash a inizio sezione; intro e outro piu' leggere.
Ripeti senza riscrivere: copy_bars (una sezione intera), duplicate_clip, loop_bars su una clip.
== IA GENERATIVA == ai_status dice cosa c'e' qui (ComfyUI con ACE-Step / Stable Audio, Demucs, Applio, servizi in rete): chiedilo prima di promettere. generate_song fa una canzone intera anche cantata (stile + testo: senza lyrics usa i testi delle sezioni); generate_audio un loop, uno strumento o un effetto lungo N battute; separate_stems divide un audio in voce/batteria/basso/resto; audio_to_midi trasforma una voce, un fischio o un beatbox in note; convert_voice rifa' una voce con un modello RVC dell'utente (voice_models). Tutto finisce su tracce nuove, l'originale resta (silenziato). I servizi in rete costano all'utente: backend="auto" li usa solo se ne ha scelto uno come predefinito; nominarne uno solo se l'utente lo chiede. La generazione locale su una GPU piccola dura minuti: dillo prima.
== MIX ==
balance_mix fa il gain staging per ruolo; poi ritocca a gusto: batteria, basso, voce e lead al centro; accordi, pad e chitarre aperti col pan.
Riverbero e delay su un bus (add_bus + set_send), non su ogni traccia.
eq low_cut sulle tracce che non sono basso/cassa: pulisce i bassi.
review_song prima di dire che hai finito: ogni problema ha lo strumento che lo sistema. auto_master alla fine (-14 LUFS per lo streaming).
ECONOMIA. Ogni chiamata rilegge tutto il contesto. batch applica una lista di modifiche in un colpo solo (un undo); con look=true restituisce anche l'arrangiamento. project_info solo se non conosci lo stato.
VERSIONI. Prima di una strada diversa (altro genere, altro arrangiamento, altro ritornello) salva con snapshot; compare_versions dice cosa cambia, restore_snapshot torna indietro (si annulla con undo).
SCELTE DELL'UTENTE. Per cio' che spetta a lui (genere, tonalita', tempo, struttura, suono, quale versione tenere) ask_user gli mostra domande con opzioni nell'editor; senza editor aperto chiedi nella conversazione.
MEMORIA FRA I DOCUMENTI. project_create e project_open restituiscono "memoria": preferenze di chi fa musica, valide in ogni canzone. Seguile se la richiesta non dice altro. Quando l'utente esprime una preferenza che vale oltre questa canzone ("i miei beat sono sempre 140 BPM", "niente reverb sulla voce", "master a -9 LUFS"), salvala con remember, breve e concreta. forget toglie, memory legge.
Non esportare mai di tua iniziativa: export_audio / export_stems / export_midi solo se l'utente lo chiede. Se l'utente vuole sentire o correggere a mano, open_ui apre l'editor sulla stessa canzone (li' c'e' il play). Quando qualcosa non va (errore, strumento scomodo, funzione che manca) annotalo con report_issue e prosegui.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| 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). |
| project_openB | Open a song (.json), or start one from an audio file (.wav .mp3 .flac...) or a MIDI file (.mid). |
| 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). |
| project_saveC | Save the song (.json). path= saves to a new file (save as). |
| 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. |
| undoC | Undo the last edit. |
| redoC | Redo the last undone edit. |
| 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. |
| set_trackC | Mixer settings of a track: volume_db (-96..+24), pan (-1 left .. 1 right), mute, solo, name, color, role. |
| remove_trackC | Delete a track and its clips. |
| duplicate_trackB | Copy a track with clips, instrument and effects (to layer a sound or try a variation). |
| move_trackD | Reorder: index 0 = top. |
| list_soundsC | Built-in and saved sounds (instrument presets) by category: keys, pad, lead, pluck, guitar, bass, drums. |
| instrument_paramsA | Parameters of an instrument type (synth, fm, pluck, drums, sampler) with defaults and meaning, to shape a sound with set_instrument(params=...). |
| 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. |
| save_soundC | Save the instrument of a track as a sound of the user, usable in every song (list_sounds). |
| 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. |
| set_sendB | Send a track (post-fader) to a bus at level_db (-30 subtle .. -6 a lot). remove=true stops it. |
| 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. |
| 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. |
| 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. |
| split_clipC | Cut a clip in two at a bar (e.g. 5 or 5.5). |
| duplicate_clipC | Copies of a clip one after the other (or at bar). |
| remove_clipC | Delete a clip. |
| 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. |
| insert_barsB | Open empty bars at at_bar: everything after moves right (clips across are split). |
| delete_barsC | Remove bars (and what is in them) and close the gap. |
| 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. |
| add_notesB | Add notes to a MIDI clip: notes as in add_clip, or melody text starting at beat |
| set_notesA | Replace all the notes of a clip (extend=true lengthens the clip if notes run past its end). |
| remove_notesB | Remove notes by pitch (one or a list), by beat range [start, end), by index (get_notes), or all. |
| 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). |
| transposeB | Transpose a clip, or every clip of a track, by semitones (12 = one octave). |
| 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. |
| humanizeB | Small random timing (beats) and velocity changes so a part sounds played, not programmed. |
| 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. |
| 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. |
| 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). |
| 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. |
| add_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. |
| 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. |
| 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. |
| 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. |
| add_sectionC | A section marker (intro, verse, pre-chorus, chorus, bridge, drop, outro...) with optional lyrics. |
| set_sectionC | Rename, move, resize a section or write its lyrics (one line per phrase). |
| remove_sectionB | Delete a section marker (the clips stay). |
| list_effectsB | Effects with their parameters (ranges, defaults) and which ones can be automated. |
| 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. |
| update_effectC | Change parameters of an effect (merged) or switch it on/off (enabled). |
| remove_effectC | Remove an effect from a chain. |
| move_effectD | Reorder a chain. |
| 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. |
| apply_chainC | Append a ready chain to a track or the master (replace=true clears the chain first). |
| save_chainC | Save the effect chain of a track (or master) as a chain of the user, usable in every song. |
| delete_presetC | Delete a sound or chain the user saved. |
| 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. |
| clear_automationB | Remove the automation of a target (or all of the track). |
| set_masterC | Master volume (the master effects are edited with add_effect target="master"). |
| 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. |
| 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. |
| analyze_audioC | BPM, key and loudness of an audio file (or an asset of the song): to match a sample or a beat. |
| 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. |
| 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. |
| 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. |
| 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. |
| 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
|
| comfy_settingsC | ComfyUI address and which checkpoints to use for songs (ACE-Step) and sounds (Stable Audio). Empty string = back to automatic. |
| voice_modelsB | The user's voice models in Applio (RVC), for convert_voice. applio_path tells medit where Applio is. |
| 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. |
| 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. |
| 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. |
| 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. |
| 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. |
| 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. |
| export_stemsB | One audio file per track (post-fader, no master), all the same length. ONLY when the user asks. |
| export_midiC | Write the MIDI tracks to a standard .mid file. ONLY when the user asks. |
| 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. |
| import_audioA | Add an audio file to the song's files without placing it (BPM/key measured). Place it with add_audio(asset=). |
| 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. |
| open_uiB | Open the web editor on THIS song (same in-memory song, live updates, with play). |
| close_uiA | Stop the web editor started with open_ui. |
| report_issueC | Log what is broken/clumsy/missing (kind: bug, scomodo, sbagliato, manca, lento), then go on. |
| snapshotB | Save a named version of the song without changing it: before trying another direction. |
| snapshotsC | Saved versions, newest first. |
| restore_snapshotB | Bring the song back to a saved version (undo reverts it). |
| delete_snapshotC | Delete a saved version. |
| compare_versionsB | What changes between two versions (b omitted = the current song): tempo/key, tracks added, removed, changed (with note counts), sections, loudness. |
| 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. |
| 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... |
| forgetC | Remove from the shared memory the entries containing |
| memoryC | The whole memory shared by all songs, and where its file is. |
| system_infoC | medit version, optional parts, ffmpeg, where settings and memory live, and whether the web editor is open. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
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.