mcp-lastfm

🎧 Listening data

A Last.fm user's scrobbles, top artists/tracks/albums, loved tracks, friends, tags, and weekly charts.

Thirteen tools cover a listener's personal history on Last.fm — their own, or anyone else's public profile.

ToolDescription
get_user_infoA user's profile and listening stats
get_user_recent_tracksRecent scrobbles, including the currently playing track
get_user_top_artistsMost-played artists over a time period
get_user_top_tracksMost-played tracks over a time period
get_user_top_albumsMost-played albums over a time period
get_user_loved_tracksTracks the user has marked as loved
get_user_friendsThe user's Last.fm friends
get_user_personal_tagsItems the user has tagged with a given tag
get_user_top_tagsThe user's most-used tags
get_user_weekly_album_chartAlbum play chart for a given week
get_user_weekly_artist_chartArtist play chart for a given week
get_user_weekly_track_chartTrack play chart for a given week
get_user_weekly_chart_listAvailable weekly-chart date ranges

Whose account?

Every get_user_* tool takes an optional user argument. If you set MCP_LASTFM_USERNAME, omitting user resolves to your own account — so "what have I been listening to?" just works. Pass user explicitly to look up anyone's public profile instead; it always overrides the default.

Weekly charts

get_user_weekly_album_chart, get_user_weekly_artist_chart, and get_user_weekly_track_chart each need a valid week range. Call get_user_weekly_chart_list first to get the date ranges Last.fm actually has data for, then pass one of those into the chart tool.

On this page