Apple Music MCP
Controls Apple Music on macOS, enabling playback, playlist management, library browsing, search, and track actions (favorite, rate, BPM tagging) via direct automation.
Looks up song metadata on Wikidata, providing genres, musical key, BPM, record label, producers, songwriters, ISRC, and IDs for Spotify and MusicBrainz.
Retrieves Wikipedia summaries for songs as part of the Wikidata lookup tool.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Apple Music MCPsearch my library for tracks by The Beatles"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Apple Music MCP
MCP server for controlling Apple Music on macOS. Uses JXA (JavaScript for Automation) to talk to Music.app directly — no API keys or authentication needed.
Install
Requires Bun and macOS.
Claude Desktop / Claude Code
Add to your MCP config:
{
"mcpServers": {
"apple-music": {
"command": "bunx",
"args": ["apple-music-mcp"]
}
}
}From source
git clone https://github.com/lucasilverentand/apple-music-mcp.git
cd apple-music-mcp
bun install
bun run src/index.tsRelated MCP server: MCP AppleMusic Server
Tools
Playback
Tool | Description |
| Current track, position, volume, shuffle & repeat state |
| Toggle play/pause |
| Skip to next track |
| Go to previous track |
| Set volume (0–100) |
| Enable/disable shuffle |
| Set repeat mode (off, one, all) |
Search & Browse
Tool | Description |
| Search library by name, artist, or album |
| Full metadata for a track by persistent ID |
| Filter tracks by genre, BPM, year, play count, artist, favorites |
| Aggregated stats: genres, top artists, most played, decades |
Playlists
Tool | Description |
| List all playlists with track counts |
| Get tracks from a playlist (paginated) |
| Create a playlist or folder |
| Create a playlist from filter criteria in one step |
| Add tracks to a playlist by persistent ID |
| Remove tracks from a playlist |
| Delete a playlist |
| Move a playlist into a folder |
Playback Control
Tool | Description |
| Play a specific track by persistent ID |
| Start playing a playlist by name |
Track Actions
Tool | Description |
| Favorite/unfavorite a track |
| Dislike/un-dislike a track |
| Rate a track (0–5 stars) |
| Add the currently playing track to your library |
| Manually tag BPM on a track |
Wikidata Lookup
Tool | Description |
| Look up a song on Wikidata for rich metadata: genres, musical key, BPM, record label, producers, songwriters, ISRC, Spotify/MusicBrainz IDs, and Wikipedia summary |
How it works
The server shells out to osascript -l JavaScript (JXA) to control Music.app. Track persistentID is the stable identifier used across all tools. Streaming tracks from Apple Music have bpm: 0 — use set_bpm to tag them manually, or use wikidata_lookup to find the BPM.
Requirements
macOS (uses Music.app via JXA)
Bun runtime
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/lucasilverentand/apple-music-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server