Spotify-MCP-Server

Spotify-MCP-Server

0

The Spotify MCP Server is a Flask application that integrates with the Spotify Web API to allow users to authenticate and control Spotify playback through various API endpoints. It supports actions like adjusting volume and managing playlists, with the added ability to execute custom MCP commands.

Spotify MCP Server

This is a Flask-based MCP server that integrates with the Spotify Web API to control playback, manage volume, retrieve playlists, and more.

🚀 Features

  • Authenticate with Spotify
  • Control playback (Play/Pause/Next/Previous)
  • Adjust volume
  • Fetch currently playing song
  • Retrieve user playlists
  • MCP Command Execution (for custom commands)

🔗 API Endpoints

EndpointDescription
/loginRedirects to Spotify for authentication
/callbackHandles Spotify OAuth callback
/current-songFetches currently playing song
/playStarts playback
/pausePauses playback
/nextSkips to the next track
/previousReturns to the previous track
/volume?volume=50Sets volume to 50% (replace 50 with desired level)
/playlistsFetches user playlists
/mcp-command?command=playExecutes MCP command