musescore-mcp
v1.3.1MuseScore 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_search Search MuseScore sheet music
Search musescore.com for sheet music. Returns score cards with id, title, uploader/arranger, original composer(s), instrumentation, page/part counts, duration, upload date, view/save counts, difficulty, PRO/Official badges, and MuseScore's listedFree/listedDownloadable catalogue flags (these do NOT guarantee a free PDF for your account). Defaults to MuseScore's 'Free to view, play & download' facet (free_only=true); set free_only=false to search the whole catalog (most of which is paywalled for download). The free facet narrows results but does NOT guarantee a free account can download a given…
| Parameter | Type | Description |
|---|---|---|
query * | string | Free-text search query. |
complexity | string | Difficulty facet. |
free_only | boolean | Restrict to the "Free to view, play & download" facet. Defaults to true. |
instrument | string | Instrument facet: a supported instrument name (e.g. piano, guitar, violin, flute, trombone, baritone, tuba, organ, bassoon, saxophone alto, euphonium, cornet, accordion, soprano, alto, voice), or a Mu… |
page | integer | 1-based result page. Defaults to 1. |
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).
| Parameter | Type | Description |
|---|---|---|
score_id | string | Numeric score id (with user_id). |
url | string | A musescore.com score URL or /user/<id>/scores/<id> path. Provide this OR user_id + score_id. |
user_id | string | Numeric 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"…
| Parameter | Type | Description |
|---|---|---|
dpi | number | Deprecated/ignored — SVG-stitch conversion is now vector (no rasterisation). |
mode | string | auto (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_path | string | Local .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 ~/… |
pages | array | 1-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_id | string | Numeric score id (with user_id). |
url | string | A musescore.com score URL or /user/<id>/scores/<id> path. Provide this OR user_id + score_id. |
user_id | string | Numeric 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).
| Parameter | Type | Description |
|---|---|---|
output_dir | string | Local 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… |
pages | array | 1-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_id | string | Numeric score id (with user_id). |
url | string | A musescore.com score URL or /user/<id>/scores/<id> path. Provide this OR user_id + score_id. |
user_id | string | Numeric 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…
| Parameter | Type | Description |
|---|---|---|
fallback_svg | boolean | If 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… |
format | string | Download format. Defaults to pdf. |
output_path | string | If 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_id | string | Numeric score id (with user_id). |
url | string | A musescore.com score URL or /user/<id>/scores/<id> path. Provide this OR user_id + score_id. |
user_id | string | Numeric 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.
| Parameter | Type | Description |
|---|---|---|
dpi | number | Deprecated/ignored — conversion is now vector (no rasterisation). |
output_path | string | Local .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_keys | array | Hosted server: the files[].blobKey values from musescore_fetch_svgs, in page order, passed exactly as returned. |
svg_files | array | SVG pages as inline base64, in page order: {filename (ending .svg or .svgz), contentBase64}. |
svg_paths | array | Local .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.
| Parameter | Type | Description |
|---|---|---|
account_identity * | string | Caller-supplied identifier for the signed-in account (typically the saved-account email). |
auth_expires_at | string | Optional ISO timestamp at which the session expires. |
mark_active | boolean | When 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.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | Session 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.