Skip to main content
Glama

Apple Music MCP Curator

网易云(NCM)公开预览:简体中文使用说明。

Apple Music MCP — natural-language playlists grounded in Apple Music

Tests Container Release PyPI MCP Registry Python 3.10+ License: MIT Glama quality score

English | 简体中文 | 繁體中文 | 日本語 | 한국어 | Español | Português do Brasil | Deutsch | Français

Deep playlist curation for Apple Music: describe a feeling, scene, era, listening purpose, or sound; your agent grounds the selection and shapes its flow into a satisfying listening experience. You define any narrative beats; without that request, no story arc is imposed.

See a 12-track curation demo: 22 grounded candidates become a deliberately requested three-act story—and show why a lower optimizer cost can make a playlist worse. It is one possible shape, not a default template.

Pure Python standard library — no pip install required to run, and no Apple Developer Program membership needed. Requires Python 3.10+ and works on Windows / macOS / Linux.

The primary interface is the local am-mcp stdio server. The language model already running in your MCP client interprets the brief and chooses candidates; this project searches the Apple Music catalog, resolves exact tracks, and performs account operations. There is no bundled model, LLM API key, artist list, or fixed theme. The CLI remains available for login, diagnostics, scripting, audits, and advanced sequencing.

  understand  →  curate  →  ground  →  sequence with intent  →  dry-run  →  create

Why this project

  • The brief stays semantic. The host LLM reasons directly about imagery, mood, lyrical angle, era, cultural context, contrast, and the role of each song. It is not reduced to a handful of user-supplied sliders or an opaque theme-fit number.

  • Selection and sequencing stay separate. The model decides what belongs; measured BPM, key, energy, valence, and loudness can diagnose transitions or refine flow within beats you specify— otherwise, no global arc is imposed.

  • Every candidate is grounded. Catalog resolution catches missing tracks, duplicates, wrong artists, and suspicious live/remastered versions before the dry run and final create step.

  • Listening evidence remains evidence. Replay history, recent plays, dates, and play counts can inform curation without silently becoming an algorithmic definition of the user's taste.

  • Local and private by design. The server runs on your machine; credentials stay in the local app config, and there is no bundled model, telemetry service, or extra LLM API key.

  • Portable MCP stdio. Works with Codex, Claude, Cursor, VS Code/Copilot, Gemini CLI, Windsurf, Cordis/DSH, Harness, and other clients that can launch a local stdio server.


Related MCP server: applemusic-mcp

Quick start

Recommended — install the MCP stdio service:

pip install apple-music-playlists
am-playlist status
am-playlist login       # one-time Apple ID sign-in

Already use uv? Run the published package without a permanent install:

uvx --from apple-music-playlists am-playlist status
uvx --from apple-music-playlists am-playlist login
uvx --from apple-music-playlists am-mcp

For an MCP client, the equivalent Registry-aligned configuration is:

{ "mcpServers": { "applemusic": { "command": "uvx",
    "args": ["--from", "apple-music-playlists", "am-mcp"],
    "env": { "PYTHONIOENCODING": "utf-8" } } } }

Register am-mcp in the client. The common configuration shape is:

{ "mcpServers": { "applemusic": { "command": "am-mcp",
    "env": { "PYTHONIOENCODING": "utf-8" } } } }

Then describe the result, not the implementation:

Create a 25-track late-night driving playlist: atmospheric alternative R&B and electronic, mostly from the last ten years, no live versions, with a calm landing.

Clients with MCP Prompt support can select create_playlist_from_description. In every other client, send the same request in chat: the server instructions and typed tools expose the same status → candidate pool → catalog grounding → direct comparison → dry-run → create workflow.

From a clone (nothing to install):

git clone https://github.com/Z-Han-Z/apple-music-playlists.git
cd apple-music-playlists

python am_playlist.py status     # auto-fetches the developer token
python am_playlist.py login      # one-time Apple ID sign-in (~6 months validity)

