musescore-mcp

v1.3.1
io.github.chrischall/musescore-mcp Checked 10 hours ago Published 24 days ago

MuseScore for Claude — search sheet music and read score metadata via your signed-in browser

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

musescore_get_score Get MuseScore score metadata

Fetch a single MuseScore score page and return its metadata: title, uploader/arranger, original composer(s), license, page/part counts, duration, measures, key, privacy, and upload/update dates. Identify the score by either a url (a musescore.com score URL or /user/<id>/scores/<id> path) or a user_id + score_id pair. Read-only; does not download the score (free-download eligibility is decided per-account at download time).

ParameterTypeDescription
score_idstringNumeric score id (with user_id).
urlstringA musescore.com score URL or /user/<id>/scores/<id> path. Provide this OR user_id + score_id.
user_idstringNumeric uploader id (with score_id).

musescore_score_to_pdf Resolve or create a MuseScore score PDF

Resolve or create a PDF for a MuseScore score. If the score exposes an official PDF download and is free (is_free) or accessible (hasAccess), downloads the official PDF bytes to output_path (written: true, bytes, outputPath). Otherwise (incl. paid scores, or when the official download fails) fetches the page-1 render SVG — the score’s public thumbnail — and stitches it into output_path. The score is identified by a url (a musescore.com score URL or /user/<id>/scores/<id> path) or a user_id + score_id pair. Requires a signed-in MuseScore session. Every result leads with status: "complete"…

