Back to Browse

Lrclib MCP Server

Developer ToolsLow Risk10.0Local
Free

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

About

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

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (2 strong, 0 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry.

4 files analyzed · 1 issue found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

What You'll Need

Set these up before or after installing:

Override the User-Agent sent to LRCLIB.Optional

Environment variable: LRCLIB_USER_AGENT

Minimum milliseconds between requests. Default 500, floor 200.Optional

Environment variable: LRCLIB_MIN_INTERVAL_MS

silent, error, info or debug. Default error.Optional

Environment variable: LRCLIB_LOG_LEVEL

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-smeet666-mcp-lrclib": {
      "env": {
        "LRCLIB_LOG_LEVEL": "your-lrclib-log-level-here",
        "LRCLIB_USER_AGENT": "your-lrclib-user-agent-here",
        "LRCLIB_MIN_INTERVAL_MS": "your-lrclib-min-interval-ms-here"
      },
      "args": [
        "-y",
        "mcp-lrclib"
      ],
      "command": "npx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

mcp-lrclib

npm CI license MCP Registry Glama M8ven Install in Cursor Install in VS Code

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.

Version française


Install

One-click install

Install in Cursor Install in VS Code

Claude Code

claude mcp add lrclib -- npx -y mcp-lrclib

Claude 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.0.1"]
    }
  }
}

-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.0.1.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.

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

ToolWhat it does
search_tracksFinds tracks by title, artist or album, with their metadata.
get_lyricsReads the words of one track, plain or with their timestamps.
get_trackReads 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.

ArgumentTypeRequiredWhat it does
querystring, 1 to 200 charactersnoFree-text search, as in nino ferrer le sud.
track_namestring, up to 200 charactersnoSong title, for a search by field.
artist_namestring, up to 200 charactersnoArtist name, for a search by field.
album_namestring, up to 200 charactersnoAlbum name, to narrow a search by field.
limitinteger, 1 to 50, default 10noRows 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.

ArgumentTypeRequiredWhat it does
idinteger, positivenoThe LRCLIB track id, as search_tracks returned it.
artist_namestring, up to 200 charactersnoArtist name, matched exactly. Needed when id is absent.
track_namestring, up to 200 charactersnoSong title, matched exactly. Needed when id is absent.
album_namestring, up to 200 charactersnoAlbum name, to pick between releases.
duration_secondsnumber, positivenoTrack duration, to pick between versions of differing length.
formatplain, synced or both, default plainnoWhich form of the words to serve.
max_charsinteger, 200 to 20000, default 6000noCharacters of text to serve in this call.
offsetinteger, 0 or more, default 0noCharacter 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.

ArgumentTypeRequiredWhat it does
idinteger, positiveyesThe LRCLIB track id, as search_tracks returned it.

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.

VariableDefaultWhat it does
LRCLIB_USER_AGENTthe project identityNames your application to LRCLIB, with an address where a person can be reached.
LRCLIB_MIN_INTERVAL_MS500Gap between two requests, from 200 to 60000. A figure under the floor is refused and this one used.
LRCLIB_TIMEOUT_MS15000Deadline for one request, from 1000 to 120000.
LRCLIB_MAX_RETRIES3Attempts after a transient failure, from 0 to 10.
LRCLIB_CACHE_TTL_MS900000How long an answer stays in memory, from 0 to 86400000.
LRCLIB_CACHE_MAX_ENTRIES200Answers held in memory at once, from 0 to 10000.
LRCLIB_LOG_LEVELerrorsilent, error, info or debug, written to stderr.

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.

CodeWhat happenedWhat to do
not_foundLRCLIB answered, and it holds no such track.Check the spelling with search_tracks.
invalid_inputThe arguments were refused before any request went out.Read the message, which names the argument.
rate_limitedLRCLIB 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.
upstream_errorLRCLIB answered in a shape this client cannot read.Report it at the issue tracker.
network_errorThe request did not complete.Try again shortly.
timeoutThe request passed its deadline.Raise LRCLIB_TIMEOUT_MS, or ask for a smaller max_chars.

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 check

