Skip to main content
Glama

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 Cursor

Related MCP server: MCP MiniMax Music Server

Agent loop

  1. POST /sessions → create session

  2. PUT /sessions/:id/code → write Strudel

  3. POST /sessions/:id/render-analyze → WAV + hearing report

  4. Read hearing.summary / artifacts; PATCH /sessions/:id/code to edit

  5. GET /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

/health

liveness

POST

/sessions

create

GET

/sessions

list

GET

/sessions/:id

meta

PUT

/sessions/:id/code

new full revision

PATCH

/sessions/:id/code

search/replace or unified diff

GET

/sessions/:id/code

read code

POST

/sessions/:id/render

offline WAV

POST

/sessions/:id/analyze

hearing pack

POST

/sessions/:id/render-analyze

both

GET

/sessions/:id/revisions/:n/hearing

JSON report

GET

/sessions/:id/revisions/:n/artifacts/:name

png/wav/json

GET

/sessions/:id/diff?from=&to=

code + hearing delta

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 with STRUDEL_AI_SAMPLES). Synths (sawtooth, sine, …) come from superdough.

  • @kabelsalat/web is patched on postinstall so Node can import SalatRepl.

  • Session data lives in ./sessions/ (gitignored).

  • Architecture diagram: mermaid-lite project Strudel AI (ml show "Strudel AI").

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    B
    maintenance
    Enables 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.
    Last updated
    27
    28
    228
    AGPL 3.0
  • F
    license
    C
    quality
    D
    maintenance
    Enables 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.
    Last updated
    50

View all related MCP servers

Related MCP Connectors

  • Generate images, video, music and voice from your CLI or AI agent. On-brand AI media toolkit.

  • Generate images, video, and audio with Glif's media-generation agent

  • Deterministic music theory for agents: analyze, voice, reharmonize, conduct — computed, not guessed

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bowmana/strudel-ai'

If you have feedback or need assistance with the MCP directory API, please join our Discord server