python am_mcp_server.py             # register this absolute script path in the MCP client

Installation also puts the CLI and MCP commands on your PATH:

am-playlist status      # the CLI
am-playlist login       # one-time Apple ID sign-in
am-mcp                  # the MCP stdio server

For development, pip install -e . from a clone makes edits take effect without reinstalling.

See SETUP.en.md for the credential walkthrough (three ways to get the user token, including a zero-dependency one).


A real curation demo: A Machine Dreams It Is Human

This is deliberately harder than “make me a workout playlist.” The brief asks music to carry a plot, and some of its constraints cannot be expressed as tempo or mood sliders:

Build a 12-track, three-act story in which a machine wakes in a city, mistakes attention for intimacy, asks to be touched, becomes vulnerable, and sees dawn. Cross electronic music and art pop from the late 1970s to the present; use one track per artist, studio recordings only, and let the voices become progressively more human. The ending must feel quiet and earned, not merely low-energy.

The run below used the public US Apple Music catalog on 2026-09-23. It did not read or write a private library.

22 LLM-proposed candidates
└─ 22 catalog matches returned exact title, artist, album, date, ISRC, and version metadata
   ├─ rejected: “Open Eye Signal (Mixed)” — resolved to a 2025 DJ Mix, not the studio cut
   ├─ rejected: “Deeper Understanding (2018 Remaster)” — not the requested original recording
   └─ 12 final selections

Final create dry-run:       12/12 matched; no write performed
Audio-feature coverage:     12/12 usable (100%)
Flow cost, narrative locks: 44.14 → 41.14

Each title below opens the exact US catalog recording returned by the resolver, so the sequence can be auditioned rather than taken on trust.

Act

Grounded order

What the sequence is doing

I — Boot

The Robots — KraftwerkTechnopolis — Yellow Magic OrchestraKid A — Radiohead

A body, then a city, then an unstable first-person voice.

II — Desire

Oblivion — GrimesDigital Witness — St. VincentIs It Cold In The Water? — SOPHIETouch — Daft Punk & Paul WilliamsAll Is Full of Love — Björk

Public attention becomes bodily risk, transformation, a request for contact, and finally an answer.

III — Re-entry

Cellophane — FKA twigsRetrograde — James BlakeLong Road Home — Oneohtrix Point NeverAn Ending (Ascent) — Brian Eno

The synthetic shell fails; retreat becomes return, and the story lands at dawn.

The interesting failure happened during ordering. With only the three acts locked, the numerical optimizer cut the measured cost from 48.28 to 14.88 — but put Retrograde after the dawn and made All Is Full of Love answer a request that had not happened yet. That is cheaper and worse. The host model therefore added semantic beat boundaries (request → answer, return → dawn) and let am_optimize_order make only local changes inside those boundaries. Selection and story stayed linguistic; BPM, key, energy, and valence remained supporting evidence.

[
  "The Robots - Kraftwerk",
  "Technopolis - Yellow Magic Orchestra",
  "Kid A - Radiohead",
  "Oblivion - Grimes",
  "Digital Witness - St. Vincent",
  "Is It Cold In The Water? - SOPHIE",
  "Touch - Daft Punk",
  "All Is Full of Love - Björk",
  "Cellophane - FKA twigs",
  "Retrograde - James Blake",
  "Long Road Home - Oneohtrix Point Never",
  "An Ending (Ascent) - Brian Eno"
]

This is the normal MCP workflow: the host model interprets the brief and proposes more candidates than it needs; am_resolve_candidates grounds them; the model chooses tracks and interprets narrative roles only when the brief calls for them; am_optimize_order optionally checks local flow without crossing semantic boundaries; and am_create_playlist(dry_run=true) verifies the exact final recordings before the write.

To compare that workflow with a one-shot baseline, use the six difficult multilingual briefs and blind-listening protocol in examples/. The suite provides auditable constraints, not predetermined “correct” songs.


