youtube-music-mcp
MCP server for read-only access to YouTube Music, enabling exploration of liked songs, playlists, and catalog searches without exposing credentials.
README
YouTube Music MCP
Servidor MCP y plugin personal de Codex para consultar YouTube Music de forma local y de solo lectura. Permite explorar favoritos, playlists y el catálogo sin incorporar credenciales ni datos privados al repositorio.
Funciones
- Listar y filtrar canciones marcadas con Me gusta.
- Listar playlists de la biblioteca.
- Obtener el contenido de la playlist de favoritos (
LM). - Buscar canciones, vídeos, álbumes, artistas y playlists.
- Buscar por género incorporándolo a la consulta del catálogo.
- Resumir favoritos por artista, álbum y año.
- Exportar favoritos a CSV o JSON.
- Trabajar con API en vivo o con snapshots privados capturados desde Chrome.
Privacidad y arquitectura
El servidor tiene dos modos de lectura:
live_api: usa una sesión local deytmusicapi.browser_snapshot: usa snapshots de metadatos generados desde una sesión de Chrome ya iniciada, sin guardar cookies, cabeceras ni contraseñas.
Los archivos privados se almacenan fuera del repositorio:
~/.config/youtube-music-mcp/browser.json
~/.config/youtube-music-mcp/liked-snapshot.json
~/.config/youtube-music-mcp/playlists-snapshot.json
El MCP no expone herramientas que modifiquen la cuenta.
Herramientas MCP
| Herramienta | Descripción |
|---|---|
auth_status |
Comprueba la fuente de datos disponible. |
list_liked_songs |
Lista y filtra canciones favoritas. |
list_library_playlists |
Lista playlists guardadas. |
get_playlist |
Obtiene canciones de una playlist. |
search_music |
Busca en el catálogo por texto, artista o género. |
summarize_liked_library |
Resume artistas, álbumes y años. |
export_liked_songs |
Exporta favoritos a CSV o JSON. |
Instalación local
Requisitos: Python 3.11 o posterior y uv.
git clone https://github.com/eduardoddddddd/youtube-music-mcp.git
cd youtube-music-mcp
uv sync
./scripts/configure-local-path.sh
El último comando adapta .mcp.json a la ruta absoluta del clon.
Autenticación API opcional
./scripts/setup-auth.sh
No introduzcas contraseñas: el asistente acepta las cabeceras de una sesión ya iniciada. Si Codex captura la biblioteca desde Chrome, este paso no es necesario.
Desarrollo
uv sync
uv run ruff check .
uv run pytest
Limitación de género
YouTube Music no entrega un campo de género por pista. search_music(..., genre="jazz") añade el
género a la consulta del catálogo, pero no intenta clasificar automáticamente cada favorito.
Licencia
MIT © 2026 Eduardo Arias Bravo.
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.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
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.