# Live Coding Music MCP Server

> Drive Strudel with MCP to create and live-code music.

- **URL**: https://followmcp.com/en/servers/live-coding-music-mcp
- **Category**: Other
- **Origin**: Community
- **Stars**: 252
- **FMRS Score**: 55/100 (Grade C)
- **Source**: https://github.com/williamzujkowski/live-coding-music-mcp
- **Transports**: stdio (local process)
- **Runtimes**: Node.js 22+
- **Auth**: Optional API key

## Overview
Live Coding Music MCP Server is an unofficial adapter for Strudel.cc that lets Claude control Strudel through a browser to generate, edit, play, and analyze pattern-based music. The project is in beta and explicitly described as experimental, with possible bugs and breaking changes.

## Best for
- Users who want to explore Strudel pattern-based music creation and are willing to run browser automation locally.
- Claude users who want to iteratively generate, play, and refine music patterns.

## Not for
- Users who need production stability or guarantees against breaking changes.
- Users who require official Strudel support, a remote network service, or authenticated access.

## Required permissions
- Needs to launch Chromium and access strudel.cc; configuration can also point to a self-hosted or pinned Strudel page.
- Needs an audio output device for playback; saving patterns and exporting files require local read/write access to the relevant directories.
- Gemini-backed assistance requires GEMINI_API_KEY or a logged-in supported CLI on PATH.

## Risks
- This is an unofficial fan project in beta and experimental, so bugs and breaking changes are possible.
- The documentation says the Chromium OS-level sandbox is disabled; although the browser context is fresh and non-persistent, page scripts and network requests run normally.
- The server has no authentication and is intended for local use; patterns execute in a browser context with audio access.
- The documentation says current tempo detection reflects agent polling cadence rather than the actual audio tempo.

## Client config (JSON)
```json
{"mcpServers":{"live-coding-music":{"command":"live-coding-music-mcp"}}}
```

## Tools (28)
- `init`: Initialize Strudel in a browser.
- `edit_pattern`: Write, append, insert, replace, or clear the current pattern code.
- `get_pattern`: Read the current pattern code.
- `playback`: Play, pause, or stop the current pattern.
- `set_tempo`: Set the BPM.
- `pattern_store`: Save patterns to disk, load them, or list saved patterns.
- `import_midi`: Convert a MIDI file into a playable Strudel pattern.
- `history`: Inspect or navigate pattern edit history, including undo, redo, restore, and compare.
- `compose`: Generate, write, and play a complete pattern in one step.
- `generate_part`: Generate a drum, bass, melody, or fill part and append it to the current pattern.
- `generate_rhythm`: Generate a Euclidean rhythm or polyrhythm and append it to the current pattern.
- `music_theory`: Query scales or generate a chord progression written into the current pattern.
- `transform`: Apply transposition, reversal, stretching, quantization, humanization, swing, scale filtering, or variation to the current pattern.
- `effect`: Add or remove a Strudel effect on the current pattern.
- `shape`: Adjust the current pattern by mood, energy, or a directional refinement.
- `ai_assist`: Use Gemini for pattern feedback, suggestions, or generating and merging a new layer; requires Gemini credentials or a logged-in supported CLI.
- `analyze`: Analyze currently playing audio, including tempo, key, spectrum, and rhythm complexity.
- `validate_pattern_runtime`: Check a pattern at runtime and monitor Strudel console errors.
- `validate_pattern_local`: Check pattern syntax using the local StrudelEngine without a browser.
- `analyze_pattern_local`: Statically analyze a pattern without browser playback.
- `query_pattern_events`: List events a pattern would emit over a specified cycle range.
- `transpile_pattern`: Transpile pattern source through StrudelEngine and return code or a syntax error.
- `session`: Create, destroy, list, or switch isolated Strudel browser sessions.
- `export_midi`: Export the current pattern as a MIDI file.
- `browser_window`: Show the Strudel browser window or capture an editor screenshot.
- `audio_capture`: Record audio from the current Strudel session and return audio data.
- `diagnostics`: Inspect server and browser state, errors, or performance information.
- `export_audio`: Record a window of playing Strudel audio and write it to a file.
