strudel-mcp
v1.0.0
Published
MCP (Model Context Protocol) server for Strudel live coding
Maintainers
Readme
strudel-mcp
MCP (Model Context Protocol) bridge for Strudel live coding environment.
Let AI assistants generate and inject musical patterns into Strudel in real-time!
Installation
npm install -g strudel-mcpQuick Start
1. Integrate with your Strudel project
cd your-strudel-project
npx strudel-mcp integrate2. Start the MCP server
strudel-mcp3. Start Strudel
pnpm devLook for the green "MCP" badge in the Strudel header - you're connected!
Usage
Once running, the MCP server accepts patterns on port 3457:
# Test pattern injection
curl -X POST http://localhost:3457/inject \
-H "Content-Type: application/json" \
-d '{"pattern":"s(\"bd*4\").gain(0.8)"}'For AI Assistants (Claude)
Add to your Claude MCP configuration:
{
"mcpServers": {
"strudel": {
"command": "strudel-mcp"
}
}
}Commands
npx strudel-mcp integrate- Add MCP bridge to Strudelnpx strudel-mcp remove- Remove MCP bridgenpx strudel-mcp test- Test the integrationstrudel-mcp- Start the MCP server
Features
- 🔌 Zero-modification integration - No changes to Strudel core
- 🔒 Secure - Localhost only
- 🎵 Real-time - Patterns play instantly
- ✨ Visual feedback - MCP indicator in UI
- 🗑️ Easy removal - One command to uninstall
How It Works
- AI generates a Strudel pattern
- MCP server receives it on port 3457
- Strudel polls the server every 500ms
- Pattern is injected and auto-evaluated
- Music plays instantly!
Troubleshooting
Port already in use
lsof -i :3457
kill <PID>Integration not working
npx strudel-mcp testRepository
https://codeberg.org/GlassOnTin/strudel-mcp
License
AGPL-3.0-or-later (same as Strudel)