Tests run against generated fixtures and make no network request. The live suite, npm run test:live, makes one request per route and runs nightly against the service itself.

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)

English version

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

Install in Cursor Install in VS Code

Claude Code

claude mcp add lrclib -- npx -y mcp-lrclib

Claude 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.0.1"]
    }
  }
}

-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.0.1.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

OutilCe qu'il fait
search_tracksTrouve des titres par nom, artiste ou album, avec leurs fiches.
get_lyricsLit les paroles d'un titre, simples ou horodatées.
get_trackLit 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.

ArgumentTypeRequisCe qu'il fait
querychaîne, 1 à 200 caractèresnonRecherche libre, par exemple nino ferrer le sud.
track_namechaîne, jusqu'à 200 caractèresnonNom de la chanson, pour une recherche par champs.
artist_namechaîne, jusqu'à 200 caractèresnonNom de l'artiste, pour une recherche par champs.
album_namechaîne, jusqu'à 200 caractèresnonNom de l'album, pour resserrer une recherche par champs.
limitentier, 1 à 50, défaut 10nonLignes à 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.

ArgumentTypeRequisCe qu'il fait
identier, positifnonL'identifiant LRCLIB rendu par search_tracks.
artist_namechaîne, jusqu'à 200 caractèresnonNom de l'artiste, correspondance exacte. Nécessaire sans id.
track_namechaîne, jusqu'à 200 caractèresnonNom de la chanson, correspondance exacte. Nécessaire sans id.
album_namechaîne, jusqu'à 200 caractèresnonNom de l'album, pour choisir entre des parutions.
duration_secondsnombre, positifnonDurée du titre, pour choisir entre des versions de longueurs différentes.
formatplain, synced ou both, défaut plainnonLa forme des paroles à servir.
max_charsentier, 200 à 20000, défaut 6000nonCaractères de texte à servir dans cet appel.
offsetentier, 0 ou plus, défaut 0nonPosition 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.

ArgumentTypeRequisCe qu'il fait
identier, positifouiL'identifiant LRCLIB rendu par search_tracks.

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.

VariableDéfautCe qu'elle fait
LRCLIB_USER_AGENTl'identité du projetNomme votre application auprès de LRCLIB, avec une adresse où joindre une personne.
LRCLIB_MIN_INTERVAL_MS500Écart entre deux requêtes, de 200 à 60000. Une valeur sous le plancher est refusée au profit de celle-ci.
LRCLIB_TIMEOUT_MS15000Délai d'une requête, de 1000 à 120000.
LRCLIB_MAX_RETRIES3Tentatives après un échec passager, de 0 à 10.
LRCLIB_CACHE_TTL_MS900000Durée pendant laquelle une réponse reste en mémoire, de 0 à 86400000.
LRCLIB_CACHE_MAX_ENTRIES200Réponses gardées en mémoire à la fois, de 0 à 10000.
LRCLIB_LOG_LEVELerrorsilent, error, info ou debug, écrit sur la sortie d'erreur.

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.

CodeCe qui s'est passéQue faire
not_foundLRCLIB a répondu, et ne contient pas ce titre.Vérifiez l'orthographe avec search_tracks.
invalid_inputLes arguments ont été refusés avant toute requête.Lisez le message, qui nomme l'argument.
rate_limitedLRCLIB demande à ce client de ralentir.Attendez les secondes indiquées et rappelez avec les mêmes arguments. Le titre est toujours là.
upstream_errorLRCLIB a répondu dans une forme que ce client ne lit pas.Signalez-le sur le suivi d'incidents.
network_errorLa requête n'a pas abouti.Réessayez sous peu.
timeoutLa requête a dépassé son délai.Augmentez LRCLIB_TIMEOUT_MS, ou demandez un max_chars plus petit.

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 check

Les tests s'exécutent sur des fixtures engendrées et n'émettent aucune requête. La suite en direct, npm run test:live, émet une requête par route et tourne chaque nuit contre le service lui-même.

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.

Reviews

No reviews yet

Be the first to review this server!