
SuperCollider
io.github.Tok由 GitHub 帳號 Tok 發布v0.2.1更新於 Nov 7, 2026
Make sound with SuperCollider: synths, drums, chords, melodies and soundscapes over OSC.
概覽
讓 AI 助理透過 OSC 在本機 SuperCollider 音訊伺服器上產生並播放合成器、鼓、和弦、旋律與環境音景。
- 可以做什麼
- 檢查音訊伺服器狀態,並停止它啟動的所有聲音
- 用內建合成器演奏單音、多層齊奏、帶 LFO 調變的持續音以及顆粒化織體
- 產生 14 種音階的旋律、自訂音符序列,以及由 Am7 等和弦符號構成的和弦進行
- 用預設或自訂步進字串編寫鼓型,並產生不斷變化的生成式節奏
- 創作多種情緒的環境長音與漸強,可選殘響、延遲、失真和濾波效果
- 適用情境
- 適合希望助理把音樂描述直接變成本機實際聲音的情境,例如測試音、層疊織體、和弦進行、鼓組律動或環境鋪底,而不必自己撰寫 SuperCollider 程式碼。
- 執行需求
- 以 Python 套件形式透過 uvx 在本機執行(需 Python 3.10+)。需安裝 SuperCollider 3.10 或更新版本,並讓 scsynth 音訊伺服器保持執行;主機與 UDP 埠透過 SC_HOST 和 SC_PORT 設定(預設 127.0.0.1 與 57110)。僅限桌面環境;Linux 上使用 PipeWire 時需安裝 JACK 相容層。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 SuperCollider,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
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.
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 Desktop, Cursor, Cline, Roo Code and other clients that use an mcpServers config:
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
For example "args": ["supercollider-mcp", "--port", "57111"].
Tools
Most tools also take volume (0–1) and an optional effects object:
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:
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
On 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
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).
Contributions are welcome. New sounds usually mean a SynthDef in synthdefs.scd plus a composer function
in compose.py.
License
MIT. See LICENSE.
來源:README.md,提交 3eedc27
工具
0版本歷史
1- v0.2.1最新Nov 7, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分