surge-xt-mcp
v0.2.2MCP server for Surge XT sound design, live OSC control, patch management, and offline rendering
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
surge_status Check the Surge XT connection
Report server config, OSC reachability, current patch, and render availability. reply_port_mode is direct when this server owns Surge XT's reply port. It is shared when another server on this machine owns the port and passes the replies on.
poll_osc_changes Follow synth changes
Read observed changes or errors, optionally sampling one exact address on quiet hosts. Set watch_address before editing to establish a baseline. Resume with next_cursor and the same prefix. source is push or readback. missed counts events evicted before your cursor.
| Parameter | Type | Description |
|---|---|---|
cursor | string | |
limit | integer | |
prefix | string | |
wait_seconds | number | |
watch_address | string |
surge_doctor Diagnose the Surge XT setup
Diagnose installation: patch roots found, patch counts, OSC settings, and fixes.
list_patch_categories List patch categories
List patch categories (Basses, Pads, Leads...) with counts. Works offline.
| Parameter | Type | Description |
|---|---|---|
source | string |
list_patches Browse patches
Browse installed patches. Filters: category, source (factory/thirdparty/user) and a substring search over name, category and pack (the third-party author folder). Works offline; use load_patch to audition one and patch_info for its author and comment.
| Parameter | Type | Description |
|---|---|---|
category | string | |
limit | integer | |
offset | integer | |
search | string | |
source | string |
patch_info Read patch file details
Read a patch file's author, comment, category and license. Works offline. Pass a library name as load_patch accepts it, or an .fxp path.
| Parameter | Type | Description |
|---|---|---|
name | string | |
path | string |
load_patch Load a patch
Load by library name or file path and verify the reported patch path.
| Parameter | Type | Description |
|---|---|---|
name | string | |
path | string | |
use_synth_user_folder | boolean | |
user | boolean |
save_patch Save the current patch
Save and verify an FXP. Omit the name for the synth's metadata-derived name/category. Protected creations use a shared path. Native user overwrites use save_user.
| Parameter | Type | Description |
|---|---|---|
name | ||
overwrite | boolean | |
use_synth_user_folder | boolean | |
user | boolean |
random_patch Load a random patch
Load a random patch and check the current patch changed.
next_patch Step to the next patch
Step within the current category, or switch categories with category=True.
| Parameter | Type | Description |
|---|---|---|
category | boolean | |
previous | boolean |
list_parameters List curated parameters
List curated sound-design parameters by section (oscillator, mixer, filter, envelope, lfo, amp, scene, global, macro) or search words. For the full live catalog of several hundred parameters, Surge XT must be running.
| Parameter | Type | Description |
|---|---|---|
search | string | |
section | string |
discover_parameters Search live parameters
Search a fresh live parameter dump by address or name. Page with next_offset. Value is the OSC wire value. For floats min/max describe the synth's internal range.
| Parameter | Type | Description |
|---|---|---|
include_disabled | boolean | |
limit | integer | |
offset | integer | |
prefix | string | |
search | string |
capture_parameters Capture parameter values
Capture selected live values as reusable apply_recipe steps for A/B comparisons.
| Parameter | Type | Description |
|---|---|---|
parameters * | array | |
osc | integer | |
scene | string |
list_effects List effect slots
Inspect the live scene, send and global effect slot types.
set_effect Set or bypass an effect
Set an effect by name or wire ID, or bypass a slot in a, b, send or global.
| Parameter | Type | Description |
|---|---|---|
chain * | string | |
slot * | integer | |
bypass | ||
effect_type |
set_parameter_option Set a parameter option
Set an advertised option, including deform. get_parameter lists active deform choices.
| Parameter | Type | Description |
|---|---|---|
option * | string | |
parameter * | string | |
value * | integer | |
osc | integer | |
scene | string |
get_parameter Read a parameter
Read a parameter's live value, wire kind, and Surge XT display string. Accepts a friendly key (filter1_cutoff, osc_pitch) or a raw /param/... address.
| Parameter | Type | Description |
|---|---|---|
parameter * | string | |
osc | integer | |
scene | string |
set_parameter Set a parameter
Set any parameter. Floats take normalized 0.0-1.0, ints take raw values (e.g. oscillator type 0-11), bools take 0/1. Accepts a friendly key or a raw /param/... OSC address (Surge XT is queried for its kind first).
| Parameter | Type | Description |
|---|---|---|
parameter * | string | |
value * | number | |
osc | integer | |
scene | string |
describe_patch Describe the current patch
Summarize the sounding patch in one call: oscillators, mixer, filters, envelopes, active effects, macros and modulation routes, in Surge XT's own display units. Scene B is included when the scene mode uses it or both_scenes is true. Use get_parameter for one control and discover_parameters for the complete parameter list. Edits made through this server wait until the summary is complete, so it describes one state.
| Parameter | Type | Description |
|---|---|---|
both_scenes | boolean |
design_sound Design a sound from words
Turn a plain-English sound description ("dark punchy bass", "wide evolving pad with reverb") into an inspectable recipe in real units. Load start_patch, then pass steps and modulations to apply_recipe. Nothing changes until then. Works offline.
| Parameter | Type | Description |
|---|---|---|
description * | string | |
scene | string |
apply_recipe Apply a sound recipe
Apply recipe steps from design_sound: each item needs address and value (floats 0.0-1.0, ints raw, bools 0/1). Every step and route is validated before anything is sent, except numbered controls that follow an oscillator or effect type chosen earlier in the same recipe: those are checked once Surge XT confirms the new type. Optional modulations take source, target and depth as set_modulation does.
| Parameter | Type | Description |
|---|---|---|
steps * | array | |
modulations |
set_filter Shape the filter
Shape the filter. cutoff/resonance are normalized 0.0-1.0; -1 leaves a control untouched. Lower cutoff = darker, higher resonance = more whistle.
| Parameter | Type | Description |
|---|---|---|
cutoff | number | |
resonance | number | |
scene | string | |
scene_filter | integer |
set_envelope Shape an envelope
Shape an ADSR envelope. section is amp or filter; each stage is 0.0-1.0, -1 leaves it untouched. Slow attack + long release = pad; fast decay + low sustain = pluck.
| Parameter | Type | Description |
|---|---|---|
attack | number | |
decay | number | |
release | number | |
scene | string | |
section | string | |
sustain | number |
get_modulation Read a modulation route
Query one modulation source/target pair for depth and mute, including indexed sources.
| Parameter | Type | Description |
|---|---|---|
source * | string | |
target * | string | |
index | integer | |
osc | integer | |
scene | string |
set_modulation Set a modulation route
Set route depth (-1 to 1), remove with zero, or use mute=True with 1/0 to mute/unmute.
| Parameter | Type | Description |
|---|---|---|
depth * | number | |
source * | string | |
target * | string | |
index | integer | |
mute | boolean | |
osc | integer | |
scene | string |
list_modulations List modulation routes
Inspect active modulation routes, their targets, bipolar depths and mute switches.
get_wavetable Read the wavetable
Read the current wavetable name and ID. A negative ID means no library ID is available.
| Parameter | Type | Description |
|---|---|---|
osc | integer | |
scene | string |
cycle_wavetable Step the wavetable
Step to an adjacent wavetable and confirm the ID changed.
| Parameter | Type | Description |
|---|---|---|
direction | string | |
osc | integer | |
scene | string |
set_wavetable Select a wavetable
Select a wavetable by library ID and verify the selection.
| Parameter | Type | Description |
|---|---|---|
wavetable_id * | integer | |
osc | integer | |
scene | string |
list_tunings Browse tuning files
Browse Scala scales and mappings in the factory or specified local directory.
| Parameter | Type | Description |
|---|---|---|
directory | string | |
kind | string | |
limit | integer | |
offset | integer | |
search | string |
get_tuning Read the tuning
Read active Scala scale and keyboard mapping labels.
set_tuning_folder Set the tuning folder
Select Surge's persistent default scl or kbm directory, or reset it to factory defaults.
| Parameter | Type | Description |
|---|---|---|
kind * | string | |
path | string | |
reset | boolean |
load_tuning Load a tuning file
Load a local .scl scale or .kbm keyboard mapping and read the active label.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
use_default_folder | boolean |
set_standard_tuning Restore standard tuning
Load 12-tone equal temperament and concert A=440 Hz. Verify scale and mapping separately.
start_note Hold a note
Hold a MIDI note or frequency until release_note. Returns its independent voice ID.
| Parameter | Type | Description |
|---|---|---|
frequency_hz | ||
note | ||
note_id | ||
velocity | integer |
set_note_expression Shape a held note
Change one voice: volume 0-4, pitch in semitones -120..120, pan/timbre/pressure 0-1. Use external=True for a voice started by another OSC controller.
| Parameter | Type | Description |
|---|---|---|
note_id * | integer | |
parameter * | string | |
value * | number | |
external | boolean |
release_note Release a held note
Release one held note, preserving other voices. Release velocity is 0-127.
| Parameter | Type | Description |
|---|---|---|
note_id * | integer | |
external | boolean | |
velocity | integer |
held_notes List held notes
List note-ons this server owns. The synth does not expose a sounding-voice query.
play_performance Play a score
Play polyphonic notes on a beat grid with per-note expression and release velocities. Each note takes at, duration, note or frequency_hz, optional velocity, release_velocity and expression points [{at, parameter, value}] relative to its start. For a long score use background=True, then performance_status or stop_performance with the returned ID.
| Parameter | Type | Description |
|---|---|---|
notes * | array | |
background | boolean | |
bpm | number |
performance_status Check score progress
Inspect progress or the final result of the latest performance.
| Parameter | Type | Description |
|---|---|---|
performance_id | string |
stop_performance Stop a score
Stop the identified score and release its voices. Other held notes continue.
| Parameter | Type | Description |
|---|---|---|
performance_id * | string |
play_note Play a note
Play and release one note (C3, F#2, Bb4 or a MIDI number string).
| Parameter | Type | Description |
|---|---|---|
note | string | |
seconds | number | |
velocity | integer |
play_chord Play a chord
Play and release up to 32 simultaneous notes.
| Parameter | Type | Description |
|---|---|---|
notes * | array | |
seconds | number | |
velocity | integer |
play_melody Play a melody
Play up to 256 notes in order for at most 30 seconds. stop_notes interrupts playback.
| Parameter | Type | Description |
|---|---|---|
notes * | array | |
note_seconds | number | |
velocity | integer |
play_frequency Play a frequency
Audition Hz between MIDI notes. Use set_standard_tuning for absolute concert pitch.
| Parameter | Type | Description |
|---|---|---|
hz * | number | |
seconds | number | |
velocity | integer |
stop_notes Stop all notes
Interrupt the current audition and release notes. immediate=True also cuts sound tails.
| Parameter | Type | Description |
|---|---|---|
immediate | boolean |
send_midi_cc Send a MIDI controller
Send a MIDI controller, e.g. modulation wheel CC1 or sustain CC64. Channels are 1-16.
| Parameter | Type | Description |
|---|---|---|
controller * | integer | |
value * | integer | |
channel | integer |
pitch_bend Bend pitch
Bend a channel from -1 to 1. Zero returns the wheel to its center.
| Parameter | Type | Description |
|---|---|---|
channel | integer | |
value | number |
send_aftertouch Send aftertouch
Send channel pressure, or polyphonic aftertouch for one named note.
| Parameter | Type | Description |
|---|---|---|
value * | integer | |
channel | integer | |
note | string |
set_macro Set a macro
Move performance macro 1-8 to a normalized value 0.0-1.0. Macros are smoothed by Surge XT, so the result is verified by polling readback.
| Parameter | Type | Description |
|---|---|---|
number * | integer | |
value * | number |
render_preview Render a WAV preview
Render notes to a WAV file headlessly. Requires the optional surgepy bindings; without them this reports exactly how to enable rendering.
| Parameter | Type | Description |
|---|---|---|
notes * | array | |
output_path | string | |
patch_path | string | |
seconds | number | |
velocity | integer |