
MuseScore的MCP服务器.
概览
这个MCP(Model Context Protocol)服务器将MuseScore和克洛德桌面等LLM客户端集成,通过自然语言实现基本音乐构成. 简短演示: https://www.canva.com/design/DAGlHeR706g/4UcXvK23I1axWOfm6lSSxQ/edit 服务器允许 MCP 连接的 LLM : - 连接到MuseScore并操纵一个打开的分数 - 添加注释并休息 - 选择并删除 - 创建 tuplets - 撤销更改 - 从工作人员转到工作人员 - 无法理解工作人员内部的多种声音或他们之间的导航 - Python 3.9+ - MuseScore 3或4已安装 - MCP Python SDK 2. 安装附属设施,无论是在天窗内还是在全球范围内: 3. 将MuseScore-mcp-plugin复制到您的MuseScore插件 dir(在我的mac上,这是~/Documents/MuseScore4/plugins) 安装它
概述(AI 翻译)
这个MCP(Model Context Protocol)服务器将MuseScore和克洛德桌面等LLM客户端集成,通过自然语言实现基本音乐构成.
简短演示: https://www.canva.com/design/DAGlHeR706g/4UcXvK23I1axWOfm6lSSxQ/edit
□ 特性
服务器允许 MCP 连接的 LLM :
- 连接到MuseScore并操纵一个开放分数
- 增加笔记和记录
- 选择和删除
- 创建小块
- 取消改变
- 从工作人员调到工作人员
□ 限制
- 无法理解工作人员内部的多种声音或他们之间的导航
□ 要求
- Py 3.9+
- 安装了MuseScore 3或4
- MCP活塞SDK
□ 安装
-
克隆此存储器:
-
安装附属设施,无论是在天窗内还是在全球范围内:
-
将MuseScore-mcp-plugin复制到您的MuseScore插件 dir(在我的mac上,这是~/Documents/MuseScore4/plugins) 安装它
-
以 MCP 服务器配置您的 LLM (server.py) 。 如果您正在使用 Claude 桌面和一个 venv, 可以通过创建类似 Claude desktop config 文件来实现 :
□ 使用量
准备MuseScore
打开Musescore和任何你想使用的分数.
本页由 AI 翻译,技术细节请以原文为准。
README
MuseScore MCP Server
This MCP (Model Context Protocol) server integrates MuseScore with LLM clients like Claude Desktop, enabling basic music composition through natural language.
Brief demo here: https://www.canva.com/design/DAGlHeR706g/4UcXvK23I1axWOfm6lSSxQ/edit
Features
The server allows an MCP-connected LLM to:
- Connect to MuseScore and manipulate an open score
- Add notes and rests
- Select and delete
- Create tuplets
- Undo a change
- Move from staff to staff
Limitations
- Can not understand multiple voices within a staff or navigate between them
Requirements
- Python 3.9+
- MuseScore 3 or 4 installed
- MCP Python SDK
Installation
-
Clone this repository:
git clone https://github.com/yourusername/musescore-mcp-server.git cd musescore-mcp-server -
Install dependencies, either in a venv or globally:
pip install -r requirements.txt -
Install the musescore-mcp-plugin by copying it into your MuseScore plugins dir (on my mac this was ~/Documents/MuseScore4/plugins)
-
Configure your LLM with the MCP server (server.py). If you are using Claude Desktop and a venv, this can be done by creating a claude_desktop_config file like so:
{ "mcpServers": { "musescore": { "command": "bash", "args": [ "-c", "source /path/to/venv/activate && python3 /path/to/server.py" ] } }
Usage
Prepare MuseScore
Open musescore and whatever score you want to use. Then, connect the musescore-mcp-plugin and launch it by selecting it from the plugins menu.
Example Queries
Once connected, you can ask Claude questions like:
- "Help me come up with some possible chords for the melody in my score
- Compose a simple melody and show me 4 ways to harmonize it
- Extend the melody in measures 1-12 with 4 measures that match the style of this piece
Development
If you want to add features to the MuseScore plugin and test them, the testClient.html file in this repo may be a useful development tool - simply extend it to call whatever functions you add.
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"musescore": {
"command": "bash",
"args": [
"-c",
"source /path/to/venv/activate && python3 /path/to/server.py"
]
}
}