MCPInstall
Spotify-MCP-Server logo

Spotify-MCP-Server

by Shrau1711 Shrau1711/Spotify-MCP-Server

A server that enables AI assistants to interact with Spotify via the Model Context Protocol (MCP). It allows fetching current playback, controlling playback, and accessing user playlists.

READMEmain

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