Spotify
Lyttehistorik, afspilning, playlister og gemt musik fra din Spotify-konto.
Overblik
Forbind Spotify for at give AI-klienter kontekst om din lyttehistorik, aktuel afspilning, playlister og gemt musik. Spørg hvad der spiller, udforsk din smag, eller byg playlister med naturligt sprog.
Forudsætninger
- En Spotify-konto (Spotify Premium anbefales til afspilningskontrol)
- En stackgate.ai-konto
Credentials
- Log ind på stackgate.ai.
- Gå til Mine integrationer og åbn Spotify.
- Klik Aktivér, derefter Forbind Spotify.
- Godkend OAuth-prompten på Spotify — stackgate.ai gemmer dine tokens sikkert.
Ingen manuelle API-nøgler kræves.
Brug med AI-klienter
- Dedikeret endpoint:
POST /mcp/spotifymed Sanctum bearer token - Private gateway: én config til alle integrationer — brug
spotify__*-navngivne værktøjer
Se Dokumentation for HTTP-autentificering og opsætning af private gateway.
Fejlfinding
- 422 integration not configured — gennemfør OAuth-forbindelsesflowet i Mine integrationer.
- Authorization expired — afbryd og genforbind Spotify fra integrationssiden (refresh tokens udløber efter længere tid).
- 403 on playback tools — afspilningskontrol kræver Spotify Premium og en aktiv Spotify Connect-enhed eller åben Spotify-klient.
- No active playback —
get_current_playbackreturnereractive: false, når intet spiller.
Tilgængelige værktøjer
-
add_playlist_tracks
Add tracks to a Spotify playlist by Spotify URI.
-
add_to_queue
Add a track or episode to the end of the user's Spotify queue. Requires Premium.
-
create_playlist
Create a new playlist for the connected Spotify user.
-
get_album
Get Spotify album details by ID.
-
get_artist
Get Spotify artist details by ID.
-
get_currently_playing_track
Get the track currently playing on the user's active Spotify device.
-
get_current_playback
Get information about the user's current playback state, including device and track.
-
get_playlist
Get full details for a Spotify playlist.
-
get_profile
Get the connected Spotify user profile.
-
get_top_artists
Get the user's top artists over a time range.
-
get_top_tracks
Get the user's top tracks over a time range.
-
get_track
Get Spotify track details by ID.
-
get_user_queue
Get the user's Spotify queue (currently playing plus upcoming tracks).
-
list_playlist_tracks
List tracks in a Spotify playlist.
-
list_recently_played_tracks
List tracks the user recently played on Spotify.
-
list_saved_albums
List albums saved in the user's Spotify library.
-
list_saved_shows
List podcast shows saved in the user's Spotify library.
-
list_saved_tracks
List tracks saved in the user's Spotify library.
-
list_user_playlists
List playlists owned or followed by the connected Spotify user.
-
pause_playback
Pause playback on the user's active Spotify device. Requires Premium.
-
remove_playlist_tracks
Remove tracks from a Spotify playlist.
-
remove_saved_tracks
Remove tracks from the user's Spotify library (liked songs).
-
save_tracks
Save tracks to the user's Spotify library (liked songs).
-
search
Search Spotify for tracks, albums, artists, playlists, shows, or episodes.
-
skip_to_next
Skip to the next track on the user's active Spotify device. Requires Premium.
-
skip_to_previous
Skip to the previous track on the user's active Spotify device. Requires Premium.
-
start_playback
Start or resume playback on the user's active Spotify device. Requires Premium.
-
update_playlist
Update a Spotify playlist name, description, or visibility.
MCP-endpoint:
https://stackgate.ai/mcp/spotify
(HTTP) eller via
private gateway.