Sortune
MCP API Access

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

  1. 1
    In 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.
  2. 2
    Paste 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.
  3. 3
    Choose Connect, sign in with Google, and choose what Claude may do.
  4. 4
    In 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

Read
list_playlists

List your playlists with their track counts

Get playlist tracks

Read
get_playlist_tracks

Read the tracks of a playlist with artist, genres and dates, up to 200 at a time

Search YouTube Music

Read
search_youtube_music

Search YouTube Music for videos matching a query

Get track details

Read
get_track_details

Get detailed metadata for specific videos

Get saved genres

Read
get_saved_genres

Read the genres Sortune saved for your tracks, page by page

Create playlist

Changes
create_playlist

Create a new playlist with a title and privacy setting

Add tracks to playlist

Changes
add_tracks_to_playlist

Add videos to a playlist, skipping ones already in it

Save track genres

Changes
save_track_genres

Save the genres the agent classified for your tracks in Sortune

Mark tracks sorted

Changes
mark_tracks_sorted

Mark tracks as sorted into a season-year-genre playlist

Remove tracks from playlist

Changes
remove_tracks_from_playlist

Remove tracks from a playlist

Move tracks between playlists

Changes
move_tracks_between_playlists

Move tracks from one playlist to another

Delete playlist

Changes
delete_playlist

Delete 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.