Claude Collider

Claude Collider

An MCP server that enables your LLM to generate and play music through SuperCollider.

Category
访问服务器

README

Claude Collider

An MCP (Model Context Protocol) server that enables your LLM to generate and play music through SuperCollider. Describe the sounds you want, and your LLM will write and execute SuperCollider code in real-time.

Live coding from inside this repository is recommended but completely optional. This repo contains Claude-specific instructions (CLAUDE.md, skills) that make Claude the best songwriter out there, but the MCP server should work with any MCP client.

<a href="https://youtube.com/playlist?list=PLCSMRjzD98qXnSt50X4tvjvftlwIS-s7r&si=zdckQfASr4E81IGg" target="_blank"> <img width="100%" alt="Claude Collider" src="https://github.com/user-attachments/assets/cfd56bcd-5f9b-4d39-9077-9386074b1579" /> </a>

What It Can Do

Major Features

  • Auto-boots SuperCollider within your LLM session and exposes 9 MCP tools to interact with it
  • Music theory LLM skill and utility SuperColloder classes for arrangement, melody development, and a breakbeat mangler
  • Sampler with support for auto-loading samples from user directories
  • "Tape" format for recording and playing back songs across LLM sessions
  • 27+ built-in synths across drums, bass, leads, pads, and utility categories
  • 18+ built-in effects including dynamics, sidechain, filters, reverb, delay, modulation, distortion, and stereo processing

See the ClaudeCollider API reference for the full list of synths, effects, and class documentation.

Example Prompts

  • "Boot SuperCollider and make a four-on-the-floor beat with a deep kick and shaker"
  • "Make a 303-style acid bass with a resonant filter sweep, run it through distortion and delay"
  • "Set up sidechain compression so the kick ducks the bass and the pad"
  • "Load the amen break sample, slice it into 16, and rearrange it into a choppy DnB pattern"
  • "Write a lead melody using motif development — start with a short phrase, then transpose and invert it"
  • "Compose a full arrangement with an intro, two builds, two drops, a breakdown, and an outro"
  • "Record this session as a tape called late-night-acid, then play it back with the arrangement"
  • "The bass line is boring — use the songwriting skill to rewrite it with approach notes and octave jumps"
  • "Connect my MIDI keyboard to the pad synth with mod wheel controlling the filter cutoff, and sync MIDI clock to the arrangement"
  • "Build a granular texture from the vocal sample, layer a polymetric 5-beat kick under it, and arrange the whole thing into a slow build"

Requirements

  • SuperCollider installed on your system
  • Node.js 18+
  • Claude Code, Claude Desktop, or any other MCP client

Installation

git clone https://github.com/jeremyruppel/claude-collider.git
cd claude-collider
npm install
npm run build
npm test

ClaudeCollider Quark

Symlink or copy the ClaudeCollider/ folder to your Extensions directory:

ln -s /path/to/claude-collider/ClaudeCollider ~/Library/Application\ Support/SuperCollider/Extensions/ClaudeCollider

Claude Code Configuration

Add the MCP server to your project scope (recommended when live coding from this repo):

claude mcp add -t stdio -s project claude-collider -- node /path/to/claude-collider/dist/index.js

Or add it globally so it's available in all projects:

claude mcp add -t stdio -s user claude-collider -- node /path/to/claude-collider/dist/index.js

To configure optional environment variables for sample and recording paths:

claude mcp add -t stdio -s project \
  -e CC_SAMPLES_PATH=/path/to/your/samples \
  -e CC_RECORDINGS_PATH=/path/to/your/recordings \
  claude-collider -- node /path/to/claude-collider/dist/index.js

Claude Desktop Configuration

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "claude-collider": {
      "command": "node",
      "args": ["/path/to/claude-collider/dist/index.js"],
      "env": {
        "CC_SAMPLES_PATH": "/path/to/your/samples",
        "CC_RECORDINGS_PATH": "/path/to/your/recordings"
      }
    }
  }
}

