Logo vun MCP Music Studio

MCP Music Studio

Communautéit
linxule

Two-mode MCP music studio: scored composition (ABC notation) and live performance (Strudel). Interactive ext-apps UI with sheet music rendering, 30+ instruments, style presets, and live coding REPL.

Editeurlinxule
Repositorymcp-music-studio
SproochTypeScript
Forks
9
Stären
71
Disponibel Tools
2
Transporttypstdio, streamable-http
Kategorien
LizenzMIT
Linken
  • Tools mat KI-Workflows verbannen

    MCP Music Studio stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 2 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    71 Stären an 9 Forks aus dem verlinkte Repository.

MCP Music Studio

Two-mode creative music studio for AI: scored composition (ABC notation with sheet music) and live performance (Strudel live coding with TidalCycles). Interactive UI renders inline in Claude Desktop, claude.ai, and other MCP clients.

One continuous live set through the widget — every section a hot-swapped re-evaluation on the same clock. Full video: 16:9 1080p60 · 3:4 for phones. Made with dev/perform.html and an OBS Browser Source (see scripts/showcase/).

Quick Start — No Install Required

Paste this URL into any MCP client that supports remote servers:

https://mcp-music-studio.linxule.workers.dev/mcp

Claude Desktop / claude.ai: Settings → Connectors → Add Connector → paste the URL above → done.

Claude Code:

bash
claude mcp add --transport http music-studio https://mcp-music-studio.linxule.workers.dev/mcp

That's it — ask Claude to play a song or create a beat.


What You Get

Scored Composition (ABC Notation)

Write sheet music → see it rendered → hear it played with multi-instrument audio.

  • 8 style presets — rock, jazz, bossa, waltz, march, reggae, folk, classical — one parameter adds drums + bass + chord accompaniment
  • All 128 General MIDI instruments — named and fuzzy-matched ("sax" → Soprano Sax); the result text says what it actually resolved to when that isn't what you asked for
  • Visual sheet music — notes highlight as they play
  • Streaming render — sheet music appears as the AI types
  • Edit in place — open the ABC source pane in the widget, fix a bar, re-render without another tool call
  • Real transposition — transpose rewrites the notation and the key signature, so the printed score matches what plays
  • Swing and count-in — swing is the share of the beat given to its first half (50 = straight, 66 = triplet, 75 = max; ≤50 is no swing), drumIntro adds up to 8 bars of count-in from the style's drum kit
  • Selectable sound banks — FluidR3 (default), MusyngKite (fuller), or a lightweight dry bank, switched live from the toolbar
  • WAV download — export audio as WAV files directly from the UI
  • MIDI download — export a standard MIDI file straight from the score, no playback needed first. It is the score: abcjs applies swing during playback only, so the exported file has none
  • get-music-guide — 7 reference topics (instruments, drums, ABC syntax, arrangements, genres, styles, MIDI directives)

Live Performance (Strudel)