What's in the box

File

Purpose

am_playlist.py

Core: token management, catalog search, create / edit / delete playlists, track resolution

am_mcp_server.py

Primary MCP stdio service: one description-to-playlist prompt plus 14 tools

playlist_audit.py

Metadata audit: length, artist concentration, genres, eras, durations, duplicates, interludes

playlist_flow.py

Audio-feature audit: BPM / key / loudness / energy / valence, adjacency checks, arc shape

playlist_optimize.py

Simulated-annealing track ordering against the measured rules

listening_stats.py

Listening history: recently played, and per-track/album/artist play counts (Apple Music Replay backend)

profile_library.py

Descriptive sample profile: measured BPM / energy / valence spread and sample-relative quadrants; it does not define the user's taste

am_library.py

Your library: paged export of every catalog-backed song you own, enriched with ISRC / year / genre

build_pool.py

Listening-evidence pool: merge recent plays with multiple Replay years, retaining dates and play counts for the LLM to interpret

Supporting modules:

File

Purpose

playlist_core.py

Platform-neutral core: Camelot, BPM folding, the four adjacency rules, the six narrative shapes. Imports nothing from this project and nothing third-party

am_paths.py

Platform-neutral paths and version — where config and cache live

am_meta.py

The single catalog_meta implementation (batched catalog lookups)

All three analysis modules are importable as libraries:

import playlist_flow, playlist_audit, playlist_optimize

print(playlist_flow.flow_report("My Playlist"))          # -> str
print(playlist_audit.audit_report("My Playlist"))        # -> str
ids, report = playlist_optimize.optimize("stack.json")   # -> (list[str], str)

MCP tools

The standard prompt create_playlist_from_description asks for a natural-language brief and optional name, track count, and response language. Curation stays in the host model; the tools are the grounded Apple Music execution layer:

am_status · am_search_songs · am_resolve_candidates · am_list_playlists · am_show_playlist · am_create_playlist · am_add_tracks · am_delete_playlist · am_audit_playlist · am_analyze_flow · am_optimize_order · am_recently_played · am_top_played

am_resolve_candidates grounds a generous LLM-proposed pool in real catalog metadata, flags duplicates and suspicious versions, and deliberately does not score theme fit. The host model compares candidates directly with the user's words and explains their playlist roles. am_analyze_flow diagnoses transitions; am_optimize_order can optionally refine ordering inside already chosen narrative blocks. It never decides which songs belong in the playlist.

Mount it in a Cordis agent preset with the template in preset/, or wire it into any other MCP client with:

{ "mcpServers": { "applemusic": {
    "command": "python", "args": ["/abs/path/am_mcp_server.py"] } } }

Complete tested examples for Codex, Claude, Cursor, VS Code/Copilot, Gemini CLI, Windsurf, Docker, Cordis/DSH, and Harness are in docs/client-setup.md.

Build the non-root local container with:

docker build -t apple-music-playlists:1.5.0 .

The client must run it attached with docker run --rm -i; mount only the app config directory and a writable cache as shown in the client guide. Config stays writable so token refresh can persist. Never bake Apple credentials into the image.


Tests

python -m unittest discover -s tests -v

The suite is entirely offline — no network, no credentials. Two kinds:

  • Behaviour: the pure math that decides what "sounds good" — Camelot mapping, BPM folding, arc classification, each adjacency penalty asserted in isolation, annealing determinism and the block-order constraint. All six narrative archetypes must classify as themselves.

  • Structural regressions, each pinned to a bug that actually shipped: no hardcoded catalog region, exactly one catalog_meta, no non-None --storefront default, cache outside the repo, every MCP tool wired to a handler, and the optimizer free of platform imports.

They earn their keep immediately — the suite caught a syntax error in a file written minutes earlier, before it was ever run.


The interesting part: audio features

