Skip to main content
Glama

Spotify MCP Server

by latiftplgu

add_to_queue

Add tracks to a Spotify playback queue for immediate or upcoming play, enabling dynamic playlist creation, collaborative listening, or prioritizing specific songs without interrupting current playback.

Instructions

Add a specific track to the user's playback queue for immediate or upcoming playback.

🎯 USE CASES: • Queue up requested songs during parties or events • Build dynamic playlists on-the-fly based on mood • Add discovery tracks without interrupting current playlist • Create collaborative queuing for shared listening sessions • Implement "play this next" functionality

📝 WHAT IT RETURNS: • Confirmation that track was added to queue • Position of track in the upcoming queue • Estimated time until track will play • Current queue length and upcoming tracks preview • Track information that was successfully queued

🔍 EXAMPLES: • "Add 'Bohemian Rhapsody' to my queue" • "Queue up the track spotify:4uLU6hMCjMI75M1A2tKUQC" • "Add this song to play next" • "Put 'Sweet Child O Mine' in my queue"

🎵 QUEUE BEHAVIOR: • Tracks play in the order they were added • Queue plays after current track/playlist ends • Maintains queue across device switches • Can add multiple tracks for extended queuing • Integrates with existing shuffle and repeat settings

⚠️ REQUIREMENTS: • Valid Spotify access token with user-modify-playback-state scope • Track must be available in user's market • Active playback session or available device required

Input Schema

NameRequiredDescriptionDefault
deviceIdNoSpotify device ID (optional, uses active device if not specified)
tokenYesSpotify access token for authentication
trackUriYesSpotify track URI (e.g., 'spotify:track:4uLU6hMCjMI75M1A2tKUQC')

Input Schema (JSON Schema)

{ "properties": { "deviceId": { "description": "Spotify device ID (optional, uses active device if not specified)", "type": "string" }, "token": { "description": "Spotify access token for authentication", "type": "string" }, "trackUri": { "description": "Spotify track URI (e.g., 'spotify:track:4uLU6hMCjMI75M1A2tKUQC')", "type": "string" } }, "required": [ "token", "trackUri" ], "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/latiftplgu/Spotify-OAuth-MCP-server'

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