
spotify mcp
Connect Spotify to LLM via MCP model.
Repository Info
About This Server
Connect Spotify to LLM via MCP model.
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Blog-: https://samit.bearblog.dev/mcp-servers/
Video Demo-: https://youtu.be/BExl8jhthoE
To start-:
- Clone repo
- Download dependencies -> uv, requests, mcp, spotipy via pip
- Use ngrok for tunnelling localhost -> ngrok http 3000 {spotify doesn't support localhost anymore}
- Go to Spotify Dashboard and get your client ID and secret ID, paste that in server.py
- In dashboard create a new app and add the redirect uri = your ngrok url
- Download Claude Local -> Go to settings -> Edit configuration and edit the claude_desktop_config.json to the following and restart Claude-:
{
"mcpServers": {
"spotify": {
"command": "/Users/smol/.local/bin/uv",
"args": [
"--directory",
"/Users/smol/fun/mcp-server/mcp-server-demo",
"run",
"server.py"
]
}
}
}
- uv run server.py and open Claude again. Now you'll see all the MCP tools and you can ask Claude to access Spotify for you.
Features-: 🔊 Playback Controls
- ✅ Play/pause/next
- 🔁 Shuffle and repeat modes
- 🎧 Play full album by name
- 🔄 Autoplay based on mood (infinite playlist)
🎶 Playlist Wizardry
-
Create playlists by:
- Genre, mood, custom song list
- ➕ Add a song to an existing playlist by name
- 🗑️ Delete playlists by name
- 🎯 Fetch playlist content with track + artist
-
🎙️ Lyrics & Info
- 📃 Get lyrics of any song (Genius API)
- 🎵 Get lyrics of currently playing song
- 📌 Show current playing song + metadata
-
💡 Smart Recommendations
- 🧠 Recommend songs based on recent listening
- 👥 Get recently played artists
- 🔍 Find albums by artist
- 📚 List liked songs
- Recommends songs based on history
Quick Start
Clone the repository
git clone https://github.com/samitmohan/spotify-mcpInstall dependencies
cd spotify-mcp
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.