Skip to main content
Glama

Spotify Playlist MCP Server

by kylestratis

spotify_get_playlist_tracks

Retrieve detailed track information from any Spotify playlist including artists, albums, durations, and IDs with paginated results for large collections.

Instructions

Get tracks from a specific Spotify playlist.

Retrieves tracks from a playlist with detailed information (artists, album, duration, IDs). Results are paginated for large playlists. Args: - playlist_id: Spotify playlist ID (get from spotify_get_user_playlists or playlist URL) - limit: Number of tracks to return, 1-50 (default: 20) - offset: Starting position for pagination (default: 0) - response_format: 'markdown' or 'json' Returns: Markdown: Numbered list with track details (name, artists, album, duration, ID, URI, popularity) JSON: {"total": N, "count": N, "offset": N, "tracks": [{id, name, artists, album, duration_ms, popularity, uri, external_urls}], "has_more": bool} Examples: - "Show me what's in my workout playlist" -> View playlist contents - "Get track IDs from this playlist" -> Extract IDs for operations Errors: Returns "No tracks found" if empty, or error for invalid playlist (404), auth failure (401), rate limits (429).

Input Schema

NameRequiredDescriptionDefault
paramsYes

Input Schema (JSON Schema)

{ "properties": { "params": { "$ref": "#/$defs/GetPlaylistTracksInput" } }, "required": [ "params" ], "type": "object" }

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/kylestratis/spotify-mcp'

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