SuperCollider OSC MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SuperCollider OSC MCP Play a C major melody at 120 BPM"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
SuperCollider MCP 🎛️
A Model Context Protocol server that lets AI assistants make sound with SuperCollider. Ask for "a dark ambient drone with slow swells" or "a breakbeat at 170 under a Cm7-Fm7 arpeggio" and it plays on your SuperCollider server.
Real synths and drums. It ships its own SynthDefs (sine, saw, square, noise, FM, pad, Karplus-Strong pluck, kick, snare, hats, grains) plus an effect chain (distortion, low-pass, delay, reverb) and a safety limiter. Nothing depends on sclang's
defaultsynth or on sc3-plugins.Sample-accurate timing. Phrases are streamed to scsynth as timestamped OSC bundles, so every tool returns immediately. Calls can overlap, so you can layer drums, chords and melody.
Music-aware tools. Melodies follow 14 scales, chords understand symbols like
Am7,Bbmaj9andG/B, drum patterns are readable step strings the assistant can write itself, and generative tools take aseedso a result you like can be replayed exactly.A panic button.
stop_allsilences everything this server started.
Requirements
SuperCollider 3.10 or newer (tested with 3.13). Only the audio server,
scsynth, has to be running.uv, or any Python 3.10+ with pip.
Related MCP server: SuperCollider MCP Server
Quick start
1. Install and boot SuperCollider. Install it from the
downloads page (or brew install --cask supercollider on
macOS, sudo apt install supercollider on Debian/Ubuntu), then boot the server:
in the SuperCollider IDE: Server → Boot Server (or run
s.boot;)or without the IDE:
scsynth -u 57110
2. Add the MCP server to your assistant.
Claude Code:
claude mcp add supercollider -- uvx supercollider-mcpClaude Desktop, Cursor, Cline, Roo Code and other clients that use an mcpServers config:
{
"mcpServers": {
"supercollider": {
"command": "uvx",
"args": ["supercollider-mcp"]
}
}
}To run the latest code from GitHub instead of the PyPI release, use
"args": ["--from", "git+https://github.com/Tok/SuperColliderMCP", "supercollider-mcp"].
3. Ask for something. Start with "play a test sound" to check the connection, then try the prompts below.
Configuration
Setting | Flag | Environment | Default |
scsynth host |
|
|
|
scsynth UDP port |
|
|
|
log level (stderr) |
|
|
For example "args": ["supercollider-mcp", "--port", "57111"].
Tools
Tool | What it does |
| Connection check: scsynth version, CPU, running playbacks, recent server errors |
| Silence everything this server started and cancel scheduled notes |
| A short test chime |
| One note on |
| A thick unison: several detuned copies of one note spread in stereo |
| A held note with a server-side LFO on pitch, volume, filter or pan |
| A cloud of 5–100 tiny grains per second, scattered in pitch and space |
| A generated melody in one of 14 scales that resolves to the tonic |
| A melody you spell out: |
| Chord symbols as pads, staccato stabs, 8th-note arpeggios or power chords |
|
|
| Drums that keep mutating: |
| A drone with overlapping swells in a |
Most tools also take volume (0–1) and an optional effects object:
{"reverb": 0.6, "delay": 0.3, "delay_time": 0.25, "distortion": 0.0, "filter": 0.2}All amounts are 0–1, and 0 means off. filter darkens the sound with a low-pass filter. delay_time is in
seconds and defaults to three quarters of a beat.
Notes are names like C4 (middle C), F#3 or Bb2, or frequencies like "440" or "440hz".
Sequences separate notes with spaces or dashes. _ halves a note, + doubles it, :1.5 sets its
length in beats, and . is a rest.
Drum patterns use one character per 16th note: X accent, x hit, o ghost note, . rest. Lanes
(kick, snare, hat, open_hat, perc) can have different lengths and loop independently:
{"custom": {"kick": "X..x..X...x.....", "snare": "....X.......X..o", "hat": "x.x.x.x.x.x.x.x."}, "tempo": 92, "swing": 0.2}Things to try
"Play a dorian melody in D on the pluck synth with some delay, then the same one an octave lower."
"Give me two bars of breakbeat at 170 BPM, then layer an Am7-Dm7-G7-Cmaj7 arpeggio on top."
"A mysterious ambient soundscape, 60 seconds, low register."
"Sweep a saw's filter with a slow triangle LFO while a granular cloud shimmers around A5."
"Write me a half-time drum pattern with ghost notes on the snare."
How it works
assistant ──MCP (stdio)──▶ supercollider-mcp ──OSC/UDP──▶ scsynth ──▶ speakersOn first use the server checks that scsynth answers, uploads its SynthDefs (/d_recv) and creates its own
node group with a voice group, an effects group and a limiter. Node IDs sit far above the ranges sclang
uses, so your own SuperCollider work is not affected. If scsynth restarts, the setup runs again on the next
call.
Each tool call turns into a phrase: a time-ordered stream of synth events (supercollidermcp/compose.py,
pure Python). A background task sends each event about half a second ahead as an OSC bundle with an NTP
timetag, and scsynth starts it at exactly that time. Every synth frees itself when its envelope ends. When
a call asks for effects, its voices go to a private bus that one mcp_fx synth reads.
Upgrading from 0.1
Point your MCP config at
uvx supercollider-mcpas shown above. Old configs that runmcp run path/to/server.pystill work through a small compatibilityserver.py.Sounds now come from real SynthDefs, so you no longer need sclang's
defaultsynth.Tools return right away instead of blocking until the sound ends.
Some parameters changed meaning.
create_drum_patterntakesbars(16 steps each) instead ofbeats.effectsis an object instead of a JSON string.detuneis now ±50 cents at 1.0 instead of up to an octave. Thesc-osccommand-line tool is gone.
See CHANGELOG.md for everything else.
Troubleshooting
"No reply from the SuperCollider server…": scsynth is not running, or it listens on a different port. Boot it, or set
SC_PORT.Calls succeed but you hear nothing: check that scsynth's outputs are connected to your sound card and that
server_statusshows synths while something plays.Linux with PipeWire (the default on current Ubuntu and Fedora): scsynth talks to JACK, so install PipeWire's JACK layer (
sudo apt install pipewire-jack) and start SuperCollider through it:pw-jack scide, orpw-jack scsynth -u 57110without the IDE. Otherwise scsynth tries to start its ownjackd, which conflicts with PipeWire.FAILURE IN SERVER /g_queryTree Group 2147480000 not foundin the post window on first connect is expected: it is how the server notices that scsynth still needs to be set up.Remote scsynth: timetags use wall-clock time, so keep both machines' clocks in sync (NTP).
Development
git clone https://github.com/Tok/SuperColliderMCP.git
cd SuperColliderMCP
uv sync
uv run pytest # unit and protocol tests run anywhere
uv run ruff check . && uv run ruff format --check .Some tests need SuperCollider:
tests/test_synthdefs_nrt.pyrenders every SynthDef withscsynth -N(no audio device needed) and checks the audio. It runs automatically whenscsynthis onPATH, or setSCSYNTH=/path/to/scsynth.tests/test_live_server.pyruns every tool against a live server. Start a silent one withscsynth -u 57199 -i 0 -o 0, then runSC_TEST_PORT=57199 uv run pytest.
The SynthDefs are written in SuperCollider itself, in supercollidermcp/synthdefs/synthdefs.scd. After
editing that file, rebuild the compiled .scsyndef files with python scripts/build_synthdefs.py
(needs sclang; it runs headless).
supercollidermcp/
├── server.py MCP tools: validation and wiring
├── compose.py musical logic: requests → timed events (pure, unit-tested)
├── theory.py notes, scales, chords
├── patterns.py drum patterns as step strings
├── engine.py server setup, buses, streaming playback, stop_all
├── osc.py async OSC client that also reads scsynth's replies
└── synthdefs/ synthdefs.scd (source) + compiled .scsyndef filesContributions are welcome. New sounds usually mean a SynthDef in synthdefs.scd plus a composer function
in compose.py.
License
MIT. See LICENSE.
Available Tools
13 toolscreate_ambient_soundscapeB
Play an evolving ambient piece: a drone with slowly swelling, overlapping tones.
Inputs: mood, seed, volume, density, +3 more. Returns: result
create_chord_progressionB
Play a chord progression as sustained pads, rhythmic stabs (staccato), 8th-note arpeggios or power chords.
Understands major, m, 5, 6, m6, 7, maj7, m7, mmaj7, m7b5, dim, dim7, aug, sus2, sus4, 7sus4, 9, maj9, m9, add9, madd9, add11 and slash chords such as C/E.
Inputs: style, synth, tempo, octave, +5 more. Returns: result
create_drum_patternB
Play a drum groove: four_on_floor, breakbeat, shuffle, half_time, two_step, random, or a custom pattern.
Inputs: bars, seed, swing, tempo, +4 more. Returns: result
create_generative_rhythmB
Play drums that keep mutating bar by bar (minimal, techno, glitch, jazz or ambient).
Inputs: seed, style, tempo, volume, +3 more. Returns: result
create_granular_textureC
Play a shimmering cloud of many tiny sine grains scattered in pitch and stereo.
Inputs: seed, volume, density, effects, +4 more. Returns: result
create_layered_synthC
Play a thick unison sound made of several detuned copies of one note.
Inputs: synth, detune, volume, effects, +4 more. Returns: result
create_lfo_modulationA
Hold a note while a low-frequency oscillator sweeps its pitch, volume, filter or stereo position.
Depth 1 means +-1 octave for frequency, full fade for amplitude, 200 Hz..8 kHz for the filter (needs saw, square, pad or pluck), and hard left/right for pan.
Inputs: note, rate, depth, synth, +5 more. Returns: result
create_sequenceC
Play a melody you write out note by note.
Inputs: pattern (required), synth, tempo, volume, +2 more. Returns: result
play_example_oscA
Play a short test chime to check that sound comes out.
Inputs: no named parameters. Returns: result
play_melodyB
Generate and play a melody that moves mostly stepwise through a scale and ends on the tonic.
Inputs: root, seed, notes, scale, +4 more. Returns: result
play_synthB
Play one note on a synthesizer: sine, saw, square, noise (band-passed), fm, pad or pluck.
Inputs: note, volume, effects, duration, +1 more. Returns: result
server_statusARead-only
Check the connection to SuperCollider and show load, playing sounds and recent errors.
Inputs: no named parameters. Returns: result
stop_allAIdempotent
Immediately silence every sound started by this server and cancel scheduled playback.
Inputs: no named parameters. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Each tool targets a fairly distinct musical output: single note vs layered unison, user-written sequence vs generated melody, drum pattern vs mutating generative rhythm. A few pairs (play_synth/create_layered_synth, play_melody/create_sequence) could be momentarily confused, but the descriptions make the boundaries clear.
Most tools use verb_noun, but 'server_status' is noun-first and the play_/create_ verbs are applied inconsistently (play_melody generates a melody while create_sequence plays notes you write). Readable, but not a predictable convention throughout.
13 tools is well within the sweet spot for a creative audio server, and each one covers a genuinely different sound-generation mode (synth, layered, LFO, granular, melody, sequence, chords, drums, generative rhythm, ambient). Nothing feels padded.
Status, stop-all, test tone, and a broad palette of generators cover the core workflow well. Gaps exist around live control—no volume/tempo adjustment, no stopping an individual sound, and no modifying something already playing—but agents can mostly work around these via stop_all and re-triggering.
Maintenance
Related MCP Connectors
OSC ↔ MIDI bridge for synthesizers and DAWs, with the SyntHub catalogue. A MIDI MCP and OSC MCP.
MCP server for Producer/Riffusion AI music generation
Generate AI music via the Lacuna Music API from MCP clients like Claude Desktop & Code.
AI image, video, voice and music generation over MCP, routed to Veo 3.1, Seedance 2.5 and more.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables 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.112MIT
- AlicenseBqualityNot gradedmaintenanceEnables execution of SuperCollider synth code through the Model Context Protocol using supercolliderjs, allowing AI assistants to generate and run audio synthesis programs.28 npm-
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to control and monitor Bitwig Studio in real-time using natural language commands through MCP and OSC.ISC
- FlicenseNot gradedqualityDmaintenanceEnables AI-powered music generation and control of Sonic Pi through natural language requests using OSC.-