- Explore MCP Servers
- custom_spotify_mcp
Custom Spotify Mcp
What is Custom Spotify Mcp
custom_spotify_mcp is a custom MCP server that integrates with Spotify to create playlists based on the user’s emotions.
Use cases
Use cases include creating mood-specific playlists for relaxation, workout sessions, or parties, and integrating with mental health applications to provide music therapy.
How to use
To use custom_spotify_mcp, install the required dependencies, clone the repository, initialize the environment, create environment variables for Spotify API, and then install the MCP server.
Key features
Key features include emotion-based playlist generation, integration with Spotify’s API, and the ability to create and manage user-specific playlists.
Where to use
custom_spotify_mcp can be used in music streaming applications, emotional wellness platforms, and any service that seeks to enhance user experience through personalized music recommendations.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Custom Spotify Mcp
custom_spotify_mcp is a custom MCP server that integrates with Spotify to create playlists based on the user’s emotions.
Use cases
Use cases include creating mood-specific playlists for relaxation, workout sessions, or parties, and integrating with mental health applications to provide music therapy.
How to use
To use custom_spotify_mcp, install the required dependencies, clone the repository, initialize the environment, create environment variables for Spotify API, and then install the MCP server.
Key features
Key features include emotion-based playlist generation, integration with Spotify’s API, and the ability to create and manage user-specific playlists.
Where to use
custom_spotify_mcp can be used in music streaming applications, emotional wellness platforms, and any service that seeks to enhance user experience through personalized music recommendations.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
Custom Spotify MCP
This project is a custom MCP server that integrates Spotify to generate playlists based on user emotions.
Setup Instructions
Follow these steps to set up and run the project:
1. Install Dependencies
Install uv using Homebrew:
brew install uv
2. Clone the Repository
Clone this repository to a directory of your choice:
git clone https://github.com/dldnlee/custom_spotify_mcp.git custom_spotify_mcp
cd custom_spotify_mcp
3. Initialize the Environment
Open a terminal in the cloned directory and run:
uv init
4. Create Environment Variables
You can get the required tokens from Spotify for Developers
SPOTIFY_CLIENT_ID=your-spotify-client-id
SPOTIFY_CLIENT_SECRET=your-spotify-client-secret
SPOTIFY_REDIRECT_URI=http://127.0.0.1:8888/callback (Needs to be identical with the URI saved in Spotify Developer's App Settings)
Run
python3 util/spotify_auth.py
or
python util/spotify_auth.py
To generate the access tokens. Needs to be created every hour
4. Install MCP Server to Claude
mcp install server.py
TroubleShooting
If uv init doesn’t work, manually add the required libraries:
uv add "mcp[cli]"
uv add "requests"
Notes
Ensure you have created a Spotify Developer App and configured:
- Client ID
- Client Secret
- Redirect URI
- These credentials should be securely added in spotify_auth.py.
Useful Links
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










