Search Lightning FM's Nostr music catalog, look up artists, and check what's live now.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
An MCP server for Lightning FM's music catalog: search tracks, look up artists, and check what's live on the station, all from an agent.
There is no separate agent API. This server reads exactly what a human client reads: kind 31337 track events and kind 0 profiles from public Nostr relays, audio and images from the public Blossom server, and the kind 30311 live activity event the station publishes on every track change. Every track is signed by the artist's own key. This is the canonical catalog, not a curated subset the platform maintains for agents. Artists keep their exit rights: the catalog lives in events they signed, and nothing this server returns depends on the platform's goodwill.
Add it to your MCP client's server config. For Claude Code or Claude Desktop:
No install, no API key, no account. It talks to relay.lightning.fm and media.lightning.fm by default. See Configuration to point it elsewhere.
search_catalog: free-text search plus genre/tag filters over the full catalog. Leave every filter empty to browse newest-first.get_artist: look up an artist by display name (partial match), hex pubkey, or npub. Returns their profile and full discography.get_now_playing: what's currently on air, and the stream URL.Verified against src/, not against ambition.
| Feature | Status |
|---|---|
search_catalog: free text matched against title, artist, album, genre, and description, plus genre and tag filters | Works |
get_artist: partial display-name match, hex pubkey, or npub; returns profile plus discography | Works |
get_now_playing: reads the station's kind 30311 live activity event, returns the current track and stream URL | Works |
| Read-only guarantee: the server holds no keys, never signs, never publishes; there are no write tools | Works, by construction |
| Relay snapshot caching (default 60s TTL) so repeated tool calls don't hammer relays | Works |
| Transport | stdio only; no HTTP transport yet |
| Writes of any kind (publishing tracks, zapping, tipping) | Not built, and out of scope by design |
All environment variables are optional; defaults point at production. Nothing here is a secret. This server is read-only and never signs or publishes anything.
| Variable | Default | What it does |
|---|---|---|
LFM_NOSTR_RELAYS | wss://relay.lightning.fm | Comma-separated relay URLs to query. Only add a relay here if it gates writes the way relay.lightning.fm does. Kind 31337 isn't exclusive to Lightning FM, and an unrestricted public relay hands back every other app's tracks too. |
LFM_BLOSSOM_URL | https://media.lightning.fm | Blossom server audio/image hashes resolve against. |
LFM_CACHE_TTL_MS | 60000 | How long a fetched snapshot is reused before the next tool call re-queries the relays. |
Nothing about you, ever. This server has no telemetry, no analytics, no phone-home, and no opt-in flag for any of the above. It reports nothing to Lightning FM.
The one thing it does send is a User-Agent header on its outbound relay
connections:
That is the software naming itself. It is byte-identical for every install,
contains no identifier, and says nothing about you or your machine. Without
it the underlying websocket library sends its own default User-Agent
instead, so this replaces one generic string with a specific one; it does
not add a channel. It exists so Lightning FM can tell agent catalog queries
apart from browser traffic in its own relay logs.
If you would rather not send it, npm and a one-line edit to src/config.ts
are all it takes. It is a measurement aid, not a control.
src/index.ts server entry, stdio transportsrc/tools.ts the three MCP tool registrationssrc/nostr/ relay reads: catalog.ts, profiles.ts, now-playing.ts, and track.ts (kind 31337 parsing)src/config.ts env handling and defaultstests/ parsing and catalog testssrc/nostr/track.ts mirrors the kind 31337 parsing in station-server/src/catalog/track.ts (private repo) and app-desktop/src-tauri/src/relay.rs. All three must agree on tag names. This is the platform's public wire format, documented in full at lightning.fm/interop.
MIT
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/lightning-fm-mcp)<a href="https://allmcps.com/mcp/lightning-fm-mcp"><img src="https://allmcps.com/api/badge/lightning-fm-mcp?style=directory" alt="Lightning Fm MCP on AllMCPs" /></a>