add_tracks_to_playlist
Add one or more tracks to a playlist
Search Spotify's catalog, edit playlists, and pull lyrics, annotations and Last.fm charts in the same conversation.
LABSCO SUMMARY
Spotify answers what a track is, Genius answers what the words mean, LrcLib gives you those words with timings, and Last.fm answers who else sounds like this and what is charting where. Having all four behind one connection is what makes an artist question answerable in a single pass — and because playlists are writable, the answer can end up in a playlist without leaving the conversation.
A music research server spanning four sources: Spotify's catalog and playlists, Genius song and artist pages, LrcLib lyrics, and Last.fm charts and similarity data.
Spotify API credentials — a client ID and secret created in the Spotify developer dashboard, supplied as environment settings. Token exchange is handled for you. Runs under Node from the published package.
One command plus credentials — npm install -g @thomaswawra/artistlens, then supply credentials
USE CASES
Pull the catalog record and top tracks, then cross the result with who Last.fm says sounds similar.
Search for the seeds, ask for recommendations from them, and push the results straight into the playlist.
Read what is in it, strip the tracks that no longer fit, and rename it or change who can see it.
Get the words with their timings from one source and the line-by-line annotations from another, side by side.
Read the country charts for artists and tracks rather than the global ones.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
add_tracks_to_playlistAdd one or more tracks to a playlist
get_access_tokenGet a valid Spotify access token for API requests
get_albumGet Spotify catalog information for an album
get_album_tracksGet Spotify catalog information for an album's tracks
get_artistGet Spotify catalog information for an artist
get_artist_albumsGet Spotify catalog information about an artist's albums
get_artist_top_tracksGet Spotify catalog information about an artist's top tracks
get_audiobookGet Spotify catalog information for an audiobook
get_audiobook_chaptersGet Spotify catalog information about an audiobook's chapters
get_available_genresGet a list of available genres for recommendations
get_category_playlistsGet a list of Spotify playlists tagged with a particular category
get_current_user_playlistsGet a list of the playlists owned or followed by the current Spotify user
get_featured_playlistsGet a list of Spotify featured playlists
get_genius_annotationsGet crowd-sourced annotations (explanations of lyrics lines) for a Genius song
get_genius_artistGet details for an artist on Genius
get_genius_artist_songsGet songs for an artist on Genius
get_genius_songGet details for a song on Genius including metadata and annotation count
get_lastfm_album_infoGet Last.fm information about an album
get_lastfm_artist_infoGet Last.fm information about an artist
get_lastfm_artist_similarGet Last.fm similar artists
get_lastfm_artist_tagsGet Last.fm tags for an artist
get_lastfm_artist_top_albumsGet Last.fm top albums for an artist
get_lastfm_artist_top_tracksGet Last.fm top tracks for an artist
get_lastfm_geo_top_artistsGet Last.fm top artists by country
get_lastfm_geo_top_tracksGet Last.fm top tracks by country
get_lastfm_top_artistsGet Last.fm global top artists chart
get_lastfm_top_tracksGet Last.fm global top tracks chart
get_lyricsGet lyrics for a song (plain text and time-synced) from LrcLib
get_multiple_albumsGet Spotify catalog information for multiple albums
get_multiple_artistsGet Spotify catalog information for multiple artists
get_multiple_audiobooksGet Spotify catalog information for multiple audiobooks
get_new_releasesGet a list of new album releases featured in Spotify
get_playlistGet a playlist owned by a Spotify user
get_playlist_itemsGet full details of the items of a playlist
get_recommendationsGet track recommendations based on seed tracks, artists, or genres
get_trackGet Spotify catalog information for a track
modify_playlistChange a playlist's name and public/private state
remove_tracks_from_playlistRemove one or more tracks from a playlist
searchSearch for tracks, albums, artists, or playlists
search_geniusSearch for songs on Genius
search_lastfm_albumSearch for albums on Last.fm
search_lastfm_artistSearch for artists on Last.fm
search_lyricsSearch for lyrics on LrcLib
BEFORE YOU INSTALL
43 tools when we connected. The documentation lists 24; the other nineteen use Genius and Last.fm, with no documented credentials. get_artist_related_artists and get_playlist_tracks are documented but did not respond, and modify_playlist, add_tracks_to_playlist and remove_tracks_from_playlist change your account.
Both documented clients run the server on your machine.
CONTEXT COST
Rated by the size of the 43 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npm install -g @thomaswawra/artistlens{
"mcpServers": {
"spotify": {
"command": "npx",
"args": [
"-y",
"@thomaswawra/artistlens"
],
"env": {
"SPOTIFY_CLIENT_ID": "<YOUR_SPOTIFY_CLIENT_ID>",
"SPOTIFY_CLIENT_SECRET": "<YOUR_SPOTIFY_CLIENT_SECRET>"
},
"disabled": false,
"autoApprove": []
}
}
}