MCP PLAYLIST SERVER
Provides tools for creating mood-based playlists, finding similar songs, analyzing audio features, and curating genre-focused playlists using Spotify track data and audio feature analysis.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP PLAYLIST SERVERCreate a chill playlist with 8 songs"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🎵 MCP PLAYLIST SERVER
A Model Context Protocol (MCP) server that provides intelligent playlist curation tools using Spotify track data and audio feature analysis. This server enables AI assistants to create mood-based playlists, find similar songs, analyze audio characteristics, and curate personalized music collections.
🚀 Features
Core MCP Tools
create_mood_playlist: Generate playlists based on emotional states (happy, sad, energetic, calm, party, chill)find_similar_songs: Discover songs with similar audio characteristics using cosine similarity analysisanalyze_song: Get comprehensive audio feature breakdown for any trackcreate_genre_playlist: Build genre-focused playlists with customizable diversity levelsget_dataset_stats: View detailed dataset statistics and insights
Advanced Audio Analysis
The server analyzes multiple sophisticated audio characteristics:
Energy: Track intensity and power measurement
Valence: Musical positivity spectrum (happiness to sadness)
Danceability: Rhythmic suitability for dancing
Acousticness: Acoustic vs electronic instrumentation balance
Tempo: Beats per minute analysis
Speechiness: Spoken word content detection
Instrumentalness: Vocal vs instrumental content ratio
Liveness: Live performance detection
Popularity: Track mainstream appeal metrics
Related MCP server: spotify-mcp
🏗️ Architecture
├── server/
│ ├── main.py # FastMCP server implementation
│ └── engine.py # Playlist curation engine with ML algorithms
├── spotify_songs.csv # Spotify dataset (32K+ songs)
├── requirements.txt # Python dependencies
└── README.md # This file📋 Requirements
Python: 3.10 or higher
Dataset: Spotify tracks CSV with audio features
Dependencies: Listed in
requirements.txt
Core Dependencies
fastmcp>=1.2.0- Modern MCP server frameworkpandas>=2.0.0- Data manipulation and analysisnumpy>=1.24.0- Numerical computingscikit-learn>=1.3.0- Machine learning algorithms
🛠️ Installation
1. Clone Repository
git clone https://github.com/alee2602/MCP-SERVER2. Environment Setup
# Using Anaconda (recommended)
conda create -n mcp-playlist python=3.11
conda activate mcp-playlist
# Or using venv
python -m venv .venv
source .venv/bin/activate # Linux/Mac
# .venv\Scripts\activate # Windows3. Install dependencies
pip install -r requirements.txt🧪 Run the server
python server/main.py🔧 Usage with MCP Hosts
Claude Desktop Integration
Add to your
claude_desktop_config.json:
{
"mcpServers": {
"mcp-playlist": {
"command": "python",
"args": ["server/main.py"],
"cwd": "/absolute/path/to/your/project"
}
}
}Restart Claude Desktop
Below are examples the assistant understands.
Mood Playlist:
Create a happy playlist of 30 minutes in the rap genre
Make a chill playlist with 10 songs (min popularity 60).
Similar Songs:
Give me 7 songs similar to ‘Pillowtalk’ by ZAYN.
Find songs like ‘Worldwide’ by Big Time Rush.
Song analysis:
Analyze the audio features of ‘Bohemian Rhapsody’ by Queen.
Genre playlist:
Create a rock, pop playlist with 12 songs, diversity high
Dataset stats:
Show me dataset stats
What are the top genres in this dataset
Other MCP Clients
Configure with:
Protocol: STDIO
Command: python server/main.py
Working Directory: Project root
📊 API Examples
Create a mood-based playlist
{
"method": "tools/call",
"params": {
"name": "create_mood_playlist",
"arguments": {
"mood": "energetic",
"size": 15,
"genre": "rock",
"min_popularity": 50,
"duration_minutes": 30
}
}
}Create Genre Playlist
{
"method": "tools/call",
"params": {
"name": "create_genre_playlist",
"arguments": {
"genres": ["pop", "edm"],
"size": 20,
"diversity": "high"
}
}
}Find similar songs
{
"method": "tools/call",
"params": {
"name": "find_similar_songs",
"arguments": {
"song_name": "Blinding Lights",
"artist": "The Weeknd",
"count": 8
}
}
}Comprehensive Song Analysis
{
"method": "tools/call",
"params": {
"name": "analyze_song",
"arguments": {
"song_name": "Hotel California",
"artist": "Eagles"
}
}
}Get Dataset Statistics
{
"method": "tools/call",
"params": {
"name": "get_dataset_stats",
"arguments": {}
}
}🔍 Troubleshooting
1. "Dataset empty" Error
Verify
spotify_songs.csvexists in project rootCheck file permissions and format
Ensure required columns are present
2. "Import Error" Messages
pip install --upgrade fastmcp pandas scikit-learnDebug mode
# Enable verbose logging
python server/main.py --debug🙏 Acknowledgments
Anthropic MCP Protocol - Protocol specification
FastMCP Framework - Python MCP implementation
Spotify Web API - Audio feature reference
Kaggle Dataset - 30,000 Spotify Songs dataset by JoeBeachCapital
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceMCP server for Spotify playlist curation and management. 18 tools for song analysis, smart playlist creation, top tracks analysis, and automated recommendations.Last updated1MIT
- AlicenseBqualityDmaintenanceAn MCP server that enables users to control Spotify playback, search music, and manage playlists through natural conversation. It is updated for the February 2026 Spotify Web API changes and supports full playlist CRUD operations.Last updated65MIT
- Alicense-qualityDmaintenanceAn MCP server that enables users to control Spotify playback, search for music, and manage playlists through MCP-compatible clients. It supports features like track recommendations and playback management using secure OAuth authentication.Last updatedMIT
- Alicense-qualityDmaintenanceAn unofficial MCP server that provides access to Spotify's Web API through the Model Context Protocol, enabling AI assistants to search music, manage playlists, and control playback.Last updated229ISC
Related MCP Connectors
MCP server for Suno AI music generation, lyrics, and covers
MCP server for Producer/Riffusion AI music generation
An MCP server that integrates with Discord to provide AI-powered features.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/alee2602/MCP-SERVER'
If you have feedback or need assistance with the MCP directory API, please join our Discord server