Spotify MCP Server logo

Spotify MCP Server

by Jopgood

A Media Control Protocol (MCP) server that provides a unified interface for controlling Spotify playback across different devices and applications. It enables control via RESTful API, AI Assistant, and voice commands.

View on GitHub

Last updated: N/A

What is Spotify MCP Server?

The Spotify MCP Server is a Node.js application that acts as a central hub for controlling Spotify playback. It provides a unified interface accessible via REST API, AI assistants, and voice commands, allowing users to manage their Spotify experience across various devices and applications.

How to use Spotify MCP Server?

To use the Spotify MCP Server, you need to clone the repository, install dependencies using npm, configure the .env file with your Spotify API credentials, and start the server. After authentication through the web interface, you can use the provided API endpoints, CLI, AI assistant integration, or voice control interface to manage your Spotify playback.

Key features of Spotify MCP Server

  • Control Spotify playback (play, pause, skip, previous)

  • Adjust volume

  • Search for and play specific tracks, albums, or playlists

  • Get current playback information

  • RESTful API for easy integration

  • AI Assistant integration for natural language control

  • Voice control interface for speaking commands

Use cases of Spotify MCP Server

  • Integrating Spotify control into home automation systems

  • Building custom Spotify remote control applications

  • Controlling Spotify with voice commands for hands-free operation

  • Enabling AI assistants to manage Spotify playback

  • Creating a unified interface for controlling Spotify across different devices

FAQ from Spotify MCP Server

How do I resolve 'Port already in use' error?

Change the port numbers in your .env file for PORT, BRIDGE_PORT, and VOICE_PORT to avoid conflicts.

What should I do if I have authentication issues?

Ensure you've visited the web interface and authenticated with Spotify. Also, check that your Client ID and Secret are correct in the .env file.

Why is voice control not working?

Make sure you're using a compatible browser (Chrome recommended), your microphone is working, and the bridge URL in the voice interface settings matches your bridge server address.

How do I fix 'No active device' error?

Start playing something in Spotify on any device, then try again. Spotify requires an active device to control playback.

Can I change the voice trigger phrase?

Yes, you can customize the voice trigger phrase in the Settings section of the voice control interface.