Skip to content
← All MCP servers

Is the Spotify MCP server safe? What it can reach

What the Spotify MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.

Community serverChecked

No official Spotify MCP server is documented. The most used community option is marcelmarais/spotify-mcp-server, which you run yourself and sign in to with your own Spotify developer app over OAuth. It can control playback and edit your playlists and library, and it can remove saved tracks. The most useful limit is to deny the remove tools.

Who maintains it

ImplementationKindStatus
marcelmarais/spotify-mcp-server (community)Communityactive

It runs as a local process on your machine.

How it signs in

OAuth 2.0 through a Spotify developer app you create. Tokens are saved in spotify-config.json next to the server, and the server acts as your Spotify user. In HTTP mode with MCP_AUTH=spotify it uses the bearer token each request carries instead.

Scope or permissionAccess
user-read-privateread
user-read-emailread
user-read-playback-stateread
user-modify-playback-statewrite
user-read-currently-playingread
user-read-playback-positionread
playlist-read-privateread
playlist-read-collaborativeread
playlist-modify-privatewrite
playlist-modify-publicwrite
user-library-readread
user-library-modifywrite
user-read-recently-playedread
user-top-readread
user-follow-readread

What its tools can do

KindTools
ReadsearchSpotify, getNowPlaying, getMyPlaylists, getPlaylistTracks, getRecentlyPlayed, getUsersSavedTracks, getQueue, getAvailableDevices, getFollowedArtists, getAlbums, getAlbumTracks, checkUsersSavedAlbums, getPlaylist
WriteplayMusic, pausePlayback, resumePlayback, skipToNext, skipToPrevious, createPlaylist, addTracksToPlaylist, addToQueue, setVolume, adjustVolume, updatePlaylist, reorderPlaylistItems
Can’t be undoneremoveUsersSavedTracks, removeTracksFromPlaylist, saveOrRemoveAlbumForUser

The 15 scopes come from the README’s OAuth example for HTTP mode, which says a client should request the full set or tools that need a missing scope fail with 403. The README’s playback and volume tools need Spotify Premium.

Built-in limits

OptionWhat it does
MCP_TRANSPORTStdio is the default. Setting MCP_TRANSPORT=http serves Streamable HTTP, bound to 127.0.0.1 unless MCP_HTTP_HOST says otherwise.
MCP_AUTH=spotifyWith the HTTP transport, requires a Spotify bearer token on every request and validates it against Spotify. The token is not written to disk.
Docker setupThe shipped docker-compose runs OAuth-protected HTTP mode on an internal network with no host port published.

The risks

  • removeUsersSavedTracks, removeTracksFromPlaylist and saveOrRemoveAlbumForUser delete items from your Liked Songs, playlists or saved albums, and an injected instruction in a playlist name or description could trigger them.
  • Playlist names, descriptions and track titles are written by other people, so they are untrusted text that the agent reads on every search.
  • The token carries your Spotify account’s playlist, library, follow and playback rights, plus your email and account details through user-read-email and user-read-private.
  • In stdio mode the access and refresh tokens sit in plain text in spotify-config.json, so keep that file out of shared folders and repositories.

Limit it in Claude Code

Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:

claude mcp add spotify -- node spotify-mcp-server/build/index.js

Claude Code names MCP tools mcp__spotify__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:

{
  "permissions": {
    "deny": [
      "mcp__spotify__removeUsersSavedTracks",
      "mcp__spotify__removeTracksFromPlaylist",
      "mcp__spotify__saveOrRemoveAlbumForUser"
    ],
    "ask": [
      "mcp__spotify__createPlaylist",
      "mcp__spotify__addTracksToPlaylist",
      "mcp__spotify__updatePlaylist",
      "mcp__spotify__reorderPlaylistItems"
    ]
  }
}

Limit it in Codex

Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:

[mcp_servers.spotify]
command = "node"
args = ["spotify-mcp-server/build/index.js"]
disabled_tools = ["removeUsersSavedTracks", "removeTracksFromPlaylist", "saveOrRemoveAlbumForUser"]

Checklist

  • Deny the three remove tools unless you need them.
  • Create the Spotify developer app yourself and keep spotify-config.json private.
  • Ask before playlist edits.
  • Leave HTTP mode on 127.0.0.1 unless you add MCP_AUTH.

Checked against the vendor documentation on November 25, 2026. marcelmarais/spotify-mcp-server README · Spotify for Developers dashboard

What Excellent covers

Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server

Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing