Spotify MCP Server
for AI Agents
Connect your AI agent to StackOne's Spotify MCP server and give it 47 MCP tools out of the box. Auth, tool execution, and security all managed.
Coverage
47 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 47 pre-built actions, fully extensible via the Connector Builder — plus managed authentication, prompt injection defense, observability, and agent execution runtime. Connect it from MCP clients like Claude Desktop, Claude Code, Cursor, Goose, and VS Code, or from agent frameworks like OpenAI Agents SDK, LangChain, and Vercel AI SDK.
All Spotify MCP Tools
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 (43)
- 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
- Get Album
Get Spotify catalog information for a single album
- 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 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. The body must use exactly one of two mutually exclusive operation modes — REPLACE or REORDER
- 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
Spotify AI Agent Use Cases
Connect your AI agent to Spotify and help your team scale the marketing operations they run by hand today.
Use StackOne to connect your AI agent to your marketing automation, CRM, and email tools to automate lead nurture email sequences.
ViewUse StackOne to connect your AI agent to your marketing automation, email, and analytics platforms to automate campaign performance reporting.
ViewUse StackOne to connect your AI agent to your document stores, email platforms, and messaging tools to automate content repurposing and distribution.
ViewSet Up Your Spotify MCP Server in Minutes
One endpoint. Any framework. Your agent is talking to Spotify in under 10 lines of code.
Agent Frameworks
{
"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>"
]
}
}
}Platform Resources
MCP Code Mode: Keeping Tool Responses Out of Agent Context
Anthropic's code_execution processes data already in context. Custom MCP code mode keeps raw tool responses in a sandbox. 14K tokens vs 500.
11 min
Comparing BM25, TF-IDF, and Hybrid Search for MCP Tool Discovery
Benchmarking BM25, TF-IDF, and hybrid search for MCP tool discovery across 916 tools. The 80/20 TF-IDF/BM25 hybrid hits 21% Top-1 accuracy in under 1ms.
10 min
Indirect Prompt Injection Defense for MCP Tools: A Technical Guide
MCP tools that read emails, CRM records, and tickets are indirect prompt injection vectors. Here's how we built a two-tier defense that scans tool results in ~11ms.
12 min
MCP vs A2A: Architecture, Security, and When to Use Each
MCP vs A2A: what each protocol standardizes, how they differ, their shared security risks including indirect prompt injection, and when to use one, both, or a hybrid architecture.
12 min
MCP vs API: What 200+ Connector Builds Taught Us
MCP wraps APIs, it doesn't replace them. After building 200+ connectors that serve both, here's when each approach wins.
14 min read
Spotify MCP Server FAQ
Does StackOne have a Spotify MCP server?
Spotify MCP server vs direct API integration — what's the difference?
How does Spotify authentication work for AI agents?
origin_owner_id.Are Spotify MCP tools vulnerable to prompt injection?
What is the context bloat of a Spotify agent and how do I avoid it?
Can I limit which actions my Spotify agent can access?
Can I create custom agent actions for my Spotify MCP server?
When should I NOT use a Spotify MCP server?
What AI frameworks and AI clients does the StackOne Spotify MCP server support?
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.