Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_HTTP_HOSTNoHTTP bind host127.0.0.1
MCP_HTTP_PORTNoHTTP bind port8000
MCP_TRANSPORTNoMCP transport: `stdio` or `http` (Streamable HTTP)stdio
SURGE_OSC_HOSTNoSurge XT host127.0.0.1
SURGE_PATCH_DIRSNoExtra patch folders (path-list separated)
SURGE_OSC_TIMEOUTNoQuery timeout in seconds2.0
SURGE_OSC_RECV_PORTNoSurge XT OSC Out port (replies)53281
SURGE_OSC_SEND_PORTNoSurge XT OSC In port53280

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

You control Surge XT, a free open-source hybrid synthesizer, over OSC.

Workflow: call surge_status first. If Surge XT is unreachable, tell the user to open Surge XT (standalone or in their DAW), enable OSC In and OSC Out under Menu -> OSC Settings, and keep the default ports (in 53280, out 53281) unless configured otherwise. Use design_sound to turn plain-English requests ("dark reese bass", "wide evolving pad") into inspectable parameter recipes, apply them, then audition with play_note/play_chord. Parameter values are normalized floats 0.0-1.0; get_parameter returns Surge XT's own display string (Hz, seconds, percent) so you can reason in real units. Patch tools browse the installed factory library (about 3,000 patches) plus user patches. Offline WAV rendering (render_preview) works only when the optional surgepy bindings are installed; without them, audition live instead and say so plainly.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
surge_statusA

Report server config, OSC reachability, current patch, and render availability.

surge_doctorB

Diagnose installation: patch roots found, patch counts, OSC settings, and fixes.

list_patch_categoriesB

List patch categories (Basses, Pads, Leads...) with counts. Works offline.

list_patchesA

Browse installed patches. Filters: category, substring search, source (factory/thirdparty/user). Works offline; use load_patch to audition one.

load_patchA

Load a patch in Surge XT by name (searched in the library) or absolute .fxp path. With user=True, the name/path is resolved inside the user patch folder. Requires Surge XT running with OSC In enabled.

save_patchC

Save the current sound as a patch. user=True writes into Documents/Surge XT/Patches.

random_patchB

Load a random patch in Surge XT (great for inspiration).

next_patchB

Step to the next (or previous) patch in the current category.

list_parametersA

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.

get_parameterB

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.

set_parameterB

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

design_soundA

Turn a plain-English sound description ("dark punchy bass", "wide evolving pad") into an inspectable parameter recipe. Does not change the synth until apply_recipe is called. Works offline.

apply_recipeA

Apply recipe steps from design_sound: each item needs address and value (floats 0.0-1.0, ints raw, bools 0/1). Validates every step, then sends every move over OSC in order.

set_filterC

Shape the filter. cutoff/resonance are normalized 0.0-1.0; -1 leaves a control untouched. Lower cutoff = darker, higher resonance = more whistle.

set_envelopeA

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.

set_modulationA

Route a modulation source (vlfo_1, slfo_2, aeg, feg, vel, keytrk, at, pb, mw, macro_1-8, timbre, breath, ...) onto a parameter with depth -1.0 to 1.0. target accepts friendly keys or raw /param/... addresses. mute=True mutes the routing instead.

cycle_wavetableC

Step the wavetable of one oscillator (requires a Wavetable oscillator).

play_noteB

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

play_chordB

Play a chord such as ["C3", "Eb3", "G3"] for a duration. Best audition tool.

play_melodyB

Play a short monophonic melody (note names in order). Total time is capped.

stop_notesB

Silence all sounding notes (all-notes-off).

set_macroB

Move performance macro 1-8 to a normalized value 0.0-1.0.

render_previewB

Render notes to a WAV file headlessly. Requires the optional surgepy bindings; without them this reports exactly how to enable rendering.

Prompts

Interactive templates invoked by user choice

NameDescription
design_a_soundGuided sound-design session for a described sound.
explain_current_patchExplain what the currently loaded patch is doing.

Resources

Contextual data attached and managed by the client

NameDescription
guide_resourceSetup and sound-design guide for Surge XT over MCP.
parameters_resourceCurated parameter catalog as text.

TDQS

A3.5/5.0

Scored across 23 tools

Disambiguation4/5

Most tools map to a distinct resource+action (patch browse/load/save, parameter read/write, note audition, modulation routing). The main overlaps are surge_doctor vs surge_status (both report install/config/OSC health) and the convenience wrappers set_filter/set_envelope/set_macro versus the generic set_parameter, though their descriptions give enough guidance to pick correctly. play_note/play_chord/play_melody are separable by scope.

Naming Consistency4/5

The dominant pattern is verb_noun (play_chord, load_patch, set_parameter, list_patches, apply_recipe, cycle_wavetable), which is easy to scan and group. Deviations are minor but real: random_patch and next_patch omit the verb, and surge_doctor/surge_status use a noun-prefixed namespace style mixed with the rest.

Tool Count4/5

23 tools is at the upper edge, but the domain legitimately spans patch management, parameter editing, modulation routing, auditioning, rendering, and diagnostics, and most tools carry distinct responsibilities. There is some fat that could be trimmed (doctor/status duplication, three play_* variants), but nothing is clearly superfluous.

Completeness5/5

The surface covers the full lifecycle: discover (categories/patch lists/parameters), inspect (get_parameter, surge_status, surge_doctor), mutate (set_parameter, filter, envelope, modulation, macro, apply_recipe), persist (save_patch), audition (play_*), and render (render_preview). Notable only minor gaps such as patch deletion/rename and querying existing modulation routings, which agents can largely work around.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues