
MCP 服务器和浏览器扩展,用于使用 LLM 在 Strudel.cc 上创作音乐
概览
将Claude Code和Claude Desktop连接到Strudel,这是一个基于浏览器的实时编程音乐环境。 这个MCP服务器允许Claude AI助手直接在你的浏览器中生成并播放实时编码的音乐,使用Strudel强大的模式语言。只需描述你想要的内容,Claude就会生成代码并立即播放。 这是一个 .Claude 生成 Strudel 代码,服务器只需转发到你的浏览器。 - ✅ - Claude 自行生成代码 - ✅ - 零配置 - ✅ - 即时音乐播放 - ✅ - 嵌入 Strudel API 参考 - ✅ - 336 行代码 - ✅ - Claude 代码、Claude 桌面版、任何 MCP 客户端 打开你的Claude桌面MCP设置文件:- : ~/Library/Application Support/Claude/claude_desktop_config.json - : %APPDATA%\Claude\claude_desktop_config。
概述(AI 翻译)
将Claude Code和Claude Desktop连接到Strudel,这是一个基于浏览器的实时编程音乐环境。
这是什么?
这个MCP服务器允许Claude AI助手直接在你的浏览器中生成并播放实时编码的音乐,使用Strudel强大的模式语言。只需描述你想要的内容,Claude就会生成代码并立即播放。
快速启动
1.安装依赖:
2.搭建服务器:
3.安装MCP服务器:
4.在浏览器中打开 strudel.cc 并安装浏览器扩展
5.让克劳德来做音乐吧!
建筑
密钥设计:这是一个简单的桥接。Claude生成Strudel代码,服务器只需转发到你的浏览器。
特色
- ✅ 无AI依赖 - Claude 自行生成代码
- ✅ 无需API密钥 - 零配置
- ✅ 实时 - 即时音乐播放
- ✅ 全面文档 - 嵌入式 Strudel API 参考
- ✅ 快速且轻量 - 336行代码
- ✅ 无处不在 - Claude Code、Claude Desktop、任何 MCP 客户端
安装
用于开发/本地使用
克劳德桌面版
1.搭建服务器:
2.添加到Claude桌面配置:
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Strudel MCP Server
Bridge Claude Code and Claude Desktop to Strudel, the browser-based live coding music environment.
What is This?
This MCP server lets Claude AI assistants generate and play live-coded music directly in your browser using Strudel’s powerful pattern language. Just describe what you want, and Claude will create the code and play it instantly.
Quick Start
1. Install dependencies:
npm install
2. Build the server:
npm run build
3. Install the MCP server:
claude mcp add strudel node /path/to/strudel-mcp-bridge/mcp-server/dist/server.js -s user
4. Open strudel.cc in your browser and install the browser extension
5. Ask Claude to make music!
"Create a dark synthwave beat with heavy bass"
"Add UK garage drums"
"Make it faster and add reverb"
Architecture
User → Claude (generates Strudel code) → MCP Server (bridge) → Browser → 🎵
Key Design: This is a simple bridge. Claude generates the Strudel code, the server just forwards it to your browser.
Features
- ✅ No AI dependencies - Claude generates the code itself
- ✅ No API keys required - Zero configuration
- ✅ Real-time - Instant music playback
- ✅ Comprehensive docs - Embedded Strudel API reference
- ✅ Fast & lightweight - 336 lines of code
- ✅ Works everywhere - Claude Code, Claude Desktop, any MCP client
Installation
For Development / Local Use
# Clone and install
git clone
cd mcp-server
npm install
npm run build
npm start
For Claude Desktop
1. Build the server:
cd /path/to/strudel-mcp-bridge/mcp-server
npm install
npm run build
2. Add to Claude Desktop config:
Open your Claude Desktop MCP settings file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Add this configuration:
{
"mcpServers": {
"strudel": {
"command": "node",
"args": ["/absolute/path/to/strudel-mcp-bridge/mcp-server/dist/server.js"]
}
}
}
3. Restart Claude Desktop
For Browser Extension
1. Install the extension:
- Open Chrome/Edge and navigate to
chrome://extensions/ - Enable “Developer mode” in the top-right corner
- Click “Load unpacked”
- Select the
browser-extensionfolder from this project - The extension should appear in your extensions list
2. Connect to strudel.cc:
- Open strudel.cc in your browser
- The extension will automatically connect to the MCP server
- Look for a connection indicator (should turn green when connected)
3. Start making music!
"Create a jazzy beat with piano and brushed drums"
"Make a dark techno track with 808 drums"
"Add UK garage drums to this"
Usage
How It Works
- You ask Claude to create music (e.g., “make a techno beat”)
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"strudel": {
"command": "node",
"args": ["/absolute/path/to/strudel-mcp-bridge/mcp-server/dist/server.js"]
}
}
}