medit
Local AI music editor (DAW) an agent drives with 95 MCP tools: chords, beats, melodies and vocals, then mixing and mastering to -14 LUFS.
Dokumentasi
medit — the open-source AI music editor (DAW) you can drive with words
Tell an AI to write your song, and watch it happen in a real DAW.
Chords, beats, bass lines, melodies, lyrics and vocals — built-in synths and drum kits, 31 effects,
mixing and mastering to -14 LUFS. Works with Claude Code, Cursor, Codex and any MCP client.
Free, local, MIT.
Website · Install · MCP setup · Examples · FAQ · 🇮🇹 Italiano
Why medit
Most "AI music" tools hand you a finished MP3 you cannot touch. Classic DAWs give you every knob and none of your time back. medit is both at once: an ordinary DAW — arrangement, piano roll, mixer, effects — where everything you can do with the mouse, an AI agent can also do on command, because the buttons, the built-in assistant and any MCP agent call the exact same operations.
- 🎹 Writes real, editable music — notes stay notes, chords stay chords, every step undoes with Ctrl+Z.
- 🧠 Knows music theory — roman numerals, voice leading, scales, 14 drum genres, 10 chord and 9 bass styles.
- 👂 The agent "listens" by measuring — LUFS, true peak, spectrum, piano-roll images and a song review.
- 🎙️ Records and tunes your voice — mic recording, Auto-Tune, vocal chains, your own RVC voice model.
- 🤖 Generative AI, local or cloud — whole sung songs (ACE-Step), loops (Stable Audio), stems (UVR/Demucs).
- 🔒 Runs on your machine — no subscription, no upload, no watermark. MIT licensed.
Install — 3 steps
1. Install uv (it installs Python apps for you), then close and reopen the terminal.
| Windows (PowerShell) | macOS | Linux |
|---|---|---|
winget install astral-sh.uv | brew install uv | curl -LsSf https://astral.sh/uv/install.sh | sh |
2. Install medit
uv tool install medit-mcp
3. Open the editor
medit ui
The DAW opens in your browser at http://127.0.0.1:8780. Something missing? medit doctor tells you
what and how to fix it. Update with uv tool upgrade medit-mcp. Prefer pip? pip install medit-mcp.
Connect your AI agent (MCP)
Claude Code
claude mcp add medit -- uvx medit-mcp # its own song (stdio)
claude mcp add --transport http medit-live http://127.0.0.1:8780/mcp/ # the song open in your browser
Claude Desktop, Cursor, Windsurf, VS Code, Codex — add to the client's MCP config
(claude_desktop_config.json, .cursor/mcp.json, …):
{
"mcpServers": {
"medit": { "command": "uvx", "args": ["medit-mcp"] }
}
}
With medit ui running, point the client at http://127.0.0.1:8780/mcp/ instead and you watch the
agent work on the timeline in real time — and can grab the mouse at any moment.
The built-in Assistant tab works too: with Claude Code installed there is nothing to configure; otherwise use an Anthropic key, any OpenAI-compatible endpoint or a local Ollama model.
What you can ask
"Write a sad lo-fi song in A minor at 80 BPM: intro, verse, chorus. Dusty drums, Rhodes chords, a soft lead melody, then master it for Spotify."
"The chorus needs to be bigger: double the melody an octave up, add a pad and open the drums."
"The bass is muddy — fix it." · "Put Auto-Tune on my vocal take, natural, in the song's key."
"Separate the vocals from this MP3 and re-sing them with my voice model."
Under the hood the agent follows the same path a producer would:
project_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 → balance_mix / auto_master → export_audio
Features
| Composition engine | Chords from symbols or roman numerals (vi IV I V, ii7 V7 Imaj7, i bVI bIII bVII) with keyboard-player voice leading; 10 chord styles, 9 bass styles, arpeggiator, 14 drum genres with fills and swing; melodies in a text notation (E5:1 D5:0.5 r:1 [C4 E4 G4]:2); song structure with lyrics per section. |
| Built-in instruments | 31 sounds — piano, e-piano, organ, pads, strings, supersaw, 808, reese, acid, guitars, harp, 5 drum kits — subtractive (PolyBLEP), FM and Karplus-Strong synthesis in numpy, levels calibrated in LUFS. Plus a sampler for your own files. |
| Mixing & mastering | 31 effects (Auto-Tune, pitch shift, parametric and 10-band graphic EQ, compressor, multiband, transient shaper, de-esser, true-peak limiter, convolution reverb, tempo-synced delay, doubler, chorus, phaser, exciter, saturation, lo-fi…), 22 ready chains, buses and sends, automation, balance_mix gain staging, auto_master to -14 LUFS / -1 dBTP. |
| Analysis the agent can read | preview returns arrangement, piano roll or spectrogram as an image; analyze_mix gives LUFS (BS.1770), true peak, band balance and stereo; review_song flags clipping, mud, harshness, notes out of key, bass in the wrong register — each with the tool that fixes it. |
| Vocal recording | Press R: the song plays and the mic records from the playhead, latency compensated, with metronome, count-in and lyrics view. One click adds Auto-Tune (natural or hard), a pop vocal chain or a double. |
| Your files | Import WAV, MP3, FLAC, OGG, AIFF (m4a and video with ffmpeg) with BPM and key detection; import/export MIDI; export mixdown and stems. |
| Generative AI | generate_song — a whole sung song from a style and your lyrics (ACE-Step 1.5 in ComfyUI, or ElevenLabs Music); generate_audio — loops and effects N bars long (Stable Audio, Replicate); separate_stems — vocals/drums/bass with your Ultimate Vocal Remover models or Demucs; audio_to_midi — humming or beatbox to notes; convert_voice / voice_cover — re-sing with your own voice model (Applio RVC). Everything lands on new tracks. |
| Memory | Preferences shared across songs, clickable questions in the editor, versions to compare, a chat saved next to each song. |
How it compares
| medit | AI song generators | Classic DAWs | |
|---|---|---|---|
| Editable result (notes, tracks, effects) | ✅ | ❌ one audio file | ✅ |
| An AI agent does the work | ✅ 95 MCP tools | ✅ prompt only | ❌ |
| Mix & master to a loudness target | ✅ automatic + manual | ❌ | manual |
| Runs locally, no subscription | ✅ | ❌ | depends |
| Open source | ✅ MIT | ❌ | rarely |
FAQ
Is medit free? Yes. MIT license, no account, no watermark. Cloud services (ElevenLabs, Replicate) are optional and use your own key.
Can Claude (or ChatGPT, Cursor, Codex) make music with it? Yes — any client that speaks the Model Context Protocol gets 95 tools: compose, arrange, mix, master, analyze and export.
Does it need a GPU? No. The DAW, synths, effects and analysis run on the CPU in numpy. Only the optional generative models (ACE-Step, Stable Audio, RVC, Demucs) want a GPU.
Can I use my own samples and recordings? Yes: drag audio files in, use the sampler, or record from the microphone. Imported audio is never rewritten.
What does it export? WAV, FLAC, MP3, OGG, MIDI and per-track stems.
Windows, macOS, Linux? All three; Python 3.10+.
Sister projects
Same philosophy, same agent workflow: vedit — AI video editor · pedit — AI image editor.
Contributing
Issues and pull requests are welcome — see CONTRIBUTING.md
and AGENTS.md (the contract for humans and coding agents).
Tests: pytest and cd frontend && npm run build && npm test.
If medit is useful to you, a ⭐ helps other musicians and developers find it.
Created by Mattia Cibin (Metiu) — independent developer from Italy.