Skip to main content
Glama

Surge XT MCP is a professional Model Context Protocol server that gives AI assistants (Claude, Cursor, and any MCP client) deep, live control of Surge XT, the free open-source hybrid synthesizer. It speaks Surge XT's native Open Sound Control (OSC) protocol, so every move happens in your running synth — in the standalone app or inside your DAW — with float precision, full parameter readback in real units (Hz, seconds, percent), patch browsing across the ~3,000-patch factory library, and an inspectable sound-design recipe engine.

Beta (v0.1.0). The live OSC workflow is the supported path and works with the standard Surge XT installer. Offline WAV rendering activates automatically when the optional surgepy bindings are present. See the roadmap for what is next.

Highlights

  • Sound design in words — design_sound turns "dark punchy reese bass" or "wide evolving cinematic pad" into an inspectable recipe (address, value, reason for every move). Review it, tweak it, then apply_recipe.

  • Total live control — friendly controls (set_filter, set_envelope, macros, wavetable cycling, modulation routing) plus a raw /param/... escape hatch for Surge XT's full parameter set.

  • Hear every decision — play_note, play_chord, and play_melody audition over OSC; get_parameter reads back Surge XT's own display strings.

  • Whole library at your fingertips — browse, search, load, step, randomize, and save patches across factory, third-party, and user libraries. Works offline for browsing.

  • Honest offline rendering — render_preview renders WAV headlessly when surgepy is installed and explains exactly how to enable it when it is not. It never fakes audio.

  • Zero-friction install — one uvx command in your MCP client config. No C++ build, no DAW project changes.

Related MCP server: MCP Synth Controller

Quick start

1. Install Surge XT and enable OSC

Install Surge XT 1.3+, open it (standalone or as a plugin), then go to Menu → OSC Settings and enable:

  • OSC In on port 53280

  • OSC Out to 127.0.0.1 on port 53281

Keep Surge XT open while using live tools. Full diagnosis is built in: ask your assistant to run surge_doctor.

2. Add the server to your MCP client

Claude Desktop / Cursor (claude_desktop_config.json / .cursor/mcp.json):

{
  "mcpServers": {
    "surge-xt": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/RandyNorthrup/surge-xt-mcp", "surge-xt-mcp"]
    }
  }
}

Claude Code:

claude mcp add surge-xt -- uvx --from git+https://github.com/RandyNorthrup/surge-xt-mcp surge-xt-mcp

Local checkout (developers):

git clone https://github.com/RandyNorthrup/surge-xt-mcp.git
cd surge-xt-mcp
uv sync --extra dev
uv run surge-xt-mcp

Copy-ready configs for Claude Desktop, Cursor, VS Code, and HTTP mode live in examples/.

3. Try it

"Use Surge XT: check the connection, design a dark punchy bass, play a low C riff so I can hear it, then save it as Midnight Reese."

Tools

Tool

What it does

surge_status

Connection, current patch, render availability

surge_doctor

Full install/OSC diagnosis with setup steps

list_patch_categories, list_patches

Browse ~3,000 factory + user patches (offline OK)

load_patch, save_patch, random_patch, next_patch

Patch management over OSC

list_parameters, get_parameter, set_parameter

Curated catalog + raw /param/... access, real-unit readback

set_filter, set_envelope, set_macro, cycle_wavetable

Fast sound-shaping moves

set_modulation

Route LFOs/envelopes/macros onto any parameter

design_sound, apply_recipe

English → inspectable recipe → live sound

play_note, play_chord, play_melody, stop_notes

Auditioning over OSC

render_preview

Headless WAV render (optional surgepy)

