> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up Spotify in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/spotify
Last updated: 2026-11-24

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 will 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**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An account with Spotify for each person who connects
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in method

| Method | Type | What a person provides |
| --- | --- | --- |
| **Spotify OAuth** | OAuth | Signs in to Spotify |

### Spotify OAuth

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

| Scope | Name | What it allows |
| --- | --- | --- |
| `ugc-image-upload` | Upload Images | Upload custom cover images to playlists |
| `user-read-playback-state` | Read Playback State | Read access to the current playback state and available devices |
| `user-modify-playback-state` | Modify Playback State | Control playback on Spotify clients (play, pause, skip, etc.) |
| `user-read-currently-playing` | Read Currently Playing | Read access to the currently playing track or episode |
| `app-remote-control` | App Remote Control | Remote control playback on Spotify clients |
| `streaming` | Streaming | Stream music via the Spotify SDK |
| `playlist-read-private` | Read Private Playlists | Read access to the user's private playlists |
| `playlist-read-collaborative` | Read Collaborative Playlists | Read access to collaborative playlists |
| `playlist-modify-private` | Modify Private Playlists | Create and modify the user's private playlists |
| `playlist-modify-public` | Modify Public Playlists | Create and modify the user's public playlists |
| `user-follow-modify` | Manage Following | Follow and unfollow artists, users, and playlists |
| `user-follow-read` | Read Following | Read access to the list of artists and users the user follows |
| `user-read-playback-position` | Read Playback Position | Read access to playback position for audiobooks and podcasts |
| `user-top-read` | Read Top Items | Read access to the user's top artists and tracks |
| `user-read-recently-played` | Read Recently Played | Read access to the user's recently played items |
| `user-library-modify` | Modify Library | Save and remove items from the user's library |
| `user-library-read` | Read Library | Read access to the user's saved items in their library |
| `user-read-email` | Read Email | Read access to the user's email address |
| `user-read-private` | Read Private Profile | Read 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.

1. **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**.

2. **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.

3. **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

1. **Open Shared Resources**

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

2. **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.

3. **Limit the tools**

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

4. **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:

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

## Employee: connect Spotify

### In the portal

1. **Open Spotify in the catalog**

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

2. **Authenticate**

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

3. **Confirm**

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

### With the CLI

```bash
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.

```bash
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](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
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

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use Spotify there
- [Create custom OAuth credentials](https://metorial.com/docs/platform/integrations/create-custom-oauth-credentials): the Provider Auth screens in more detail
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Spotify on metorial.com](https://metorial.com/integrations/spotify): the integration overview