Spotify MCP Server

by foxy-dev1

Not rated
GitHub

About

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

Details

Author
foxy-dev1
Categories
Cloud Service, Other, Media, API

Setup

Install Spotify MCP Server in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/foxy-dev1/Spotify-mcp-server

Follow the installation instructions in the repository README, then restart your MCP client.

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

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.

- 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

- View top artists
- View top tracks
- Get genre information

- Python 3.x
- Spotify Premium account (required for some queue management features)
- Spotify Developer account for API credentials
- Clone this repository
- Install the required dependencies:

pip install gradio spotipy

- Create an account ondeveloper.spotify.com
- Navigate to the dashboard
- Create a new app with the following settings:

- Redirect URI:http://127.0.0.1:5000/callback(you can choose any port, but must use http and an explicit loopback address)
- Note: You may need to restart your MCP environment (e.g., Claude Desktop) once or twice before it works

The server uses the following environment variables: Please create a .env file with the credentials

- CLIENT_ID: Your Spotify API client ID
- CLIENT_SECRET: Your Spotify API client secret
- REDIRECT_URI: Your Spotify API redirect URI (default:
http://127.0.0.1:5000/callback)

This project is designed to run locally and is not yet set up for ephemeral environments (e.g., uvx usage). To run:
- Clone this repository
- Set up your environment variables
- Run the server

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

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

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

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

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

"Show me my 5 most recently played songs"

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

The following features require a Spotify Premium account:

To use this MCP server with Claude Desktop, add the following configuration to your settings (port number can vary, please check):

{ "mcpServers": { "gradio": { "command": "npx", "args": ["mcp-remote", "http://127.0.0.1:7860/gradio_api/mcp/sse"] } } }

This configuration allows Claude Desktop to connect to the Gradio MCP server running on port 7860.

Access the Audius music platform via LLMs, with 105 tools covering most of the Audius Protocol API.

Cross-platform music link resolution for AI agents. Connects Claude, ChatGPT, and other AI agents to trusted music data via the Model Context Protocol.

Interact with Cloudinary's media management platform using natural language.

Dacast MCP Live Stream Server connects your AI tools to Dacast’s live streaming and video hosting APIs, so you can create and manage live streams, playlists, thumbnails, and simulcasts using simple natural-language prompts.

A server for performing secure, read-only operations on the Kaltura API.

Interact with the Marvel Developer API to access data on characters and comics.

An AI assistant that controls Spotify features like playback, playlists, and search using the Model Context Protocol (MCP).

Control Spotify playback using natural language commands.

Control Spotify playback and manage playlists using AI assistants and IDEs.

Allows users to generate music videos using Freebeat through MCP

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.