Spotify MCP Server logo

Spotify MCP Server

by Shrau1711

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

View on GitHub

Last updated: N/A

What is Spotify MCP Server?

The Spotify MCP Server is a Flask application that acts as an MCP (Media Control Protocol) server, enabling control over a Spotify account through the Spotify Web API.

How to use Spotify MCP Server?

To use this server, you need to authenticate with Spotify through the /login endpoint. After authentication, you can use the various API endpoints to control playback, adjust volume, and retrieve playlists. Refer to the API Endpoints table in the README for specific endpoint usage.

Key features of Spotify MCP Server

  • Spotify Authentication

  • Playback Control (Play/Pause/Next/Previous)

  • Volume Adjustment

  • Playlist Retrieval

  • MCP Command Execution

  • Current Song Fetching

Use cases of Spotify MCP Server

  • Remote Spotify Control

  • Home Automation Integration

  • Custom Music Control Applications

  • Voice Assistant Integration

FAQ from Spotify MCP Server

What is an MCP server?

An MCP server is a Media Control Protocol server that allows remote control of media playback.

How do I authenticate with Spotify?

You authenticate by visiting the /login endpoint, which redirects you to Spotify for authorization.

What is the purpose of the /callback endpoint?

The /callback endpoint handles the Spotify OAuth callback after successful authentication.

How do I set the volume?

Use the /volume endpoint with the volume parameter, e.g., /volume?volume=50 to set the volume to 50%.

Can I execute custom commands?

Yes, you can use the /mcp-command endpoint with the command parameter to execute custom MCP commands.