MCP.so
Sign In
Servers

ScrobblerContext - Last.fm MCP Server

@tfmart

MCP Server for Last.FM APIs, built in Swift

Overview

What is ScrobblerContext - Last.fm MCP Server?

ScrobblerContext is a Model Context Protocol (MCP) server built in Swift that provides AI assistants with access to Last.fm’s music database. It enables searching for artists, albums, and tracks, managing user libraries, and scrobbling track plays via secure OAuth authentication.

How to use ScrobblerContext - Last.fm MCP Server?

Install globally with npm install -g scrobblercontext-mcp, set the environment variables LASTFM_API_KEY and LASTFM_SECRET_KEY, then run scrobblercontext-mcp. Configure MCP clients such as Claude Desktop or Cursor to execute the server command with stdio transport and the required environment variables.

Key features of ScrobblerContext - Last.fm MCP Server

  • Secure browser OAuth flow with session persistence
  • Artist search, detailed info, and similar artists
  • Album search with track listings and metadata
  • Track search, details, recommendations, and corrections
  • User data: listening history, top charts, friends, loved tracks
  • Scrobbling: submit track plays, update now playing, love/unlove tracks
  • Personal tagging for artists, albums, and tracks (requires auth)
  • Community tag retrieval and correction tools

Use cases of ScrobblerContext - Last.fm MCP Server

  • Search for music and get detailed artist/album/track information
  • Scrobble tracks to a user’s Last.fm profile via voice or chat
  • Discover similar artists and track recommendations
  • Access personal listening statistics and top charts
  • Manage a music library: love tracks, add tags, view history

FAQ from ScrobblerContext - Last.fm MCP Server

How do I get Last.fm API credentials?

Visit the Last.fm API Account Creation page, fill in application details (use http://localhost:8080/callback as the callback URL), then save the API Key and Shared Secret.

What are the prerequisites to run the server?

The easiest method requires Node.js and npm. Alternatively, Swift 6.0+ and macOS 13.0+ (or Linux with Swift support) are needed for manual builds. Last.fm API credentials are always required.

How do I authenticate a user with Last.fm?

Use the authenticate_browser tool to start the OAuth flow in your default browser. The server persists the session for subsequent requests.

How do I configure the server in Claude Desktop?

Add a lastfm entry in claude_desktop_config.json with command: "scrobblercontext-mcp" and set the LASTFM_API_KEY and LASTFM_SECRET_KEY environment variables.

What transport does the server use?

The server communicates over stdio following the Model Context Protocol standard.

Tags

More from Other