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 "Deploy 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 deployed
Maintenance
Related MCP Connectors
MCP connector for iMessage & Contacts via a local Mac agent + Vercel relay
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
Search, read, and write your Apple Notes from ChatGPT/Claude via a local Mac agent + MCP relay.
MCP connector that lets ChatGPT list, search, and run your Apple Shortcuts via a local Mac agent
Related MCP Servers
- AlicenseAqualityFmaintenanceFacilitates controlling Apple Music on macOS via AppleScript through MCP commands, allowing users to manage playback, search for tracks, and create playlists.1091MIT
- FlicenseNot gradedqualityDmaintenanceAllows controlling Apple Music on macOS through an MCP server that supports playback control, volume adjustment, and music search functionality.2-
- AlicenseNot gradedqualityCmaintenanceApple Music playback control, library search, playlist management, and queue operations via MCP.2MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for controlling Apple Music on macOS via AppleScript, enabling playlist management, playback control, and library search through natural language.51MIT