
jordansucher/musescore-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
MuseScore 用の MCP サーバー.
概要
このMCP(Model Context Protocol)サーバーは、Claude DesktopのようなLMクライアントとMuseScoreを統合し、自然言語による基本的な音楽構成を可能にします。 簡単なデモはこちら: https://www.canva.com/design/DAGlHeR706g/4UcXvK23I1axWOfm6lSSxQ/edit サーバは、MCP-connected LLM を次のようにします。 - MuseScoreに接続し、オープンスコアを操作 - ノートと残りを追加 - 選択して削除 - タップレットを作成 - 変更をしないように - スタッフからスタッフに移動 - スタッフ内で複数の声を理解したり、その間にナビゲートしたりすることはできません - Python 3.9 + - MuseScore 3 または 4 をインストール - MCP Python SDK 2. 依存関係を、venv またはグローバルにインストールします。 3。 MuseScore プラグインの dir にコピーすることで、musescore-mcp-plugin をインストールします。 (私の mac では ~/Documents/MuseScore4/plugins)
概要(AI 翻訳)
このMCP(Model Context Protocol)サーバーは、Claude DesktopのようなLMクライアントとMuseScoreを統合し、自然言語による基本的な音楽構成を可能にします。
簡単なデモはこちら: https://www.canva.com/design/DAGlHeR706g/4UcXvK23I1axWOfm6lSSxQ/edit
##特徴
サーバは、MCP-connected LLM を次のようにします。
- MuseScoreに接続し、オープンスコアを操作
- メモと残りを追加
- 選択および削除
- tupletsを作成する
- 変更を取り消す ・スタッフからスタッフまで移動
制限事項
- スタッフ内で複数の声を理解したり、その間にナビゲートしたりすることはできません
要件
- Python 3.9 +
- MuseScore 3 または 4 をインストール ・MCP Python SDK
インストール
-
このリポジトリをクローンする:
-
依存関係を、venv またはグローバルにインストールします。
3。 MuseScore プラグインの dir にコピーすることで、musescore-mcp-plugin をインストールします。 (私の mac では ~/Documents/MuseScore4/plugins)
4。 MCPサーバー(server.py)でLMを構成します。 Claude Desktop と 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 MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"musescore": {
"command": "bash",
"args": [
"-c",
"source /path/to/venv/activate && python3 /path/to/server.py"
]
}
}