marcelmarais/spotify-mcp-server

Lightweight MCP server for Spotify

What it solves

This project provides a way for AI assistants (such as Claude, Cursor, and Cline) to interact directly with a user's Spotify account. It bridges the gap between a Large Language Model's reasoning and the actual control of music playback and library management, allowing users to control their music via natural language commands.

How it works

It is implemented as a Model Context Protocol (MCP) server. It connects to the Spotify Web API using OAuth 2.0 authentication. Once configured, it exposes a set of tools that an AI assistant can call to perform actions on Spotify, such as searching for tracks, controlling playback, and managing playlists.

Who it’s for

Users of AI-powered IDEs or desktop assistants who want to control their music playback and organize their Spotify library using natural language.

Highlights

  • Playback Control: Play, pause, resume, skip, and adjust volume (Premium required for volume).
  • Library Management: Create, update, and reorder playlists, and manage "Liked Songs".
  • Curation Tools: Search for artists, albums, and tracks to build new playlists.
  • Integration: Compatible with with Claude Desktop, Cursor, and VS Code (via Cline).
  • Automatic Authentication: Handles OAuth 2.0 tokens and automatically refreshes access tokens.

Related

  • Project
  • Project
  • Project
  • Project
  • Project