Skip to main content

Announcing StackOne Defender: leading open-source prompt injection guard for your agent Read More

Spotify MCP Server
for AI Agents

Production-ready Spotify MCP server with 50 extensible actions — plus built-in authentication, security, and optimized execution.

Spotify logo
Spotify MCP Server
Built by StackOne StackOne

Coverage

50 Agent Actions

Create, read, update, and delete across Spotify — and extend your agent's capabilities with custom actions.

Authentication

Agent Tool Authentication

Per-user OAuth in one call. Your Spotify MCP server gets session-scoped tokens with zero credentials stored on your infra.

Agent Auth →

Security

Agent Protection

Every Spotify tool response scanned for prompt injection in milliseconds — 88.7% accuracy, all running on CPU.

Prompt Injection Defense →

Performance

Max Agent Context. Min Cost.

Free up to 96% of your agent's context window to enhance reasoning and reduce cost, on every Spotify call.

Tools Discovery →

What is the Spotify MCP Server?

A Spotify MCP server lets AI agents read and write Spotify data through the Model Context Protocol — Anthropic's open standard for connecting LLMs to external tools. StackOne's Spotify MCP server ships with 50 pre-built actions, fully extensible via the Connector Builder — plus managed authentication, prompt injection defense, and optimized agent context. Connect it from MCP clients like Claude Desktop, Cursor, and VS Code, or from agent frameworks like OpenAI Agents SDK, LangChain, and Vercel AI SDK.

All Spotify MCP Tools and Actions

Every action from Spotify's API, ready for your agent. Create, read, update, and delete — scoped to exactly what you need.

Playlists

  • Create Playlist

    Create a playlist for a Spotify user

  • Get Playlist

    Get a playlist owned by a Spotify user

Playlist Items

  • Get Playlist Items

    Get full details of the items of a playlist owned by a Spotify user

  • Remove Playlist Items

    Remove one or more items from a user's playlist

Other (46)

  • Add Item To Playback Queue

    Add an item to the end of the user's current playback queue

  • Add Items To Playlist

    Add one or more items to a user's playlist

  • Add Custom Playlist Cover Image

    Replace the image used to represent a specific playlist

  • Get Album

    Get Spotify catalog information for a single album

  • Get Several Albums

    Get Spotify catalog information for multiple albums

  • Get Album Tracks

    Get Spotify catalog information about an album's tracks

  • Get User's Saved Albums

    Get a list of the albums saved in the current Spotify user's 'Your Music' library

  • Get Artist

    Get Spotify catalog information for a single artist

  • Get Several Artists

    Get Spotify catalog information for several artists

  • Get Artist's Albums

    Get Spotify catalog information about an artist's albums

  • Get Audiobook

    Get Spotify catalog information for a single audiobook

  • Get Audiobook Chapters

    Get Spotify catalog information about an audiobook's chapters

  • Get Chapter

    Get Spotify catalog information for a single chapter

  • Get User's Saved Audiobooks

    Get a list of the audiobooks saved in the current Spotify user's library

  • Get Episode

    Get Spotify catalog information for a single episode identified by its unique Spotify ID

  • Get User's Saved Episodes

    Get a list of the episodes saved in the current Spotify user's library

  • Get Playback State

    Get information about the user's current playback state, including track or episode, progress, and active device

  • Get Available Devices

    Get information about a user's available Spotify Connect devices

  • Get Currently Playing Track

    Get the object currently being played on the user's Spotify account

  • Get Recently Played Tracks

    Get tracks from the current user's recently played tracks

  • Get The User's Queue

    Get the list of objects that make up the user's queue

  • Get Current User's Playlists

    Get a list of the playlists owned or followed by the current Spotify user

  • Get Playlist Cover Image

    Get the current image associated with a specific playlist

  • Search For Item

    Get Spotify catalog information about albums, artists, playlists, tracks, shows, episodes or audiobooks that match a keyword string

  • Get Track

    Get Spotify catalog information for a single track identified by its unique Spotify ID

  • Get User's Saved Tracks

    Get a list of the songs saved in the current user's library

  • Get User's Saved Shows

    Get a list of shows saved in the current Spotify user's library

  • Get Show Episodes

    Get Spotify catalog information about a show's episodes

  • Get Show

    Get Spotify catalog information for a single show identified by its unique Spotify ID

  • Get Current User Profile

    Get detailed profile information about the current user

  • Get User's Top Artists And Tracks

    Get the current user's top artists or tracks based on calculated affinity

  • Get Followed Artists

    Get the current user's followed artists

  • Set Repeat Mode

    Set the repeat mode for the user's playback

  • Set Playback Volume

    Set the volume for the user's current playback device

  • Remove Items From Library

    Remove one or more items from the current user's library

  • Transfer Playback

    Transfer playback to a new device and optionally begin playback

  • Start/Resume Playback

    Start a new context or resume current playback on the user's active device

  • Pause Playback

    Pause playback on the user's account

  • Skip To Next Track

    Skips to next track in the user's queue

  • Skip To Previous Track

    Skips to previous track in the user's queue

  • Seek To Position

    Seeks to the given position in the user's currently playing track

  • Toggle Playback Shuffle

    Toggle shuffle on or off for user's playback

  • Change Playlist Details

    Change a playlist's name and public/private state

  • Reorder Or Replace Playlist Items

    Either reorder or replace items in a playlist depending on the request's parameters

  • Check User's Saved Items

    Check if one or more items are already saved in the current user's library

  • Save Library Items

    Save one or more items to the current user's library

