Connector guide8-minute read27 MCP tools7 languages

How to Connect Spotify to Claude via MCP

Let your AI work with your Spotify account: search music and podcasts, read your playlists, Liked Songs, top artists and recently played tracks, see what is playing, create playlists and add or remove tracks, and control playback on Premium after your confirmation. Signed in through a Spotify developer app of your own.

HCBy HelpCode teamUpdated 8 min read Open-source on GitHub

No credit card · 7-day trial · Self-host alternative available

Spotify

Spotify

Let your AI work with your Spotify account: search music and podcasts, read your playlists, Liked Songs, top artists and recently played tracks, see what is playing, create playlists and add or remove tracks, and control playback on Premium after your confirmation. Signed in through a Spotify developer app of your own.

tools

27

Region

INTL

Category

Social Media

Authentication

OAuth 2.0

Required env vars

SPOTIFY_CLIENT_IDSPOTIFY_CLIENT_SECRET
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source · AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Skip the install. Get this working in under 2 minutes.

Start a free trial on cloud.anythingmcp.com, add the Spotify in one click, then point your AI client (Claude, ChatGPT, Copilot or Cursor) at the generated MCP endpoint. No Docker, no git clone, zero engineering experience required.

Start free trial

AnythingMCP is listed in Claude's connector directory: add it to Claude in one click (opens in a new tab), then sign in and choose which MCP servers Claude may use.

Summary

Let your AI work with your Spotify account: search music and podcasts, read your playlists, Liked Songs, top artists and recently played tracks, see what is playing, create playlists and add or remove tracks, and control playback on Premium after your confirmation. Signed in through a Spotify developer app of your own.

Try asking

Example prompts for Spotify

Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.

Spotify · live via MCP
Share
Opus 4.7

Claude is AI and can make mistakes. Please double-check responses.

💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → Spotify, paste your credentials, mint an MCP API key and you're done. No Docker, no git clone, no local server.

Spotify + Claude

Let your AI work with your Spotify account: search music and podcasts, read your playlists, Liked Songs, top artists and recently played tracks, see what is playing, create playlists and add or remove tracks, and control playback on Premium after your confirmation. Signed in through a Spotify developer app of your own.

Prerequisites

See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:

SPOTIFY_CLIENT_ID, SPOTIFY_CLIENT_SECRET

Step 1 — Get credentials

  1. Sign in at developer.spotify.com/dashboard with the Spotify Premium account that will own the app, and click Create app.
  2. Enter a name and a description. Under Redirect URIs add https://cloud.anythingmcp.com/api/mcp-oauth/callback. If you host AnythingMCP yourself, use https://your-anythingmcp-host/api/mcp-oauth/callback. Tick Web API, accept the terms and click Save.
  3. Open the app's Settings: copy the Client ID into SPOTIFY_CLIENT_ID, click View client secret and copy the secret into SPOTIFY_CLIENT_SECRET.
  4. Under User Management add every Spotify account that will sign in, with a name and the email address of that Spotify account. Up to 5 accounts.
  5. Install the connector, click Authorize with Provider on the connector page, sign in to Spotify and accept.
  6. Check the setup with spotify_get_me: it shows the account you signed in with.

A personal connector, by Spotify's rules: Spotify runs every new developer app in development mode. Since February 2026 the owner of the app needs an active Spotify Premium subscription, or the app stops working until Premium is renewed. An app serves at most 5 Spotify users, each added by hand under User Management; anyone else can sign in, but every call is refused with 403. More users need Spotify's extended quota, which only registered businesses with a launched service and at least 250,000 monthly active users can apply for. In practice the connector is for your own account and a few people you add.

Redirect URI rules: Spotify accepts only HTTPS redirect URIs, or http://127.0.0.1 with a port for a local test. localhost is refused. The URI in the app must match the one AnythingMCP uses exactly.

What it reads: your profile; catalog search for tracks, artists, albums, playlists, podcasts, episodes and audiobooks; details of a track, album or artist and an artist's releases; your playlists and the tracks of playlists you own or collaborate on; Liked Songs; your top artists and tracks over 4 weeks, 6 months or about a year; recently played tracks; what is playing now, your devices and the queue.