The env block is optional in all configurations — paths default to ~/.claudecollider/samples and ~/.claudecollider/recordings.

Restart your MCP client after updating the config.

MCP Tools

9 MCP tools give Claude control over SuperCollider:

Tool Description
cc_execute Execute SuperCollider code (auto-boots on first use)
cc_status Show status, routing debug, available synths, or available effects
cc_reboot Reboot the audio server or list audio devices
cc_control Control playback: stop all sounds, clear everything, or get/set tempo
cc_fx Effects operations: load, set params, bypass, remove, wire, sidechain, chain
cc_midi MIDI operations: list devices, connect, play synth, or stop
cc_sample Sample operations: inspect, load, play, free, or reload directory
cc_recording Recording operations: start, stop, or check status
cc_output Hardware output routing: route to outputs, unroute, or show status

Skills

Songwriting

The /songwriting skill is a built-in music theory reference that Claude loads when composing or improving individual parts. It covers:

  • Bass — Bass line theory, patterns, and genre conventions
  • Breakbeats — CCBreakbeat slicing, rearrangement, and genre applications
  • Chords — Voicing, voice leading, progressions, and extensions
  • Melody — Contour, motif development, phrasing, tension and resolution
  • Rhythm — Drum patterns, swing, ghost notes, and genre grooves
  • Scales — Scales, modes, when to use each, and SuperCollider usage

The skill enforces principles like register separation (keeping bass, chords, and melody in distinct octave ranges), complementary rhythms (if one part is on-beat, another syncopates), and repetition with variation. Ask Claude to use it when you want more musically intentional results:

  • "Use the songwriting skill to write a better bass line for this tape"
  • "The melody feels flat — can you improve it?"

Tapes

Tapes are Claude Collider's session format — a paired .md and .scd file that capture a complete musical idea. The tapes/ directory contains saved sessions you can play back or use as starting points.

A tape consists of:

  • <name>.md — Metadata and documentation: tempo, key, element descriptions, arrangement overview, and musical notes. Has YAML frontmatter linking to its .scd file.
  • <name>.scd — Executable SuperCollider code defining all Pdefs, Ndefs, effects, and routing. Elements are defined but not played — playback is controlled separately.
  • <name>-arrangement.scd (optional) — A CCArrangement that orchestrates when elements enter and exit across sections.

Playing a Tape

Ask Claude to play a tape by name:

  • "Play the chopped-break tape"
  • "Load up floor-burner"
  • "Play night-drive in jam mode"

There are two playback modes:

  • Arrangement mode (default if an arrangement file exists) — Loads the tape's elements and effects, then runs the arrangement which brings elements in and out over time with section transitions.
  • Jam mode — Loads everything and starts all elements at once. Good for improvising on top of an existing tape.

Recording a Tape

After a live session, ask Claude to save it:

  • "Record this session as a tape called midnight-groove"
  • "Save what we've been playing as a tape"

Claude captures the current tempo, patterns, effects, and routing into a new .md/.scd pair in tapes/.

Arranging a Tape

You can also ask Claude to compose an arrangement for an existing tape:

  • "Arrange the floor-burner tape"
  • "Write an arrangement for night-drive with a long build"

This generates a <name>-arrangement.scd file with a CCArrangement that structures the tape's elements into intro, build, drop, break, and outro sections.

Debug Mode

Enable debug logging:

DEBUG=claude-collider node dist/index.js

Logs are written to /tmp/claude-collider.log.

Environment Variables

Variable Default Description
SCLANG_PATH Auto-detected Path to sclang executable
SC_BOOT_TIMEOUT 10000 Boot timeout in ms
SC_EXEC_TIMEOUT 2000 Execution timeout in ms
CC_SAMPLES_PATH ~/.claudecollider/samples Directory for audio samples
CC_RECORDINGS_PATH ~/.claudecollider/recordings Directory for recorded audio
DEBUG - Set to claude-collider for debug logs

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选