trackmcp
Back to directory
Agroqirax

lrclib-mcp

View on GitHub

A stdio MCP server that exposes the read-only lrclib.net lyrics API as tools for MCP clients (e.g. Claude Code, Claude Desktop).

0 stars JavaScriptOthers Updated Jul 28, 2026
aiclaudelrcliblyricsmcp

Documentation

lrclib-mcp

A stdio MCP server that exposes the read-only

lrclib.net lyrics API as tools for MCP clients (e.g.

Claude Code, Claude Desktop).

Publishing lyrics (`/api/publish`) is intentionally not implemented — this

server only supports looking up existing lyrics.

The server communicates over stdio using the MCP protocol

Tools

  • get_lyrics — `GET /api/get`

Exact-match lookup by `track_name`, `artist_name`, and optionally

`album_name` / `duration` (seconds). Best when you know precise track

metadata; returns a single record.

  • get_lyrics_by_id — `GET /api/get/{id}`

Fetch a specific lyrics record by its numeric ID (e.g. one returned from

`search_lyrics`).

  • search_lyrics — `GET /api/search`

Search by a generic `q` string and/or `track_name` / `artist_name` /

`album_name`. Returns an array of matching records (may be empty).

Requirements

  • Node.js 18+ (uses the built-in `fetch`)

Configuring with an MCP client

Example client config (e.g. Claude Code / Claude Desktop `mcpServers`):

json
{
  "mcpServers": {
    "lrclib": {
      "command": "npx",
      "args": ["-y", "git+https://github.com/agroqirax/lrclib-mcp.git"],
      "env": {
        "LRCLIB_API_BASE": "https://lrclib.net/api",
        "LRCLIB_USER_AGENT": "lrclib-mcp/1.0.0 (+https://github.com/agroqirax/lrclib-mcp)"
      }
    }
  }
}

Environment variables

Both are optional and fall back to sane defaults:

VariableDefaultPurpose
`LRCLIB_API_BASE``https://lrclib.net/api`Override the API base URL
`LRCLIB_USER_AGENT``lrclib-mcp/1.0.0 (+https://github.com/agroqirax/lrclib-mcp)`Override the `User-Agent` sent to lrclib.net

Streamable HTTP

Awaiting lrclib#115 being merged

License

GPL-3.0-or-later

Frequently asked questions

What is lrclib-mcp?

lrclib-mcp is A stdio MCP server that exposes the read-only lrclib.net lyrics API as tools for MCP clients (e.g. Claude Code, Claude Desktop).

How do I install lrclib-mcp?

Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

Is lrclib-mcp open source?

Yes — it is hosted on GitHub at https://github.com/Agroqirax/lrclib-mcp.

Related MCP tools

Run your own MCP server? See who uses it and what to fix.

Measure it with TrackMCP