Skip to main content
Glama

musescore-mcp

Инструмент, который оборачивает CLI MuseScore в сервер протокола Model Context Protocol (MCP), позволяя Claude AI напрямую конвертировать, редактировать и анализировать нотные файлы.


Цель

Позволяет Claude AI (Claude Desktop, Claude Code и др.) работать с нотными файлами MuseScore (.mscz, .musicxml, MIDI и др.) с помощью команд на естественном языке.

Предоставляемые функции:

Категория

Функция

Конвертация и экспорт

Преобразование в PDF, PNG, MusicXML, MIDI, MP3 и другие форматы; извлечение партий; экспорт многостраничных PNG

Редактирование

Транспонирование по тональности, интервалу или для конкретного инструмента; изменение размера такта; изменение темпа

Анализ

Базовая информация о партитуре (название, композитор, размер, тональность, количество тактов); список изменений ключевых знаков; анализ состава инструментов и диапазона; гармонический анализ (римские цифры)

Дополнительно

Применение файлов стилей MuseScore (.mss); запуск плагинов QML; создание партитур из строк MusicXML; конвертация MIDI в ноты; отслеживание папок с автоматической конвертацией


Требования

  • Python 3.10 или выше

  • Установленный MuseScore 4 (или MuseScore 3)

    • Windows: musescore.org или Microsoft Store

    • Если путь установки отличается от стандартного, укажите путь к исполняемому файлу в переменной окружения MSCORE_PATH


Установка

1. Клонирование репозитория

git clone https://github.com/strongbeen04/musescore-mcp.git
cd musescore-mcp

2. Создание виртуального окружения и установка пакетов

python -m venv .venv

# Windows
.venv\Scripts\activate

# macOS / Linux
source .venv/bin/activate

# 기본 설치
pip install -e .

# 화성 분석 기능(music21) 포함 설치
pip install -e ".[harmony]"

3. Регистрация MCP-сервера

Claude Desktop (версия из Windows Store)

Добавьте в файл %LOCALAPPDATA%\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude\claude_desktop_config.json:

{
  "mcpServers": {
    "musescore": {
      "command": "C:\\path\\to\\musescore-mcp\\.venv\\Scripts\\musescore-mcp.exe"
    }
  }
}

Claude Desktop (обычная установка)

Добавьте в файл %APPDATA%\Claude\claude_desktop_config.json:

{
  "mcpServers": {
    "musescore": {
      "command": "C:\\path\\to\\musescore-mcp\\.venv\\Scripts\\musescore-mcp.exe"
    }
  }
}

Claude Code (CLI)

Добавьте в файл ~/.claude.json:

{
  "mcpServers": {
    "musescore": {
      "type": "stdio",
      "command": "C:\\path\\to\\musescore-mcp\\.venv\\Scripts\\musescore-mcp.exe"
    }
  }
}

Для macOS / Linux измените command на .venv/bin/musescore-mcp.

После сохранения настроек перезапустите Claude, чтобы подключить сервер musescore.


Использование

При общении с Claude прикрепите нотный файл или укажите путь к нему. Claude автоматически вызовет инструменты MCP.

Примеры использования:

"이 mscz 파일을 PDF로 변환해줘."
"악보를 Bb 클라리넷 기준으로 이조해줘."
"이 악보의 조성과 마디 수를 알려줘."
"MusicXML을 mscz 파일로 만들어줘."

Список доступных инструментов MCP

Инструмент

Описание

get_musescore_path

Проверка пути к исполняемому файлу MuseScore

convert_score

Конвертация одного файла

batch_convert

Пакетная конвертация нескольких файлов

export_parts

Извлечение партий по отдельности

export_png_pages

Экспорт многостраничных PNG

transpose_by_key

Транспонирование по тональности

transpose_by_interval

Транспонирование по интервалу

transpose_for_instrument

Транспонирование для инструмента

change_tempo

Изменение темпа (BPM)

change_time_signature

Изменение размера такта

get_score_info

Получение базовой информации о партитуре

get_key_signature

Список изменений ключевых знаков

list_instruments

Состав инструментов и их диапазоны

update_metadata

Редактирование метаданных (название, композитор и т.д.)

analyze_harmony

Гармонический анализ (требуется music21)

apply_style

Применение файла стиля MuseScore (.mss)

run_plugin

Запуск плагина QML

