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 "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 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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityCmaintenanceConnects Claude with Spotify, allowing users to control playback, search for content, get music information, and manage the Spotify queue.167MIT
- FlicenseAqualityDmaintenanceConnects Claude with Spotify, enabling playback control, search functionality, and queue management through Spotify's API.4
- FlicenseAqualityCmaintenanceConnects Claude with Spotify, allowing users to control playback, search for music, get track/artist information, and manage the queue via the Spotify API.51
- AlicenseAqualityCmaintenanceFull Apple Music integration for Claude: search the catalog, browse your personal library, manage playlists, and get personalised recommendations.1138MIT
Related MCP Connectors
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.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/RicardoCA/AppleMusicMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server