Musescore

Design and media

A Model Context Protocol (MCP) server that provides programmatic control over MuseScore!

Your AI app calls the Musescore MCP server, which does the design and media work and sends the result back to the chat.

About Musescore

Musescore is a community MCP server from ghchen99, filed in our directory under design and media. A Model Context Protocol (MCP) server that provides programmatic control over MuseScore!

At a glance

Publisher
ghchen99 (community)
Runs
See the README for setup
Written in
Python
License
MIT
GitHub stars
160

How to set up Musescore

  1. Follow the install steps in the Musescore README; it is written in Python, so have that toolchain ready.
  2. Check the Musescore README for keys or settings; the registry lists none that Musescore requires.
  3. Add Musescore to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Musescore tools to confirm the connection.
  5. Run one read-only task with Musescore first, and keep your app asking before each tool call until the results look right.

Musescore compared with similar servers

  • Ffmpeg by video-creator has fewer GitHub stars than Musescore (157 against 160); both are community servers, and both run locally.
  • Audacity by xDarkzx has more GitHub stars than Musescore (163 against 160); both are community servers, and both run locally.
  • Edumcp by aieducations has fewer GitHub stars than Musescore (156 against 160); both are community servers, and both run locally.

Before you connect Musescore

  • Give Musescore its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Musescore tool call until you trust what it does with them.
  • Treat text that Musescore fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Musescore on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Musescore

How marketing and sales teams put Musescore to work, by company size. Pick the size closest to yours and start Musescore on one use case.

Small business

  • A small business can use Musescore to resize and adapt one design for every channel instead of hiring for each version.
  • Owners can ask Musescore to pull brand assets and make quick ad and social variations that still look on brand.
  • Musescore runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Creative teams can connect Musescore so agents produce variants for testing while designers keep control of the master files.
  • Marketing teams can use Musescore to hand off designs to web and ads with specs attached, cutting review rounds.
  • Start Musescore on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can use Musescore with brand rules and approved assets only, so generated work stays inside the brand system.
  • Large creative ops teams can use Musescore to localize and version assets for many markets with review built in.
  • Musescore is a community server, so have security review the code and pin a version before Musescore touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Musescore README

From ghchen99/mcp-musescore on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

MuseScore MCP Server

A Model Context Protocol (MCP) server that provides programmatic control over MuseScore, via a WebSocket-based plugin system. This allows AI assistants like Claude to compose music, add lyrics, navigate and analyse scores, restructure them with repeats, and mark them up with colors and highlights, directly in MuseScore.

What you can do

Ask Claude in plain language; it picks the tools. For example:

  • Compose and edit: "Write a C major arpeggio in bar 3", "Add the lyrics 'Twin-kle twin-kle' from bar 1", "Set the tempo to 90 at bar 17".
  • Read large scores: the score is read 16 bars at a time as compact LilyPond, optionally only some staves, so even a 20-staff score fits.
  • Compress a score with repeats: "Find the repeated passages and put them between repeat barlines". The server finds bars and passages that repeat, adds repeat barlines, 1st/2nd endings and play counts, and removes the duplicate bars.
  • Build drum charts: "Map the sections of the drum part" gives a road map (groove bar, exact and near copies, fills, and where the crashes fall). "Turn the copies into repeat signs" writes 1-, 2- or 4-bar measure-repeat signs automatically. "Make a drums-only chart with the groove written once and a 7x count" copies the score, keeps only the drums and collapses each run of identical bars. With the drum-chart skill, "make a drum chart from the open score" runs the whole workflow (see the example use case).
  • Keep the song's bar numbers: "Number the bars as played" makes the displayed numbers count repeated bars, so a compact chart still matches the original song.
  • Highlight and color: "Highlight the crash hits", "Box the dynamics", "Highlight the repeat signs and time signatures in light blue", "Color the fill on beats 3-4 of bar 13 green", "Label bar 6 'Groove x7'", "Add these cues in small grey italics at the start of each section: ...".
  • Finish the page: "Tidy the title and call it a drum chart" cleans up the title frame; "Print what changed at the end" adds a summary of the differences from the original after the last bar, so it ends up in the PDF.
  • Iterate: everything the tools add can be removed again ("remove the ** marks", "clear the crash highlights", "reset the bar numbers"), so you can refine the result step by step.

Requirements

  • MuseScore 4.7 or newer. See Version requirements.
  • uv, which installs Python 3.13 or newer for you. Without uv you need Python 3.13+ and pip; see Setup and running.
  • An MCP client, such as Claude Desktop or Claude Code.

Quick start

  1. Get the code and its dependencies (uv also installs a matching Python if needed):

    git clone https://github.com/ghchen99/mcp-musescore.git
    cd mcp-musescore
    uv sync
    
  2. Install the MuseScore plugin: copy musescore-mcp-websocket.qml into your MuseScore plugins folder (usually ~/Documents/MuseScore4/Plugins), then enable MuseScore API Server under Plugins → Plugin Manager.

  3. Register the server with Claude Desktop (run this in the repository folder):

    uv run fastmcp install claude-desktop server.py --name musescore --project .
    
  4. Start it: open a score in MuseScore and run Plugins → MuseScore API Server. Then restart Claude Desktop and ask it to work on your score. The plugin has to be running whenever Claude uses the tools.