create_from_musicxml

Создание mscz из строки MusicXML

midi_to_score

Конвертация MIDI в mscz

watch_folder

Отслеживание папки и автоматическая конвертация


Purpose

musescore-mcp — это сервер MCP (Model Context Protocol), который оборачивает CLI MuseScore, позволяя Claude AI (Claude Desktop, Claude Code и др.) конвертировать, редактировать и анализировать нотные файлы с помощью команд на естественном языке.

Функции:

Категория

Возможности

Конвертация и экспорт

Конвертация в PDF, PNG, MusicXML, MIDI, MP3 и др.; извлечение отдельных партий; экспорт многостраничных PNG

Редактирование

Транспонирование по тональности или интервалу; транспонирование для конкретного инструмента; изменение темпа и размера такта

Анализ

Метаданные партитуры (название, композитор, тональность, размер, количество тактов); изменения ключевых знаков; диапазоны инструментов; гармонический анализ с использованием римских цифр

Дополнительно

Применение файлов стилей MuseScore (.mss); запуск плагинов QML; создание партитур из строк MusicXML; конвертация MIDI в ноты; автоматическая конвертация файлов в отслеживаемой папке


Требования

  • Python 3.10 или выше

  • Установленный MuseScore 4 (или MuseScore 3)

    • Windows: musescore.org или Microsoft Store

    • Если путь установки отличается от стандартного, установите переменную окружения MSCORE_PATH на путь к исполняемому файлу


Установка

1. Клонирование репозитория

git clone https://github.com/strongbeen04/musescore-mcp.git
cd musescore-mcp

2. Создание виртуального окружения и установка

python -m venv .venv

# Windows
.venv\Scripts\activate

# macOS / Linux
source .venv/bin/activate

# Base install
pip install -e .

# With harmony analysis support (music21)
pip install -e ".[harmony]"

3. Регистрация MCP-сервера

Claude Desktop (Windows Store)

Отредактируйте %LOCALAPPDATA%\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude\claude_desktop_config.json:

{
  "mcpServers": {
    "musescore": {
      "command": "C:\\path\\to\\musescore-mcp\\.venv\\Scripts\\musescore-mcp.exe"
    }
  }
}

Claude Desktop (стандартная установка)

Отредактируйте %APPDATA%\Claude\claude_desktop_config.json:

{
  "mcpServers": {
    "musescore": {
      "command": "C:\\path\\to\\musescore-mcp\\.venv\\Scripts\\musescore-mcp.exe"
    }
  }
}

Claude Code (CLI)

Отредактируйте ~/.claude.json:

{
  "mcpServers": {
    "musescore": {
      "type": "stdio",
      "command": "C:\\path\\to\\musescore-mcp\\.venv\\Scripts\\musescore-mcp.exe"
    }
  }
}

На macOS / Linux измените command на .venv/bin/musescore-mcp.

Перезапустите Claude после сохранения конфигурации, чтобы подключить сервер.


Использование

Прикрепите нотный файл в диалоге с Claude или укажите путь к нему и задайте вопрос на естественном языке. Claude автоматически вызовет соответствующие инструменты MCP.

Примеры:

"Convert this mscz file to PDF."
"Transpose this score for Bb clarinet."
"What is the key and measure count of this score?"
"Create an mscz from this MusicXML."

Доступные инструменты MCP

Инструмент

Описание

get_musescore_path

Возвращает обнаруженный путь к исполняемому файлу MuseScore

convert_score

Конвертация одной партитуры в другой формат

batch_convert

Конвертация нескольких файлов за один вызов

export_parts

Экспорт каждой инструментальной партии в отдельный файл

export_png_pages

Экспорт всех страниц в виде отдельных PNG-изображений

transpose_by_key

Транспонирование в целевую тональность

transpose_by_interval

Транспонирование на определенный интервал

transpose_for_instrument

Переписывание транспозиции для заданного инструмента

change_tempo

Установка нового темпа (BPM)

change_time_signature

Изменение размера такта

get_score_info

Возвращает название, композитора, тональность, размер, темп, партии, количество тактов

get_key_signature

Список всех изменений ключевых знаков с номерами тактов

list_instruments

Возвращает названия инструментов, транспозиции и диапазоны высоты звука

update_metadata

Редактирование полей названия, композитора, автора текста и авторских прав

analyze_harmony

