surge-xt-mcp

v0.2.2
surge-xt-mcp Checked 2 days ago Published 5 days ago

MCP 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.

ParameterTypeDescription
cursorstring
limitinteger
prefixstring
wait_secondsnumber
watch_addressstring

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.

ParameterTypeDescription
sourcestring

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.

ParameterTypeDescription
categorystring
limitinteger
offsetinteger
searchstring
sourcestring

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.

ParameterTypeDescription
namestring
pathstring

load_patch Load a patch

Load by library name or file path and verify the reported patch path.

ParameterTypeDescription
namestring
pathstring
use_synth_user_folderboolean
userboolean

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.

ParameterTypeDescription
name
overwriteboolean
use_synth_user_folderboolean
userboolean

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.

ParameterTypeDescription
categoryboolean
previousboolean

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.

ParameterTypeDescription
searchstring
sectionstring

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.

ParameterTypeDescription
include_disabledboolean
limitinteger
offsetinteger
prefixstring
searchstring

capture_parameters Capture parameter values

Capture selected live values as reusable apply_recipe steps for A/B comparisons.

ParameterTypeDescription
parameters *array
oscinteger
scenestring

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.

ParameterTypeDescription
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.

ParameterTypeDescription
option *string
parameter *string
value *integer
oscinteger
scenestring

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.

ParameterTypeDescription
parameter *string
oscinteger
scenestring

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).

ParameterTypeDescription
parameter *string
value *number
oscinteger
scenestring

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.

ParameterTypeDescription
both_scenesboolean

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.

ParameterTypeDescription
description *string
scenestring

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.

ParameterTypeDescription
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.

ParameterTypeDescription
cutoffnumber
resonancenumber
scenestring
scene_filterinteger

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.

ParameterTypeDescription
attacknumber
decaynumber
releasenumber
scenestring
sectionstring
sustainnumber

get_modulation Read a modulation route

Query one modulation source/target pair for depth and mute, including indexed sources.

ParameterTypeDescription
source *string
target *string
indexinteger
oscinteger
scenestring

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.

ParameterTypeDescription
depth *number
source *string
target *string
indexinteger
muteboolean
oscinteger
scenestring

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.

ParameterTypeDescription
oscinteger
scenestring

cycle_wavetable Step the wavetable

Step to an adjacent wavetable and confirm the ID changed.

ParameterTypeDescription
directionstring
oscinteger
scenestring

set_wavetable Select a wavetable

Select a wavetable by library ID and verify the selection.

ParameterTypeDescription
wavetable_id *integer
oscinteger
scenestring

list_tunings Browse tuning files

Browse Scala scales and mappings in the factory or specified local directory.

ParameterTypeDescription
directorystring
kindstring
limitinteger
offsetinteger
searchstring

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.

ParameterTypeDescription
kind *string
pathstring
resetboolean

load_tuning Load a tuning file

Load a local .scl scale or .kbm keyboard mapping and read the active label.

ParameterTypeDescription
path *string
use_default_folderboolean

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.

ParameterTypeDescription
frequency_hz
note
note_id
velocityinteger

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.

ParameterTypeDescription
note_id *integer
parameter *string
value *number
externalboolean

release_note Release a held note

Release one held note, preserving other voices. Release velocity is 0-127.

ParameterTypeDescription
note_id *integer
externalboolean
velocityinteger

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.

ParameterTypeDescription
notes *array
backgroundboolean
bpmnumber

performance_status Check score progress

Inspect progress or the final result of the latest performance.

ParameterTypeDescription
performance_idstring

stop_performance Stop a score

Stop the identified score and release its voices. Other held notes continue.

ParameterTypeDescription
performance_id *string

play_note Play a note

Play and release one note (C3, F#2, Bb4 or a MIDI number string).

ParameterTypeDescription
notestring
secondsnumber
velocityinteger

play_chord Play a chord

Play and release up to 32 simultaneous notes.

ParameterTypeDescription
notes *array
secondsnumber
velocityinteger

play_melody Play a melody

Play up to 256 notes in order for at most 30 seconds. stop_notes interrupts playback.

ParameterTypeDescription
notes *array
note_secondsnumber
velocityinteger

play_frequency Play a frequency

Audition Hz between MIDI notes. Use set_standard_tuning for absolute concert pitch.

ParameterTypeDescription
hz *number
secondsnumber
velocityinteger

stop_notes Stop all notes

Interrupt the current audition and release notes. immediate=True also cuts sound tails.

ParameterTypeDescription
immediateboolean

send_midi_cc Send a MIDI controller

Send a MIDI controller, e.g. modulation wheel CC1 or sustain CC64. Channels are 1-16.

ParameterTypeDescription
controller *integer
value *integer
channelinteger

pitch_bend Bend pitch

Bend a channel from -1 to 1. Zero returns the wheel to its center.

ParameterTypeDescription
channelinteger
valuenumber

send_aftertouch Send aftertouch

Send channel pressure, or polyphonic aftertouch for one named note.

ParameterTypeDescription
value *integer
channelinteger
notestring

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.

ParameterTypeDescription
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.

ParameterTypeDescription
notes *array
output_pathstring
patch_pathstring
secondsnumber
velocityinteger