Command Palette

Search for a command to run...

UnylyUnyly
Browse all

SpotifyMCP

FreeNot checked

Enables creating and searching Spotify playlists through natural language using the Model Context Protocol.

GitHubEmbed

About

Enables creating and searching Spotify playlists through natural language using the Model Context Protocol.

README

This is a TypeScript-based MCP server for Spotify based on the Model Context Protocol.

Features

Tools

  • create_playlist - Create a new Spotify playlist.
    • Takes name, description, tracks, and public status as parameters.
    • Returns the URI of the created playlist.

Prompts

  • search_songs - Search for songs on Spotify.
    • Takes a search query and an optional limit for results.

Development

Install dependencies:

npm install

Build the server:

npm run build

For development with auto-rebuild:

npm run watch

Installation

To use with Claude Desktop, add the server config:

On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json On Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "SpotifyMCP": {
      "command": "node",
      "args": [
        "/Users/your_username/Documents/SideProjects/MCPs/spotify-mcp/build/index.js"
      ],
      "env": {
        "SPOTIFY_CLIENT_ID": "your_client_id_here",
        "SPOTIFY_CLIENT_SECRET": "your_client_secret_here",
        "SPOTIFY_REFRESH_TOKEN": "your_refresh_token_here"
      }
    },
  }
}

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:

npm run inspector

The Inspector will provide a URL to access debugging tools in your browser.

Setup Instructions

  1. Create a Spotify Developer Account
    Visit Spotify Developer and create an account.

  2. Create a New Application
    After logging in, create a new application to obtain your Client ID and Client Secret.

  3. Set Up Redirect URI
    In your Spotify application settings, configure the redirect URI to:

    http://localhost:8888/callback
    
  4. Create a .env File
    In the root of your project, create a .env file and add the following environment variables:

    SPOTIFY_CLIENT_ID=your_client_id_here
    SPOTIFY_CLIENT_SECRET=your_client_secret_here
    SPOTIFY_REDIRECT_URI=http://localhost:8888/callback
    
  5. Get Your Spotify Token
    Run the following command to obtain your Spotify token:

    npx ts-node src/scripts/get-spotify-token.ts
    
  6. Login to Your Application
    Visit http://localhost:8888/login in your browser Copy the refresh token and set it in your environment variables: SPOTIFY_REFRESH_TOKEN=your_refresh_token_here

from github.com/carllapierre/spotify-mcp

Installing SpotifyMCP

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/carllapierre/spotify-mcp

FAQ

Is SpotifyMCP MCP free?

Yes, SpotifyMCP MCP is free — one-click install via Unyly at no cost.

Does SpotifyMCP need an API key?

No, SpotifyMCP runs without API keys or environment variables.

Is SpotifyMCP hosted or self-hosted?

A hosted option is available: Unyly runs the server in the cloud, no local setup required.

How do I install SpotifyMCP in Claude Desktop, Claude Code or Cursor?

Open SpotifyMCP on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare SpotifyMCP with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All media MCPs