Apple's catalog API exposes no audio features at all — no tempo, key, loudness, energy, or valence. Spotify's audio-features endpoint was shut off for new apps on 2024-11-27, and AcousticBrainz retired in 2022.

playlist_flow.py bridges the gap with a free, key-less chain built on ISRC, which Apple does return:

Apple Music track  ──►  ISRC
                          │
                          ├─► api.reccobeats.com/v1/track?ids=<ISRC>   → track UUID
                          │        └─► /v1/audio-features?ids=<UUID>
                          │                 → tempo, key, mode, loudness, energy, valence,
                          │                   danceability, acousticness, instrumentalness,
                          │                   liveness, speechiness
                          └─ (fallback) musicbrainz.org ISRC lookup

Results are cached locally, so the network cost is paid once per playlist.

Coverage is reported, never silently dropped. Every consumer prints a funnel saying why each track could not be measured:

Audio-feature coverage: 1,395/1,581 usable (88%)
  ·  80 tracks have no ISRC — the feature chain cannot start, so changing sources will not help
  · 106 tracks are not in the current source — switch sources or analyse the audio locally

That distinction is the point. No ISRC means the chain cannot start at all — a different feature source will not help. Not in the source means the ISRC is fine and switching sources (or analysing the audio locally) would fix it. Collapsing both into "missing features" discards the only information that tells you what to do next.

It matters more than it looks: tempo / key / energy / valence are the only things the adjacency rules and the arc can act on, so coverage is the ceiling on how good an ordering can be. At 60% coverage, four positions in ten were never evaluated — while the cost number still looks excellent. The optimizer therefore prints coverage above its cost lines, and warns below 90%.


Sequencing rules the optimizer enforces

Derived from the research collected in docs/ — including a PLOS ONE study in which 130 music professionals sequenced albums, and a randomized trial on mood-adaptive music ordering.

Hard adjacency rules

  • No two slow tracks adjacent

  • Avoid "only slightly slower" transitions (0–12% drop makes the slower track feel like it drags)

  • Adjacent tracks must not be similar in both tempo and key

  • No unjustified large BPM jumps (>40%); no jarring energy shifts under incompatible keys

These four have exactly one definition, in playlist_core.check_pair(), and both the audit and the optimizer call it. They used to be implemented twice, and the copies disagreed: the audit called a track "slow" below the tempo's 25th percentile while the optimizer used a fixed 100 BPM, and the audit never checked the BPM-jump rule at all. That is a tool diagnosing against one standard and repairing against another — so the count it reported could not be trusted.

Note on the "slow" threshold. It is absolute (100 BPM), not data-driven, deliberately: the optimizer evaluates the same sequence thousands of times while annealing, and a percentile threshold would drift as the permutation changes, so the cost would never settle. The cost is that a uniformly slow playlist flags every adjacent pair — that is real, not a sequencing failure, and the report says so.

Global narrative arc is optional. With no --arc, the optimizer only considers local adjacency and does not impose an emotional or tempo trajectory. The host LLM should interpret a free-form story from the brief and preserve its order through blocks; use a named preset only when the user explicitly asks for that kind of curve.

python playlist_optimize.py stack.json --arc cinderella
python playlist_optimize.py --list-shapes

Axis

Target

valence, energy, loudness

the chosen archetype, only when --arc is explicit

tempo

inverted U — fast in the middle, only when --arc is explicit

Six optional shapes: rags-to-riches, tragedy, man-in-a-hole, icarus, cinderella, oedipus. The target curve and the shape the audit classifies come from the same table in playlist_core.ARCHETYPES. The audit may still report which preset a playlist resembles; that diagnosis does not make the preset a recommendation or an ordering target.

When a preset is explicitly requested, valence / energy / loudness follow its emotional trajectory and tempo uses a separate inverted-U target. With no --arc, neither global target is applied.

An arc cost is a distance from an explicitly requested feature curve, not a measure of whether a playlist is good. Coverage limits what it describes, and a lower cost cannot override the brief or prove that one sequence sounds better.

