JUHE API Marketplace
belljustin avatar
MCP Server

Spotify Model Context Protocol

Enables creating Spotify playlists based on text descriptions by connecting Cursor editor to Spotify's API through OAuth authentication.

2
GitHub Stars
11/17/2025
Last Updated
No Configuration
Please check the documentation below.
  1. Home
  2. MCP Servers
  3. spotify-mcp

README Documentation

Spotify Model Context Protocol (MCP)

A Spotify MCP for creating playlists based on a description.

Prerequisites

  • Python 3.6 or higher
  • Spotify Developer credentials (Client ID and Client Secret)

Setup

  1. Clone this repository:

    git clone https://github.com/yourusername/spotify-mcp.git
    cd spotify-mcp
    
  2. Install the required dependencies:

    pip install -r requirements.txt
    
  3. Set up your Spotify Developer credentials:

    • Go to Spotify Developer Dashboard
    • Create a new application
    • Set up your environment variables:
      echo SPOTIFY_CLIENT_ID='your_client_id' >> .env
      echo SPOTIFY_CLIENT_SECRET='your_client_secret' >> .env
      

Usage

Starting the Authentication Server

  1. Set up your redirect URI in the Spotify Developer Dashboard:

    • Go to your app in the Spotify Developer Dashboard
    • Click "Edit Settings"
    • Add http://localhost:5000/callback to the Redirect URIs
    • Save the changes
  2. Start the authentication server:

    python main.py
    

    This will start a local server on port 5000 that handles Spotify OAuth authentication.

  3. Visit http://localhost:5000 in your browser to authenticate with Spotify. After successful authentication, your access token will be saved for use with the MCP.

Integrating with Cursor

  1. Open Cursor and go to Settings
  2. Navigate to the "Model Context Protocols" section
  3. Click "Add MCP"
  4. Enter the following details in your mcp.json, replacing PATH-TO-BASE-DIR:
{
  "mcpServers": {
    "spotify": {
        "command": "uv",
        "args": [
          "--directory",
          "PATH-TO-BASE-DIR/spotify-mcp",
          "run",
          "spotify.py"
        ]
    }
  }
}

Now you can use the Spotify MCP commands in Cursor to create and manage playlists directly from your editor!

Quick Actions

View on GitHubView All Servers

Key Features

Model Context Protocol
Secure Communication
Real-time Updates
Open Source

Boost your projects with Wisdom Gate LLM API

Supporting GPT-5, Claude-4, DeepSeek v3, Gemini and more.

Enjoy a free trial and save 20%+ compared to official pricing.

Learn More
JUHE API Marketplace

Accelerate development, innovate faster, and transform your business with our comprehensive API ecosystem.

JUHE API VS

  • vs. RapidAPI
  • vs. API Layer
  • API Platforms 2025
  • API Marketplaces 2025
  • Best Alternatives to RapidAPI

For Developers

  • Console
  • Collections
  • Documentation
  • MCP Servers
  • Free APIs
  • Temp Mail Demo

Product

  • Browse APIs
  • Suggest an API
  • Wisdom Gate LLM
  • Global SMS Messaging
  • Temp Mail API

Company

  • What's New
  • Welcome
  • About Us
  • Contact Support
  • Terms of Service
  • Privacy Policy
Featured on Startup FameFeatured on Twelve ToolsFazier badgeJuheAPI Marketplace - Connect smarter, beyond APIs | Product Huntai tools code.marketDang.ai
Copyright © 2025 - All rights reserved