Skip to main content
Glama

Spotify MCP Server

by latiftplgu

add_to_queue

Add a specific track to the playback queue for immediate or upcoming playback, enabling dynamic playlist building, collaborative listening, or "play this next" functionality. Returns queue position, track details, and estimated play time.

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:track: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