ParameterTypeDescription
dpinumberDeprecated/ignored — SVG-stitch conversion is now vector (no rasterisation).
modestringauto (default): the 3-tier fallback chain — official PDF (if entitled) → SVG-stitch PDF → PNG render → structured "gated". The result reports which tier won via `via` (official_pdf | svg_pdf |…
output_pathstringLocal .pdf path to write (defaults to "<title>.pdf"). Parent directories are created. Ignored behind a remote bridge, where the file is returned inline. Must be inside MUSESCORE_OUTPUT_DIR (default ~/…
pagesarray1-based page numbers for SVG-stitch mode. Only page 1 is available locally (pages 2+ are gated); requesting any other page errors. Ignored when an official PDF is downloaded. Defaults to page 1.
score_idstringNumeric score id (with user_id).
urlstringA musescore.com score URL or /user/<id>/scores/<id> path. Provide this OR user_id + score_id.
user_idstringNumeric uploader id (with score_id).

musescore_fetch_svgs Fetch a score’s page SVGs to a directory

Download a score’s per-page render SVGs (from musescore.com/static) into output_dir as page_<n>.svg. Pairs with musescore_svg_to_pdf. On a hosted server nothing is written and output_dir is ignored: the result lists files[] with a download url and a blobKey per page — pass the blobKeys to musescore_svg_to_pdf as svg_blob_keys. Page 1 is always rendered (it is the score’s public thumbnail, so paid scores work too); multi-page scores succeed and the result carries pagesRendered/pagesTotal/truncated (truncated:true means pages 2+ are gated behind a protected API).

ParameterTypeDescription
output_dirstringLocal directory to write page_<n>.svg into. Created if missing. Required on a local install; ignored on a hosted server. Must be inside MUSESCORE_OUTPUT_DIR (default ~/Downloads); a relative path is r…
pagesarray1-based page numbers to fetch. Only page 1 is available locally (pages 2+ are gated behind a protected API); requesting any other page errors. Defaults to page 1.
score_idstringNumeric score id (with user_id).
urlstringA musescore.com score URL or /user/<id>/scores/<id> path. Provide this OR user_id + score_id.
user_idstringNumeric uploader id (with score_id).

musescore_download Resolve or download an official MuseScore file

Get the official MuseScore file for a free or already-entitled score (pdf, mid, mscz, or mxl). Identify the score by a url (a musescore.com score URL or /user/<id>/scores/<id> path) or a user_id + score_id pair. Without output_path it returns the official download URL for you to open in your signed-in browser tab; with output_path it downloads the actual file bytes (incl. multi-page official PDF) to that local path. For PDF downloads, setting fallback_svg=true will render page 1 from its SVG when the official download is likely blocked (not free, no hasAccess) or fails (403, S3 error). If a sc…

ParameterTypeDescription
fallback_svgbooleanIf true and the official PDF download is likely blocked (not free, no hasAccess) or fails (403, S3 error), fall back to rendering page 1 as a PDF from its SVG thumbnail. Defaults to false. Only applie…
formatstringDownload format. Defaults to pdf.
output_pathstringIf set, download the file bytes for the chosen format to this local path (parent dirs created). Omit to just resolve the official URL. Must be inside MUSESCORE_OUTPUT_DIR (default ~/Downloads); a rela…
score_idstringNumeric score id (with user_id).
urlstringA musescore.com score URL or /user/<id>/scores/<id> path. Provide this OR user_id + score_id.
user_idstringNumeric uploader id (with score_id).

musescore_healthcheck Verify the ContextMint Bridge connection end-to-end

Round-trips a small public musescore.com URL (/robots.txt) through ContextMint Bridge (your signed-in browser tab) and returns diagnostics: the bridge's role (host/peer/null), port, version, the extension link (linked / pair pending / not attached / never answered), the elapsed round-trip time, and a plain-English hint distinguishing 'bridge never came up' from 'extension not connected' from 'this browser can't serve a capability' from 'real musescore.com-side problem'. Read-only, no auth required. Also reports which browser the bridge is paired with, whether official downloads can work there,…

musescore_svg_to_pdf Convert SVG files to PDF

Convert SVG or SVGZ pages into a PDF, one input file per page. Pass exactly one of: svg_paths (local files on this machine — local installs only), svg_blob_keys (the files[].blobKey values musescore_fetch_svgs returned on a hosted server), or svg_files (inline base64). Locally the PDF is written to output_path; on a hosted server it is returned as a download link (fileUrl) and output_path is ignored. Does not fetch files from MuseScore or any remote URL.

ParameterTypeDescription
dpinumberDeprecated/ignored — conversion is now vector (no rasterisation).
output_pathstringLocal .pdf path to write (required on a local install). Parent directories are created. On a hosted server only its file name is used, for the download. Must be inside MUSESCORE_OUTPUT_DIR (default ~/…
svg_blob_keysarrayHosted server: the files[].blobKey values from musescore_fetch_svgs, in page order, passed exactly as returned.
svg_filesarraySVG pages as inline base64, in page order: {filename (ending .svg or .svgz), contentBase64}.
svg_pathsarrayLocal .svg or .svgz file paths, in page order. Must be inside MUSESCORE_OUTPUT_DIR (default ~/Downloads), e.g. the paths musescore_fetch_svgs returned. Not available on a hosted server.

musescore_register_session Register a signed-in MuseScore session

Register (or refresh) an authenticated MuseScore session keyed by signed-in account identity. Re-registering the same `account_identity` updates the existing session rather than creating a duplicate. Returns the `session_id` to use when routing per-tool calls. The first registered session becomes the default `active_session_id`. Pass `mark_active: true` to make the newly-registered session active in the same call.

ParameterTypeDescription
account_identity *stringCaller-supplied identifier for the signed-in account (typically the saved-account email).
auth_expires_atstringOptional ISO timestamp at which the session expires.
mark_activebooleanWhen true, immediately make the newly-registered session the active one.

musescore_set_active_session Set the active MuseScore session

Switch which registered session subsequent tool calls route through by default. Pass a `session_id` previously returned by `musescore_register_session`. Tools that accept an explicit `session_id` parameter override this default per-call.

ParameterTypeDescription
session_id *stringSession id to make active.

musescore_get_session_context List all registered MuseScore sessions

Return the full set of registered sessions plus the current `active_session_id`. When no sessions are registered, `sessions` is empty and `active_session_id` is null.