Skip to main content
Glama

MCP-AppleMusic

Ein umfassender FastMCP-Server zur Steuerung von Apple Music auf macOS mit KI-Agenten.

Mit 66 Tools für Wiedergabe, Playlist-Verwaltung, Hör-Analysen, Spotify-Import, intelligente DJ-Übergänge und Audiogerätesteuerung.


Wichtigste Funktionen

  • Vollständige Apple-Music-Steuerung: Wiedergabe, Lautstärke, AirPlay-Gerätepegel, EQ-Voreinstellungen, Wiederholen/Mischen-Modi und MiniPlayer.

  • Hör-Tagebuch & Monatlicher Rückblick: Lokale SQLite-Datenbank + Hintergrund-Daemon für kontinuierliches Tracking und Apple-Replay-Berichte.

  • Plattformübergreifender Spotify-Import: Importiere öffentliche Spotify-Playlists und -Alben direkt in Apple Music (keine Anmeldung/Token erforderlich).

  • Intelligente KI-DJ-Übergänge: Automatische BPM-Berechnung und Start/Ende-Trimmen für nahtlose, fließende Übergänge.

  • Hybride Lyrics & Universelle Links: Sofortige Texte über LRCL + universeller song.link-Generator zum Teilen von Songs über Spotify/YouTube/Tidal.

  • Playlist-Verwaltung & Export: Verschachtelte Ordner, Deduplizierung, automatische Sortierung und Export als JSON, CSV oder Markdown.


Related MCP server: applemusic-mcp

Voraussetzungen

  • macOS mit installierter Apple-Music-App

  • Python 3.13+

  • uv-Paketmanager (brew install uv)


Schnellstart & Konfiguration

Option 1: Claude Desktop

Füge Folgendes zu ~/Library/Application Support/Claude/claude_desktop_config.json hinzu:

{
  "mcpServers": {
    "applemusic": {
      "command": "uvx",
      "args": ["git+https://github.com/suleyman416/mcp-applemusic.git"]
    }
  }
}

Option 2: Cursor / Windsurf / VS Code (Cline & Roo Code)

Füge Folgendes zu deinen MCP-Einstellungen hinzu:

{
  "mcpServers": {
    "applemusic": {
      "command": "uvx",
      "args": ["git+https://github.com/suleyman416/mcp-applemusic.git"]
    }
  }
}

macOS-Berechtigungshinweis: Beim ersten Start wird macOS deinen KI-Client oder das Terminal um Erlaubnis bitten, Music.app zu steuern. Klicke auf Erlauben (oder prüfe Systemeinstellungen → Datenschutz & Sicherheit → Automatisierung).


Beispielhafte natürliche Sprachbefehle

Sobald die Verbindung steht, kannst du mit deinem KI-Agenten ganz natürlich sprechen:

  • Wiedergabe & Audio:

    • „Spiel ‚Location' von Dave ab"

    • „Stelle die Lautstärke auf 80 % und wechsle den EQ auf Hip-Hop"

    • „Wechsle die Audioausgabe zu meinen AirPods Pro"

    • „Aktiviere den Mischmodus für meine Gym-Playlist"

  • Entdecken & Konvertieren:

    • „Importiere diese Spotify-Playlist: https://open.spotify.com/playlist/..."

    • „Erstelle einen universellen Teilen-Link für den aktuell laufenden Song"

    • „Zeig mir die UK-Top-10-Charts in Apple Music"

    • „Hol mir die Songtexte für diesen Titel"

  • Analysen & Rückblick:

    • „Gib mir meinen August-Rückblick-Bericht"

    • „Wie sieht mein Musik-Hörprofil aus?"

    • „Zeig mir meine Hörhistorie der letzten 10 Songs"

  • DJ & Bibliotheksverwaltung:

    • „Konfiguriere intelligente DJ-Übergänge für meine ‚Party'-Playlist"

    • „Finde und entferne doppelte Songs in meiner ‚Favoriten'-Playlist"

    • „Exportiere meine ‚Chill Vibes'-Playlist als Markdown"


Kompletter Satz der 66 Tools

# 1. Playback & Track Control
itunes_play()                              # Start playback
itunes_pause()                             # Pause playback
itunes_next()                              # Skip to next track
itunes_previous()                          # Go to previous track
itunes_current_track()                     # Get currently playing track info
itunes_set_volume(volume)                  # Set volume (0–100)
itunes_mute(muted)                         # Mute or unmute audio
itunes_shuffle(enabled)                    # Enable or disable shuffle
itunes_set_shuffle_mode(mode)              # Set shuffle granularity ('songs', 'albums', 'groupings')
itunes_repeat(mode)                        # Set repeat mode ('off', 'one', 'all')
itunes_seek(seconds)                       # Seek/jump to timestamp in seconds
itunes_get_position()                      # Get elapsed position & total duration
itunes_favorite_track(favorited)           # Favorite or unfavorite currently playing track
itunes_favorite_song(song, favorited)      # Favorite or unfavorite any song by title
itunes_dislike_track(disliked)             # Mark current track as Disliked for algorithms
itunes_rate_track(stars)                   # Set star rating (1–5 stars)
itunes_favorite_album(favorited)           # Star or unstar currently playing album
itunes_rate_album(stars)                   # Set star rating on currently playing album
itunes_get_lyrics(song)                    # Get lyrics with global database fallback
itunes_set_eq(preset)                      # Set Equalizer preset (e.g. 'Hip-Hop', 'Bass Booster')
itunes_open_location(url)                  # Stream audio URL or music:// link
itunes_get_stream_info()                   # Get live radio / stream station title & URL

