Get the FREE Ultimate OpenClaw Setup Guide →

spotify

Lightweight MCP server for Spotify

How to use

The Spotify MCP server is a lightweight implementation of the Model Context Protocol tailored specifically for Spotify. It enables developers to easily integrate Spotify functionality into their applications, allowing for real-time music data retrieval and manipulation, enhancing user experiences with music streaming. With this server, you can seamlessly access playlists, tracks, and user information without heavy overhead.

Once connected to the Spotify MCP server, you can interact with various endpoints to retrieve or manipulate music-related data. You can send queries to fetch track details, access user playlists, and control playback options. The server is designed to respond efficiently to commands like retrieving a specific track's metadata or listing a user's favorite songs, making it an essential tool for building music-centric applications.

How to install

Prerequisites

Before installing the Spotify MCP server, ensure you have Node.js installed on your machine. You can verify your installation by running:

node -v

Option A: Quick Start with npx

You can quickly start using the Spotify MCP server with npx. Run the following command in your terminal:

npx -y marcelmarais/spotify-mcp-server

Option B: Global Install Alternative

If you prefer to install it globally, you can clone the repository and install the dependencies. Use the following commands:

git clone https://github.com/marcelmarais/spotify-mcp-server.git
cd spotify-mcp-server
npm install

After installation, you can run the server using:

node index.js

Additional notes

For optimal performance, consider setting environment variables for your Spotify API credentials. This server requires your Spotify Client ID and Client Secret to function correctly. A common gotcha is forgetting to configure these credentials, which can result in authentication errors when making API requests.

Related MCP Servers

Sponsor this space

Reach thousands of developers