Plus resources (surge://guide, surge://parameters) and prompts (design_a_sound, explain_current_patch) for guided sessions.

Configuration

Variable

Default

Meaning

SURGE_OSC_HOST

127.0.0.1

Surge XT host

SURGE_OSC_SEND_PORT

53280

Surge XT OSC In port

SURGE_OSC_RECV_PORT

53281

Surge XT OSC Out port (replies)

SURGE_OSC_TIMEOUT

2.0

Query timeout in seconds

SURGE_PATCH_DIRS

—

Extra patch folders (path-list separated)

MCP_TRANSPORT

stdio

stdio or http (Streamable HTTP)

MCP_HTTP_HOST / MCP_HTTP_PORT

127.0.0.1 / 8000

HTTP bind

See .env.example. Protocol details are in docs/OSC.md; design decisions are in PLAN.md and PROJECT_BRIEF.md.

How it works

MCP client (Claude / Cursor)
        |  MCP over stdio or HTTP
        v
surge-xt-mcp (Python, FastMCP)
   |-- patch library scan (.fxp on disk, offline)
   |-- recipe engine (English -> /param moves)
   |-- OSC client --UDP 53280--> Surge XT 1.3+ (standalone or DAW)
   |<-- replies / display values --UDP 53281--|
   `-- optional surgepy engine -> WAV renders

Surge XT parameter values travel as normalized floats (0.0–1.0). The server always offers Surge XT's display string alongside, so agents reason in Hz and seconds instead of guessing.

Development

uv sync --extra dev
uv run pytest
uv run ruff check src tests
uv run ruff format --check src tests
uv run mypy
uv run surge-xt-mcp

Test with the MCP Inspector: npx @modelcontextprotocol/inspector uv run surge-xt-mcp. The OSC test suite runs against a fake Surge XT, so no synth is needed in CI. Live verification steps are in docs/OSC.md.

Roadmap

  • v0.1.x: harden curated parameter map against live /q/all_params discovery; FX-chain helpers.

  • v0.2: full live catalog sync, modulation inspection, tuning control.

  • Later: PyPI release (uvx surge-xt-mcp), preset exchange format, DAW transport helpers.

Contributing and license

Issues and pull requests are welcome — see the issue templates. This server is MIT licensed. Surge XT itself is GPL-3.0-or-later by the Surge Synth Team; this project communicates over OSC and redistributes no Surge XT code. Not affiliated with the Surge Synth Team.

Available Tools

23 tools
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.

Inputs: steps (required). Returns: object

cycle_wavetableC

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

Inputs: osc, scene, direction. Returns: object

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.

Inputs: description (required), scene. Returns: object

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.

Inputs: parameter (required), osc, scene. Returns: object

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.

Inputs: search, section. Returns: object

list_patch_categoriesB

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

Inputs: source. Returns: object

list_patchesA

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

Inputs: limit, search, source, category. Returns: object

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.

Inputs: name, path, user. Returns: object

next_patchB

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

Inputs: previous. Returns: object

play_chordB

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

Inputs: notes (required), seconds, velocity. Returns: object

play_melodyB

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

Inputs: notes (required), velocity, note_seconds. Returns: object

play_noteB

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

Inputs: note, seconds, velocity. Returns: object

random_patchB

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

Inputs: no named parameters. Returns: object

render_previewB

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

Inputs: notes (required), seconds, velocity, patch_path, +1 more. Returns: object

save_patchC

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

Inputs: name (required), user. Returns: object

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.

Inputs: decay, scene, attack, release, +2 more. Returns: object

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.

Inputs: scene, cutoff, resonance, scene_filter. Returns: object

set_macroB

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

Inputs: value (required), number (required). Returns: object

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.

Inputs: depth (required), source (required), target (required), mute, +2 more. Returns: object

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

Inputs: value (required), parameter (required), osc, scene. Returns: object

stop_notesB

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

Inputs: no named parameters. Returns: object

surge_doctorB

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

Inputs: no named parameters. Returns: object

surge_statusA

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

Inputs: no named parameters. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    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

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to generate and control real-time audio synthesis through natural language descriptions using SuperCollider. Features 10 built-in synth types, pattern sequencing, audio recording, and server lifecycle management for creating sounds from simple English descriptions.
      11
      2
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI-powered music composition and synthesis by generating Pure Data patches, VCV Rack modules, and MIDI controller mappings through natural language.
      10
      14 npm
      5
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Lets an AI agent drive a running Cardinal modular synthesizer remotely, exposing patch listing/loading, module and host parameter tweaking, live rack read-back and save, natural-language parameter lookup, and tone/pattern recipe application. It works externally through Cardinal's OSC messages, autosave file layer, and screenshots, turning a mouse-built synth rack into editable, version-controllable text.
      MIT