Labsco
MCP SERVER

Sonic Pi MCP

by abhishekjairath

Push Sonic Pi code into a running session over OSC segment by segment, so a generated set hands off with a crossfade instead of restarting.

Music & Audio ProductionVerified
Summary
Built for a set that keeps playing while the next section is still being written.

The tool descriptions steer you toward queue_segment for anything long and warn against ad-hoc snippets, with run_code kept as its compatibility alias and play_note reduced to a sanity check. stop_all is the emergency exit and the descriptions say so — it kills every running job rather than fading out. Nothing reads back what is currently playing, so the session state stays in Sonic Pi.

What it is

A bridge to a live Sonic Pi session runner: code goes over OSC to a session that is already playing.

What you get
  • Queued musical segments handed to the session runner for crossfaded transitions
  • A single test note with the synth, sustain and cutoff chosen in the call
  • A hard stop that ends every running Sonic Pi job at once
Requirements

Sonic Pi installed and running, with the v2 DJ session runner listening for OSC — every call is sent into that session rather than rendered on its own.

Setup effort

One command — npx -y sonic-pi-mcp