Skip to content
Spotify logoSpotify logo

Spotify Integrations

Video & Audio

Build Spotify automations with your AI agent. Run them on Zapier.

Add Zapier to Claude, ChatGPT, Cursor, or another AI agent, and your agent can build automations across Spotify and 10,000+ other apps.
apps to connect
10,000+
ways to start a workflow
5
available app actions
17
  • Dependable AI workflows
  • Full audit trails and controls
  • Easy visual workflow manager
  • Free tier available
  • SOC 2 Type II, SOC 3, GDPR, and CCPA compliant

Top teams trust Zapier to automate work

  • Samsung
  • Okta
  • Mastercard
  • Nvidia
  • Airbnb

Spotify MCP server: connect Spotify to your AI agent with Zapier

Install Zapier once, then tell your agent what you want done. Behind the scenes, Zapier MCP finds the right triggers and actions to use with Spotify and runs them—all with your credentials managed by Zapier and kept out of the model.

Paste into any AI tool
Connect to Zapier MCP at https://mcp.zapier.com/api/v1/connect and help me sign in to Zapier or sign up. Then connect my Spotify account and help me build a Zap with Spotify: ask me what I want to automate. Read the setup steps at https://zapier.com/AGENTS.md if you can't connect.

Paste this prompt into Claude, ChatGPT, Cursor, or your preferred AI agent to build Spotify automations.

MCP server · Streamable HTTP
https://mcp.zapier.com/api/v1/connect

Install this server in Claude, ChatGPT, Cursor, VS Code, or any MCP client. You sign in once with OAuth.

Terminal · in your project
npm install @zapier/zapier-sdk
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection spotify

Call any app action from TypeScript. Zapier handles OAuth, token refresh, retries, and rate limits.

Terminal · no project
npx @zapier/install-zapier

Run this command to print setup instructions for your client, then follow the prompts to sign in.

Ask your AI agent to do it

Tell Claude, ChatGPT, or your go-to AI agent to install Zapier MCP, and it’ll get you started with Zapier.

Wire it into your own code

Connect your agent to Spotify and 10,000+ more apps with the TypeScript SDK. Zapier handles OAuth and token refresh.

Set it up from your terminal

Tell your coding agent to run one command. It installs Zapier MCP so your agent can use Spotify and other apps.

Use a premade Spotify automation template to start building from anywhere: in your go-to agent interface, in code, or in Zapier.

With Zapier MCP installed, your AI agent can build automations across 10,000+ apps and 90,000+ triggers and actions. Automations run reliably on Zapier from an app event, on a schedule (cron), or from a webhook. Here are the Spotify triggers and actions your agent can build with right away.

  • New Played Track

    Triggers when a track finishes playing. Use with a Filter step to only trigger when particular song/s plays.

  • New Saved Track

    Triggers when a new track is "Liked".

  • New Podcast Episode

    Triggers when a new episode is added to the selected show.

  • New Playlist

    Triggers when a new playlist is created.

  • New Track Added to Playlist

    Triggers when a new track is added to one of your playlists.

  • Add Items to Playlist

    Add one or more items to your playlist. Only available for tracks and episodes.

  • Create Playlist

    Create a new playlist.

  • Find Top Tracks for Artist

    Retrieve the top tracks for an artist, by market. Returned as an array of line items.

Your agent picks the right Spotify action from what you ask. Connect Zapier once and it can use 22 Spotify tools, each with typed inputs. Zapier handles Spotify’s login, so you never paste an API key. The same actions run from TypeScript through the Zapier SDK.

Set up Spotify MCP in Claude, Claude Code, ChatGPT, Cursor, and Codex

Zapier MCP works with any MCP client that supports Streamable HTTP. Connect or add Zapier in your AI tool, sign in when prompted, then ask for Spotify.

MCP server · Streamable HTTP · OAuth
https://mcp.zapier.com/api/v1/connect
  • Claude

    Connect Zapier in Claude and sign in when prompted. Claude setup guide

  • Claude Code

    Install Zapier MCP in Claude Code, then sign in from the terminal. Claude Code setup guide

  • ChatGPT

    Connect Zapier in ChatGPT and approve the sign-in. ChatGPT setup guide

  • Cursormcp.json

    Add Zapier to Cursor and sign in. Cursor setup guide

  • Codex

    Add Zapier to Codex and sign in. Codex setup guide

  • VS Code and other clientsmcp.json

    Add Zapier to any MCP client that supports Streamable HTTP.

  • OpenCodeopencode.json

    Add Zapier to OpenCode.

  • Terminal auto-installer

    Install Zapier MCP in whichever client you have.

