Skip to main content
Glama

Spotify MCP

by ashwanth1109

Spotify MCP

A FastMCP tool for Spotify.

Demo

Link: https://drive.google.com/file/d/1jGGQBzeXSKSJijeUwFZLdvrKPmPuogGd/

Pre-requisites

Installation

  • Clone this repository
  • Create a .env file in the root of the repository and add your Spotify API credentials (copy over from .env.example)
  • You can get your credentials by going to the Spotify Developer Dashboard and creating an app.
  • Go to Cursor Settings > Features > MCP Servers > + Add new MCP server
  • Name: Spotify, Type: command, Command: uv --directory <path-to-repository/mcp-spotify> run main.py

You should see the tool installed now. installed_mcp

Trying it out

  • Open Composer in "agent" mode and voila, you can have cursor control your Spotify player. (make sure you have spotify open on an active device)

Features

Below is an example conversation showcasing how you can interact with the Spotify MCP tool through Cursor Composer:

  1. User: "Show me my playlists."
    Response: "Here are your playlists: Chill Vibes, Workout Mix, Top Hits."
  2. User: "Play my 'Chill Vibes' playlist."
  3. User: "Pause song."
    Response: "Playback paused."
  4. User: "Resume song."
    Response: "Resuming playback..."
  5. User: "What song is this?"
    Response: "You're listening to 'Faded' by Alan Walker."
  6. User: "Tell me about this artist and show me some popular tracks."
    Response: "Artist Info: Alan Walker."
  7. User: "Show me my top artists from the last 6 months."
    Response: "Here are your most played artists..."
  8. User: "Search for Coldplay."
    Response: "Found artist: Coldplay. Here are their top tracks..."
  9. User: "Play song 'Fix You'."
    Response: "Starting playback for 'Fix You'..."
  10. User: "Show me my queue."
    Response: "Current queue: Track 1, Track 2, Track 3..."
  11. User: "Add 'Paradise' to my queue."
    Response: "Added 'Paradise' by Coldplay to your queue."
  12. User: "Move 'Paradise' up in the queue."
  13. User: "Set it on repeat."
  14. User: "I like this song. Recommend some similar tracks."
    Response: "Here are some recommendations based on this track..."
  15. User: "Add this track to my 'Chill Vibes' playlist."

Additional Available Features:

  • Seek to specific position in track
  • View detailed playback state
  • Skip multiple tracks at once

If you want more features to be supported, feel free to raise an issue!

Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

A FastMCP tool that enables control of Spotify through natural language commands in Cursor Composer, allowing users to manage playback, search for content, and interact with playlists.

  1. Demo
    1. Pre-requisites
      1. Installation
        1. Trying it out
          1. Features

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              A FastMCP-based tool for interacting with Splunk Enterprise/Cloud through natural language. This tool provides a set of capabilities for searching Splunk data, managing KV stores, and accessing Splunk resources
              Last updated -
              12
              59
              Python
              Apache 2.0
              • Apple
            • A
              security
              F
              license
              A
              quality
              A lightweight Model Context Protocol server that enables AI assistants like Cursor & Claude to control Spotify playback and manage playlists.
              Last updated -
              12
              99
              TypeScript
            • -
              security
              F
              license
              -
              quality
              A Model Context Protocol server that enables controlling Spotify playback through natural language commands in MCP clients like Cursor or Claude for Desktop.
              Last updated -
              2
              TypeScript
            • A
              security
              A
              license
              A
              quality
              A powerful MCP tool for parsing and manipulating MIDI files that allows users to read, analyze, and modify MIDI files through natural language commands, supporting operations like reading file information, modifying tracks, adding notes, and setting tempo.
              Last updated -
              11
              427
              5
              JavaScript
              MIT License
              • Linux
              • Apple

            View all related MCP servers

            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/ashwanth1109/mcp-spotify'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server