Write code → hear it play → edit in a live REPL.

  • TidalCycles mini-notation in JavaScript
  • 71 drum machine banks + 128 GM instruments + 128 VCSL orchestral/world/percussion samples + built-in synths
  • Full effects chain — filters, reverb, delay, FM synthesis
  • Editable REPL — users can tweak the code and hear changes instantly
  • Live visuals — add .pianoroll() / .punchcard() / .scope() / .spectrum() to animate behind the code (native strudel.cc overlay)
  • Hydra shader backgrounds — await initHydra() + Hydra code for fully custom, music-synced WebGL visuals. H(pattern) locks a shader parameter to the sequence, feedStrudel post-processes the piano roll
  • Audio-reactive shaders — a.fft[0], a0(), a.setBins(6) and the rest of Hydra's audio API work verbatim, driven by Strudel's own output rather than the microphone (no permission prompt, no room noise)
  • visuals preset — one enum value (pianoroll, punchcard, scope, spectrum, hydra-kaleid, hydra-pulse, hydra-wash, hydra-feed) gives a bare pattern something to paint. Never overrides code that already visualises itself
  • theme — 39 CodeMirror colour schemes; the visuals stage and its readability scrim are derived from the active theme, so light themes stay readable
  • Stage mode — hide the code and let the visuals fill the frame (composes with the host's fullscreen)
  • Honest runtime feedback — evaluation errors, unknown sound names, and stops the user triggered are reported back to the model as they happen, so it never answers about a silent widget as if the music were still playing
  • Server-side validation — the local server evaluates every Strudel pattern headlessly before answering: the tool result reports layers, events per cycle, tempo, and which sound names are registered (or a syntax error with line:column), so terminal clients get real diagnostics too. (The hosted worker can't — Cloudflare forbids dynamic code generation — and says so.)
  • Record & download — capture live audio and export as WAV
  • get-strudel-guide — 8 reference topics (mini-notation, sounds, effects, patterns, genres, tips, visuals, advanced)

Shared

  • analyze-harmony — chord detection, key detection, progressions, chord scales; answers in both ABC chord symbols and Strudel chord()/note() form
  • convert-abc-to-strudel — take a scored melody into the live REPL: bars become mini-notation groups, durations become @ weights, chord symbols become a chord().voicing() line
  • search-music-docs — semantic search over strudel.cc and ABCJS documentation
  • Click-to-play links — in clients that can't render the inline widget (terminals, CLIs), both play tools return a hosted URL that actually plays. Short pieces travel in the link itself; longer ones are stored for 30 days

Local Install (Optional)

The remote URL above works without any local setup. If you prefer running locally (offline use, lower latency), install via npm:

CLI One-Liners

bash
# Claude Code
claude mcp add music-studio -- npx -y mcp-music-studio --stdio

# Codex CLI
codex mcp add -- npx -y mcp-music-studio --stdio

# Gemini CLI
gemini mcp add -- npx -y mcp-music-studio --stdio

# OpenCode
opencode mcp add music-studio -- npx -y mcp-music-studio --stdio

JSON Config (Claude Desktop, Cursor, Windsurf, etc.)

OSPath
macOS~/Library/Application Support/Claude/claude_desktop_config.json
Windows%APPDATA%\Claude\claude_desktop_config.json
Linux~/.config/Claude/claude_desktop_config.json
json
{
  "mcpServers": {
    "music-studio": {
      "command": "npx",
      "args": ["-y", "mcp-music-studio", "--stdio"]
    }
  }
}

Add to .vscode/mcp.json — note: uses "servers" not "mcpServers":

json
{
  "servers": {
    "music-studio": {
      "command": "npx",
      "args": ["-y", "mcp-music-studio", "--stdio"]
    }
  }
}

Add to ~/.cursor/mcp.json:

json
{
  "mcpServers": {
    "music-studio": {
      "command": "npx",
      "args": ["-y", "mcp-music-studio", "--stdio"]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json:

json
{
  "mcpServers": {
    "music-studio": {
      "command": "npx",
      "args": ["-y", "mcp-music-studio", "--stdio"]
    }
  }
}

On Windows, npx is a .cmd file and requires a shell wrapper:

json
{
  "mcpServers": {
    "music-studio": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "mcp-music-studio", "--stdio"]
    }
  }
}

Clients that support ext-apps render the interactive UI inline automatically (auto mode). For clients that don't (Cherry Studio, CLI environments), use --render-mode:

ModeBehavior
auto (default)Inline UI for Claude Desktop, VS Code
browserSaves HTML and opens in system browser
htmlReturns HTML as embedded resource
json
{
  "mcpServers": {
    "music-studio": {
      "command": "npx",
      "args": ["-y", "mcp-music-studio", "--stdio", "--render-mode", "browser"]
    }
  }
}

Clients without a widget also get a click-to-play link in the tool result, served by the hosted worker — no local render mode needed.

Without --stdio the server listens over Streamable HTTP. That endpoint is unauthenticated, so it binds 127.0.0.1:3001 by default and only accepts browser requests from loopback origins.

FlagDefaultPurpose
--host ADDR127.0.0.1Bind address. A non-loopback value prints a warning and turns off the SDK's DNS-rebinding protection — put a proxy that authenticates in front of it
--allow-origin ORIGINloopback pages onlyExtra CORS origins (comma-separated, repeatable; * opts back into a wildcard)
PORT (env)3001Listen port

Tools

ToolDescriptionParameters
play-sheet-musicABC notation → visual sheet music + multi-instrument audioabcNotation, title?, instrument?, style?, tempo? (40–240), swing? (0–75), drumIntro? (0–8), transpose? (−12–12)
play-live-patternStrudel code → live-coded patterns with synthesis + effectscode, title?, bpm? (40–300), autoplay?, visuals?, theme?
get-music-guideABC reference (7 topics: instruments, drums, syntax, genres...)topic
get-strudel-guideStrudel reference (8 topics: sounds, effects, visuals, genres...)topic
search-music-docsSemantic search over strudel.cc and ABCJS docsquery, library (strudel | abcjs)
analyze-harmonyName a chord, guess the key, get a progression or chord scale — in ABC and Strudel spellingstask, notes?, chords?, key?, romanNumerals?
convert-abc-to-strudelTurn a scored ABC melody into a Strudel mini-notation patternabcNotation, voice?, sound?

visuals — none, pianoroll, punchcard, scope, spectrum, hydra-kaleid, hydra-pulse, hydra-wash, hydra-feed. theme — any of the 39 schemes the Strudel REPL ships (strudelTheme, nord, sonicPink, teletext, gruvboxDark, githubLight, …). style — rock, jazz, bossa, waltz, march, reggae, folk, classical.

Prompts

Slash-command / menu entry points, in clients that surface MCP prompts:

PromptWhat it does
compose-beatGenerate + play a Strudel pattern in a genre (args: genre, mood?)
harmonize-melodyAdd chords/accompaniment to an ABC melody and play it (args: melody, style?)
arrange-tuneTurn a melody/idea into a multi-voice arrangement (args: tune, instrumentation?)

0.5.6 — September 14, 2026

Dependency and compatibility maintenance: audited dependency locks, ext-apps v2 widgets, the SDK v1-compatible worker adapter, and validated worker startup. The seven tools, music features and UI controls retain their existing behavior. Builds now synchronize the MCP Registry metadata with the package version, and publishing waits for the npm package to propagate before registry registration.

Development

Use Bun 1.4.2 and Node 24 for development and CI. Dependency updates use the Bun ecosystem so both package manifests and lockfiles stay consistent. The server retains SDK v1 and the worker uses Agents' legacy MCP handler; widgets use ext-apps v2. CI checks both locks for vulnerabilities and exercises the real worker HTTP transport as well as the local/worker parity suite. The worker entry module exports only its fetch handler; test helpers stay in the implementation module because workerd rejects constants as runtime entry points.

bash
bun install
bun run dev      # watch + serve (hot reload)
bun run build    # production build (widgets must be built before the tests)
bun run test     # run tests

dev/ is a local ext-apps host harness for driving the widgets outside a real client — see dev/README.md.

Attribution

Forked from the Sheet Music Server example from MCP ext-apps by Anthropic, licensed under MIT.

Live coding is powered by Strudel — canonical repo at codeberg.org/uzu/strudel (the project moved off GitHub, so the GitHub mirror can be stale). Notation and playback use abcjs; shader backgrounds use hydra-synth.

License

MIT

Installatioun

TypingMind
{
  "mcpServers": {
    "mcp-music-studio": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-music-studio",
        "--stdio"
      ]
    }
  }
}

Disponibel Tools

  • play-sheet-music

    Creates and plays music with visual sheet music and multi-instrument audio. Use this to compose original songs, demonstrate music theory, set a mood, celebrate occasions, or play well-known tunes.

    WHAT YOU CAN CREATE:

    • Original compositions for any occasion (birthdays, lullabies, celebrations)
    • Genre pieces: set the style parameter for automatic drums + bass + chord accompaniment
    • Educational demos: scales, modes, chord progressions, rhythms
    • Multi-voice arrangements with different instruments per voice

    HOW IT WORKS: Write ABC notation with chord symbols ("C", "Am7", "G7") above the melody. Set a style to get automatic accompaniment. For known tunes, look up ABC from abcnotation.com or thesession.org.

    QUICK ABC REFERENCE: Notes: C D E F G A B c d e (lowercase=octave up) | Rests: z z2 z4 Lengths: C2(half) C/2(eighth) C3/2(dotted) | Bars: | |: :| [1 [2 Chords: CEG "Am"(guitar chord) | Ties: C-C | Slurs: (CDE) Multi-voice: V:1 ... V:2 ... with %%MIDI program N per v

  • get-music-guide

    Returns detailed reference material for music composition. Topics: instruments (GM instrument list + combos), drums (patterns + percussion notes), abc-syntax (notation reference), arrangements (multi-voice patterns), genres (complete ABC templates for jazz/blues/folk/rock/bossa/classical), styles (what each style preset does), midi-directives (%%MIDI reference).

MCP Music Studio MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal MCP Music Studio verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dir kënnt MCP lokal op Ärem Apparat ausféieren oder Iech mat enger Remote-MCP-Server-URL verbannen.

Optioun 1: De lokale Connector benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

MCP Music Studio als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu MCP Music Studio an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "mcp-music-studio": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-music-studio"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu MCP Music Studio. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu MCP Music Studio.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat MCP Music Studio?
MCP Music Studio
Jo. Ech hunn et gelies.
Dat hunn ech mat MCP Music Studio fonnt.

Optioun 2: Eng MCP-Server-URL derbäisetzen

Benotzt dës Optioun, wann MCP Music Studio scho remote gehost gëtt oder Är Ekipp ee gemeinsame Connector wëllt, op dee méi Benotzer kënnen zougräifen.

1

MCP-Connectoren opmaachen

Gitt an TypingMind op „Plugins“, maacht „MCP-Connectoren“ op a wielt dann „URL derbäisetzen“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Gitt op „Plugins“.
  3. Maacht „MCP-Connectoren“ op.
  4. Klickt op „URL derbäisetzen“.
TypingMind-Formulaire fir eng benotzerdefinéiert MCP-Server-URL derbäizesetzen
2

D'Server-URL apeschen

Gitt d'MCP-Server-URL vum Ubidder am Feld „Server-URL“ an. Setzt e Verbindungsnumm, eng Beschreiwung, e Symbol, benotzerdefinéiert HTTP-Headeren oder OAuth-Clientastellungen derbäi, wann de Server se erfuerdert.

  1. Pescht d'MCP-Server-URL vum Ubidder an d'Feld „Server-URL“.
  2. Gitt en Numm fir d'Verbindung mat MCP Music Studio an.
  3. Setzt eng Beschreiwung an e Symbol derbäi, fir d'Verbindung méi einfach erëmzeerkennen.
  4. Setzt benotzerdefinéiert HTTP-Headeren oder OAuth-Clientdetailer derbäi, wann de Server eng Authentifizéierung erfuerdert.
3

D'Verbindung erstellen

Klickt op „Verbindung erstellen“, gitt dann zeréck op d'Plugin-Lëscht a kontrolléiert, ob déi nei MCP-Verbindung aktiv ass.

  1. Klickt op „Verbindung erstellen“.
  2. Gitt zeréck op d'Lëscht vun de MCP-Connectoren.
  3. Kontrolléiert, ob d'Verbindung mat MCP Music Studio als aktiv ugewise gëtt.
  4. Aktualiséiert d'Plugin-Lëscht, wann d'Verbindung net direkt ugewise gëtt.
4

Modeller wiesselen ouni nei ze verbannen

Start e Chat mat Ärem bevorzugte Modell, aktivéiert d'Tools vu MCP Music Studio ënner „Plugins“ a wiesselt bei Bedarf op en anere Modell. D'MCP-Verbindung bleift am TypingMind-Aarbechtsberäich disponibel.

  1. Start en neie Chat an TypingMind.
  2. Wielt de KI-Modell, deen Dir benotze wëllt.
  3. Aktivéiert d'Tools vu MCP Music Studio ënner „Plugins“.
  4. Biet de Modell, den Tool ze benotzen, wann néideg.
  5. Wiesselt op en anere KI-Modell a benotzt déiselwecht MCP-Verbindung weider.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat MCP Music Studio?
MCP Music Studio
Jo. Ech hunn et gelies.
Dat hunn ech mat MCP Music Studio fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server MCP Music Studio benotzt?

MCP Music Studio ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech MCP Music Studio MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir MCP Music Studio mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat MCP Music Studio MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann MCP Music Studio verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech MCP Music Studio MCP mat TypingMind?

Dir kënnt MCP Music Studio iwwer de lokale MCP-Connector oder iwwer d'URL vun engem Remote-MCP-Server mat TypingMind verbannen. Benotzt de lokale Connector, wann de Server Zougrëff op Fichieren, Apps oder privat Ressourcen op Ärem Apparat brauch, an eng Server-URL, wann de MCP-Server op Distanz gehost gëtt.

Wéi eng Tools stellt MCP Music Studio MCP an TypingMind zur Verfügung?

MCP Music Studio stellt 2 MCP-Tools zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir MCP Music Studio MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann MCP Music Studio eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Music Guide: instruments

Music reference: instruments

Music Guide: drums

Music reference: drums

Music Guide: abc-syntax

Music reference: abc-syntax

Music Guide: arrangements

Music reference: arrangements

Music Guide: genres

Music reference: genres

Music Guide: styles

Music reference: styles

Music Guide: midi-directives

Music reference: midi-directives

ui://sheet-music/mcp-app.html

Sheet Music Viewer UI

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