npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@chrischall/musescore-mcp

v0.14.0

Published

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

Readme

musescore-mcp

CI npm license

MCP server for MuseScore — search sheet music and read score metadata from Claude. MuseScore has no public API and sits behind Cloudflare, so every request rides your signed-in musescore.com browser tab via the fetchproxy extension — Cloudflare sees a real browser session, not a Node process.

Private, personal-use server (not published to any registry). Developed and maintained by AI (Claude). Use at your own discretion.

Tools

| Tool | What it does | | --- | --- | | musescore_search | Search scores. Defaults to the "Free to view, play & download" facet (free_only=true). Returns id, title, uploader, composer, instrumentation, difficulty, page/part counts, view/save/download counts, and downloadability flags. | | musescore_get_score | One score's metadata — title, license, measures, key, parts, duration, upload/update dates — by URL or user_id + score_id. | | musescore_download | Resolve the official download URL (pdf/mid/mscz/mxl) for a free or entitled score, from the store's type_download_list. Read-only: returns the link to open in your browser (the MCP can't stream the file — see Downloads). | | musescore_score_to_pdf | Create a PDF for a score at output_path. Downloads the official PDF bytes when MuseScore exposes one; otherwise fetches the page SVG and stitches it into a PDF (pure JS — no system deps). | | musescore_healthcheck | Round-trip a public MuseScore URL through the fetchproxy bridge and report which hop failed. | | musescore_register_session / _set_active_session / _get_session_context | Session registry bookkeeping. | | musescore_svg_to_pdf | Convert local .svg / .svgz files that already exist on disk into a PDF, one file per page. Pure JS (pdfkit + svg-to-pdfkit) — no system dependencies. |

How it works

The server-rendered HTML has no result cards — MuseScore hydrates them client-side from an entity-encoded JSON store embedded in the page (its analogue of Next.js __NEXT_DATA__). The parsers recover that JSON and read the score objects directly. See docs/MUSESCORE-API.md.

Downloads

Download links live in the store's type_download_list ({type, url} for pdf / mid / mscz / mxl / mp3 …). Free scores (is_free) download fine — and they almost all report hasAccess: false, which is an entitlement flag (purchased / PRO), not the free-download signal. So the gate is is_free === true or hasAccess === true; paid scores you haven't bought are refused.

musescore_download is a resolver, not a fetcher: the download endpoint is Cloudflare-walled and 302-redirects cross-origin to presigned S3, which only a browser navigation can follow — neither a server-side fetch nor the fetchproxy bridge can. So the tool returns the official download_url (gated to free/entitled scores) for you to open in your signed-in browser; it never streams or writes the file, and never scrapes the page tiles. Full verified mechanism: docs/MUSESCORE-API.md.

Use musescore_score_to_pdf when you want the best available PDF path for a score. If MuseScore exposes a full pdf entry, the tool downloads the official PDF bytes to output_path (the same capture-redirect → presigned-S3 byte path musescore_download uses). If no full pdf format is present, it falls back to fetching the page SVG (/static/musescore/scoredata/g/<hash>/score_<n>.svg) and stitching it into output_path with pdfkit + svg-to-pdfkit (pure JS, no external binary). The hash is extracted from the h= parameter of a pdf or pdf-sample download URL.

Setup

  1. Install the fetchproxy extension and open musescore.com signed in, with the Cloudflare check cleared.

  2. Point your MCP host at the built bundle:

    {
      "mcpServers": {
        "musescore": {
          "command": "node",
          "args": ["/absolute/path/to/musescore-mcp/dist/bundle.js"]
        }
      }
    }

Development

npm install
npm run build      # tsc --noEmit + esbuild → dist/bundle.js
npm test           # vitest, mocked client, no network

No env vars required. Optional: MUSESCORE_WS_PORT (default 37149), MUSESCORE_DEBUG=1.

SVG→PDF conversion is pure JavaScript (pdfkit + svg-to-pdfkit) — no system binary or native dependency to install.

License

MIT