apple_music_mcp
Provides comprehensive control over Apple Music, including playlist management, catalog search, playback control, and personalized recommendations.
Synchronizes Apple Music playlist descriptions and metadata to iCloud.
Enables discovery of top hits from Shazam charts and direct population into Apple Music playlists.
Enables discovery of top hits from Spotify charts and direct population into Apple Music playlists.
Enables discovery of top hits from YouTube charts and direct population into Apple Music playlists.
Apple Music MCP
A high-performance Model Context Protocol (MCP) server for Apple Music. Dual native macOS JXA & cloud REST engine with cross-platform discovery, async batching, and zero-timeout execution.
⚡ Quick Start
Run instantly with npx or uvx (zero install required):
Option A: Using npx (Recommended)
npx -y @saitarrunpitta/apple-music-mcpOption B: Using uvx
uvx --from git+https://github.com/saitarrun/apple-music-mcp.git apple-music-mcp serveOption C: Install locally via npm or pip
npm install -g @saitarrunpitta/apple-music-mcp
# or
pip install git+https://github.com/saitarrun/apple-music-mcp.gitRelated MCP server: Sound
🔌 MCP Client Setup
Add apple-music to your preferred AI assistant in seconds:
1. Antigravity / AGY CLI
agy mcp add apple-music -- npx -y @saitarrunpitta/apple-music-mcp2. Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"apple-music": {
"command": "npx",
"args": [
"-y",
"@saitarrunpitta/apple-music-mcp"
]
}
}
}3. Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"apple-music": {
"command": "npx",
"args": [
"-y",
"@saitarrunpitta/apple-music-mcp"
]
}
}
}4. Codex MCP
codex mcp add apple-music -- npx -y @saitarrunpitta/apple-music-mcp✨ Features at a Glance
⚡ Zero-Timeout JXA Engine: Reads playlists with 1,000+ songs in under 100ms without AppleScript freezes.
🌐 Cross-Platform Charts: Direct discovery feeds from Shazam, Spotify, YouTube, and Apple Music.
🚀 Async Parallel Batching: Add or remove 100+ songs in parallel in under 1 second.
🎵 Pure-Audio Enforcement: Auto-filters out music videos and lyric videos to keep playlists pure audio.
🛡️ 100% Duplicate Prevention: Built-in fuzzy matching prevents duplicate song additions.
🔐 Automatic Safari Auth: Extracts web player tokens seamlessly from Safari without manual API keys.
🧠 Smart Recommendations: Real-time track suggestions based on your listening history & artist similarity.
🛠️ Tools Reference
Category | Tool | Description |
Discovery |
| Pull top hits from Shazam, Spotify, YouTube, or Apple Music charts. |
| Populate a playlist directly from any chart with deduplication. | |
| Smart recommendations based on listening history & artists. | |
| Fetch recent listening history from Apple Music cloud. | |
| Fetch most played albums and playlists. | |
Playlists |
| List all library playlists with track counts and descriptions. |
| Fast bulk retrieval of tracks (title, artist, album, duration). | |
| Parallel batch add with zero duplicates. | |
| Bulk remove track relationship IDs. | |
| Create new playlist with custom description. | |
| Safely delete playlist without removing songs from library. | |
| Update playlist description and sync to iCloud. | |
Catalog |
| Search global Apple Music catalog (songs, albums, artists, playlists). |
| Pin exact studio audio catalog ID for title/artist. | |
| Get top-rated songs for any artist. | |
| Fetch tracks from official Apple curated playlists ( | |
Playback |
| Control player ( |
| Discover available AirPlay speakers and HomePods. | |
Curation |
| Strip video entities and swap with official studio audio songs. |
| Deduplicate playlist editions, keeping canonical tracks. | |
| Merge playlists with 100% deduplication. |
💻 CLI Commands
# Check status & active tokens
apple-music-mcp status
# Extract authentication tokens from open Safari session
apple-music-mcp login
# Clear catalog cache
apple-music-mcp clean-cache
# Run MCP server over stdio
apple-music-mcp serve🏷️ Tags & Discoverability
#ModelContextProtocol #MCP #MCPServer #AppleMusic #ClaudeAI #CursorAI #AnthropicClaude #AIAgents #MusicKit #Spotify #Shazam #YouTubeMusic #AppleScript #Python #OpenSource #DeveloperTools #LLM #Automation #PlaylistGenerator
📄 License
MIT © saitarrun
This server cannot be installed
Maintenance
Related MCP Servers
- Flicense-qualityDmaintenanceAllows controlling Apple Music on macOS through an MCP server that supports playback control, volume adjustment, and music search functionality.2
- Alicense-qualityCmaintenanceApple Music playback control, library search, playlist management, and queue operations via MCP.1MIT
- Alicense-qualityFmaintenanceMCP server for controlling Apple Music on macOS using JXA (JavaScript for Automation). Manage playback, search tracks, create playlists, and more without API keys.14MIT
- Alicense-qualityCmaintenanceMCP server for controlling Apple Music on macOS via AppleScript, enabling playlist management, playback control, and library search through natural language.141MIT
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.
iTunes Search MCP — Apple's public catalog search
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/saitarrun/apple-music-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server