Lathe
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.
Lathe is a small DAW (digital audio workstation). These tools read the project that is open in Lathe, control its transport, and change it (edit_session: each call is one undo step the person can take back). They can also start, open and save projects and export audio; new_project and open_project replace the open project, so they won't throw away unsaved changes unless told to. Positions are in bars (1-based) and beats. A MIDI track's notes go through its plug-ins in order: a generator plug-in (one that makes its own notes, like an arpeggiator or a sequencer) comes before the instrument it drives. A MIDI track can take its notes from another MIDI track, and an audio track can take another track's sound; tracks that take their input from somewhere only hear it while armed or with monitoring set to In.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| describe_sessionA | Overview of the project open in Lathe: tempo, time signature, key changes (the key lane), transport (playing, recording, position), every track with its kind, input, output, monitoring, arm/mute/solo, volume and pan, plug-ins in signal order (and which ones generate notes), number of clips, the returns and the master. Also lists likely reasons a track can't be heard. Start here. |
| describe_trackA | Everything about one track (or a return, or "Master"): input, output, monitoring, plug-ins in signal order, sends, EQ, and every clip with its id, position in bars and length (MIDI clips: note count and pitch range; audio clips: file and gain). |
| get_notesA | The notes in a MIDI track's clips. By default in Lathe's note notation (see notation_guide): drum grids and token lines, with the bars they cover, ready to edit and write back with write_notes' pattern over the same bars. format "list" gives one JSON object per note instead: pitch (number and name, C3 = middle C), start in bars (1-based) and beats, length in beats, velocity 1-127, at most 2000 notes. Optionally one clip, or only notes between two bars. |
| write_notesA | Writes notes into a MIDI track, as one undo step in Lathe. Give pattern (Lathe's note notation; notation_guide has the full reference) or notes (a JSON list). A pattern is lines; each loops to fill from_bar to to_bar. Drum grid: a lane then one character per step (16ths by default; . rest, x hit, X accent, o ghost, 1-9 velocity levels), e.g. "kick x... ..x. x... ....". Token line: notes split each bar evenly (| between bars; ~ rest, _ hold, [a b] share a step, [a,b] chord), each with optional :velocity, +8ms/-5ms or +20% timing, =beats length, e.g. "bass: c2:110 ~ [c2 c2:70-6ms] ~ | f1=2 _ ~ g1+4ms". "swing 58%" and "humanize 6ms 8vel seed 3" lines set the feel for the lines after. The notes go in a clip covering from_bar to to_bar: with mode "replace" (the default) whatever was in those bars on that track goes first; with "add" they join the notes already there. Every note must start inside the bars. repeat plays the notes again that many times back to back (a one-bar beat with repeat 4 fills four bars). Lathe's Drums play the usual drum notes: 36 kick, 37 rim, 38 snare, 39 clap, 42 closed hat, 46 open hat, 41/45/48 low/mid/high tom, 49 crash, 51 ride, 56 cowbell. |
| import_midiA | Puts a Standard MIDI File (.mid) from the computer into the song as MIDI clips, like dragging it onto Lathe's arrangement: a groove from a drum library, a part exported from another program. Use this instead of reading a file and writing its notes out. With track (a MIDI track), the whole file goes onto it as one clip, clearing whatever was there in those bars. Without track, each part of the file (a track of it, or a channel of a one-track file) gets a new MIDI track named after it, or one new track with one_track; new tracks have no instrument, so add one with edit_session. Clips run to the end of the bar their last note ends in. Notes keep their place in beats: the song's tempo is not changed (the reply gives the file's tempo and time signature, so you can match them with edit_session). One undo step. |
| convert_to_midiA | Finds the notes in an audio track's clips and puts them on a new MIDI track right under it, named " MIDI", a MIDI clip for each audio clip at the same place, like the clip menu's Convert to MIDI. kind "melody" hears one note at a time (a voice, a bass, a lead; not chords): each note's pitch, start, length and velocity. kind "drums" finds each hit and makes it a kick (36), snare (38) or closed hi-hat (42), General MIDI's notes; "one_drum" makes every hit the same drum, for a track of one drum. The audio track is left as it is. The new track has no instrument: add one with edit_session (a drum plug-in for drums). Use get_notes to read what was found. One undo step. |
| export_midiA | Saves MIDI clips as a Standard MIDI File (.mid), like File > Export MIDI File: for another program, or for someone to play. Without track: every MIDI track that has notes, one track each in the file, from the start of the song. With track: just that track; with clip too, just that clip, measured from the bar it starts in. The file has the song's tempo and time signature, each track's name and MIDI channel, and the clips' notes, controllers and pitch bend: notes, not sound (an instrument's sound isn't in a MIDI file). Without path it goes in the song's Exports folder. A file already there is never replaced. Doesn't change the song. |
| notation_guideA | The full reference for Lathe's note notation, used by write_notes' pattern and get_notes: every symbol, velocities, timing, swing and humanize, with examples. Read it before writing a detailed part. |
| playA | Starts playback, from the given bar or from Lathe's insert marker. With to_bar, Lathe stops by itself exactly when the playhead gets there. With loop_times, it plays the loop that many times and stops at the loop end (the loop must be on: see set_loop). When it stops, the playhead goes back to the insert marker, as with Stop. Without from_bar or to_bar it does nothing if Lathe is already playing; from_bar jumps there, to_bar alone sets where the current playback stops. |
| set_loopA | Sets the loop region and turns looping on, or turns it off. The loop is saved with the project, like moving the loop brackets in Lathe. Bars are 1-based: from_bar 1 to_bar 5 loops the first four bars. |
| list_pluginsA | The plug-ins Lathe can load on this computer: Lathe's own built-in devices first (instruments such as Multi Synth and Drums, the Random Notes generator, and effects such as Reverb and Mastering), then the installed ones, with name, maker, kind (instrument, note generator or effect) and format. Use the names with edit_session's add_plugin and add_track's plugins. |
| edit_sessionA | Builds or changes the project: adds, removes, renames and moves tracks and returns, and sets plug-ins, routing, sends, mixer, channel EQ, tempo and keys. Give every change for one request in a single call, in order: they all land as ONE undo step in Lathe, or, if one can't be made, none of them do (the reply says which and why). Plug-in placement is automatic unless position is given: a note generator goes before the instrument it drives, an instrument before the effects. A MIDI track plays one instrument. A track whose input is another track gets monitoring In so it plays without being armed. Routing a note generator into an instrument, two ways: on one track, {"action":"add_track","kind":"midi","name":"Arp","plugins":["",""]} (simplest), or on two, so the generator's notes can be recorded or drive several instruments: a MIDI track with the generator, a MIDI track with the instrument, then {"action":"set_input","track":"","from_track":""}. A reverb return: {"action":"add_track","kind":"return","name":"Verb","plugins":["Reverb"]}, then set_send from each track. Lathe's own effects start 100% wet on a return. Every track, return and the master has a six-band channel EQ (low cut, low shelf, bell 1, bell 2, high shelf, high cut), after its plug-ins unless it was moved in among them (describe_track shows what's active and where it sits). set_eq changes one band: {"action":"set_eq","track":"Guitar","band":"bell 1","freq_hz":300,"gain_db":-3,"q":1.4} or {"action":"set_eq","track":"Vocal","band":"low cut","freq_hz":100}. Changing a band switches it on. Prefer this to adding an EQ plug-in for corrective cuts. "before" moves the EQ in the chain: {"action":"set_eq","track":"Master","before":"Mastering"}. On the master, put the EQ before Mastering (or any limiter) for tonal moves on the whole mix: after it, a boost can push the output past the limiter's ceiling. On a MIDI track it can't go before the instrument. The key lane says what key the song is in, bar by bar; Lathe's Play Along window shows the person where those notes are on guitar, bass, ukulele and keyboard so they can jam along. set_keys replaces the lane (or a range of it): {"action":"set_keys","keys":[{"bar":1,"key":"A minor pentatonic"},{"bar":17,"key":"C major"}]}. An empty list clears it. With "track", a track gets keys of its own, for a part that plays in a different key or mode from the band (a solo in D dorian over a D minor song); it follows the song's key until its first one, and an empty list puts it back on the song's. Play Along can follow that track. Most parts don't need one: a bass playing roots is still in the song's key. Work the keys out from the notes (get_notes; convert_to_midi for audio) and pick the scale a player would improvise with: minor pentatonic or blues over a minor blues-rock riff, the full major or minor scale when the melody uses all seven notes. Volume, pan, send levels and the EQ are part of the undo step; mute, solo, monitoring and arm change live and aren't. |
| new_projectA | Starts a new project, like File > New: empty (an audio track and a MIDI track) or from one of the person's templates by name. It replaces the open project, so unsaved changes stop it unless "unsaved" says what to do. The new project is Untitled until save_project gives it a name. |
| open_projectA | Opens a project, like File > Open: by name from the projects folder (exact, or a unique part of it), or by path. Without either it lists the projects, newest first. It replaces the open project, so unsaved changes stop it unless "unsaved" says what to do. |
| save_projectA | Saves the open project. Without a name it saves where it is (Cmd/Ctrl+S); a project that's never been saved needs one. With a name it's saved as a new project, Name/Name.lathe in the projects folder, with its own Audio folder (audio it uses is copied in), like File > Save As. It never saves over another project. |
| export_audioA | Renders the song to audio files (WAV unless another format is asked for), like File > Export: the mix, and stems (a file per track and return) if asked. From the start to the end of the last clip unless bars are given. Lathe stops playing first. Files go in the project's Exports folder; the reply lists them with each one's length and, for the mix, its peak, true peak and integrated loudness (LUFS), so you can check the level. |
| analyze_mixA | Renders bars of the song offline (nothing plays; nothing is written) and measures what you'd check by ear when mixing. The mix: peak, true peak, integrated loudness (LUFS), crest factor, balance across seven frequency bands, stereo width and correlation (also below 250 Hz). Each section: its loudness and the loudest tracks. Each track and return: its loudness (LUFS) and level while it plays, its share of the tracks' loudness (K-weighted, as ears and meters hear it, not raw energy, which the bass always wins), the bars it plays in, where most of its energy is, and its stereo width. Masking: pairs of tracks loud in the same band at the same time, within 6 dB of each other, and for how much of the time. Plus notes on anything measurably off (clipping, true peak above -1 dBTP, a wide or out-of-phase low end). The loop if it's on, else the whole song, unless bars are given. Use it after changing a mix to check the change. To act on masking, cut one of the pair where they collide with edit_session's set_eq. To compare the mix with an earlier version of itself or a reference track, use compare_mix. |
| compare_mixA | Lathe's Compare window keeps up to three versions to switch between while they play in step: Before (the mix as it was when someone marked it), Now (the mix as it is) and a Reference (a finished track the person chose). Each is measured like analyze_mix's mix: integrated loudness, true peak, crest, width, correlation and balance across seven bands. With mark_before, Lathe renders the mix now as Before: do it before changing a mix, so the person can hear what you did by switching between them. Without it, Lathe renders Now (over Before's bars, if there's a Before) and replies with every version's numbers and a summary of what changed and how both stand against the reference. The person picks the reference in the window; the reply says if there's none. Renders over the loop if it's on, else the whole song. |
| get_plugin_paramsA | Every setting a plug-in on a track publishes (Lathe's own devices and VST3s): number, name, id, the current value as the plug-in shows it, and either its choices (a menu or a switch) or its range (min, max and unit). Use search to find one in a plug-in with hundreds. |
| set_plugin_paramsA | Turns a plug-in's knobs, flips its switches and picks from its menus: Lathe's own devices (a Drums kit, a synth's wave) and VST3s. Give every change for one plug-in in one call; if one can't be made, none are. Each change happens at once, as if turned by hand, and like a knob in Lathe it isn't an undo step: the reply gives each old value, so it can be put back. Check names and ranges with get_plugin_params first. |
| measure_performanceA | Plays part of the project for real and times every audio block, the way a CPU meter does: mean, 99th-percentile and peak load (share of each block's deadline; over 100% is a dropout), blocks that missed the deadline, dropouts the interface reported, each track's own cost per block (heaviest first, with its plug-ins), and the conditions (computer, CPU and cores, interface, buffer size). Bars default to the loop if it's on, else the first four. Takes about |
| compare_processing_coresA | Measures the same bars with Lathe rendering on 1 core and on all cores (Auto), alternating (1, all, 1, all) so a warming or throttling computer doesn't favour either, and returns both side by side with the speed-up, every run, each track's cost, and the conditions. The Processing cores setting is put back afterwards. Takes about 2 x rounds x seconds, plus warm-ups. |
| stopA | Stops playback, like pressing Stop. If the person is recording, this finishes the recording and keeps the take, exactly as the Stop button does. Only the person can start a recording; no tool does. |
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 23 tools
Most tools target clearly distinct resources or actions: describe_session vs describe_track, get_notes vs write_notes, and import/export/convert MIDI are well separated. Minor potential confusion exists among analyze_mix, compare_mix, measure_performance, and compare_processing_cores, and edit_session is a broad catch-all, but the descriptions make the boundaries mostly clear.
Names are consistently lower snake_case and mostly follow a verb_noun pattern, e.g. describe_session, write_notes, set_plugin_params. A few are nouns or bare verbs (notation_guide, play, stop), which are natural exceptions rather than inconsistent conventions.
At 23 tools, the set is heavy for an MCP server, even one covering a DAW. The tools mostly earn their place, but some analysis and transport operations could potentially be consolidated, and the 16-25 range is explicitly borderline in the rubric.
The surface covers project lifecycle, tracks and routing, EQ and mixer edits, MIDI import/export/editing, audio export, mix analysis, and performance measurement. Gaps include no explicit undo/redo tool, limited clip-level operations beyond notes, and no automation editing, though most core production workflows are covered.