strudel-ai
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
strudel-ai
Local HTTP + MCP tool for AI agents to write/edit Strudel code, offline-render WAV audio, and get a structured “hearing” report (waveform, spectrogram, dB envelopes, bands, onsets, estimated BPM).
Sibling project to cryptid-crawler — finished sounds can be copied into the game later.
License: AGPL-3.0-or-later (inherits from Strudel / superdough).
Quick start
cd ~/Projects/strudel-ai
npm install
npm run smoke # render + analyze a tiny pattern
npm start # HTTP on http://127.0.0.1:8787
npm run mcp # MCP stdio server for CursorRelated MCP server: MCP MiniMax Music Server
Agent loop
POST /sessions→ create sessionPUT /sessions/:id/code→ write StrudelPOST /sessions/:id/render-analyze→ WAV + hearing reportRead
hearing.summary/ artifacts;PATCH /sessions/:id/codeto editGET /sessions/:id/diff?from=1&to=2→ code + metric deltas
Same ops exist as MCP tools: session_create, code_set, code_patch, render_analyze, hearing_get, session_diff, artifact_paths, …
HTTP surface
Method | Path | Purpose |
GET |
| liveness |
POST |
| create |
GET |
| list |
GET |
| meta |
PUT |
| new full revision |
PATCH |
| search/replace or unified diff |
GET |
| read code |
POST |
| offline WAV |
POST |
| hearing pack |
POST |
| both |
GET |
| JSON report |
GET |
| png/wav/json |
GET |
| code + hearing delta |
POST |
| open Strudel.cc REPL + play WAV (mpv/xdg-open) |
Pass "open": true on render-analyze to do that automatically when finished.
# CLI: open code in Strudel editor + play media
npm run open -- out/ps1_pistol.strudel.js out/ps1_pistol.wav
npm run open -- <sessionId>Example
SID=$(curl -s -X POST http://127.0.0.1:8787/sessions -H 'content-type: application/json' -d '{"title":"demo"}' | jq -r .id)
curl -s -X PUT http://127.0.0.1:8787/sessions/$SID/code \
-H 'content-type: application/json' \
-d '{"code":"note(\"c3 e3 g3 c4\").s(\"sawtooth\").gain(0.4)"}' | jq .currentRevision
curl -s -X POST http://127.0.0.1:8787/sessions/$SID/render-analyze \
-H 'content-type: application/json' \
-d '{"cycles":2,"cps":0.5}' | jq '.hearing.summary'Cursor MCP config
Add to your MCP settings (stdio):
{
"mcpServers": {
"strudel-ai": {
"command": "npx",
"args": ["tsx", "src/cli.ts", "mcp"],
"cwd": "/home/agbowman99/Projects/strudel-ai"
}
}
}Notes
Default sample bank is
github:tidalcycles/dirt-samples(override withSTRUDEL_AI_SAMPLES). Synths (sawtooth,sine, …) come fromsuperdough.@kabelsalat/webis patched onpostinstallso Node can importSalatRepl.Session data lives in
./sessions/(gitignored).Architecture diagram: mermaid-lite project Strudel AI (
ml show "Strudel AI").
Related MCP Connectors
Autonomous music production for AI agents with MIDI generation, QC and provenance.
Generate full songs with vocals, instrumentals and sound effects from text. One server for Suno, Google Lyria, Mureka, MiniMax, ACE-Step, YuE and ElevenLabs. Your agent can quote the credit cost before generating, start a song, wait for it to finish and return download links. Sign in with OAuth; optional daily credit caps; retries never charge twice.
Score video & make music as an agent: 50+ AI instruments play your MIDI, audio, stems, Logic/Ableton
Audio for your agent: transcribe, speak, translate, summarise, plus sound effects and music.
Related MCP Servers
- AlicenseBqualityAmaintenanceEnables AI-powered music generation and live coding by providing direct control over Strudel.cc through browser automation. Supports pattern creation, audio analysis, and pattern storage for TidalCycles/Strudel music patterns.28495 npm249AGPL 3.0
- FlicenseBqualityDmaintenanceEnables AI agents to generate music and audio content using the MiniMax Music API through text prompts, with support for reference audio and lyric generation.15-
- FlicenseCqualityDmaintenanceEnables AI agents to generate, manipulate, and perform algorithmic music using Strudel.cc live coding environment. Provides 46+ tools for pattern generation across multiple genres, music theory operations, real-time audio analysis, and AI-powered composition.50-
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to interact with Strudel, a JavaScript live coding music environment, by executing patterns, retrieving states, and accessing documentation.2AGPL 3.0