MCP server for Lightning FM's Nostr-native music catalog — search tracks, look up artists, check what's live. No separate agent API.
- ✓Open-source license (MIT)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Documented (README)
git clone https://github.com/Lightning-FM/lightning-fm-mcp{
"mcpServers": {
"lightning-fm-mcp": {
"command": "node",
"args": ["/path/to/lightning-fm-mcp/dist/index.js"]
}
}
}Resumen de MCP Servers
# Lightning FM :: MCP Server
An [MCP](https://modelcontextprotocol.io) server for [Lightning FM](https://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.
## Who this is for
- **Agent developers**: you want the tools in your MCP client. Go to [Use it](#use-it) and [Tools](#tools). No install, no API key, no account.
- **Contributors**: you want to change or extend the server. Go to [What works today](#what-works-today) and [Development](#development). The wire format this server parses is documented at [lightning.fm/interop](https://lightning.fm/interop).
## Use it
Add it to your MCP client's server config. For Claude Code or Claude Desktop:
```json
{
"mcpServers": {
"lightning-fm": {
"command": "npx",
"args": ["-y", "lightning-fm-mcp"]
}
}
}
```
No install, no API key, no account. It talks to `relay.lightning.fm` and `media.lightning.fm` by default. See [Configuration](#configuration) to point it elsewhere.
## Tools
- **`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.
## What works today
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 |
## Configuration
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. |
## Development
```sh
npm install
npm run dev # runs src/index.ts directly via tsx
npm run build # tsc, emits dist/
npm test # tsx --test tests/*.test.ts
```
### Layout
- `src/index.ts` server entry, stdio transport
- `src/tools.ts` the three MCP tool registrations
- `src/nostr/` relay reads: `catalog.ts`, `profiles.ts`, `now-playing.ts`, and `track.ts` (kind 31337 parsing)
- `src/config.ts` env handling and defaults
- `tests/` parsing and catalog tests
`src/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`](https://github.com/Lightning-FM/lightning-fm-desktop/blob/main/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](https://lightning.fm/interop).
## License
MIT
Lo que la gente pregunta sobre lightning-fm-mcp
¿Qué es Lightning-FM/lightning-fm-mcp?
+
Lightning-FM/lightning-fm-mcp es mcp servers para el ecosistema de Claude AI. MCP server for Lightning FM's Nostr-native music catalog — search tracks, look up artists, check what's live. No separate agent API. Tiene 0 estrellas en GitHub y su última actualización registrada es del 2026-08-20.
¿Cómo se instala lightning-fm-mcp?
+
Puedes instalar lightning-fm-mcp clonando el repositorio (https://github.com/Lightning-FM/lightning-fm-mcp) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.
¿Es seguro usar Lightning-FM/lightning-fm-mcp?
+
Nuestro agente de seguridad ha analizado Lightning-FM/lightning-fm-mcp y le ha asignado un Trust Score de 87/100 (tier: Trusted). Revisa el desglose completo de comprobaciones superadas y flags en esta página.
¿Quién mantiene Lightning-FM/lightning-fm-mcp?
+
Lightning-FM/lightning-fm-mcp es mantenido por Lightning-FM. La última actividad registrada en GitHub es del 2026-08-20, con 0 issues abiertos.
¿Hay alternativas a lightning-fm-mcp?
+
Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.
Despliega lightning-fm-mcp en tu cloud
Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.
¿Mantienes este repo? Añade un badge a tu README
Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.
[](https://claudewave.com/repo/lightning-fm-lightning-fm-mcp)<a href="https://claudewave.com/repo/lightning-fm-lightning-fm-mcp"><img src="https://claudewave.com/api/badge/lightning-fm-lightning-fm-mcp" alt="Featured on ClaudeWave: Lightning-FM/lightning-fm-mcp" width="320" height="64" /></a>Más MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
The fastest path to AI-powered full stack observability, even for lean teams.
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!