MCP server for Sonic Pi: natural-language DJ sessions, OSC, queue runner, tools and prompts
MCP server for Sonic Pi: natural-language DJ sessions, OSC, queue runner, tools and prompts. That is what the sonic pi mcp mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.
Model Context Protocol (MCP) server for Sonic Pi. Describe music in natural language in your LLM client; the model generates Sonic Pi code and this server sends it over OSC. Use the included queue runner in Sonic Pi for crossfades between segments.
The server publishes 8 tools. What each one is for:
Resource — DJ session craft, vocabulary, and tool usage (read from the MCP client)Env — OSC_HOST, OSC_PORT, OSC_CODE_PATH, OSC_STOP_ALL_PATHVariable — DefaultOSC_HOST — 127.0.0.1OSC_PORT — 4560OSC_CODE_PATH — /run-codeOSC_STOP_ALL_PATH — /stop-all-jobsCursor — Run chmod +x bin/mcp-dev.sh once. The script changes into the repo and runs bun run src/server.tsConfiguration is passed through the environment: OSC_CODE_PATH, OSC_STOP_ALL_PATH. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.
npx / node) - An MCP-capable client (Cursor, Claude Desktop, VS Code with MCP, etc.) Optional: Bun for local development (bun run dev).The server ships on npm as sonic-pi-mcp, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.
Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Sonic Pi MCP's toolset — Resource, Env, Variable and 5 more — is a fair guide to whether it matches your workflow. It is maintained by abhishekjairath; worth a glance at recent repository activity before you build anything load-bearing on it.
This entry was verified against Sonic Pi MCP's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.
| Tool | What it does |
|---|---|
| Resource | DJ session craft, vocabulary, and tool usage (read from the MCP client). |
| Env | OSC_HOST, OSC_PORT, OSC_CODE_PATH, OSC_STOP_ALL_PATH. |
| Variable | Default |
| OSC_HOST | 127.0.0.1 |
| OSC_PORT | 4560 |
| OSC_CODE_PATH | /run-code |
| OSC_STOP_ALL_PATH | /stop-all-jobs |
| Cursor | Run chmod +x bin/mcp-dev.sh once. The script changes into the repo and runs bun run src/server.ts. |
{
"mcpServers": {
"sonic-pi": {
"command": "npx",
"args": ["-y", "sonic-pi-mcp"],
"env": {
"OSC_CODE_PATH": "your-value",
"OSC_STOP_ALL_PATH": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
| Variable | Description | Required |
|---|---|---|
| OSC_CODE_PATH | Filesystem location the server is allowed to use. | Optional |
| OSC_STOP_ALL_PATH | Filesystem location the server is allowed to use. | Optional |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.