The optimizer preserves your grouping (movements / eras / moods) and only reorders within groups, so thematic structure survives the loudness tuning. Drop the grouping and it reorders freely — measurably "smoother", at the cost of your narrative.

Example from a real run: cost 104.46 → 19.41 with grouping preserved, → 1.28 ungrouped.


Gotchas worth knowing before you debug

  • Responses can be gzip-compressed even when you never sent Accept-Encoding. Decoding the raw bytes as UTF-8 yields garbage that looks like an empty body. (This is fixed in am_playlist.py.)

  • DELETE only works on amp-api.music.apple.com. The documented host api.music.apple.com returns 401 for playlist and library-song deletion.

  • Do not send x-apple-client-version to amp-api — it turns into a 500.

  • Creating a playlist also adds its tracks to the library. Deleting the playlist does not remove them.

  • BPM estimates have octave ambiguity (90 vs 180 for the same track). Fold into [70,160) before comparing, or "two slow tracks adjacent" over-reports by ~4×.

  • Never pass "Title - Artist" straight into catalog search — you get live/remastered takes. Search on the space-separated form and score versions afterwards.

  • An artist missing from a storefront's search ≠ the song is unavailable there. Look it up by ISRC.

  • Only the client that created a playlist can modify it — Apple-side restriction.

More in docs/apple-music-api-notes.md and skill/reference.md.


Documentation

Doc

Contents

SETUP.en.md

Credentials: what tokens exist, how to get each one, security notes, troubleshooting

docs/client-setup.md

Client-specific MCP, Docker, Cordis/DSH, generic harness, and Harness Platform setup

docs/publishing.md

Maintainer-only PyPI and official MCP Registry publishing checklist

docs/apple-music-api-notes.md

Token model, endpoint contracts, measured API behaviour, eval of 7 automation approaches

docs/how-to-build-a-good-playlist.md

Curation methodology: adjacency physics, arc data, six narrative shapes, the ISO principle

docs/playlist-curation-survey.md

Survey of published curation guidance (platform rules, DJ methods, academic findings)

docs/evaluation-signals.md

LLM-native curation: direct candidate comparison, catalog grounding, readable constraints, and why scalar theme scores stay out of the critical path

docs/natural-language-curation-evidence.md

Primary research on broad music intent, reference-vs-request errors, intent hallucination, scrutable language profiles, and the reusable validation protocol

examples/

Reproducible multilingual curation evaluations: six difficult briefs, a baseline protocol, auditable evidence, privacy rules, and no golden track lists

docs/algorithm-review.md

Review boundary for early heuristics: which decisions belong to the LLM and which deterministic algorithms should retain

docs/platform-adapters.md

The platform-adapter boundary: what is platform-neutral, what an adapter must provide, and what breaks on a service that exposes no ISRC

llms.txt

Concise agent-readable map of the curation boundary and the most useful project documents

skill/

Agent skill: workflow + the accumulated gotcha list

CHANGELOG.md

Release history, including behaviour changes between versions

preset/

Cordis agent preset template that mounts the MCP server


For the complete Simplified Chinese guide, see README_ZH_CN.md.


Community

  • Contributing — development workflow, architecture boundaries, and review expectations

  • Support — where to ask questions, report bugs, or propose features

  • Code of Conduct — participation standards and private reporting route

  • Security policy — supported versions and confidential vulnerability reporting


License

MIT — see LICENSE.

Unofficial community tooling. Not affiliated with or endorsed by Apple. Uses your own Apple Music account for personal use; follow Apple's terms of service.

Available Tools

14 tools
am_add_tracksAdd Tracks to PlaylistA

Append resolved tracks to an existing playlist created by this API client. Use dry_run=true to preview matching; use am_create_playlist for a new playlist. / 中文:向已有歌单追加曲目。注意 Apple 的限制:只有创建该歌单的那个客户端才能写入它。

