Your whole music library, editable in plain English.
Spotify's app is built for listening, not for managing. There is no bulk edit, no way to say “build me a playlist like this”, and no way to fix anything across a whole library at once. The API can do all of it. Point Claude Code at it and the library becomes editable by description — which turns out to be a clear way to see what AI is actually useful for. The API is plumbing. The useful part is that you describe the outcome in your own words and something else works out the steps.
No server and no deployed app. A Spotify developer app, a refresh token on disk, and a terminal.
At developer.spotify.com/dashboard. Add any local redirect URI — it only has to catch the callback once.
http://127.0.0.1:8888/callback
The one people miss: reading your library, changing playlists and uploading cover art are three separate permissions, and a token without one fails with a 403 that does not say which.
playlist-read-private playlist-modify-public playlist-modify-private
user-library-read user-library-modify user-top-read ugc-image-upload
A short script opens the consent page, catches the redirect, and saves the tokens. After this it renews itself and you never sign in again.
python3 reauth.py
From here it is a conversation. Claude reads the token, calls the API, and you describe the outcome rather than the endpoint.
“Find every album where I've saved more than half the tracks,
then build me a page where I can tick the ones to keep.”