Skip to main content
Glama

Spotify Playlist MCP Server

by kylestratis

spotify_add_tracks_to_playlist

Add tracks to existing Spotify playlists by specifying playlist ID and track URIs. Insert songs at specific positions or append to end, managing 1-100 tracks per operation for user-owned or collaborative playlists.

Instructions

Add tracks to an existing Spotify playlist.

Adds 1-100 tracks to a playlist. Tracks can be inserted at a specific position or appended to the end. Playlist must be owned by user or be collaborative. Args: - playlist_id: Spotify playlist ID (not URI) - track_uris: List of track URIs, 1-100 (format: "spotify:track:ID", not just IDs) - position: Optional 0-indexed position to insert (default: append to end) Returns: JSON: {"success": true, "snapshot_id": "...", "tracks_added": N, "message": "..."} Examples: - "Add this track to my playlist" -> track_uris=["spotify:track:ID"], playlist_id="..." - "Add 10 songs to workout mix" -> track_uris=[list of URIs] - "Insert at the beginning" -> position=0 Errors: Returns error for invalid playlist (404), no permission (403), auth failure (401), rate limits (429).

Input Schema

NameRequiredDescriptionDefault
paramsYes

Input Schema (JSON Schema)

{ "properties": { "params": { "$ref": "#/$defs/AddTracksToPlaylistInput" } }, "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