Unofficial Apple Music for macOS
io.github.jaminben由 GitHub 帳號 jaminben 發布v0.3.1更新於 Oct 24, 2026
Ask for a playlist. Get a real one, playing in Apple Music — no account, nothing stored.
概覽
讓助理控制 macOS 音樂 App:建立與編輯播放清單、瀏覽資料庫,並播放或加入 Apple Music 目錄中的曲目。
- 可以做什麼
- 這是一個針對 macOS 的本地 MCP 伺服器,透過 AppleScript 與 Apple 的 MusicKit 驅動音樂 App。它可以建立、加入、重新排序、重新命名、分類與刪除播放清單;搜尋與瀏覽資料庫、為歌曲評分、標記喜愛以及查看播放紀錄;控制播放,包括播放、暫停、跳過、定位、隨機、重複、音量與 AirPlay;還可以搜尋整個 Apple Music 目錄並播放或加入曲目。它是既有 Apple Music MCP 伺服器的加固分支,移除了瀏覽器與以輔助使用為基礎的能力。
- 適用情境
- 當你希望助理直接操作 Mac 上的音樂資料庫與播放清單,或搜尋並播放 Apple Music 目錄內容,而不想開啟終端機時,值得加入。它僅支援 macOS,不適用於 Windows 或 Linux。
- 執行需求
- 需要 macOS 12 或更新版本,且音樂 App 已登入 Apple 帳號;播放或加入目錄音樂需要 macOS 14 或更新版本。可透過已公證的 App(Apple 晶片或 Intel 版本)安裝,或以 pipx/uv 安裝 PyPI 套件,然後加入 Claude Desktop、Claude Code、Cursor、Windsurf、Codex 或 VS Code 等 MCP 用戶端。需要一次性批准 macOS 控制音樂與使用 Apple Music 的權限;不需要 API 金鑰、開發者帳號或儲存的密碼。播放或加入目錄音樂需要 Apple Music 訂閱。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Unofficial Apple Music for macOS,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
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.
來源:README.md,提交 89cfc22
工具
0版本歷史
1- v0.3.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分