Unofficial Apple Music for macOS
io.github.jaminbenPublished by GitHub account jaminbenv0.3.1Updated Oct 24, 2026
Ask for a playlist. Get a real one, playing in Apple Music — no account, nothing stored.
Overview
Lets an assistant control the macOS Music app: build and edit playlists, browse the library, and play or add Apple Music catalog tracks.
- What you can do
- A local MCP server for macOS that drives the Music app through AppleScript and Apple's MusicKit. It can create, add to, reorder, rename, sort and delete playlists; search and browse your library, rate songs, mark favorites and see play history; control playback including play, pause, skip, seek, shuffle, repeat, volume and AirPlay; and search the full Apple Music catalog to play or add tracks. It is a hardened fork of an existing Apple Music MCP server, with browser and Accessibility-based capabilities removed.
- When to use it
- Worth adding when you want an assistant to act on your own Mac music library and playlists, or to search and play Apple Music catalog content, without opening a terminal. It is macOS-only and not intended for Windows or Linux.
- Requirements
- macOS 12 or later with the Music app signed in to an Apple account; macOS 14 or later for playing or adding catalog music. Install as a notarized app (Apple Silicon or Intel build) or via pipx/uv tool install of the PyPI package, then add it to an MCP client such as Claude Desktop, Claude Code, Cursor, Windsurf, Codex or VS Code. It needs a one-time macOS approval to control Music and to use Apple Music; no API key, developer account or stored password is required. An Apple Music subscription…
Installation
In SourceWeft
- Open Unofficial Apple Music for macOS in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
Unofficial Apple Music MCP
Let Claude play your music. Download, drag, double-click. That's the install.
One request. A real playlist, playing, with the explicit versions left out.
⬇ Download for Apple Silicon
·
⬇ Download for Intel
Not sure which? Apple menu → About This Mac. "Apple M1/M2/M3…" is Apple Silicon.
notarized by Apple · no terminal · no developer account ·
all downloads & checksums
Ask for music in plain English
"Build my kid a Hogwarts birthday playlist. Soundtracks only, nothing scary."
"I've worn out The Heist. What should I try next?"
"More like that Eric Ericson choir record, but skip the Christmas half."
Claude does the work in the Music app you already have. The playlist it builds is a real playlist. It syncs to your phone.
Playing or adding music you don't already own needs an Apple Music subscription. That's Apple's rule, not this server's. Everything else works without one.
Install
[The first-run setup window: Control Apple Music with AI]
You need macOS 12 or later and the Music app signed in to your Apple account. Playing or adding catalog music needs macOS 14 or later.
- Download the app for Apple Silicon, or the Intel build.
- Unzip it. Drag UnofficialAppleMusicMCP.app to your Applications folder.
- Double-click it once.
That's the whole install. No Python, no Homebrew, no Terminal. The app brings everything it needs with it.
Apple notarized these builds, so the app just opens. No "unidentified developer" warning, no right-click trick, no trip to System Settings.
Drag it to Applications first. If you open it from your Downloads folder, macOS runs it from a temporary copy that vanishes when you quit, and the background helper ends up pointing at a file that no longer exists.
The setup window then asks you three questions. You can skip any of them.
Restart the AI apps you picked, and you're done.
Building it yourself? Sign it. See From source. macOS ties the Music permission to a signature. An unsigned app looks like a brand new app on every rebuild, so it will ask for permission again each time.
Why it asks for so little
Software can reach whatever you let it reach. That matters more than usual here, because this software takes its orders from an AI.
The most capable Apple Music server I found needs a macOS permission called Accessibility. The name misleads. It has nothing to do with screen readers or assistive technology. It lets one app drive another: type keystrokes, click buttons, read what's on your screen.
macOS will not limit it to one app. You grant it for everything or not at all.
So a music server holding that permission can also type into your email. And it takes its instructions from a model reading text nobody has vetted: track names, playlist titles, whatever it just searched. A booby-trapped playlist title becomes a keystroke.
This fork deleted that code. It asks for three things instead:
That's the whole list, and a test suite fails the build if any of it creeps back.
It still plays the entire Apple Music catalog. Most servers pay for that with the permission above. This one goes through Apple's own MusicKit, signed with the app's identity: one approval box, no developer account, and no password or key stored anywhere on your Mac.
"Secure" is the goal, not a certificate. Nobody independent has audited this. The claims worth trusting are the ones a test can check, and those are listed below.
Why an app instead of a command
macOS blames the parent. When your AI app launches a helper program, the permission lands on the AI app, not the helper. The usual setup therefore hands "control Music" to your entire terminal, and to everything you ever run from it.
This app splits in two instead:
The shim talks to Claude and cannot touch Music. The helper owns the permission and is started by macOS itself. You get one row in System Settings you can switch off, and your terminal gets nothing. docs/PERMISSIONS.md has the details.
What it will never do
Every row is a test in tests/test_capability_invariants.py,
running as its own CI job. Deleting a subsystem is a one-time event. Keeping it
deleted is a property.
For developers
A hardened fork of epheterson/applemusic-mcp. Upstream does more and always will: Windows and Linux, the Chrome and Safari web players, and the Up Next queue, which lived inside the web player and could not survive its removal. This fork trades those for a smaller blast radius and an installer your relatives can use.
With pip, pipx or uvx
The wheel carries the same signed MusicKit helper the app does, so this is a full install, not a reduced one.
Every release also has the wheel attached with checksums, if you would rather verify a file first.
There's no setup window on this path, so two steps are yours.
1. Add it to your MCP client. For Claude Desktop, in
~/Library/Application Support/Claude/claude_desktop_config.json:
For Claude Code: claude mcp add unofficial-apple-music -- secure-applemusic-mcp serve.
Other clients take the same command in their own config file. Use the full path
if it isn't on your client's PATH, since GUI apps often don't inherit a shell
PATH. which secure-applemusic-mcp prints what to paste.
2. Approve Apple Music once. Restart the client, then ask it to run
config(action='signin'). A native prompt appears and nothing is stored. Until
you do, everything works except adding music you don't already own.
The wheel is macOS-only and covers both chips. pip refuses to install it
elsewhere rather than hand you a build with no MusicKit.
From source
install.sh builds a private 0700 virtualenv from the checkout you're
standing in. Nothing is piped from the network into a shell. Plain
./install.sh skips the bundle and sets up the simpler unscoped stdio server.
Without the bundled MusicKit helper, a source checkout falls back to an optional
Apple Developer token (login --dev), which also unlocks richer catalog
metadata, charts and recommendations.
Sharing a build you made
The release
is notarized, so it opens on anyone's Mac with nothing to click past. Just send
them the right one: -arm64 for Apple Silicon, -x86_64 for Intel.
Your own build is different. Self-signed is not notarized, macOS refuses it on first open, and the old right-click trick no longer works. Your friend would need:
System Settings → Privacy & Security → scroll down → Open Anyway
Self-signing still earns its keep, because it gives the app a stable identity and the Music permission survives rebuilds.
To hand yours over as cleanly as the release, sign with a Developer ID
Application certificate and notarize. make release runs the whole sequence,
including stapling the ticket into the bundle. (A zip made before stapling
still needs the network to validate, which is the usual reason a "notarized" app
gets refused on someone else's machine.)
Notary credentials are documented at the top of
tools/notarize.sh. It needs a paid Apple Developer
account ($99/yr). Nothing else about the app changes.
Tracking upstream
MIT, © Eric Pheterson, retained in full. Forked at 0acf697; upstream history
is preserved in git and in CHANGELOG-upstream.md.
We take upstream security and correctness fixes to the modules we kept, and ignore feature commits touching deleted subsystems. The deletions are large, so cherry-pick by file rather than merging:
The capability tests are the safety net for a cherry-pick that would drag a deleted capability back in.
Uninstall
Drag the app to the Trash, then paste this into Terminal:
Remove the unofficial-apple-music entry from Claude Desktop's config; a backup
sits next to it. To clear the cache and audit log too, delete
~/.config/applemusic-mcp and ~/.cache/applemusic-mcp. From a source install:
./install.sh --uninstall.
Never give this the Accessibility permission. It cannot use it. If anything asks you for it, that's a bug. Please report it.
Security
SECURITY.md has the threat model, what is and isn't reachable, and the risks that remain: the Music app itself is not sandboxed, prompt injection is real, and this server has no sandbox of its own.
Three problems inherited from upstream are fixed here: an Apple Music link check
that could be fooled, a path-traversal guard on the exports:// resource that
did nothing, and destructive operations that acted on a substring guess.
CHANGELOG.md has the details
and DISCLOSURE.md tracks how they were reported upstream.
Questions
Do I need an Apple Developer account, an API key, or a .p8 file?
No. Apple's MusicKit signs each request using the app's own signature plus your
one-time approval. There is no key to make, paste or store. The optional
developer token only raises Apple's rate limit for bulk jobs like importing a
huge playlist.
Do I need an Apple Music subscription? Not for your own library, your playlists, or local playback. Yes for playing or adding anything from Apple's catalog.
Does it work on Windows or Linux? No. It drives the Mac Music app directly. Use upstream if you need those.
Which AI apps does it work with? Claude Desktop, Claude Code, Cursor, Windsurf, Codex and VS Code. The setup window finds the ones you have and configures them for you.
Does anything get stored or sent anywhere? No password is stored, because there isn't one. The app talks to Apple and to nothing else. No tracking, no third-party service, no account with this project.
What will macOS ask me for? Two things: permission to control the Music app, and permission to use Apple Music. It never asks for Accessibility, never drives a browser, and never sends fake clicks.
How do I update it? Download the latest zip, replace the app, restart your AI app. The download links above always point at the newest release.
Is this made by Apple? No. It's an independent project, not affiliated with, endorsed by or supported by Apple. "Apple Music" and "MusicKit" are Apple's trademarks.
Other Apple Music MCP servers
Full write-up with sources in docs/COMPARISON.md. The short version:
Worth knowing if you're choosing: kennethreitz's server drops tool parameters straight into AppleScript without escaping them, so a quote mark in a track or playlist name breaks out of the string. Reported with a fix as issue #8.
Source: README.md at commit 89cfc22
Tools
0Version history
1- v0.3.1LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts