Sponsored by Deepsite.site

Spotify MCP Server

Created By
NathanPr038 months ago
MCP Server for Interfacing with Splunk
Content

Spotify MCP Server

A Model Context Protocol (MCP) server for Spotify integration, allowing AI assistants like Claude to control and interact with your Spotify account.

Overview

This project provides a set of MCP tools that enable AI assistants to:

  • Search for playlists
  • Retrieve playlist details and tracks
  • Control playback (play, pause, skip, previous)
  • Create and modify playlists
  • Toggle shuffle mode
  • View currently playing tracks
  • Add tracks to the queue

Built on top of the Model Context Protocol and zmb3/spotify Golang SDK.

What is MCP?

The Model Context Protocol (MCP) is an open protocol that standardizes how applications provide context to Large Language Models (LLMs). It allows LLMs like Claude to interact with external systems and data sources in a secure and standardized way.

MCP works like a USB-C port for AI applications - providing a standardized way to connect AI models to different data sources and tools. This project implements a Spotify server that follows the MCP specification, enabling AI assistants to control and interact with your Spotify account.

Setup

Prerequisites

  1. Go 1.18 or higher
  2. A Spotify account (you will need Spotify Premium for playback control)
  3. Spotify Developer credentials

Getting Spotify API Credentials

  1. Visit the Spotify Developer Dashboard
  2. Log in with your Spotify account
  3. Click "Create an App"
  4. Fill in the application name and description
  5. Once created, you'll see your Client ID and you can view your Client Secret
  6. Set the redirect URI to http://127.0.0.1:1690/callback

Using with Claude

To use this server with Claude for Desktop:

  1. Open Claude for Desktop

  2. Create or update your MCP configuration at:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  3. Add the following configuration:

{
  "mcpServers": {
    "spotify": {
      "command": "/path/to/spotify-mcp-binary",
      "env": {
        "SPOTIFY_CLIENT_ID": "your_client_id_here",
        "SPOTIFY_CLIENT_SECRET": "your_client_secret_here"
      }
    }
  }
}
  1. Restart Claude for Desktop
  2. When first using Spotify tools, you'll need to authenticate using the spotify_login tool

Available Tools

Playback

  • spotify_login - Start Spotify authentication process for playback control
  • play - Start or resume playback on your Spotify account
  • pause - Pause playback on your Spotify account
  • next_track - Skip to the next track in your Spotify queue
  • previous_track - Skip to the previous track in your Spotify queue
  • shuffle - Toggle shuffle mode on your Spotify account
  • current_track - Get information about the currently playing track
  • get_queue - Get the current playback queue
  • add_tracks_to_queue - Add tracks to the current playback queue

Playlist

  • get_playlist - Get detailed information about a specific playlist
  • get_playlist_tracks - Get the tracks in a playlist
  • create_playlist - Create a new Spotify playlist
  • add_tracks_to_playlist - Add tracks to a playlist
  • remove_tracks_from_playlist - Remove tracks from a playlist
  • get_user_playlists - Get playlists for a Spotify user
  • simple_playlist_and_album_search - Search for a playlist or album by name
  • simple_song_search - Search for a song by name

License

MIT License

Acknowledgments

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
WindsurfThe new purpose-built IDE to harness magic
ChatWiseThe second fastest AI chatbot™
CursorThe AI Code Editor
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Amap Maps高德地图官方 MCP Server
Tavily Mcp
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Serper MCP ServerA Serper MCP Server
DeepChatYour AI Partner on Desktop
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Playwright McpPlaywright MCP server
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。