Spotify MCP Server
Control Spotify playback, manage playlists, search music, and get playback info using the Spotify Web API.
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., "@Spotify MCP Serverplay my Discover Weekly playlist"
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.
Spotify MCP Server
Spotify MCP Server is a dual-mode tool server for controlling Spotify through your terminal or via AI assistants like Claude or ChatGPT.
Built in Python using spotipy, aiohttp, and rich, it supports both real-time manual use and seamless AI integration.
Supported Features
Depending on whether the Spotify account is free or premium, the available features differ
Feature | Description | Free Account | Premium Required |
Spotify Authentication | OAuth login using client credentials | ✅ | ✅ |
Search (songs, albums, etc) | Search Spotify catalog | ✅ | ✅ |
Get Playback Info | Current track, device, status info | ✅ | ✅ |
View Playlists | Fetch user playlists | ✅ | ✅ |
Create Playlist | Create a new playlist | ✅ | ✅ |
Add to Playlist | Add tracks to an existing playlist | ✅ | ✅ |
Play Song | Start playing a specific song | ❌ | ✅ |
Pause / Resume Playback | Pause or resume music | ❌ | ✅ |
Skip / Previous Track | Skip to next or previous song | ❌ | ✅ |
Set Volume | Adjust playback volume | ❌ | ✅ |
Related MCP server: Spotify MCP Server
Modes of Operation
1. Manual Mode (CLI)
python server.py --mode=manualLaunches an animated terminal UI to control your Spotify account without using the app.
2. AI Mode (Claude / ChatGPT / LangChain)
python server.py --mode=aiEnables MCP tool server mode, allowing an AI agent to send structured tool calls and control your playback.
Installation & Setup
Requirements
Python 3.9+
Spotify Developer credentials (Client ID, Secret)
Install Dependencies
pip install -r requirements.txtConfigure Environment
Create a .env file in your root directory:
SPOTIFY_CLIENT_ID=your_client_id
SPOTIFY_CLIENT_SECRET=your_client_secret
SPOTIFY_REDIRECT_URI=http://localhost:8888/callbackProject Structure
spotipy-mcp-server/
├── server.py # Main CLI + AI server
├── main.py # Interactive terminal interface
├── requirements.txt # Dependencies
├── .gitignore
├── README.md
└── .env # (ignored)Commands
Command | Description |
| Launch terminal UI |
| Start MCP server for AI |
License
This project is open source and dual-licensed:
MIT License — opensource.org/license/mit
Apache 2.0 License — apache.org/licenses/LICENSE-2.0
Use it freely with attribution. Choose the license that fits your use case best.
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.
Latest Blog Posts
- 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/vinay1359/Spotify-MCP-with-dual-mode'
If you have feedback or need assistance with the MCP directory API, please join our Discord server