How your agent gets these tools

  1. Connect Zapier to your AI tool (pick yours above) and sign in once in the browser. Zapier sets up your MCP server, with no token to paste.
  2. Ask your agent to connect Spotify. It calls discover_zapier_actions to find the Spotify actions, then enable_zapier_action to add them.
  3. Approve the Spotify sign-in when prompted. If Spotify isn’t connected yet, the first call returns a sign-in link.
  4. Ask for what you want done in plain language. Each enabled action becomes its own tool, named as below. Until then, execute_zapier_read_action and execute_zapier_write_action run it.

Use Spotify in 35 AI tools with Zapier MCP

22 Spotify MCP tools

ToolMCP nameWhat it does
New Played Trackspotify_new_played_track

Trigger · Read-only. Triggers when a track finishes playing. Use with a Filter step to only trigger when particular song/s plays.

New Saved Trackspotify_new_saved_track

Trigger · Read-only. Triggers when a new track is "Liked".

New Podcast Episodespotify_new_podcast_episode

Trigger · Read-only. Triggers when a new episode is added to the selected show.

Required: id (Show)

New Playlistspotify_new_playlist

Trigger · Read-only. Triggers when a new playlist is created.

New Track Added to Playlistspotify_new_track_added_to_playlist

Trigger · Read-only. Triggers when a new track is added to one of your playlists.

Optional: ID (Playlist)

Find Episodespotify_find_episode

Search · Read-only. Get Spotify catalog information for a single show episode.

Required: id (Episode)

Find Top Track for Artistspotify_find_top_track_for_artist

Search · Read-only. Get Spotify catalog information about an artist's top track, by market.

Required: id (Artist ID)

Find Trackspotify_find_track

Search · Read-only. Get Spotify catalog information for a single track.

Required: id (Track ID)

Get Saved Showsspotify_get_saved_shows

Search · Read-only. Get a list of the current user’s saved shows as array of line items. Maximum of 50 shows.

Search for Itemspotify_search_for_item

Search · Read-only. Get Spotify catalog information about an album, artist, playlist, track, show or episode that match a keyword string.

Required: type (Search Type), q (Search Query)

Add Items to Playlistspotify_add_items_to_playlist

Action · Writes data. Add one or more items to your playlist. Only available for tracks and episodes.

Required: playlist_id (Playlist), uris

Optional: position

Create Playlistspotify_create_playlist

Action · Writes data. Create a new playlist.

Required: name (Playlist Name)

Optional: description, public (Visibility), collaborative

Find Top Tracks for Artistspotify_find_top_tracks_for_artist

Action · Writes data. Retrieve the top tracks for an artist, by market. Returned as an array of line items.

Required: id (Artist ID)

Get Currently Playing Trackspotify_get_currently_playing_track

Action · Writes data. Retrieve the item currently being played on the user's Spotify account.

Get Show Detailsspotify_get_show_details

Action · Writes data. Get Spotify catalog information for a single Saved Show.

Optional: id (Show)

Get Show Episodesspotify_get_show_episodes

Action · Writes data. Retrieves list of 5 most recent episodes in an array of line items.

Required: id (Show)

Get Track's Audio Featuresspotify_get_track_s_audio_features

Action · Writes data. Get audio feature information for a single track identified by its unique Spotify ID.

Required: id (Track ID)

Save Albumspotify_save_album

Action · Writes data. Save one or more albums to Your Library.

Required: ids (Album ID)

Save Episode to My Userspotify_save_episode_to_my_user

Action · Writes data. Add Episode to Your Episodes.

Required: id (Episode ID)

Save Track(s)spotify_save_track_s

Action · Writes data. Save one or more tracks to Your Library.

Required: ids (Tracks)

Start/Resume Playbackspotify_start_resume_playback

Action · Writes data. Start or resume current playback on an active device.

