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.
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 MCP ServerShow me my recently played songs"
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 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
Connect Claude to your Intervals.icu watch data for fitness, workout review, and plan writing.
Search, read, and write your Apple Notes from ChatGPT/Claude via a local Mac agent + MCP relay.
Connect Claude to Fathom meeting recordings, transcripts, and summaries
WHOOP recovery, strain, sleep and workouts in Claude via official WHOOP OAuth. Free, open source.
Related MCP Servers
- AlicenseAqualityBmaintenanceConnects Claude with Spotify, allowing users to control playback, search for content, get music information, and manage the Spotify queue.1670 PyPI10MIT
- 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-
- AlicenseAqualityDmaintenanceFull Apple Music integration for Claude: search the catalog, browse your personal library, manage playlists, and get personalised recommendations.1142MIT