# Last.fm MCP for AI Agents AI Agent Connect

> Last.fm MCP lets you query your music history, artist metadata, and global trends through a natural conversation with your AI client.

## Overview
- **Category:** productivity
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_beHavK7nwxizmMuLrmdU4kwNI6A7SwuBs2pZxfsU/ai-agent-connect
- **Tags:** music-discovery, scrobbling, listening-habits, music-metadata, user-profile-analytics

## Description

The Last.fm MCP lets you treat your music history like a searchable database. Instead of navigating a clunky web interface, you can just ask your agent what you've been listening to lately or which artists are dominating your rotation. It turns your personal music profile into a conversational data source. You can check if you're getting into a new genre or find out who your most-listened-to artist is this week. Your agent handles the heavy lifting. It's a great way to manage your musical identity without the friction of manual data entry. By connecting this through the Vinkius catalog, you get a direct line to your Last.fm account. You can audit your listening habits, find specific metadata for niche albums, and keep track of your favorites in one place. It's about making your music history actually useful for your daily life. This applies to hardcore audiophiles and casual listeners alike. You don't have to remember every album name or artist bio. You can ask for summaries of your most-played records or get a breakdown of your top genres in seconds. It takes the guesswork out of your music discovery and puts your personal data at your fingertips. You can use it to identify patterns in your taste or quickly grab stats for a project without opening a browser. It makes your data accessible and actionable.

## Tools

### get_album_info
Get metadata for a specific album. This helps you find release dates and labels quickly.

### get_artist_info
Get metadata for an artist. Use this to see their listener count and bio.

### get_loved_tracks
Get your loved tracks. This lets you see your personal all-time favorites list.

### get_recent_tracks
Get recent tracks listened to. This shows you exactly what you've heard lately.

### get_top_albums
Get your top albums. Find out which records you've played the most.

### get_top_artists
Get your top artists. See your most-played musicians across any timeframe.

### get_top_tags
Get the top tags on Last.fm. Use this to see what genres are trending globally.

### get_track_info
Get metadata for a track. This provides specific details about a single song.

### get_top_tracks
Get your top tracks. This pulls your most-played songs into a single list.

### get_user_info
Get information about a Last.fm user. This retrieves your account and profile data.

## Prompt Examples

**Prompt:** 
```
What are my top 5 tracks this month?
```

**Response:** 
```
I've pulled your top tracks for this month. Your #1 song is **Midnight Jam** by Virtual Band. Here is your full top 5:

| Rank | Track | Artist |
|---|---|---|
| 1 | Midnight Jam | Virtual Band |
| 2 | Neon Dreams | SynthWave |
| 3 | Echoes | Lunar | 
| 4 | Velocity | Pulse |
| 5 | Skyline | Drift |
```

**Prompt:** 
```
Tell me about the artist Radiohead.
```

**Response:** 
```
I've retrieved the metadata for **Radiohead**. They have over 5 million listeners on Last.fm. They are known for their experimental rock and alternative sound. Would you like to see their top tags or a list of their top albums?
```

**Prompt:** 
```
What have I listened to recently?
```

**Response:** 
```
You've been listening to a lot of indie rock lately. Your last 5 tracks were:

*   **Session 42** - Virtual Band
*   **Static Flow** - Echo
*   **Midnight Jam** - Virtual Band
*   **Drift** - Skyline
*   **Pulse** - Velocity
```

## Capabilities

### See recent listens
View your most recent tracks to see what you've been hearing lately.

### Identify top artists
Get a list of your most-played artists over any specific timeframe.

### Pull album metadata
Get release dates, labels, and other details for any album in your library.

### Access loved tracks
Retrieve your personal collection of favorite songs instantly.

### Audit global trends
Check top tags and charts to see what's popular in the music world.

### Check profile info
Get your account details and user metadata from your Last.fm profile.

## Use Cases

### Curating a data-driven playlist
A curator asks their agent to find the top 10 artists they've played this month to see which genres are currently dominating their rotation using get_top_artists.

### Researching niche music metadata
A researcher asks for the release date and label for a specific album and gets the details immediately using get_album_info.

### Auditing personal listening habits
A music fan asks their agent to show their most-listened-to tracks of the year to see if they've been listening to enough new music.

### Checking global music trends
A content creator asks what the top music tags are right now to get inspiration for a new blog post using get_top_tags.

## Benefits

- Skip the manual dashboard search by using get_top_tracks to see your stats instantly.
- Get deep metadata for any song or artist using get_track_info and get_artist_info without leaving your chat.
- Monitor global music trends and discover new genres using get_top_tags.
- Audit your history quickly by pulling your most recent listens with get_recent_tracks.
- Keep your personal favorites organized and accessible via get_loved_tracks.
- Maintain account oversight by pulling your profile details with get_user_info.

## How It Works

The bottom line is that you get to talk to your music data instead of scrolling through it.

1. Subscribe to the Last.fm MCP on the Vinkius Marketplace.
2. Provide your Last.fm API key in the configuration settings.
3. Ask your AI client to pull your top tracks, artist stats, or recent history.

## Frequently Asked Questions

**Can I use the Last.fm MCP to see my top tracks?**
Yes, it pulls your most-played songs directly so you can see what's trending in your personal rotation without opening a browser.

**Does the Last.fm MCP work with my existing account?**
It connects to your current Last.fm profile using your API key to pull your specific history and stats.

**Can I use this to see global music trends?**
You can use it to see top tags and global charts to see what's popular in the music world right now.

**How do I get my music metadata?**
The Connector pulls specific details for artists, albums, and tracks so you don't have to search for them manually.

**Is this good for music research?**
It's great for research because it lets you query your listening habits and artist stats quickly using natural language.

**Can the Last.fm MCP update my profile?**
This Connector is designed for reading your data. To update your profile or scrobble new music, you'll still need to use the Last.fm website.

**How do I find my Last.fm API Key?**
Go to the [**Last.fm API account page**](https://www.last.fm/api/account/create), create an API account, and you will find your API Key there. Copy and paste it into the field below.

**Can the agent check my top artists for a specific period?**
Yes. Use the `get_top_artists` tool providing your username and the desired period (e.g., 'overall', '7day', '1month'). Your agent will return your most-listened artists instantly.

**Is it possible to retrieve metadata for a specific track via the agent?**
Yes. The `get_track_info` tool allows your agent to fetch complete metadata for any song by providing the artist and track names, including album and listener counts.