Optional: context_uri (Enter Album, Artist, Playlist URI), uris (Enter Track), offset (Play When), device_id (Device)

Update Playlistspotify_update_playlist

Action · Writes data. Edit the playlist name, description or private/public state.

Required: playlist_id (Playlist)

Optional: name (Playlist Name), description, public (Visibility), collaborative

Spotify API with the Zapier SDK, without pasting an API key

The Zapier SDK gives your code one way to call Spotify. You connect your account once, and your code references that connection instead of a raw token.

add_items_to_playlist (Add Items to Playlist) requires playlist_id and uris. Every Spotify action and its inputs are listed under Spotify triggers and actions above. Zapier handles OAuth, token refresh, retries and rate limits. Read the SDK docs

Terminal · in your project
npm install @zapier/zapier-sdk
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection spotify
TypeScript
import { createZapierSdk } from "@zapier/zapier-sdk";

const zapier = createZapierSdk();
const { data: connection } = await zapier.findFirstConnection({ app: "spotify", owner: "me" });

const { data } = await zapier.runAction({
  app: "spotify",
  actionType: "write",
  action: "add_items_to_playlist",
  connection: connection.id,
  inputs: {
    playlist_id: "", // Playlist
    uris: "", // URIs
  },
});
Zapier SDK CLI
npx zapier-sdk run-action spotify write add_items_to_playlist \
  --inputs '{"playlist_id":"","uris":""}'

Frequently asked questions about automating with Spotify

Which Spotify objects are supported?

Tracks, artists, albums, and playlists are supported for search and playlist actions.

Can Spotify trigger Zaps on new playlist activity?

No, Spotify is action-only on Zapier.

Can I add tracks to playlists I don’t own?

Only playlists owned by the connected account or collaborative playlists the account can edit are supported.

Why do searches sometimes return no results?

Results depend on exact metadata and regional availability of the track on Spotify.

How do I connect Spotify to Claude?

Connect Zapier in Claude, sign in to Zapier, then ask Claude to connect Spotify. Claude finds the Spotify actions and adds them. If Spotify needs a sign-in, you approve it once.

Can I use the Spotify API without managing API keys?

With the Zapier SDK you connect your Spotify account to Zapier once, and your code runs actions through that connection. Zapier handles Spotify’s login, so you never paste an API key into your code.

What can an AI agent do with Spotify?

Through Zapier MCP, your agent can use 22 Spotify tools, such as New Played Track, New Saved Track, and New Podcast Episode. 10 tools only read data, so you can start with those before you let your agent make changes.

My AI agent already connects to my apps. Why add Zapier?

Your AI agent’s built-in or native connectors cover a limited set of popular apps. Zapier reaches 10,000+ apps and 90,000+ triggers and actions. Zapier also adds what your AI agent can’t: one place to manage logins and credentials, so you never paste an API key; automations that keep running after the chat closes, with fixes you can review when a run hits a snag; and the freedom to switch agent interfaces without starting over.

Can’t my AI agent already run tasks on a schedule?

Most popular AI agents can run scheduled tasks. And for simple recurring jobs, that might be all you need. Automations that run on Zapier can run on a schedule too, but they can also start the moment something happens in your apps—like when a new lead/ticket comes in or you get an email reply. Zapier also uses AI only in the steps that need judgment, so routine steps like posting to Slack or updating Salesforce don’t burn model tokens.

Why not have my AI agent write me a script?

You can, and the first version will probably work. The trouble comes later: a script needs somewhere to run, a way to hear about events, and someone to keep it going. If an API changes or a login expires, your script can quietly stop until you notice. It also holds your keys, often in a repo, where a leak can expose your accounts. With Zapier, your agent builds the automation, and you publish it. Zapier hosts it, handles your logins and credentials, and records every run. If a run fails, Zapier diagnoses what went wrong and prepares a fix you can review. Or you can decide which fixes Zapier can apply for you.

Point your AI agent to this page’s markdown file to build Spotify automations. It covers how Spotify connects, every trigger and action with its inputs, and how to run them with Zapier MCP, the SDK, or the CLI.

About Spotify

Spotify is a music streaming service that provides digital content from record labels and media companies.

Related categories: Video & Audio