EA

epheterson/applemusic-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

139 stars 26 forks 质量 85 趋势 15MIT

epheterson/applemusic-mcp 是从 https://github.com/epheterson/applemusic-mcp. 导入的 MCP 候选服务器。

概览

epheterson/applemusic-mcp 是从 https://github.com/epheterson/applemusic-mcp. 导入的 MCP 候选服务器。

概述(AI 翻译)

Apple Music 的 MCP 服务器。它允许任何 MCP 客户端(Claude、Cursor、Cline、Windsurf)控制你的播放列表、库、目录、发现、播放和 Up Next 队列。支持 macOS、Windows 和 Linux。

Mac 或 Apple Music 订阅就是你所需要的全部。 四个引擎,每次调用选择:Mac 上的 Music.app 和 Safari,任何操作系统上的 Apple Music API 和 Chrome。

特色

服务器后方有四个引擎。原生通过AppleScript驱动macOS的本地设备 Music.app。API在任何操作系统上使用Apple Music的网页API(amp-api.music.apple.com)。Safari在macOS上驱动你登录的Safari的MusicKit(DRM原生,零安装)。Chrome运行本地Google Chrome窗口,使用MusicKit,用于任何操作系统的DRM音频。一个mode偏好选择引擎——auto(默认)混合了两者的优点:macOS上原生播放 Music.app,Safari用于下一个队列,API用于数据,Chrome离Mac。将一个固定在native / safari / chrome / api中,或者用engine=覆盖单次播放/队列调用。下表中,Browser 栏涵盖了 Safari 和 Chrome 的网页播放器。✓ 支持,✗ 在该引擎上不支持,— 不适用。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

applemusic-mcp

MCP server for Apple Music. It gives any MCP client (Claude, Cursor, Cline, Windsurf) control of your playlists, library, catalog, discovery, playback, and the Up Next queue. Runs on macOS, Windows, and Linux.

A Mac or an Apple Music subscription is all you need.

“Create a playlist called Road Trip and fill it with upbeat 90s alternative.” · “Play my workout playlist on shuffle, and queue up Bohemian Rhapsody next.” · “What have I been listening to lately, and what’s topping the charts?”

Choose how much it can reach

You decide what this server may touch, in your MCP client’s config. The assistant can’t change it, and tools that need more than you allowed aren’t offered to it at all.

--level It can reach Good for
music Only the Music app on your Mac. No network, no browser. Your library, playlists, playback, ratings, AirPlay
api + Apple’s music service over the internet Searching and adding from the full catalog, recommendations, Windows and Linux
web + a Safari or Chrome web player The Up Next queue, and playback off the Mac
full Everything, including clicking inside the Music app Every feature, nothing to decide
--allow-ui (with any level) + clicking inside the Music app (macOS Accessibility) Playing catalog songs with no sign-in

Start with music and move up when you want a feature that needs more. Leaving --level off is the same as full for now, as before 0.21.

For a Mac app with a guided setup instead of a terminal command, consider the community fork secure-applemusic-mcp-for-osx.

Features

What each engine can do, and the level that turns it on. ✓ supported, ✗ not possible there, — not applicable.

Capability Music.app (macOS) · music Apple Music API (any OS) · api Web player (Safari / Chrome) · web
Catalog search / browse ✓ ✓ (+ tokenless resolve) —
Recommendations / charts / suggestions ✗ ✓ —
Library search / browse ✓ ✓ —
Genre search ✓ ✗ —
Recently played / added ✓ ✓ —
Add catalog → library ✓ ✓ ✓ (in-page POST)
Remove from library ✓ ✓ —
Love / dislike ✓ ✓ —
1–5 star ratings ✓ ✗ ✗
Favorites list ✓ ✗ ✗
Playlist create / add / remove / rename ✓ ✓ —
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "Apple Music": { "command": "applemusic-mcp", "args": ["serve", "--level", "music"] } } }