Анализ гармонических последовательностей (требуется music21)

apply_style

Применение файла стиля MuseScore (.mss)

run_plugin

Выполнение установленного плагина MuseScore QML

create_from_musicxml

Создание mscz из строки MusicXML

midi_to_score

Конвертация MIDI-файла в mscz

watch_folder

Мониторинг папки и автоматическая конвертация новых файлов .mscz


Лицензия

MIT

Available Tools

20 tools
analyze_harmonyA

Analyze chord progressions and tonal center using music21.

Requires pip install music21.

Args: score_b64: Base64-encoded score file. input_suffix: Input extension, e.g. "mscz".

Returns: Dict with detected_key, confidence, and a list of chords [{offset, measure, chord, roman_numeral}, ...].

Inputs: score_b64 (required), input_suffix (required).

apply_styleB

Apply a MuseScore style file (.mss) to a score and re-export.

Args: score_b64: Base64-encoded score file. input_suffix: Input extension, e.g. "mscz". style_b64: Base64-encoded .mss style file content.

Returns: Base64-encoded mscz with the style applied.

Inputs: score_b64 (required), input_suffix (required), style_b64 (required). Returns: result

batch_convertA

Convert multiple score files in a single MuseScore process using -j.

Each job dict must have:

  • in_b64 (str): base64-encoded input file

  • in_suffix (str): input extension, e.g. "mscz"

  • out_format (str): output format, e.g. "pdf"

Returns results in the same order as jobs.

Inputs: jobs (required). Returns: result

change_tempoB

Change the tempo by modifying MusicXML and elements.

Replaces all existing tempo markings in the score.

Args: score_b64: Base64-encoded score file. input_suffix: Input extension, e.g. "mscz". bpm: New tempo in beats per minute (1–400). beat_unit: Beat unit for the metronome marking: quarter, half, eighth, whole.

Returns: Modified MusicXML as a UTF-8 string.

Inputs: score_b64 (required), input_suffix (required), bpm (required), beat_unit. Returns: result

change_time_signatureA

Change the time signature by modifying MusicXML elements.

Note: only the time signature element is changed — notes and beaming are not automatically adjusted.

Args: score_b64: Base64-encoded score file. input_suffix: Input extension, e.g. "mscz". beats: Beats per measure (e.g. 3 for 3/4). beat_type: Note value of one beat (1, 2, 4, 8, 16, or 32).

Returns: Modified MusicXML as a UTF-8 string.

Inputs: score_b64 (required), input_suffix (required), beats (required), beat_type (required). Returns: result

convert_scoreA

Convert a score file to another format.

Args: score_b64: Base64-encoded content of the input file. input_suffix: Extension of the input file without dot, e.g. "mscz". output_format: Target format — pdf | musicxml | mid | mp3 | wav | flac | ogg | png | svg.

Returns: PNG (multi-page): {"format": "png", "pages": N, "data": [b64, ...]} Text formats (musicxml, svg): {"format": str, "data": str} Binary formats: {"format": str, "data": b64}

Inputs: score_b64 (required), input_suffix (required), output_format (required).

create_from_musicxmlA

Convert a MusicXML string into a MuseScore .mscz file.

Useful for creating MuseScore files from externally generated MusicXML.

Args: musicxml: MusicXML content as a UTF-8 string.

Returns: Base64-encoded mscz file.

Inputs: musicxml (required). Returns: result

export_partsA

Export each instrument part from a score as a separate file.

First converts to MusicXML to discover part names and count, then uses MuseScore's JSON job format to export each part by index.

Args: score_b64: Base64-encoded score file. input_suffix: Input extension, e.g. "mscz". output_format: Format for each part output (pdf, musicxml, png, etc.).

Returns: List of {"part_index": int, "part_name": str, "format": str, "data": ...}.

Inputs: score_b64 (required), input_suffix (required), output_format. Returns: result

export_png_pagesA

Export each page of a score as a PNG image.

Args: score_b64: Base64-encoded score file. input_suffix: Input extension, e.g. "mscz". dpi: Output resolution in dots per inch (1–2400, default 150). trim: If True, trim whitespace borders (0 px margin).

Returns: List of base64-encoded PNG strings, one per page, in order.

Inputs: score_b64 (required), input_suffix (required), dpi, trim. Returns: result

get_key_signatureA

Return all key signature changes in the score with their measure positions.

