modularsynth-mcp
v1.6.1MCP server that lets your AI (Claude Desktop, Claude Code…) build and play patches in ModularSynth, the free modular synthesizer in your browser.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
describe_patch Describe patch
Describe the current patch in the ModularSynth rack: modules (id, type, settings, "bypass": true when bypassed), cables ("moduleId:port" → "moduleId:port"), polyphony, whether the clock is running, and "editing": the Note Grid the user has open in its editor right now (write there when they talk about "the notes"). Call it first.
list_module_types List module types
List the module types you can add, with their inputs, outputs and settings (name, label shown on the panel, min, max, default, unit; "options": the meaning of each value of a selector, from min upward). Pass a type to get just that one. Audio and control signals are voltages: pitch is 1 V per octave (0 V = C4), gates are 0/10 V. Drums can be synthesized with modules, the modular way (kick: a sine VCO whose pitch drops fast, through a VCA with a short envelope; snare: noise through a band-pass VCF with a brief envelope; hi-hat: noise high-passed, very short — see the "Noise percussion" preset…
| Parameter | Type | Description |
|---|---|---|
type | string |
list_presets List presets
List the ready-made presets (name and what they do). Load one with load_preset to start from a working sound.
load_preset Load preset
Replace the rack with a ready-made preset, by name (see list_presets). The user can undo it.
| Parameter | Type | Description |
|---|---|---|
name * | string |
new_patch New patch
Replace the rack with the default starter patch (keyboard → oscillator → filter → amplifier → output). The user can undo it.
add_module Add module
Add a module to the rack. Optional row and x (in HP) place it; otherwise it goes to the first free spot. Optional params set its knobs. Returns its id. Drums: synthesize them with modules (VCO, Noise, VCF, ADSR, VCA) or load the built-in kit into samplers with set_sample. For a real instrument or a voice, a sampler with the user’s recording, or audioin for a microphone.
| Parameter | Type | Description |
|---|---|---|
type * | string | |
params | object | |
row | integer | |
x | integer |
remove_module Remove module
Remove a module and its cables from the rack.
| Parameter | Type | Description |
|---|---|---|
id * | string |
connect Connect
Patch a cable from an output to an input, both written "moduleId:port". An input takes one cable: plugging into a busy input replaces its cable.
| Parameter | Type | Description |
|---|---|---|
from * | string | |
to * | string |
disconnect Disconnect
Unplug the cable going into an input ("moduleId:port").
| Parameter | Type | Description |
|---|---|---|
to * | string |
set_param Set param
Turn a knob or flip a switch on a module. The value is clamped to the setting range; the value actually set is returned.
| Parameter | Type | Description |
|---|---|---|
id * | string | |
param * | string | |
value * | number |
nudge_param Nudge param
Turn a knob up or down by a little, some (default) or a lot, along the knob's own travel (logarithmic for frequencies and times), never past its range — for relative requests: "brighter" (filter cutoff up), "darker", "faster" (clock bpm up), "more reverb" (mix up). The old and new values are returned.
| Parameter | Type | Description |
|---|---|---|
direction * | string | |
id * | string | |
param * | string | |
amount | string |
set_bypass Set bypass
Bypass a module (on: true) or turn it back on (on: false), without unplugging anything: effects and processors (filters, VCA, mixers, delay, reverb…) pass their input straight through; sources and modulators (oscillators, LFO, envelopes, sequencers, clock…) go silent. Output, Scope and Memo can’t be bypassed. Useful to hear a part of a rich patch more clearly; the user can undo it.
| Parameter | Type | Description |
|---|---|---|
id * | string | |
on * | boolean |
set_notes Set notes
Write the notes of one page (A–D, default A) of a Note Grid sequencer; the other pages are kept. Each note: start step (0–63: sixteenth notes when clocked by Clock ×4, thirty-second notes when the Note Grid "resolution" setting is 1), length in steps, MIDI pitch (60 = C4), optional velocity. Replaces the notes of that page. Only the page selected by the "page" setting plays: put a verse on A and a chorus on B, then save scenes with different "page" values.
| Parameter | Type | Description |
|---|---|---|
id * | string | |
notes * | array | |
page | string |
set_steps Set steps
Write the steps of a sequencer in one call. Trigger Seq: "tracks", each a track (1–4) and a pattern of up to 16 characters, "x" a hit and "." a rest (e.g. "x...x...x...x..." four on the floor), on page A–D (default: the page the module shows); the other tracks are kept, and written tracks leave Euclidean mode. Step Seq: "notes", up to 16 MIDI pitches (60 = C4) or null for a silent step; the length follows, and each pitch is fitted to the module's scale and octave range (from C4 up), so the notes actually set are returned. For a Note Grid, use set_notes.
| Parameter | Type | Description |
|---|---|---|
id * | string | |
notes | array | |
page | string | |
tracks | array |
set_voices Set voices
Set the polyphony of the patch: how many notes can sound at once (1–16). Chords from a keyboard or a Note Grid need as many voices as notes; a mono bass or lead sounds best with 1.
| Parameter | Type | Description |
|---|---|---|
voices * | integer |
transform_notes Transform notes
Transform one page (A–D, default: the page the module shows) of a Note Grid: "harmonize" adds the third (voices "third", default) or the third and fifth ("third+fifth") of the scale above each note; "humanize" varies velocities (and start times by one step at 1/32 resolution) by "amount" (0–1, default 0.5); "vary" copies the page to page "to" (default the next page) and moves about amount×30 % of the notes to a neighbouring scale note — a quick variation for a chorus or a break. Scale: "scale" and "root" (0 = C … 11 = B; scale indexes as in list_module_types for the Quant module), oth…
| Parameter | Type | Description |
|---|---|---|
action * | string | |
id * | string | |
amount | number | |
page | string | |
root | integer | |
scale | integer | |
to | string | |
voices | string |
play_notes Play notes
Play notes live, as if on the keyboard (the patch must have a MIDI→CV module wired to sound, its KEYBOARD screen set to All or Computer). Each note: MIDI pitch (60 = C4), start and duration in seconds from now, optional velocity. Up to 64 notes within 30 seconds.
| Parameter | Type | Description |
|---|---|---|
notes * | array |
save_scene Save scene
Save the current settings and sequences of every module as a scene (like a snapshot: intro, verse, chorus, break…), or overwrite an existing scene. Up to 16 scenes. Tempo and the clock's run state are not part of scenes. Returns the scene id.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
scene | string |
recall_scene Recall scene
Switch to a saved scene, like pressing its button: on the next bar while the sound plays, right away otherwise. Stops the song if it was playing.
| Parameter | Type | Description |
|---|---|---|
scene * | string |
set_song Set song
Write the song: scenes played one after another, each for a number of bars (e.g. intro 4, verse 8, chorus 8, break 4, chorus 8). Up to 64 lines; an empty list removes the song. "loop": start again at the end (default true; otherwise the clocks stop). Needs a Clock in the patch to count bars.
| Parameter | Type | Description |
|---|---|---|
lines * | array | |
loop | boolean |
play_song Play song
Play the song from its first line (or from line "from", counted from 0): the scene of each line plays for its bars, clocks restart on the first beat. Stop it with set_transport running: false.
| Parameter | Type | Description |
|---|---|---|
from | integer |
listen Listen
Listen to the patch for a few seconds (default 2, up to 10) and report what actually sounds: for each Output module, its peak level in dBFS and whether the master limiter is squeezing it (too loud: lower a level or the Output gain); the peak voltage of every module output; and which modules are silent. Use it after building or changing a patch, with the clock running for sequenced parts, to check that it makes sound and is not too loud. Needs audio on.
| Parameter | Type | Description |
|---|---|---|
seconds | number |
look Look
See the synth: with no argument, a photo of the whole rack (modules, knob positions, cables); with "module", that module's panel plus an oscilloscope and spectrum of one of its outputs ("port", default the first output); with "output": true, the oscilloscope and spectrum of what reaches the Output. Use it to check a patch visually: a clipped or silent waveform, a filter closed too far, a bass that fills the spectrum. Scope and spectrum need audio on.
| Parameter | Type | Description |
|---|---|---|
module | string | |
output | boolean | |
port | string |
show_player Show player
Show the ModularSynth player in the conversation (in apps that support MCP Apps): the patch name, play/stop and up to 6 knobs you choose ("moduleId:setting", the ones that matter most for this sound), so the user can play with them without leaving the chat. Call it when you have finished a patch. The sound still comes from the ModularSynth tab.
| Parameter | Type | Description |
|---|---|---|
knobs | array |
highlight Highlight
Show the user a module, a knob or a jack by making it glow in the rack for a few seconds (the rack scrolls to it). target: "moduleId", "moduleId:setting" or "moduleId:port". With "to" (an input "moduleId:port") and an output as target, it draws the cable to plug as a dotted line. Use it when you explain or ask the user to turn or patch something.
| Parameter | Type | Description |
|---|---|---|
target * | string | |
seconds | number | |
to | string |
list_sounds List sounds
List the sounds a sampler can play: the built-in starter kit (kick, snare, hi-hat, a chord, a pad — always available, made by the synth itself) and the user’s own sounds saved in this browser. Load one with set_sample.
set_sample Set sample
Load a sound (an id from list_sounds) into a sampler module. Then trigger it with its gate input (from a Trigger Seq, a Note Grid or MIDI→CV) and choose how it plays with set_param "mode": 0 one-shot (drums), 1 hold (plays while the gate is high), 2 loop (synced to the clock).
| Parameter | Type | Description |
|---|---|---|
id * | string | |
sound * | string |
set_transport Set transport
Start or stop every Clock in the patch (the ▶/■ button): sequencers play while it runs. Stopping also stops a playing song.
| Parameter | Type | Description |
|---|---|---|
running * | boolean |
what_changed What changed
What the user (and other assistants) changed in the patch since your last action: knobs turned, cables patched, modules added, scenes recalled, the clock started. Every tool answer already ends with this when something changed; call this to look again, for example when the user says "your turn" after playing — then answer what they did, like a musician would.
undo Undo
Undo the last change (yours or the user’s), like Ctrl+Z: first cancels a scene waiting for the next bar, stops a playing song.