# 2. Audio Quality & Technical Inspection
itunes_get_track_audio_info(song)          # Inspect bit rate, sample rate, BPM, cloud status, format
itunes_set_track_bpm(bpm, song)            # Set BPM tempo on a track
itunes_set_track_start_finish(start, finish, song) # Set custom start/finish offsets
itunes_set_track_volume_adjustment(adj, song) # Set track volume adjustment (-100% to +100%)

# 3. Deep Tagging & Metadata Editor
itunes_get_track_metadata(song)            # Inspect genre, composer, track/disc numbers, comments, dates
itunes_edit_track_metadata(...)            # Update metadata tags (genre, composer, comment, year)
itunes_get_artwork_info(song)              # Inspect album artwork format, description & status

# 4. Library, Catalog & Artist Discovery
itunes_search(query)                       # Search local/iCloud library for tracks
itunes_search_catalog(query, limit)        # Search global Apple Music catalog (100M+ tracks)
itunes_get_artist_top_tracks(artist, limit)# Get top songs for any artist worldwide
itunes_get_artist_albums(artist, limit)    # Get official albums for any artist worldwide
itunes_play_song(song)                     # Find and play a specific song

# 5. Cross-Platform Converters & Curation
itunes_import_from_spotify(url, name)      # Import public Spotify playlist/album directly into Apple Music
itunes_generate_share_link(song)           # Generate universal share link (song.link) for all platforms
itunes_get_top_charts(country, limit)      # Fetch official Apple Music Daily Top 100 Charts
itunes_get_new_releases(country, limit)    # Fetch official Apple Music latest album releases
itunes_dj_auto_transition(playlist, crossfade) # Configure smart DJ radio-style crossfades across playlist
itunes_get_listening_personality()         # AI analysis of your listening archetype & signature vibes

# 6. Playlist & Folder Management
itunes_create_playlist(name)               # Create a new playlist
itunes_create_playlist_folder(name)        # Create a playlist folder
itunes_move_playlist_to_folder(playlist, folder) # Move playlist into a folder
itunes_set_playlist_description(playlist, description) # Set playlist description
itunes_add_to_playlist(song, playlist)     # Add a song to a named playlist (cross-playlist search)
itunes_remove_from_playlist(song, playlist)# Remove a track from a playlist by song title
itunes_move_playlist_track(playlist, from, to) # Move track position in playlist
itunes_sort_playlist(playlist, sort_by)    # Sort playlist by 'title', 'artist', or 'album'
itunes_favorite_playlist(playlist, favorited)# Star or unstar a playlist in sidebar
itunes_duplicate_playlist(source, new_name)# Clone an existing playlist into a new one
itunes_merge_playlists(play_a, play_b, new)# Merge two playlists into a new master playlist
itunes_find_duplicates(playlist, remove)   # Detect duplicate tracks in a playlist
itunes_delete_playlist(playlist)           # Delete a user playlist
itunes_list_playlists()                    # List all playlists with track counts
itunes_get_playlist_tracks(playlist)       # Get all tracks in a playlist
itunes_export_playlist(playlist, format)   # Export playlist to JSON, CSV, or Markdown

# 7. Listening Journal & Replay Analytics
itunes_get_monthly_replay(year, month)     # Generate Apple Music Replay report (hours, top songs/artists)
itunes_get_listening_history(limit, artist)# Chronological playback journal with timestamps & skips
itunes_get_listening_stats_by_date(start, end) # Custom date-range listening analytics & top charts
itunes_log_current_play()                  # Manually record current track to journal database

# 8. Audio Devices & UI Controls
itunes_list_devices()                      # List AirPlay audio output devices & active status
itunes_set_device(device_name)             # Switch audio output device (AirPods, HomePod, TV)
itunes_set_device_volume(device, volume)   # Set individual volume for specific AirPlay device
itunes_get_selected_tracks()               # Get tracks highlighted by user in Music window
itunes_set_miniplayer(enabled)             # Toggle MiniPlayer window mode
itunes_reveal_track(song)                  # Reveal & highlight track in Music window
itunes_get_stats()                         # Generate library analytics (tracks, hours, favorites)

Entwicklung & Mitwirken

  1. Klone das Repository:

git clone https://github.com/suleyman416/mcp-applemusic.git
cd mcp-applemusic
  1. Starte im Entwicklungsmodus:

uv run mcp_applemusic.py
  1. Erstelle einen Pull Request!


Lizenz

MIT-Lizenz. Siehe LICENSE für Details.

Install Server
A
license - permissive license
B
quality
B
maintenance

Maintenance

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

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • MCP connector for iMessage & Contacts via a local Mac agent + Vercel relay

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…

  • Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.

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/suleyman416/mcp-applemusic'

If you have feedback or need assistance with the MCP directory API, please join our Discord server