Inputs: tracks (required), playlist (required), isrcs, dry_run, +1 more.

am_analyze_flowAnalyze Playlist FlowA
Read-onlyIdempotent

Read-only diagnosis of BPM, key, loudness, energy, mood, adjacent transitions, and overall arc. It may fetch and cache remote feature data; use am_optimize_order only when a proposed replacement order is wanted. / 中文:歌单「好听度」体检(音频特征层):抓取每首的 BPM/调性/响度/能量/情绪值(经 ISRC→ReccoBeats,首次会慢,之后走缓存),然后检查四项相邻衔接(两首慢歌相邻 / 「只慢一点」/ tempo 与 key 同时相似 / 能量骤变)和整体弧线形状(Man in a hole、Icarus、Tragedy 等)。只读但会联网抓数据,可能耗时较久。

Inputs: playlist (required), refresh.

am_audit_playlistAudit Playlist MetadataA
Read-onlyIdempotent

Read-only metadata audit of playlist length, artist concentration, genres, eras, duplicates, and possible interludes. For BPM, key, energy, and transitions, use am_analyze_flow. / 中文:歌单结构化体检(元数据层):曲目数、总时长、艺人集中度(同一艺人是否超过 2 首)、流派分布、年代分布、时长分布、重复曲目、<2:00 的疑似间奏。只读,用于判断歌单是否符合策展规范(长度 20–30 首最佳、单一主题等)。

Inputs: playlist (required).

am_create_playlistCreate PlaylistA

Create a new playlist from 'Title - Artist' strings or ISRCs. Use dry_run=true to verify catalog matching without writing; use am_add_tracks for an existing playlist. / 中文:创建一个新的 Apple Music 歌单,并一次性写入曲目。曲目用 '歌名 - 艺人' 形式的字符串数组给出,服务端会自动在 catalog 里匹配;若有 ISRC 码则更精确。这是全自动建歌单的主入口。

Inputs: name (required), tracks (required), isrcs, dry_run, +2 more.

am_delete_playlistDelete PlaylistA
Destructive

Delete one playlist permanently after it has been shown to the user. This is destructive, requires confirm=true, and does not delete the underlying songs from the library. / 中文:删除一个歌单。这是破坏性操作,必须先把歌单名和它当前的内容展示给用户并得到确认;只删本工具创建的演示/临时歌单,不要删用户自己整理的歌单。

Inputs: confirm (required), playlist (required).

am_list_playlistsList Library PlaylistsA
Read-onlyIdempotent

List every playlist in the current user's library, including IDs. Use am_show_playlist when the tracks of one playlist are needed. / 中文:列出当前账号音乐库里的所有歌单(含 ID)。

Inputs: no named parameters.

am_optimize_orderOptimize Track OrderA
Read-onlyIdempotent

Optionally refine local audio transitions after the LLM has selected the songs and narrative blocks. By default it does not impose a global narrative arc or tempo curve; pass a named arc only when the user explicitly requests that preset. It returns an order without writing and must not choose songs or judge theme fit. / 中文:为一批曲目算出更好的顺序。这是本项目唯一会排序的工具——am_analyze_flow 只诊断(告诉你哪里有 2 处慢歌相邻、形状是 Icarus),不提供修法。这里用模拟退火处理四条相邻硬规则(不要两首慢歌相邻 / 不要「只慢一点」/ 相邻不该在 tempo 与 key 上同时相似 / 不要 BPM 无理由大跳、能量骤变)。默认不拟合全局叙事弧;只有显式传入 arc 才套用一个命名预设。只读:只返回建议顺序,不动任何歌单;把返回列表按原顺序交给 am_create_playlist 即可。因为需要每首的 BPM/调性,首次会联网抓特征(之后走缓存)。

Inputs: arc, isrcs, blocks, tracks, +2 more.

am_recently_playedGet Recent ListeningA
Read-onlyIdempotent

