Last.fm MCP. Analyze your entire music history with conversation.
Works with every AI agent you already use
…and any MCP-compatible client
Just plug in your AI agents and start using Vinkius.
Last.fm. Audit your music listening habits, top artists, and tracks using your AI client. This server lets your agent pull detailed metadata—from top tags to recent plays—directly from your profile.
Stop manually checking dashboards; your AI client handles all the querying and analysis of your entire music history.
What your AI agents can do
Get album info
Retrieves specific metadata for a given album.
Get artist info
Retrieves detailed metadata for a specific artist.
Get loved tracks
Fetches the list of tracks marked as 'loved' by the user.
List recent tracks and query your most-listened artists, albums, and songs across specific time periods.
Pull detailed metadata for any artist or album to maintain a deep understanding of your music library.
Browse top tags and charts to identify global music trends and find new inspiration.
List your 'loved' tracks, giving you a quick overview of your personal musical favorites.
Retrieve detailed user metadata and account info to keep your listening profile organized.
Ask AI about this MCP
Supported MCP Clients
Waiting for input…
Last.fm MCP Server: 10 Tools for Music Data
Run specific queries against your Last.fm profile. These tools let your AI agent gather structured data on artists, tracks, and your listening history.
019d8451get album info
Retrieves specific metadata for a given album.
019d8451get artist info
Retrieves detailed metadata for a specific artist.
019d8451get loved tracks
Fetches the list of tracks marked as 'loved' by the user.
019d8451get recent tracks
Gets a list of the tracks the user listened to most recently.
019d8451get top albums
Gets the albums that are most popular for the user.
019d8451get top artists
Gets the top-performing artists based on the user's listening history.
019d8451get top tags
Gets the current top tags and popular music categories on Last.fm.
019d8451get top tracks
Gets the most popular tracks listened to by the user.
019d8451get track info
Retrieves detailed metadata for a specific track.
019d8451get user info
Retrieves general account and user profile information from Last.fm.
Choose How to Get Started
Build a custom MCP for your own tools, or connect a ready-made integration from our catalog.
Build Your Own
Turn any API into an MCP. Import a spec, define Agent Skills, or deploy with MCPFusion.
- Import from OpenAPI, Swagger, or YAML specs
- Create Agent Skills with progressive disclosure
- Deploy to edge with MCPFusion framework
- Built in DLP, auth, and compliance on every call
- Real time usage dashboard and cost metering
- Publish to catalog or keep private
Make Your AI Do More
Start with Last.fm, then connect any of our 4,700+ other servers whenever your AI needs more. One click, no limits.
- Use this MCP plus 4,700+ others, all in one place
- Add new capabilities to your AI anytime you want
- Every connection is secured and compliant automatically
- Track usage and costs across all your servers
- Works with Claude, ChatGPT, Cursor, and more
- New servers added to the catalog every week
What you can do with this MCP connector
Last.fm MCP Server - Audit Your Music Listening Habits
Your AI client connects directly to your Last.fm profile, letting you pull detailed metadata about your music history. Instead of clicking through dashboards, your agent handles all the querying and analysis of your entire listening profile. You'll get a full rundown of your top artists, albums, and tracks.
Review Your Track History
Your agent can pull a list of the tracks you listened to most recently using get_recent_tracks, and it'll tell you your overall top artists via get_top_artists, top albums with get_top_albums, and most popular songs using get_top_tracks. You can also check out the top tags and popular music categories using get_top_tags.
Dive Deep into Artist and Album Details
Need the nuts and bolts on a specific piece of music? You can grab detailed metadata for any artist with get_artist_info, or get the full scoop on an album using get_album_info. If you want to check out a specific track's info, get_track_info gives you the details on that too.
See Your Personal Favorites and Profile Info
Your agent knows what you love. It'll pull the list of tracks you marked as 'loved' using get_loved_tracks. You can also get general account and user profile details with get_user_info.
This server gives you the raw data. Your AI client uses this data to analyze your musical tastes and track trends. It lets you stop guessing about your music and start seeing the actual metrics.
How Last.fm MCP Works
- 1 Subscribe to the Last.fm server and enter your API Key.
- 2 Your AI client sends a natural language prompt (e.g., 'What were my top albums last year?').
- 3 The agent calls the necessary tools (e.g.,
get_top_albums) and returns the structured data to you.
The bottom line is: you talk to your agent, and it pulls the specific music data you need from Last.fm.
Who Is Last.fm MCP For?
Anyone whose job involves analyzing patterns in large datasets—music, user behavior, or trends. This is for the music enthusiast who gets tired of manually checking stats, the research analyst who needs rapid trend audits, or the content curator who needs to verify metadata for a project.
Runs rapid audits on music trends and user listening habits to write articles about genre shifts or artist popularity.
Queries specific user profiles or track metadata to gather data points for reports, eliminating manual dashboard work.
Verifies if track and artist metadata are correctly identified and categorized before publishing content.
What Changes When You Connect
- See your most listened tracks immediately using
get_top_tracks. No more wading through manual charts; your agent delivers the list straight up. - Audit your entire library with
get_artist_infoandget_album_info. You get structured metadata for any artist or album, making verification simple. - Identify emerging music trends by calling
get_top_tags. Your agent pulls global data, so you don't have to manually browse the 'Top' pages. - Keep track of your personal favorites with
get_loved_tracks. This tool shows your most-liked songs, giving you a quick snapshot of your taste. - Understand your listening journey by running
get_recent_tracks. You get a chronological log of what you just played, which is key for research. - Get a full picture of your account with
get_user_info. This tool retrieves core user details, helping you maintain strict organizational control over your profile.
Real-World Use Cases
Writing a 'Best Of' List
A music journalist needs to write an article on the biggest albums of the year. Instead of logging into Last.fm and manually checking the charts, they ask their agent to run get_top_albums. The agent fetches the list, and the journalist has the data points instantly.
Investigating a Music Shift
A record label analyst notices a shift in popular genres. They ask their agent to check get_top_tags and cross-reference it with get_top_artists. The agent pulls both sets of data, allowing the analyst to prove a trend shift without leaving their workflow.
Building a Recommendation Engine
A developer wants to build a tool that recommends music based on a user's history. They use the agent to call get_recent_tracks and get_loved_tracks. The agent aggregates this data, providing the necessary inputs for the next stage of development.
Verifying Metadata for a Client
A content curator must confirm that all tracks used in a playlist are correctly cataloged. They ask the agent to run get_track_info for every song. The agent returns structured metadata, confirming accuracy instantly.
The Tradeoffs
Trying to query everything at once
Writing a single prompt like, 'Tell me about my music, my friends, and what's trending.' — This forces the agent to guess which tools to run and often fails or gives incomplete, unformatted data.
→
Break it down. Ask for specific data sets. For example: 'What are my top 5 artists?' (uses get_top_artists), then 'What are the top 5 tags right now?' (uses get_top_tags). This structured approach ensures accurate results.
Forgetting to specify the time frame
Asking, 'What were my top tracks?' — The agent might default to the last 7 days, which could be misleading if you need year-over-year data.
→
Always clarify the period. Say: 'List my top tracks for the last quarter' (uses get_top_tracks). This forces the tool to use the correct time parameter.
Using the wrong tool for general info
Asking for a general artist summary, but the agent only uses get_user_info which deals with account details, not music facts.
→
Use the dedicated tool. To get facts about an artist, use get_artist_info. This tool pulls the correct metadata, separating it from your personal account details.
When It Fits, When It Doesn't
Use this server if your job requires analyzing or aggregating music consumption data. You need to know what specific tracks, artists, or tags a user listens to, and you want that data pulled into your workflow automatically.
Don't use it if you just need to manually browse charts or discover music in a traditional streaming app. If you only need to know the most popular songs right now, you could use a general music API—but if you need your specific listening history, this is the tool.
Always remember: This tool is about data extraction (getting structured metadata). It’s not about discovery (finding new music). If you need to perform a calculation (e.g., 'What is the percentage difference between my top album and my most recent album?'), you'll need to run two tools first (like get_top_albums and get_recent_tracks) and then process the data yourself in your client code.
Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Last.fm. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
VINKIUS INFRASTRUCTURE
Cloud Hosted
Managed infra
V8 Isolated
Sandboxed per request
Zero-Trust Proxy
No stored credentials
DLP Enforced
Policy on every call
GDPR Compliant
EU data residency
Token Compression
~60% cost reduction
Works with Claude, ChatGPT, Cursor, and more
The Model Context Protocol standardizes how applications expose capabilities to LLMs. Instead of operating in isolation, your AI gains direct access to external platforms, live data, and real-world actions through secure, standardized connections.
This server provides 10 capabilities that interface natively with Claude, ChatGPT, Cursor, and any MCP client. No middleware. No custom integration required.
Available Capabilities
Sifting through music stats shouldn't require 15 browser tabs.
Right now, checking your listening habits means logging into Last.fm, clicking on 'Statistics,' navigating between 'Top Tracks,' 'Top Artists,' and 'Loved Tracks.' You copy-paste the numbers into a spreadsheet, cross-reference the dates, and then you're done. It's slow, and you always risk missing a key data point.
With the Last.fm MCP Server, you tell your agent what you need. Need to know your top 5 artists? You ask for it. The agent calls `get_top_artists`, pulls the clean data, and hands it back. You get structured data, instantly.
get_track_info: Get metadata for a track instantly.
Before, if you were writing an article and needed to confirm a song's release date or genre, you had to search Google, click on a Wikipedia entry, and then copy the data. It was a three-step process just to get one fact.
Now, you just tell your agent to run `get_track_info`. The agent pulls the full metadata packet for that track. You're done. That's the difference.
Common Questions About Last.fm MCP
How do I check my recent listening history using get_recent_tracks? +
Use get_recent_tracks. This tool gives you a list of the tracks you played most recently. It's useful for quickly checking what you listened to over the last few days.
Can I find out my top artists using get_top_artists? +
Yes, use get_top_artists. It fetches a list of the artists that are most popular based on your overall listening history. You'll get structured data for easy parsing.
What is the difference between get_top_albums and get_top_tracks? +
get_top_albums provides the most popular albums you've listened to. get_top_tracks gives the individual songs that are most played. They cover different levels of granularity.
Does get_user_info give me my music taste? +
No, get_user_info retrieves account details, like username and profile ID. To check your music taste, you need tools like get_top_artists or get_loved_tracks.
How do I get detailed information about a specific artist using get_artist_info? +
It pulls all the metadata for a given artist. This includes things like the artist's full name, genre, and key members. You use this tool when you need more than just the name.
What is the difference between get_top_tracks and get_loved_tracks? +
get_top_tracks pulls your most played songs over a period of time. get_loved_tracks, however, only lists the songs you have explicitly marked as favorites. They measure different types of engagement.
Can I use get_album_info to find out the genre of a track? +
No, get_album_info only provides data about the entire album. To find genre or specific track details, you should use get_track_info instead.
How does the get_top_tags tool work? +
This tool retrieves the most popular tags across the platform. It shows you what topics are trending in music right now. It’s useful for market research or finding new genres.
How do I find my Last.fm API Key? +
Go to the Last.fm API account page, 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.
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
More in this category
Tencent Yuanqi
Orchestrate Tencent Yuanqi AI Agents — manage assistants, trigger conversations, and handle RAG documents directly from any AI agent.
Capacities
Empower your AI agents to build knowledge graphs, append daily notes, and save weblinks directly into your Capacities spaces.
Wellhub
Manage employee eligibility, gym check-ins, bookings, and partner locations for your Wellhub (Gympass) corporate wellness program through natural conversation.
You might also like
Systran (Machine Translation API)
Professional machine translation and linguistic analysis via Systran — translate text, detect languages, and perform dictionary lookups.
NeverBounce
Verify and clean email addresses via NeverBounce — track single checks and bulk jobs directly from your AI agent.
Whop
Manage digital products, payments, and memberships on Whop with AI agents.