Args: score_b64: Base64-encoded score file. input_suffix: Input extension, e.g. "mscz".

Returns: List of {"measure": int, "key": str, "mode": str, "fifths": int}, ordered by measure number.

Inputs: score_b64 (required), input_suffix (required). Returns: result

get_musescore_pathA

Return the detected MuseScore executable path on this machine.

Inputs: no named parameters. Returns: result

get_score_infoA

Return basic metadata and structural info about a score.

Args: score_b64: Base64-encoded score file. input_suffix: Input extension, e.g. "mscz".

Returns: Dict with title, composer, initial key, time signature, tempo, part names, and measure count.

Inputs: score_b64 (required), input_suffix (required).

list_instrumentsA

Return instrument/part info including transposition and pitch range.

Args: score_b64: Base64-encoded score file. input_suffix: Input extension, e.g. "mscz".

Returns: List of dicts with part_index, name, abbreviation, is_transposing, transpose (chromatic/diatonic), range (lowest/highest MIDI note name).

Inputs: score_b64 (required), input_suffix (required). Returns: result

midi_to_scoreA

Convert a MIDI file to a MuseScore .mscz file.

Args: midi_b64: Base64-encoded MIDI (.mid) file content. quantization: Quantization resolution as a note value denominator (4=quarter, 8=eighth, 16=sixteenth, 32=thirty-second). Default is "16". midi_import_options_b64: Optional base64-encoded MIDI import options JSON file (MuseScore's -M flag format).

Returns: Base64-encoded mscz file.

Inputs: midi_b64 (required), quantization, midi_import_options_b64. Returns: result

run_pluginA

Run a MuseScore QML plugin on a score.

The plugin must already be installed in MuseScore's plugin directory. Plugins can perform score manipulations (e.g. note coloring, analysis).

Args: score_b64: Base64-encoded score file. input_suffix: Input extension, e.g. "mscz". plugin_name: Name of the plugin as registered in MuseScore (without .qml).

Returns: Base64-encoded mscz after plugin execution.

Inputs: score_b64 (required), input_suffix (required), plugin_name (required). Returns: result

transpose_by_intervalA

Transpose a score by a fixed number of semitones via the MuseScore CLI.

Requires MuseScore 3.3+ with --score-transpose support.

Args: score_b64: Base64-encoded score file. input_suffix: Input extension, e.g. "mscz". semitones: Number of semitones to transpose (1–24). direction: "up" or "down".

Returns: Base64-encoded mscz of the transposed score.

Inputs: score_b64 (required), input_suffix (required), semitones (required), direction. Returns: result

transpose_by_keyA

Transpose a score to a target key using the MuseScore CLI.

Requires MuseScore 3.3+ with --score-transpose support.

Args: score_b64: Base64-encoded score file. input_suffix: Input extension, e.g. "mscz". target_key: Target major key — C G D A E B F# C# F Bb Eb Ab Db Gb Cb. direction: "up", "down", or "closest" (default).

Returns: Base64-encoded mscz of the transposed score.

Inputs: score_b64 (required), input_suffix (required), target_key (required), direction. Returns: result

transpose_for_instrumentA

Adjust the transposition offset for a transposing instrument part.

Modifies the MusicXML element — useful for converting between transposing instruments (e.g. Bb clarinet ↔ concert pitch, alto sax → tenor sax).

Pass either instrument (shorthand) or explicit chromatic + diatonic. Known instruments: concert, bb_clarinet, bb_trumpet, bb_soprano_sax, bb_tenor_sax, eb_alto_sax, eb_baritone_sax, f_horn, a_clarinet.

Args: score_b64: Base64-encoded score file. input_suffix: Input extension, e.g. "mscz". instrument: Instrument shorthand name (optional). chromatic: Semitone offset written→sounding (optional). diatonic: Diatonic step offset written→sounding (optional). part_index: Which part to affect (0-based). None = all parts.

Returns: Modified MusicXML as a UTF-8 string.

Inputs: score_b64 (required), input_suffix (required), instrument, chromatic, +2 more. Returns: result

update_metadataA

Update score metadata fields and return the modified MusicXML.

Only fields explicitly provided (non-None) are changed.

Args: score_b64: Base64-encoded score file. input_suffix: Input extension, e.g. "mscz". title: Work title. subtitle: Movement title / subtitle. composer: Composer name. lyricist: Lyricist name. copyright: Copyright / rights string.

Returns: Modified MusicXML as a UTF-8 string.

Inputs: score_b64 (required), input_suffix (required), title, subtitle, +3 more. Returns: result

watch_folderA

Watch a folder for new .mscz files and auto-convert them.

Monitors the folder for up to duration_seconds, converting any new .mscz files that appear into the requested output formats.

Args: folder_path: Absolute path to the folder to watch. output_formats: List of output formats, e.g. ["pdf", "musicxml"]. output_folder: Where to write converted files. Defaults to folder_path. duration_seconds: How long to watch (max 300s).

Returns: {"converted": [{"source": str, "outputs": [str, ...]}, ...], "errors": [{"source": str, "error": str}, ...]}

Inputs: folder_path (required), output_formats (required), output_folder, duration_seconds.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 20 tools

    Disambiguation5/5

    Each tool targets a distinct operation (e.g., convert, export, transpose, analyze). Transposition tools are separated by interval, key, and instrument, and other potential overlaps like batch vs single convert are clearly differentiated. No two tools could be easily confused.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern in snake_case (e.g., convert_score, export_parts, get_score_info). Even compound names like batch_convert and transpose_by_interval maintain the pattern. No mixing of styles.

    Tool Count5/5

    With 20 tools, the server covers a broad range of functionality (conversion, analysis, transposition, metadata, etc.) without being bloated. Each tool serves a clear purpose, and the count is well-scoped for a music notation MCP server.

    Completeness4/5

    The tool set covers most core operations like conversion, metadata editing, transposition, and harmony analysis. Minor gaps exist (e.g., direct note editing, measure manipulation), but these are reasonable given the CLI-based approach and the server's intended scope.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    • ScanSing reads printed sheet music. Give Claude a PDF or a photo of a score and it gets back MusicXML, the format MuseScore, Sibelius, Finale and Dorico open. It is the recogniser inside the ScanSing app for choir singers, offered as a connector. Once a score is recognised, Claude can answer questions about it without recognising it again: - what the key, time signature, tempo and length are, and each part's range, clefs and lyrics; - one voice on its own, for example just the alto line of a choir piece; - the score or a part moved to another key, with notes respelled for the new key signature; - a MIDI file, one track per part, to listen to or rehearse with; - a short-lived download link to open the result in a browser or notation app. It handles PDFs up to 40 pages and PNG, JPEG, HEIC, TIFF and WebP images, can recognise selected pages of a long PDF, and can split a songbook into one MusicXML per piece. A file can be given as a web link or a small image; in Claude Code, a file on your computer is sent through a one-time upload link. Recognition spends pages from your ScanSing plan, so it is the only tool that is not read-only. Everything else works on the stored result and is free. The first connection with a new email comes with 20 free pages; paid plans start at $9 a month for 300 pages. Scores and results are deleted about an hour after recognition and are never used for training.

      https://mcp.scansing.app/mcp
    • ScoreStarling is an all-in-one AI sheet music assistant. Ask for anything to do with sheet music: transcribe a song from audio, video or a link, read a PDF or photo, add chords, change the key, make it easier, turn it into guitar TAB or jianpu, or arrange it for another instrument. Every change lands on a real score you can hear, fix and download (PDF, MIDI, MusicXML, guitar TAB, jianpu, audio). Hosted remote server with OAuth sign-in. Free accounts get monthly credits and free previews; prices are at scorestarling.com/pricing. Setup: https://scorestarling.com/mcp

      https://mcp.scorestarling.com/mcp
    • Generate AI music via the Lacuna Music API from MCP clients like Claude Desktop & Code.

      https://www.lacuna.fm/mcp
    • Convert MusicXML, MIDI, ABC, MEI and Humdrum, print sheet music, and verify every note survived.

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables musical analysis of MIDI and musicXML files using music21, providing tools for key detection, harmony, melody, rhythm, form analysis, counterpoint checking, and motif extraction.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables Claude to compose real music from chord-symbol descriptions into MIDI files and audio previews, with musicology cross-checks on every chord.
      1
      AGPL 3.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables Claude Desktop to drive FL Studio 2025 and 2026 through natural language, diagnosing and repairing mixes, configuring plugins, writing notes and chords in any scale, exporting arrangements to MIDI, and analyzing audio for tempo, key, and melody.
      MIT