urmusic-mcp
A personal MCP server that analyzes your Spotify streaming history locally, enabling queries, artist insights, and recommendations using a local SQLite database.
README
urmusic-mcp
Un MCP personal sobre tu propio historial de Spotify. Corre 100% en tu máquina — tu JSON nunca sale de tu disco, nunca se sube a ningún servidor.
1. Pide tu historial a Spotify
- Ve a privacy.spotify.com/es/account/privacy
- Baja hasta "Descarga tus datos" y marca "Historial de streaming extendido" (no el básico — ese solo trae el último año)
- Confirma por email. Spotify tarda entre unos días y unas semanas en mandarte un ZIP.
- Descomprime el ZIP en una carpeta — dentro verás varios
Streaming_History_Audio_*.json.
2. Instala
Necesitas uv:
git clone https://github.com/ipaud/urmusic-mcp
cd urmusic-mcp
uv sync
3. Genera tu base de datos local
uv run ingest.py ./ruta/a/la/carpeta/descomprimida
Esto crea listening.db en el proyecto. Está en .gitignore — nunca la
subas a ningún sitio, es tu historial personal.
4. Conéctalo a Claude
Con Claude Code:
claude mcp add musica -- uv run --directory /ruta/absoluta/a/urmusic-mcp server.py
Con Claude Desktop, añade a tu config MCP:
{
"mcpServers": {
"musica": {
"command": "uv",
"args": ["run", "--directory", "/ruta/absoluta/a/urmusic-mcp", "server.py"]
}
}
}
Reinicia y pregunta algo como:
- "¿Qué artistas escuché con atención y dejé tirados hace 5 años?"
- "Top 10 por convicción, no por reproducciones"
- "Recomiéndame música nueva basada en mis semillas de más convicción"
Qué hace cada tool
| Tool | Qué hace |
|---|---|
listening_schema |
Esquema de la base de datos |
listening_query |
SQL de solo lectura sobre tu historial |
listening_find_dormant |
Artistas escuchados con atención y abandonados hace X años, con carátulas |
listening_expand_artist |
Candidatos nuevos vía MusicBrainz (miembros, colaboradores, sello), con carátulas |
listening_artist_profile |
Perfil completo de un artista: plays, convicción, rango temporal, carátula del álbum más escuchado |
listening_year_in_review |
Top artistas de un año por minutos escuchados, con carátulas |
listening_top_albums |
Top álbumes por reproducciones, con carátulas |
Las carátulas vienen de MusicBrainz + Cover Art Archive y van activadas por
defecto (with_art=true) en los tools que devuelven varios artistas/álbumes.
Cada una cuesta 2 llamadas a MusicBrainz a 1 req/seg, así que listas largas
tardan más — pon with_art=false si prefieres respuesta rápida sin imágenes.
Privacidad
- Nada de esto llama a ningún servidor tuyo ni de terceros excepto MusicBrainz y Cover Art Archive (solo nombres de artista/álbum, para buscar relaciones y carátulas — nunca tu historial).
listening.dbvive solo en el disco de quien lo genera.- Si compartes este repo, comparte el código — nunca tu
.db.
Licencia
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.