Read recent listening or recently added Apple Music content when recency matters. This API does not provide play counts; use am_top_played for Replay rankings. / 中文:查最近播放。kind=tracks 是最近播放的曲目;played 是最近播放的歌单/专辑;stations 是最近听的电台;added 是最近加入音乐库的内容。注意:Apple 的这个接口不返回播放次数。

Inputs: kind, limit.

am_resolve_candidatesResolve Playlist CandidatesA
Read-onlyIdempotent

Ground an LLM-curated candidate pool in Apple Music metadata before final selection or creation. It returns exact catalog metadata and Apple Music links, flags unresolved tracks, duplicate recordings, artist concentration, and version markers, and never scores theme fit or writes to the library. / 中文:批量校验 LLM 提出的候选曲目,并返回 Apple Music 的真实曲名、艺人、专辑、发行日期、流派、时长、歌词可用性、版本标记和 catalog ID。还会指出重复录音与艺人集中度,但不替模型做主题评分或选曲。模型应直接根据用户描述与这些真实信息比较候选,保留理由充分的曲目。只读,不修改音乐库。

Inputs: tracks (required), storefront.

am_search_songsSearch Apple Music CatalogA
Read-onlyIdempotent

Search the Apple Music catalog for a small exploratory lookup and return stable catalog IDs. For an LLM-proposed playlist-sized pool, use am_resolve_candidates instead. / 中文:在 Apple Music catalog 搜索歌曲/专辑/艺人,返回可用于建歌单的歌曲 ID。

Inputs: term (required), limit, types, storefront.

am_show_playlistShow Playlist TracksA
Read-onlyIdempotent

Show the tracks in one playlist selected by name or ID. Use am_list_playlists first when the exact playlist is unknown. / 中文:查看某个歌单的曲目列表。

Inputs: playlist (required).

am_statusCheck Apple Music StatusA
Read-onlyIdempotent

Check developer-token validity and Apple Music login status. Use before any library write; this check changes nothing. / 中文:查看 Apple Music 自动化状态:developer token 是否有效、是否已登录(music-user-token)。任何写歌单操作前都应先确认已登录。

Inputs: no named parameters.

am_tag_directionsSteer Playlist Direction TagsA
Read-onlyIdempotent

Present and steer the playlist's direction tags: about five labels the host model authors, covering both musical character (sonic) and listening provenance (context, such as recent, high-rotation, or already in the library). Context provenance may be structured as {basis, call, ref} and is checked for internal consistency only: a non-empty string is not evidence, membership requires am_show_playlist (am_list_playlists only lists playlists), ref is required so am_recently_played(kind=added) cannot pass as recent listening, and because the label itself is free text the result is shown as a declared source, never as verified evidence. The brief argument is required and is echoed verbatim so the original request stays visible. The tool validates the set, applies user replies like 'more funk' or 'less disco' as explicit qualitative bookkeeping over three emphasis levels (soften/neutral/boost) with the user's own wording kept as a revision record, and returns a rendered line plus a direction note for the next curation round. Use it before the final write: the tags are a qualitative supplement that takes part in the next round of candidate comparison, is not a numeric score, and cannot override an explicit constraint in the brief. Read-only and offline: it touches nothing in Apple Music. / 中文:把一次策展的方向表达成约 5 个可操纵的标签,并按用户的回复改侧重。标签由你(宿主模型)写:既包括音乐本身的属性(流派/年代/织体/氛围),也包括用户行为来源(最近在听、高播放、集中循环、本就在库里、来自某个参照曲)。两个轴要分清——sonic 是音乐属性,context 是这些歌为什么在这里;context 标签必须有来源,写成 evidence {basis, call, ref}——光有非空字符串不算证据。校验的是 basis↔call↔ref 是否自洽:am_list_playlists 只列歌单名、证明不了曲目在不在里面,成员关系必须用 am_show_playlist;ref 必填且要记下调用参数,否则 am_recently_played(kind=added)(最近入库)会被当成「最近在听」。标签是自由文本,本模块无法核对它与 basis 是否相符,所以结构化来源只展示为「已声明的来源(未与标签核对)」,不声称已核实;自由文本则标成「未经校验的来源自述」。把方向展示给用户后,用户可以回 more funk / less disco / drop dark / add ambient,本工具把它做成定性记账:侧重只有 soften / neutral / boost 三档,全程没有数值权重(小数会让人误以为有精度),并保留用户原话作为修订记录。找不到的标签会报 unknown,不会静默无效果。只读且离线,不碰 Apple Music。brief 是必填:原样回传用户的原始需求,它会被回显在最前面并始终优先。边界是三层:方向标签参与下一轮候选比较(是 curation contract 的定性修订),不是数值评分,也不能推翻 brief 里的明确约束(必须/排除/参照)——冲突时以 brief 为准。因此要在最终写入之前用它,否则 steer 没有实际意义。

