mcp-lrclib

v2.1.0
io.github.smeet666/mcp-lrclib Checked 4 days ago Published 1 month ago

Search tracks on LRCLIB and fetch plain or time-synced (LRC) lyrics.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_tracks Search tracks

Search LRCLIB for tracks by title, artist or album, and get the id needed to fetch lyrics with get_lyrics. Give either 'query' as free text, or 'track_name' and 'artist_name' separately for a narrower search. Results carry metadata only: title, artist, album, duration, and whether plain and time-synced lyrics exist. Use 'duration_seconds' and 'album_name' in the results to tell releases and re-recordings of the same song apart, and 'has_synced_lyrics' to know whether karaoke-style timed lyrics are available before fetching them. LRCLIB indexes tracks by their metadata, so it cannot search for…

ParameterTypeDescription
album_namestringAlbum name, to narrow a structured search.
artist_namestringArtist name, for a structured search.
limitintegerMaximum tracks to return. LRCLIB returns up to 20 per search.
querystringFree-text search, for example 'nino ferrer le sud'. Use this or the fields below.
track_namestringSong title, for a structured search.

get_lyrics Get lyrics

Fetch the lyrics of one track from LRCLIB, given the id returned by search_tracks, or an exact artist and title. Set 'format' to "synced" for karaoke-style lyrics with a timestamp on every line, "plain" for the text alone, or "both". Check 'has_synced_lyrics' in the search results first: not every track has timed lyrics. Lyrics can be long, so the text is truncated by default: check 'truncated' and call again with 'offset' set to 'next_offset' to continue reading. Instrumental tracks come back with status "instrumental" and no text, which is a valid answer, so do not retry them. Always cite 'a…

ParameterTypeDescription
album_namestringAlbum name, to pick between releases.
artist_namestringArtist name, matched exactly by LRCLIB. Required when 'id' is absent.
duration_secondsnumberTrack duration, to pick between versions of differing length.
formatstring'plain' returns the text only. 'synced' returns LRC text plus a parsed list of timestamped lines. 'both' returns each of them.
idintegerLRCLIB track id, as returned by search_tracks. Preferred over the name fields.
max_charsintegerMaximum characters of lyrics text to return in this call.
offsetintegerCharacter offset to resume from, for lyrics longer than max_chars.
track_namestringSong title, matched exactly by LRCLIB. Required when 'id' is absent.

get_track Get track metadata

Look up one LRCLIB track by its id and return its metadata without the lyrics: title, artist, album, duration, and whether plain and time-synced lyrics exist. Use this to confirm you have the right release or version before calling get_lyrics, or to check whether timed lyrics exist for a track id you already hold.

ParameterTypeDescription
id *integerLRCLIB track id, as returned by search_tracks.