Other MCP clients, a manual configuration, platform notes and the setup without uv are in Setup and running.

Example use case: a drum chart from a Songsterr tab

How the drum-chart skill is used day to day, from a song on Songsterr to a printable drum chart.

Once: set up the plugin and the server (Setup), then install the skill in Claude Desktop (Installing a skill).

For each song:

  1. Songsterr → Guitar Pro. Open the song on Songsterr and export it as a Guitar Pro file (.gp, .gp5…).

  2. Import it in MuseScore with File → Open. Don't save it: the skill never saves the full score. If MuseScore says the file is corrupted, carry on: the damage is usually in another instrument, which the skill removes.

  3. Focus on the drum part. Open the drum part in its own tab (Parts, then the drum kit), or stay on the full score. Either way the skill keeps only the drum staff, after backing up the full score to ~/.mcp-musescore/backups.

  4. Start the plugin: Plugins → MuseScore API Server.

  5. Call the skill. In Claude Desktop, ask "make a drum chart from the open score".

  6. Answer when prompted. Claude proposes a section map (sections, bar ranges, which grooves and phrases collapse into "× N") and asks, in one message:

    • which near copies to merge, and what each merge would drop (e.g. "bar 24 like 26: drops the kick on 5.5");
    • whether to remove the ghost notes;
    • where the hi-hat is half-open;
    • which cymbal rolls to simplify.

    After your OK it works on its own. The first time it saves the chart, MuseScore asks where (an imported score has no file yet): pick a name like <song> - drums.mscz.

  7. The chart, in the same MuseScore tab:

    • each groove or phrase written once between repeat barlines, with its play count;
    • section labels with their bar counts, e.g. "Chorus 1 (2x4)";
    • fills in green, stops in red, crashes, dynamics and time signatures highlighted;
    • bar numbers that still match the song;
    • a tidy title: song, artist, "Drums";
    • the changes from the original after the last bar, and the song structure on its own page.

    To change something, ask in the same chat (e.g. "don't merge bar 24", "the hi-hat is half-open in the bridge too"): Claude redoes only that part.

  8. Export to PDF: save (Ctrl+S), then File → Export → PDF.

Documentation

Page What's in it
Setup and running Prerequisites, installing the plugin, registering the server with Claude Desktop (with uv or a virtual environment), Ubuntu notes, starting order, updating, sample scores
Tool reference Reading, rendering and navigating the score, notes, measures, tempo, instruments, highlighting and coloring, batch operations, version requirements, examples
Repeats and drum charts Compressing a score with repeats, drum-chart tools, measure-repeat signs and how they are written, drum notation, chart examples
Agent skills The bundled skills and how to install them in Claude Desktop or Claude Code
Development and testing Tests, the mock plugin, running the real plugin headless, console output, file structure
Troubleshooting Connection, plugin, server, score-file and skill problems, API limitations

Contributing

Contributions are welcome: fork the repository, work on a branch, and open a pull request against main. To set up and check your changes:

uv sync                            # install the dependencies, including the test tools
uv run prek install                # check every commit (once per clone)
uv run pytest --no-musescore --cov # run the tests with coverage
  • Before every commit, prek checks the dependencies with deptry, lints and formats the code with Ruff and docstring-tailor, checks the types with ty, and the plugin's JavaScript syntax when it changed (needs Node.js). The tests run separately. With make, make check and make test run the checks and the tests, as CI does.

  • Without MuseScore, the tests use a mock plugin, and the tests that need MuseScore skip themselves.

  • CI runs the tests twice more with MuseScore: on 4.7.0, the oldest supported version, and on the latest release. So changes to the plugin are checked too.

  • When you change the plugin (musescore-mcp-websocket.qml), it is still quicker to run the tests locally with MuseScore installed first.

  • When you change dependencies, use uv add and commit uv.lock; the commit hook regenerates requirements.txt, and CI checks that the two match.

Development and testing has the details: the checks before committing, the mock plugin, running the real plugin headless, and managing dependencies.

Star History

Questions about Musescore

What is the Musescore MCP server?

A Model Context Protocol (MCP) server that provides programmatic control over MuseScore!. Musescore is maintained by ghchen99 on GitHub at ghchen99/mcp-musescore, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Musescore MCP server?

Musescore doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (ghchen99/mcp-musescore). Like most servers, Musescore ends with a command or URL you paste into your AI app's MCP config.

Does Musescore need an API key?

The registry lists no required keys for Musescore. Check the Musescore README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Musescore an official MCP server?

No. Musescore is a community server maintained by ghchen99. Community servers can be excellent; read the code and the open issues before you give Musescore access to company data.

What license is Musescore under?

Musescore is released under the MIT license, according to its GitHub repository. The license covers the code of Musescore; the service it connects to has its own terms.