Inputs: tags (required), brief (required), language, adjustments.

am_top_playedGet Replay RankingsA
Read-onlyIdempotent

Read Apple Music Replay play-count rankings by song, album, or artist when frequency matters. Use am_recently_played for latest listening; all-time data may be unavailable, so retry with a specific year. / 中文:查播放次数排行(数据来自 Apple Music Replay / 音乐回忆的后端)。可以查 songs / albums / artists,按年份或 all-time。返回每项的播放次数、首次播放日期、最近播放日期。注意:只有 amp-api 主机可用;all-time 期间不一定存在,失败时先试具体年份。

Inputs: kind, year, limit.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 14 tools

    Disambiguation5/5

    Each tool targets a distinct action, and the descriptions explicitly cross-reference the nearest neighbor to prevent misselection (am_recently_played vs am_top_played for recency vs play counts; am_search_songs vs am_resolve_candidates for lookup vs bulk grounding; am_audit_playlist vs am_analyze_flow for metadata vs audio features; am_analyze_flow vs am_optimize_order for diagnosis vs reordering). List vs show playlist boundaries are also clearly stated. No two tools appear to do the same thing.

    Naming Consistency5/5

    All 14 tools use a uniform snake_case am_ prefix followed by a verb or verb_noun form (am_list_playlists, am_create_playlist, am_delete_playlist, am_search_songs, am_optimize_order). The pattern is predictable and readable throughout, with no mixed conventions.

    Tool Count5/5

    14 tools fall squarely in the well-scoped 3-15 range and each earns its place: status, browse, search, resolve, CRUD, and three distinct analysis tools. Nothing feels redundant or padded for the curation domain.

    Completeness4/5

    The surface covers the full curation lifecycle (status, browse, search, resolve, create, add, delete, audit, analyze, optimize, tag steering). The main gap is that there is no remove-tracks-from-playlist or playlist metadata update/rename operation, though these are workable via delete-and-recreate.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Integrates Apple Music with MCP clients to search the global catalog, manage personal playlists, and access library data. It enables users to perform actions like creating playlists, adding tracks, and viewing recommendations through natural language commands.
      1
      -
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables MCP clients to search the catalog, manage playlists, folders, and library items, and control playback, ratings, and the Up Next queue across macOS, Windows, and Linux. It selects among native Music.app, Safari, Chrome, and web API engines so an assistant can drive Apple Music with or without a subscription.
      -
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables MCP clients to search and manage playlists, library, catalog, discovery, playback, and the Up Next queue, picking per call among native Music.app, browser web-player, and web API engines on macOS, Windows, and Linux. Only a Mac or an Apple Music subscription is required.
      -
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables MCP clients to manage Apple Music playlists, library, catalog, discovery, playback, and the Up Next queue across macOS, Windows, and Linux using native Music.app, the Apple Music API, Safari, or Chrome engines.
      -