Set Up Your Spotify MCP Server in Minutes

One endpoint. Any framework. Your agent is talking to Spotify in under 10 lines of code.

MCP Clients

Agent Frameworks

Claude Desktop
{
  "mcpServers": {
    "stackone": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote@latest",
        "https://api.stackone.com/mcp?x-account-id=<account_id>",
        "--header",
        "Authorization: Basic <YOUR_BASE64_TOKEN>"
      ]
    }
  }
}

More Social Media MCP Servers

Spotify MCP Server FAQ

Spotify MCP server vs direct API integration — what's the difference?
A Spotify MCP server and direct API integration serve different use cases. Direct API integration is for software-to-software — backend code calling Spotify. A Spotify MCP server is for AI agents — MCP clients like Claude and Cursor, plus framework agents built with OpenAI, LangChain, or Vercel AI — discovering and calling Spotify at runtime. StackOne provides both.
How does Spotify authentication work for AI agents?
Spotify authentication for AI agents works through a StackOne Connect Session. Create one via the dashboard or the SDK — you get an auth link and ready-to-paste config for Claude Desktop, Cursor, and other MCP clients. Your user authenticates their own Spotify account; StackOne handles token exchange, storage, and refresh. Credentials never reach the LLM, and each user is isolated via origin_owner_id.
Are Spotify MCP tools vulnerable to prompt injection?
Yes — Spotify MCP tools can be vulnerable to indirect prompt injection. Any tool that reads user-written content — documents, messages, tickets, records, or free-text fields — is a potential vector. StackOne Defender scans every tool response before it enters the agent's context — regex patterns in ~1ms, then a MiniLM classifier in ~4ms. 88.7% accuracy, CPU-only.
What is the context bloat of a Spotify agent and how do I avoid it?
Context bloat happens when Spotify tool schemas and API responses eat your Spotify agent's memory, preventing it from reasoning effectively. A single Spotify query can return a massive JSON response, and connecting multiple tools compounds the problem. Tools Discovery and Code Mode reduce context bloat — loading only relevant tools per query and keeping raw responses out of the agent's context.
Can I limit which actions my Spotify agent can access?
Yes — you can limit which actions your Spotify agent can access directly from the StackOne dashboard. Toggle actions on or off, or restrict them to specific accounts, with no code changes to your agent. Session tokens can be scoped to exact actions so if one leaks, exposure stays contained.
Can I create custom agent actions for my Spotify MCP server?
Yes — you can create custom agent actions for your Spotify MCP server using Connector Builder. It's an integration agent your coding assistant (Claude Code, Cursor, or Copilot) can invoke to research Spotify's API, generate production-ready connector YAML, test against the live API, and validate before you ship.
When should I NOT use a Spotify MCP server?
Skip a Spotify MCP server if your integration is purely software-to-software — direct Spotify API integration is simpler when no AI agent is involved. For deterministic, compliance-critical operations (financial transactions, regulatory reporting), direct API gives you predictable behavior without agent-driven decision-making. MCP shines when AI agents need to dynamically discover and call Spotify actions at runtime.
What AI frameworks and AI clients does the StackOne Spotify MCP server support?
The StackOne Spotify MCP server supports both. MCP clients (paste-and-go apps): Claude Desktop, Claude Code, Cursor, VS Code, Goose. Agent frameworks (code SDKs you build with): OpenAI Agents SDK, Anthropic, Vercel AI, Google ADK, CrewAI, Pydantic AI, LangChain, LangGraph, Azure AI Foundry.

Put your AI agents to work

All the tools you need to build and scale AI agent integrations, with best-in-class connectivity, execution, and security.