mcp-lrclib
This server lets a chat client search the LRCLIB lyrics database and retrieve track metadata and lyrics without an API key.
Search tracks by free text or by title, artist, and album, returning metadata, LRCLIB ids, durations, instrumental status, and whether plain or synced lyrics exist.
Fetch a track’s plain lyrics, time-synced LRC lyrics, or both, by track id or exact artist/title, with optional album/duration to choose a release.
Read long lyrics in paginated slices using
max_charsandoffset, continuing withnext_offset.Handle instrumental or lyric-less tracks with clear statuses and include attribution for citing lyrics.
Look up a single track’s metadata by id without fetching lyrics, including formatted duration and lyric availability.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-lrclib get the synced lyrics for 'Bohemian Rhapsody' by Queen"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-lrclib
LRCLIB is a free, open database of song lyrics, built by the people who use it and offered to anyone without a key or an account. It holds two forms of the words: the plain text of a song, and the LRC form, where every line carries the moment it is sung, which is what a karaoke display or a lyrics panel follows along with. A track is filed there by its title, its artist, its album and its duration, so the several releases of one song sit side by side.
This server connects a chat client to that database. You can search for a track by title, artist or album, read the plain words of a song, read its time-synced lines with their timestamps, and check the metadata of one release before reading it. It needs no API key and no account.
Install
One-click install
Claude Code
claude mcp add lrclib -- npx -y mcp-lrclibClaude Desktop, Cursor, and any client using the standard config format
{
"mcpServers": {
"lrclib": {
"command": "npx",
"args": ["-y", "mcp-lrclib"]
}
}
}Node 24 or later is required, and no environment variable has to be set.
With Docker
{
"mcpServers": {
"lrclib": {
"command": "docker",
"args": ["run", "-i", "--rm", "ghcr.io/smeet666/mcp-lrclib:2.1.0"]
}
}
}-i keeps stdin open, which is where the protocol travels, and -t is left out
because a TTY rewrites the stream. The container needs outbound HTTPS to
lrclib.net, and nothing else: no volume, no port, no credential.
Bundle, without npm
Download mcp-lrclib-2.1.0.mcpb from
the latest release and
open it. A client that supports MCP bundles installs it on its own, with no npm
and no configuration file to edit. The bundle carries its dependencies, so
nothing is fetched at install time.
Related MCP server: LyricsGenius MCP Server
What you can ask
"Find me the lyrics of Le Sud by Nino Ferrer."
"Give me the timed lyrics of Bohemian Rhapsody so I can follow along."
"Which version of Hallelujah is on LRCLIB, and how long is each one?"
"Read me the second half of those lyrics."
"Does track 3396226 have synced lyrics?"
The ordinary path runs from a search to a reading: search_tracks names an id,
and get_lyrics takes that id.
Tools
Tool | What it does |
| Finds tracks by title, artist or album, with their metadata. |
| Reads the words of one track, plain or with their timestamps. |
| Reads the metadata of one track by its id, without the words. |
LRCLIB files a track by its metadata, so a search reaches a song through its title, its artist or its album. A word remembered from inside a song finds nothing there.
search_tracks
Finds the tracks whose metadata matches, in one free-text search or in fields of their own. Several releases of one song come back side by side, and their album and duration tell them apart.
Argument | Type | Required | What it does |
| string, 1 to 200 characters | no | Free-text search, as in |
| string, up to 200 characters | no | Song title, for a search by field. |
| string, up to 200 characters | no | Artist name, for a search by field. |
| string, up to 200 characters | no | Album name, to narrow a search by field. |
| integer, 1 to 50, default | no | Rows to serve. LRCLIB answers up to 20 per search. |
Pass query, or one of the three fields.
In return: rows carrying id, which get_lyrics and get_track take;
track_name and artist_name; album_name and duration_seconds, which tell
two releases of one song apart; instrumental; has_plain_lyrics and
has_synced_lyrics, so timed lines can be checked for before they are asked
for; and source_url. Alongside come result_count and total_available, the
tracks LRCLIB served before limit was applied. album_name and
duration_seconds are null on a track filed without them, and the rows carry
no words at all: get_lyrics reads those.
get_lyrics
Reads the words of one track, either as plain text or as LRC lines carrying the moment each one is sung. Long lyrics are served a slice at a time, resuming at a line boundary.
Argument | Type | Required | What it does |
| integer, positive | no | The LRCLIB track id, as |
| string, up to 200 characters | no | Artist name, matched exactly. Needed when |
| string, up to 200 characters | no | Song title, matched exactly. Needed when |
| string, up to 200 characters | no | Album name, to pick between releases. |
| number, positive | no | Track duration, to pick between versions of differing length. |
|
| no | Which form of the words to serve. |
| integer, 200 to 20000, default | no | Characters of text to serve in this call. |
| integer, 0 or more, default | no | Character offset to resume from. |
In return: status, which reads ok, instrumental for a track with no
words to sing, or no_lyrics for one filed without them; track with its id,
title, artist, album, duration and source_url; plain_lyrics; synced_lyrics
as raw LRC text and synced_lines as a list of { time_seconds, text }, with
synced_lines_truncated when the slice cut them. The reading is described by
paginated_form, total_chars, returned_chars, offset, next_offset and
truncated: pass next_offset back to read on, and null there means the end.
attribution is the line to cite when the words are shown. A status of
instrumental is a complete answer.
get_track
Reads the metadata of one track from its id, leaving the words aside. It confirms a release before the words are asked for, and it resolves an id carried over from earlier in a conversation.
Argument | Type | Required | What it does |
| integer, positive | yes | The LRCLIB track id, as |
In return: track, holding the fields a search row carries, and
duration_formatted as m:ss, which is null when the track is filed without a
duration. has_plain_lyrics and has_synced_lyrics say which forms
get_lyrics can serve for it.
Configuration
Every variable is optional. Set them in the env block of your client config.
Variable | Default | What it does |
| the project identity | Names your application to LRCLIB, with an address where a person can be reached. |
|
| Gap between two requests, from 200 to 60000. A figure under the floor is refused and this one used. |
|
| Deadline for one request, from 1000 to 120000. |
|
| Attempts after a transient failure, from 0 to 10. |
|
| How long an answer stays in memory, from 0 to 86400000. |
|
| Answers held in memory at once, from 0 to 10000. |
|
|
|
A value outside its range falls back to the default, and the reason is written to stderr.
Errors
Every failure carries one of six codes, a message, and where it helps a hint naming the next move.
Code | What happened | What to do |
| LRCLIB answered, and it holds no such track. | Check the spelling with |
| The arguments were refused before any request went out. | Read the message, which names the argument. |
| LRCLIB asked this client to slow down. | Wait the number of seconds the hint names and call again with the same arguments. The track is still there. |
| LRCLIB answered in a shape this client cannot read. | Report it at the issue tracker. |
| The request did not complete. | Try again shortly. |
| The request passed its deadline. | Raise |
As a library
The layer reading LRCLIB is published on its own, with its pacing, its cache and its errors, and with no protocol attached.
import { LrclibClient } from "mcp-lrclib/client";
const client = new LrclibClient();
const { data, cached } = await client.getById(3396226);
console.log(data.track_name, data.synced_lyrics !== null, cached);search, get and getById each answer { data, cached }, and throw an error
carrying one of the six codes. The floor between two requests holds here as well.
Pacing and attribution
Requests go out one at a time with a minimum gap between them, and that floor
holds however the server is configured. The User-Agent always ends with the
project identity and an address where a person can be reached. LRCLIB is a free
service and publishes its API for machines to read, and this server reads it on
demand, one call at a time, in answer to something you asked for.
Every result carries the artist, the title and the address of its LRCLIB page,
and get_lyrics carries attribution, the three of them written as one line.
Song lyrics are the work of their authors and publishers. This project claims no rights over them, ships no database of them, writes nothing to disk, and contributes nothing back to LRCLIB. This MCP server is an unofficial project, with no affiliation to LRCLIB.
Privacy
This server collects nothing about you and sends nothing to its author. It runs
on your machine, contacts lrclib.net and nothing else, holds its answers in memory
while it runs, and writes nothing to disk.
PRIVACY.md states what a request carries and which settings change
any of it.
Development
npm install
npm run build:fixtures
npm test
npm run checkTests run against generated fixtures and make no network request. The live suite,
LRCLIB_LIVE=1 npm run test:live, makes one request per route against the
service itself and runs by hand.
Contributing
Bugs, questions and ideas belong in the issue tracker. Pull requests are welcome; opening an issue first helps agree on the shape of the change. See CONTRIBUTING.md.
License
MIT, see LICENSE. The lyrics belong to their authors and publishers, and the database to LRCLIB and its contributors.
mcp-lrclib (français)
LRCLIB est une base de paroles de chansons libre et ouverte, alimentée par ceux qui s'en servent et offerte à tous sans clé ni compte. Elle contient deux formes des paroles : le texte simple d'une chanson, et la forme LRC, où chaque ligne porte le moment où elle est chantée, ce que suit un affichage karaoké ou un panneau de paroles. Un titre y est classé par son nom, son artiste, son album et sa durée, si bien que les différentes parutions d'une même chanson y voisinent.
Ce serveur relie un client de conversation à cette base. On peut y chercher un titre par son nom, son artiste ou son album, lire les paroles simples d'une chanson, lire ses lignes horodatées avec leurs marques de temps, et vérifier la fiche d'une parution avant de la lire. Aucune clé d'API, aucun compte.
Installation
Installation en un clic
Claude Code
claude mcp add lrclib -- npx -y mcp-lrclibClaude Desktop, Cursor, et tout client au format de configuration standard
{
"mcpServers": {
"lrclib": {
"command": "npx",
"args": ["-y", "mcp-lrclib"]
}
}
}Node 24 ou plus récent est nécessaire, et aucune variable d'environnement n'est à renseigner.
Avec Docker
{
"mcpServers": {
"lrclib": {
"command": "docker",
"args": ["run", "-i", "--rm", "ghcr.io/smeet666/mcp-lrclib:2.1.0"]
}
}
}-i garde l'entrée standard ouverte, qui est le canal du protocole, et -t est
omis parce qu'un TTY réécrit le flux. Le conteneur a besoin d'un accès HTTPS
sortant vers lrclib.net, et de rien d'autre : aucun volume, aucun port, aucun
identifiant.
Bundle, sans npm
Téléchargez mcp-lrclib-2.1.0.mcpb depuis
la dernière publication
et ouvrez-le. Un client qui gère les bundles MCP l'installe seul, sans npm et
sans fichier de configuration à modifier. Le bundle emporte ses dépendances, donc
rien n'est téléchargé à l'installation.
Ce qu'on peut demander
« Trouve-moi les paroles du Sud de Nino Ferrer. »
« Donne-moi les paroles horodatées de Bohemian Rhapsody pour que je suive. »
« Quelles versions de Hallelujah y a-t-il sur LRCLIB, et quelle est leur durée ? »
« Lis-moi la seconde moitié de ces paroles. »
« Est-ce que le titre 3396226 a des paroles synchronisées ? »
Le chemin ordinaire va d'une recherche à une lecture : search_tracks nomme un
id, et get_lyrics reprend cet identifiant.
Les outils
Outil | Ce qu'il fait |
| Trouve des titres par nom, artiste ou album, avec leurs fiches. |
| Lit les paroles d'un titre, simples ou horodatées. |
| Lit la fiche d'un titre par son identifiant, sans les paroles. |
LRCLIB classe un titre par sa fiche, donc une recherche atteint une chanson par son nom, son artiste ou son album. Un mot retenu de l'intérieur d'une chanson n'y trouve rien.
search_tracks
Trouve les titres dont la fiche correspond, en une recherche libre ou par champs. Plusieurs parutions d'une même chanson reviennent côte à côte, et leur album et leur durée les distinguent.
Argument | Type | Requis | Ce qu'il fait |
| chaîne, 1 à 200 caractères | non | Recherche libre, par exemple |
| chaîne, jusqu'à 200 caractères | non | Nom de la chanson, pour une recherche par champs. |
| chaîne, jusqu'à 200 caractères | non | Nom de l'artiste, pour une recherche par champs. |
| chaîne, jusqu'à 200 caractères | non | Nom de l'album, pour resserrer une recherche par champs. |
| entier, 1 à 50, défaut | non | Lignes à servir. LRCLIB en rend jusqu'à 20 par recherche. |
Passez query, ou l'un des trois champs.
En retour : des lignes portant id, que get_lyrics et get_track
reprennent ; track_name et artist_name ; album_name et duration_seconds,
qui distinguent deux parutions d'une même chanson ; instrumental ;
has_plain_lyrics et has_synced_lyrics, qui permettent de vérifier l'existence
des lignes horodatées avant de les demander ; et source_url. Viennent aussi
result_count et total_available, les titres que LRCLIB a servis avant
l'application de limit. album_name et duration_seconds valent null sur un
titre classé sans eux, et les lignes ne portent aucune parole : get_lyrics les
lit.
get_lyrics
Lit les paroles d'un titre, en texte simple ou en lignes LRC portant le moment où chacune est chantée. Des paroles longues sont servies par tranches, coupées sur une fin de ligne.
Argument | Type | Requis | Ce qu'il fait |
| entier, positif | non | L'identifiant LRCLIB rendu par |
| chaîne, jusqu'à 200 caractères | non | Nom de l'artiste, correspondance exacte. Nécessaire sans |
| chaîne, jusqu'à 200 caractères | non | Nom de la chanson, correspondance exacte. Nécessaire sans |
| chaîne, jusqu'à 200 caractères | non | Nom de l'album, pour choisir entre des parutions. |
| nombre, positif | non | Durée du titre, pour choisir entre des versions de longueurs différentes. |
|
| non | La forme des paroles à servir. |
| entier, 200 à 20000, défaut | non | Caractères de texte à servir dans cet appel. |
| entier, 0 ou plus, défaut | non | Position en caractères où reprendre. |
En retour : status, qui vaut ok, instrumental pour un titre sans
paroles à chanter, ou no_lyrics pour un titre classé sans elles ; track avec
son identifiant, son nom, son artiste, son album, sa durée et son source_url ;
plain_lyrics ; synced_lyrics en texte LRC brut et synced_lines en liste de
{ time_seconds, text }, avec synced_lines_truncated quand la tranche les a
coupées. La lecture est décrite par paginated_form, total_chars,
returned_chars, offset, next_offset et truncated : redonnez next_offset
pour poursuivre, et null marque la fin. attribution est la ligne à citer
quand les paroles sont montrées. Un status à instrumental est une réponse
complète.
get_track
Lit la fiche d'un titre depuis son identifiant, sans les paroles. Elle confirme une parution avant qu'on demande les paroles, et elle résout un identifiant venu d'un échange précédent.
Argument | Type | Requis | Ce qu'il fait |
| entier, positif | oui | L'identifiant LRCLIB rendu par |
En retour : track, qui porte les champs d'une ligne de recherche, et
duration_formatted sous la forme m:ss, null pour un titre classé sans
durée. has_plain_lyrics et has_synced_lyrics disent quelles formes
get_lyrics peut servir.
Configuration
Chaque variable est facultative. Elles se posent dans le bloc env de la
configuration du client.
Variable | Défaut | Ce qu'elle fait |
| l'identité du projet | Nomme votre application auprès de LRCLIB, avec une adresse où joindre une personne. |
|
| Écart entre deux requêtes, de 200 à 60000. Une valeur sous le plancher est refusée au profit de celle-ci. |
|
| Délai d'une requête, de 1000 à 120000. |
|
| Tentatives après un échec passager, de 0 à 10. |
|
| Durée pendant laquelle une réponse reste en mémoire, de 0 à 86400000. |
|
| Réponses gardées en mémoire à la fois, de 0 à 10000. |
|
|
|
Une valeur hors de sa plage retombe sur le défaut, et la raison est écrite sur la sortie d'erreur.
Erreurs
Chaque échec porte un des six codes, un message, et quand cela aide une indication du geste suivant.
Code | Ce qui s'est passé | Que faire |
| LRCLIB a répondu, et ne contient pas ce titre. | Vérifiez l'orthographe avec |
| Les arguments ont été refusés avant toute requête. | Lisez le message, qui nomme l'argument. |
| LRCLIB demande à ce client de ralentir. | Attendez les secondes indiquées et rappelez avec les mêmes arguments. Le titre est toujours là. |
| LRCLIB a répondu dans une forme que ce client ne lit pas. | Signalez-le sur le suivi d'incidents. |
| La requête n'a pas abouti. | Réessayez sous peu. |
| La requête a dépassé son délai. | Augmentez |
Comme bibliothèque
La couche qui lit LRCLIB est publiée seule, avec son rythme, son cache et ses erreurs, sans protocole attaché.
import { LrclibClient } from "mcp-lrclib/client";
const client = new LrclibClient();
const { data, cached } = await client.getById(3396226);
console.log(data.track_name, data.synced_lyrics !== null, cached);search, get et getById répondent chacun { data, cached }, et lèvent une
erreur portant un des six codes. Le plancher entre deux requêtes tient également
ici.
Rythme et attribution
Les requêtes partent une à une avec un écart minimal entre elles, et ce plancher
tient quelle que soit la configuration. Le User-Agent se termine toujours par
l'identité du projet et une adresse où joindre une personne. LRCLIB est un
service gratuit et publie son API pour être lue par des machines, et ce serveur
la lit à la demande, un appel à la fois, en réponse à ce que vous avez demandé.
Chaque résultat porte l'artiste, le titre et l'adresse de sa page LRCLIB, et
get_lyrics porte attribution, ces trois éléments écrits en une ligne.
Les paroles sont l'œuvre de leurs auteurs et de leurs éditeurs. Ce projet ne revendique aucun droit dessus, n'embarque aucune base de paroles, n'écrit rien sur le disque et ne contribue rien à LRCLIB. Ce MCP est un projet non officiel, sans affiliation à LRCLIB.
Confidentialité
Ce serveur ne collecte rien sur vous et n'envoie rien à son auteur. Il tourne sur
votre machine, ne joint que lrclib.net, garde ses réponses en mémoire le temps qu'il
tourne, et n'écrit rien sur le disque. PRIVACY.md dit ce qu'une
requête emporte et quels réglages changent cela.
Développement
npm install
npm run build:fixtures
npm test
npm run checkLes tests s'exécutent sur des fixtures engendrées et n'émettent aucune requête.
La suite en direct, LRCLIB_LIVE=1 npm run test:live, émet une requête par
route contre le service lui-même et se lance à la main.
Contribuer
Les anomalies, les questions et les idées ont leur place dans le suivi d'incidents. Les propositions de modification sont bienvenues ; ouvrir un ticket d'abord aide à s'accorder sur la forme du changement. Voir CONTRIBUTING.md.
Licence
MIT, voir LICENSE. Les paroles appartiennent à leurs auteurs et à leurs éditeurs, et la base à LRCLIB et à ses contributeurs.
Available Tools
3 toolsget_lyricsGet lyricsARead-onlyIdempotent
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 'attribution' when showing lyrics to a user.
Inputs: id, format, offset, max_chars, +4 more. Returns: notes, track, offset, source, +11 more
get_trackGet track metadataARead-onlyIdempotent
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.
Inputs: id (required). Returns: notes, track, source, duration_formatted
search_tracksSearch tracksARead-onlyIdempotent
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 a word appearing inside the lyrics.
Inputs: limit, query, album_name, track_name, +1 more. Returns: notes, source, results, result_count, +1 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The three tools have distinct primary purposes: search for tracks, fetch lyrics, and look up metadata by id. There is some overlap because search_tracks and get_track both return metadata, and get_lyrics may also include track metadata, but the descriptions clearly distinguish multi-result search from single-track lookup and lyric retrieval.
All tool names follow a consistent snake_case verb_noun pattern: search_tracks, get_lyrics, get_track. The convention is predictable and readable throughout.
Three tools are well-scoped for a lyrics lookup server: search, metadata confirmation, and lyric retrieval. Each tool earns its place, and there are no redundant or filler tools.
The surface covers the core read-only workflow: find a track, confirm its metadata, and fetch lyrics with pagination and format options. Minor gaps exist, such as no explicit album or artist browse operation, but these can be worked around through search.
Maintenance
Related MCP Connectors
An MCP server that provides tools to discover and retrieve podcast episodes transcripts.
MCP server for RiverScript, an AI transcription platform - fetches transcripts shared via a link.
MCP server for Producer/Riffusion AI music generation
An MCP server that provides congressional transcripts
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server for Spotify control and synchronized lyrics retrieval that enables playback management, queue navigation, and music search capabilities. It also features perception tools for real-time track analysis, including BPM, key detection, and timestamped lyrics.72 npm3Apache 2.0
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables searching Genius.com for artists, songs, and albums, retrieving song lyrics, and exploring artist discographies through natural language.3MIT
- AlicenseNot gradedqualityCmaintenanceBridges multiple lyrics providers (LRCLIB, Genius, Musixmatch, Melon) into a single toolchain accessible via MCP, HTTP, or CLI.51 npm1MIT
- AlicenseNot gradedqualityCmaintenanceMCP server that enables LLMs to search, play, and manage music from multiple platforms (NetEase, QQ, Kugou) and local files, with lyrics retrieval and playback control.MIT