Asks before every change: spotify_create_playlist, spotify_add_playlist_items and spotify_remove_playlist_items change your playlists, and spotify_start_playback, spotify_pause_playback, spotify_skip_to_next, spotify_skip_to_previous and spotify_add_to_queue change what is playing. Before each one the AI tells you what will happen and waits for your yes. New playlists are public unless you ask for a private one.

Playback needs Premium: controlling playback needs Spotify Premium on the signed-in account and the Spotify app open on a phone, computer or speaker. Without an active device Spotify answers NO_ACTIVE_DEVICE: open Spotify somewhere, or let the AI pick a device from spotify_list_devices. A free account gets PREMIUM_REQUIRED. Seeing what is playing works on free accounts too. The connector remote-controls your Spotify apps; it does not play audio itself.

Switched off at install: spotify_save_to_library and spotify_remove_from_library (save or remove Liked Songs, follow or unfollow). To use them, add the scopes user-library-modify and user-follow-modify in the connector's OAuth settings, authorize again and switch the tools on. They ask first too.

What development mode leaves out: recommendations, audio features, related artists, an artist's top tracks, new releases, featured and category playlists, and other users' profiles and playlists. Spotify's own editorial and algorithmic playlists cannot be opened. Search returns at most 10 results per type and call, and popularity, followers and genres are no longer returned.

Common errors: 401: the sign-in expired or was revoked; click Authorize with Provider again. 403: the account is not in User Management, the owner's Premium has lapsed, or the playlist is neither yours nor shared with you as a collaborator. 429: development-mode quotas are counted per developer account; wait and try again later.

The connector does not download or preview audio, change playlist covers, or use the endpoints Spotify reserves for extended quota.

Step 2 — Install the adapter

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

Step 3 — Add the connector in Claude

Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide shows YOUR_SERVER_ID.

Recommended path: works on claude.ai web without editing any config file.

  1. In Claude, open Customize → Connectors.
  2. Click +, then Add custom connector.
  3. Enter a name, e.g. Spotify, and the remote MCP server URL https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID, then click Add.
  4. Click Connect and sign in to AnythingMCP (OAuth) to allow access.

All tools below appear in your chat: start typing prompts.

Available tools

