MetorialDocs

Set up Spotify in Metorial for Claude, ChatGPT and Cursor

Share Spotify with your team in Claude, ChatGPT and Cursor through Metorial: OAuth sign-in, 11 tools (7 read-only).

To give your team Spotify in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Spotify integration in a Metorial portal, and each person signs in to Spotify with their own account. Agents can search Spotify tracks, artists, albums and playlists; manage supported playlists, library and following; read account context and listening history; control supported playback devices. The integration has 11 tools, 7 read-only and 4 write, plus 2 triggers.

What you'll learn

  • How an admin shares Spotify in a portal and how each person connects
  • The 19 OAuth scopes Spotify can request, and what each one allows
  • How to keep the 7 read-only tools and reject the other 4

Before you start

Sign-in method

MethodTypeWhat a person provides
Spotify OAuthOAuthSigns in to Spotify

Spotify OAuth

People sign in to Spotify and approve the scopes you allow. The integration can request:

ScopeNameWhat it allows
ugc-image-uploadUpload ImagesUpload custom cover images to playlists
user-read-playback-stateRead Playback StateRead access to the current playback state and available devices
user-modify-playback-stateModify Playback StateControl playback on Spotify clients (play, pause, skip, etc.)
user-read-currently-playingRead Currently PlayingRead access to the currently playing track or episode
app-remote-controlApp Remote ControlRemote control playback on Spotify clients
streamingStreamingStream music via the Spotify SDK
playlist-read-privateRead Private PlaylistsRead access to the user's private playlists
playlist-read-collaborativeRead Collaborative PlaylistsRead access to collaborative playlists
playlist-modify-privateModify Private PlaylistsCreate and modify the user's private playlists
playlist-modify-publicModify Public PlaylistsCreate and modify the user's public playlists
user-follow-modifyManage FollowingFollow and unfollow artists, users, and playlists
user-follow-readRead FollowingRead access to the list of artists and users the user follows
user-read-playback-positionRead Playback PositionRead access to playback position for audiobooks and podcasts
user-top-readRead Top ItemsRead access to the user's top artists and tracks
user-read-recently-playedRead Recently PlayedRead access to the user's recently played items
user-library-modifyModify LibrarySave and remove items from the user's library
user-library-readRead LibraryRead access to the user's saved items in their library
user-read-emailRead EmailRead access to the user's email address
user-read-privateRead Private ProfileRead access to the user's private profile information

Setup settings

Setup also asks for:

  • market (optional): ISO 3166-1 alpha-2 country code for filtering content availability (e.g., "US", "GB", "DE")

Use your own Spotify OAuth app

With your own OAuth app, people see your company's name on the Spotify consent screen, and the client ID and secret belong to you.

Start the credentials in Metorial

In the dashboard, select Settings, then Organization Settings. Under Integrations and MCP, select Provider Auth, then Create Auth Credentials. Choose Spotify and copy the Redirect URI.

Register the app with Spotify

Create an OAuth app or client in Spotify and add the redirect URI from Metorial as its redirect or callback URL.

Finish in Metorial

Copy the app's client ID and client secret. Back in Metorial, enter a Name, the Client ID and the Client Secret, review Scopes, and select Create. Then pick these credentials for the Spotify integration.

Admin: share Spotify in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose Spotify. For how members connect, choose Each person connects, so everyone signs in to Spotify as themselves.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Spotify.

Choose who gets it

Add the access groups that should see Spotify. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user Spotify integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search spotify

Employee: connect Spotify

In the portal

Open Spotify in the catalog

Sign in to your portal and open Spotify. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. A Spotify sign-in tab opens. Sign in and approve the permissions listed.

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search spotify
metorial setup <catalog-item-id>

catalog search prints the catalog item ID.

Add it to your AI client

metorial install adds your Spotify connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list spotify
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 7 read-only tools, such as get_album and get_track, and lose the 4 write tools, such as manage_library or manage_playlist.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list spotify
metorial tools <integration-id>
metorial call <integration-id> get_album -d '{"action":"get"}'

metorial tools lists the 11 tools, minus any you rejected. get_album needs action, so replace the placeholders. It retrieves detailed information about an album including its metadata, one page of tracks, and artwork.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (7)

  • get_album: Retrieve detailed information about an album including its metadata, one page of tracks, and artwork. Needs action.
  • get_track: Retrieve detailed information about one or more tracks including metadata, audio features (danceability, energy, tempo, etc.), and album info. Needs trackIds.
  • search_catalog: Search across Spotify's catalog for tracks, artists, albums, and playlists using keyword queries. Needs query and types.
  • get_recently_played: Retrieve the user's recently played tracks with timestamps and context information (e.g., which playlist or album the track was played from).
  • get_user_profile: Retrieve a Spotify user profile.
  • get_artist: Retrieve detailed information about an artist including their profile, top tracks, albums, and related artists. Needs artistId.
  • get_top_items: Retrieve the current user's most listened-to artists or tracks based on calculated affinity. Needs type.

Write tools (4)

  • control_playback: Control Spotify playback on any connected device. Needs action.
  • manage_playlist: Create, update, and manage Spotify playlists. Needs action.
  • manage_following: Manage the user's followed artists, users, and playlists. Needs action.
  • manage_library: Manage the user's Spotify library ("Your Music"). Needs action.

Triggers

Spotify has 2 triggers, which fire on events in Spotify:

  • inbound_webhook
  • recently_played_track: Triggers when the user plays a track on Spotify.

Next steps