Skip to main content
Glama
RicardoCA

Apple Music MCP Server

by RicardoCA

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 build

2. Login - Part 1

node dist/login.js

A 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.mjs

3. 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

apple_music_login

Login via browser (when tokens expire)

apple_music_status

Checks if logged in and token validity

get_recently_played

Your recent songs

get_playlists

Lists your playlists

get_playlist_tracks

Songs from a specific playlist

search_music

Search the catalog (songs, artists, albums)

get_recommendations

AI-personalized recommendations

get_music_profile

Full profile of your tastes

get_top_artists

Most listened to artists

create_playlist

Create a playlist (manually or with recommendations)

get_track_details

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.js again.

  • 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).

A
license - permissive license
Not graded
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

View all related MCP servers

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.

View all MCP Connectors

Latest Blog Posts

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