Apple Music MCP Server
Provides tools for interacting with Apple Music, including access to recently played tracks, playlists, search, personalized recommendations, user profile, top artists, and playlist creation.
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 Server v2
No Apple Developer Account! You don't need a .p8 certificate, API key, or developer account.
Connects Claude Code to Apple Music using only your Apple ID.
How it Works
The MCP opens a real browser (Chromium), you log in to music.apple.com with your Apple ID, play any song, and Playwright automatically captures the authentication tokens that Apple's own site generates. It's that simple.
Related MCP server: Spotify MCP Server
Quick Setup (3 steps)
1. Install
cd apple-music-mcp
npm install
npx playwright install chromium
npm run build2. Login - Part 1
node dist/login.jsA browser will open. Log in with your Apple ID and play any song. After the tokens are captured, close the browser.
2. Login - Part 2
node atualizatokens.mjs3. Configure in Claude Code
Add to your MCP configuration file:
{
"mcpServers": {
"apple-music": {
"command": "node",
"args": ["CAMINHO\\COMPLETO\\apple-music-mcp\\dist\\index.js"],
"cwd": "CAMINHO\\COMPLETO\\apple-music-mcp"
}
}
}Restart Claude Code. Done!
Available Tools
Tool | Description |
| Login via browser (when tokens expire) |
| Checks if logged in and token validity |
| Your recent songs |
| Lists your playlists |
| Songs from a specific playlist |
| Search the catalog (songs, artists, albums) |
| AI-personalized recommendations |
| Full profile of your tastes |
| Most listened to artists |
| Create a playlist (manually or with recommendations) |
| Details of a song |
Examples in Claude Code
- "Quais sao minhas musicas recentes?"
- "Crie uma playlist com 30 recomendacoes de indie rock"
- "Me mostre meu perfil musical"
- "Busque por bossa nova e crie uma playlist 'Foco'"
- "Quais musicas estao na playlist 'Favoritas'?"
- "Quem sao meus top 10 artistas?"Notes
Tokens are valid for ~25 days. When they expire, run
node dist/login.jsagain.The first time takes longer because it installs Chromium (~150MB).
Works on Windows, Mac, and Linux.
Requires an Apple Music subscription for personal data (history, playlists).
Catalog search works even without login (limited).
This server cannot be deployed
Maintenance
Related MCP Connectors
Run Apple Search Ads from Claude: performance, recommendations, keywords, budgets, launches.
Connect Claude to your Intervals.icu watch data for fitness, workout review, and plan writing.
Manage Apple Search Ads from chat: sign in with Apple ID, check notifications, and pull campaign pe…
Search, read, and write your Apple Notes from ChatGPT/Claude via a local Mac agent + MCP relay.
Related MCP Servers
- AlicenseBqualityAmaintenanceConnects Claude with Spotify, allowing users to control playback, search for content, get music information, and manage the Spotify queue.2893 PyPI12MIT
- FlicenseAqualityDmaintenanceConnects Claude with Spotify, enabling playback control, search functionality, and queue management through Spotify's API.4-
- FlicenseAqualityDmaintenanceConnects Claude with Spotify, allowing users to control playback, search for music, get track/artist information, and manage the queue via the Spotify API.51-
- AlicenseAqualityAmaintenanceFull Apple Music integration for Claude: search the catalog, browse your personal library, manage playlists, and get personalised recommendations.1544MIT