ToolWhat it does
spotify_get_meRead the signed-in Spotify account: user id, account_id, display name, profile link and Spotify URI
spotify_searchSearch the Spotify catalog for tracks, artists, albums, playlists, shows, episodes or audiobooks
spotify_get_trackRead one track by its Spotify id: name, artists, album, release date, duration, explicit flag, track and disc number, playability, ISRC…
spotify_get_albumRead one album by its Spotify id: name, type, artists, release date, total tracks, copyrights, link, and its first tracks (up to 50; total…
spotify_get_artistRead one artist by Spotify id: name, uri, link and image
spotify_get_artist_albumsList an artist's albums, singles and compilations: id, name, type, release date, track count and link
spotify_get_playlistRead a playlist's details: name, description, owner, public and collaborative flags, snapshot_id, number of items and link
spotify_get_playlist_itemsList the tracks and episodes of a playlist the user owns or collaborates on: when and by whom each was added, type, id, name, uri, artists…
spotify_list_my_playlistsList the playlists the signed-in user owns or follows: id, name, owner, public and collaborative flags, number of items, snapshot_id and…
spotify_get_top_itemsList the signed-in user's most played artists or tracks over about 4 weeks (short_term), 6 months (medium_term, default) or about a year…
spotify_get_recently_playedList the tracks the signed-in user played most recently (up to 50; podcast episodes are not included): when, track, artists, album and the…
spotify_get_playback_stateRead what is playing right now and where: playing or paused, progress, shuffle and repeat state, the device (name, type, volume) and the…
spotify_get_currently_playingRead the track or episode currently playing on the user's account: playing or paused, progress, the item and the context it plays from
spotify_list_devicesList the user's available Spotify Connect devices (phone, computer, speaker): id, name, type, whether active, volume
spotify_get_queueRead the user's playback queue: the item playing now and the items queued after it (name, uri, artists or show)
spotify_list_saved_tracksList the songs saved in the user's library (Liked Songs), newest first: when saved, track, artists, album, duration
spotify_check_libraryCheck whether tracks, albums, episodes, shows, audiobooks, artists, users or playlists are saved or followed by the user
spotify_create_playlistCreate a new, empty playlist in the signed-in user's account
spotify_add_playlist_itemsAdd tracks or episodes to a playlist the user owns or collaborates on (up to 100 per call)
spotify_remove_playlist_itemsRemove tracks or episodes from a playlist the user owns or collaborates on (every occurrence of each URI, up to 100 per call)
spotify_start_playbackStart or resume playback: without arguments it resumes; context_uri plays an album, artist or playlist; uris plays specific tracks
spotify_pause_playbackPause playback on the user's active device (or the given device)
spotify_skip_to_nextSkip to the next item in the user's queue
spotify_skip_to_previousGo back to the previous item in the user's queue
spotify_add_to_queueAdd a track or episode to the end of the user's playback queue
spotify_save_to_librarySave items to the user's library or follow them: tracks, albums, episodes, shows and audiobooks are saved; users and playlists are followed…
spotify_remove_from_libraryRemove items from the user's library or unfollow them (up to 40 URIs): tracks, albums, episodes, shows, audiobooks, users and playlists

Example prompts

  • "What have I listened to most over the last four weeks? List my top 10 tracks and top 5 artists."
  • "Create a private playlist called Road Trip with the 20 songs I saved most recently to Liked Songs. Show me the list before you create it."
  • "What is playing right now, and on which device?"
  • "Find the album Kind of Blue by Miles Davis and add its first track to my queue."
  • "Which songs did I play yesterday evening? Put them in a table with artist and album."

FAQ

Does it work with Claude Code as well as Claude Desktop? Yes, point both at https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID.

Next steps

Was this guide helpful?

Your Spotify agent is one click away.

Install the connector, paste the key, prompt Claude. Free for 7 days, no credit card.

Related guides

Connectors

How to Connect Spotify to ChatGPT via MCP

Let your AI work with your Spotify account: search music and podcasts, read your playlists, Liked Songs, top artists and recently played tracks, see what is playing, create playlists and add or remove tracks, and control playback on Premium after your confirmation. Signed in through a Spotify developer app of your own.

Connectors

How to Connect Spotify to Cursor via MCP

Let your AI work with your Spotify account: search music and podcasts, read your playlists, Liked Songs, top artists and recently played tracks, see what is playing, create playlists and add or remove tracks, and control playback on Premium after your confirmation. Signed in through a Spotify developer app of your own.

Connectors

How to Connect Spotify to Gemini via MCP

Let your AI work with your Spotify account: search music and podcasts, read your playlists, Liked Songs, top artists and recently played tracks, see what is playing, create playlists and add or remove tracks, and control playback on Premium after your confirmation. Signed in through a Spotify developer app of your own.

Connectors

How to Connect Spotify to Meta Muse via MCP

Let your AI work with your Spotify account: search music and podcasts, read your playlists, Liked Songs, top artists and recently played tracks, see what is playing, create playlists and add or remove tracks, and control playback on Premium after your confirmation. Signed in through a Spotify developer app of your own.

Connectors

Spotify to MCP: Your Music, Playlists and Playback in any AI Agent

Let your AI work with your Spotify account: search music and podcasts, read your playlists, Liked Songs, top artists and recently played tracks, see what is playing, create playlists and add or remove tracks, and control playback on Premium after your confirmation. Signed in through a Spotify developer app of your own.

Connectors

How to Connect Avito to Claude via MCP

Let your AI work with your Avito business account: list your ads and change their prices, read views, contacts and calls statistics, check autoload uploads and their errors, the feed format and your wallet, and read Avito Messenger chats. Sending messages and changing autoload settings are optional and off by default.