Labsco
foxy-dev1 logo

Spotify MCP Server

from foxy-dev1

Interact with the Spotify API to manage playlists and control music playback.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedAccount requiredNeeds API keys

title: Spotify MCP Server emoji: ๐ŸŽต colorFrom: blue colorTo: purple sdk: gradio sdk_version: 5.33.1 app_file: server.py pinned: false

Spotify MCP Server

A Gradio-based MCP server that provides a user-friendly interface to interact with Spotify's API. This server offers various tools for managing your Spotify experience, from authentication to playlist management and music playback control.

Demo Video

Watch the demo video

Features

  • Authentication: Secure Spotify authentication using OAuth2
  • Music Search: Search for tracks and get artist information
  • Queue Management: Add songs to your Spotify queue (requires Spotify Premium)
  • Recently Played: View your recently played tracks
  • Playlist Management:
    • Create new playlists
    • View existing playlists
    • Add songs to playlists
  • User Insights:
    • View top artists
    • View top tracks
    • Get genre information

Example Queries for Claude Desktop

Try these example queries in Claude Desktop to explore different features:

Music Discovery & Analytics

"Show me my top 10 artists and their genres from the last 6 months"

Smart Playlist Creation

"Create a playlist of my top 20 tracks from this month"

Queue Management

"Search for 'I Like Me Better' and add it to my queue"

Playlist Organization

"Show me all my playlists"

Music Curation

"Compare my top 10 tracks from this month with my all-time favorites"

Quick Actions

"Show me my 5 most recently played songs"

API Endpoints

The server exposes several endpoints through Gradio interfaces:

  • add_to_queue_song: Add a song to the queue (Premium required)
  • get_artist_and_track: Search for tracks
  • auth_with_spotify: Authenticate with Spotify
  • get_recently_played_songs: Get recently played tracks
  • create_playlist: Create a new playlist
  • get_playlist_name_and_id: Get playlist information
  • add_songs_to_playlist: Add songs to a playlist
  • get_users_top_artists: Get user's top artists
  • get_user_top_tracks: Get user's top tracks

Premium Features

The following features require a Spotify Premium account:

  • Adding songs to queue

Tags

mcp-server-track