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.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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: apple-music-mcp
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
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
iTunes Search MCP — Apple's public catalog search
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAllows controlling Apple Music on macOS through an MCP server that supports playback control, volume adjustment, and music search functionality.2MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for controlling Apple Music on macOS via AppleScript, enabling playlist management, playback control, and library search through natural language.12 npm1MIT
- AlicenseNot gradedqualityDmaintenanceControls Apple Music on macOS via AppleScript, enabling playback, lyrics retrieval, playlist management, and catalog search through an MCP interface.MIT
- FlicenseNot gradedqualityAmaintenanceEnables MCP clients to search and browse the Apple Music catalog, manage library items, ratings, favorites and playlists with nested folders, and control playback, volume, shuffle, repeat and the Up Next queue. Runs via native Music.app, Safari, Chrome, or the Apple Music web API, so it works on macOS, Windows and Linux with just a Mac or an Apple Music subscription.-