What is MCP?
Model Context Protocol (MCP) lets AI agents — like Claude, ChatGPT, or custom bots — connect to your YouTube Music library. Once connected, an agent can list playlists, search for music, add or remove tracks, and create new playlists on your behalf.
How to connect
- 1In Claude, open Customize → Connectors and choose Add custom connector. On a Team or Enterprise plan, an Owner adds it in Organization settings → Connectors → Add → Custom.
- 2Paste this address, then choose Add:
https://sortune.com/api/mcpIn the same dialog, keep Authentication on Sign in now and OAuth client on Use Claude's published identity. On a Team or Enterprise plan, also choose the type Web. - 3Choose Connect, sign in with Google, and choose what Claude may do.
- 4In a chat, turn Sortune on under + → Connectors and ask, for example: “Sort my liked music from this year into playlists by season and genre.”
Works on claude.ai, the desktop app and the mobile apps. On the Free plan Claude allows one custom connector.
After connecting
Just tell Claude:
Organize my liked music into playlists by season, year and genre
Analyze my liked music and sort into playlists like winter-2026-ambient
Claude will read the MCP server instructions, fetch your liked tracks, classify genres for each one, group by season + year + genre, create playlists and add tracks.
Using another agent? It can connect with a personal token from the MCP page.
What Claude can do with each permission
Claude asks for both when you connect. You can leave changes off: Claude then sees only the tools that read. To allow changes later, disconnect Sortune on the MCP page and connect it again.
See your library library:read
- List playlists
- Get playlist tracks
- Search YouTube Music
- Get track details
- Get saved genres
Change your library library:write
- Create playlist
- Add tracks to playlist
- Save track genres
- Mark tracks sorted
- Remove tracks from playlist
- Move tracks between playlists
- Delete playlist
Available tools
List playlists
Readlist_playlistsList your playlists with their track counts
Get playlist tracks
Readget_playlist_tracksRead the tracks of a playlist with artist, genres and dates, up to 200 at a time
Search YouTube Music
Readsearch_youtube_musicSearch YouTube Music for videos matching a query
Get track details
Readget_track_detailsGet detailed metadata for specific videos
Get saved genres
Readget_saved_genresRead the genres Sortune saved for your tracks, page by page
Create playlist
Changescreate_playlistCreate a new playlist with a title and privacy setting
Add tracks to playlist
Changesadd_tracks_to_playlistAdd videos to a playlist, skipping ones already in it
Save track genres
Changessave_track_genresSave the genres the agent classified for your tracks in Sortune
Mark tracks sorted
Changesmark_tracks_sortedMark tracks as sorted into a season-year-genre playlist
Remove tracks from playlist
Changesremove_tracks_from_playlistRemove tracks from a playlist
Move tracks between playlists
Changesmove_tracks_between_playlistsMove tracks from one playlist to another
Delete playlist
Changesdelete_playlistDelete a playlist
Troubleshooting
- “Couldn't reach the MCP server”
- Check that the address is exactly https://sortune.com/api/mcp, with nothing after it.
- “Authorization failed”
- Try again. On Google's screen, allow Sortune to manage your YouTube account; then choose Allow on Sortune's screen.
- “Sortune lost access to your YouTube account”
- Choose Connect again in Claude and sign in with Google: Sortune asks for access to YouTube again.
- “Sortune's daily YouTube limit for this account is used up”
- The limit resets at midnight Pacific time. Ask Claude to carry on after that.