
Yandex Music (unofficial)
io.github.kenzolikav0.2.0Updated Oct 5, 2026
Unofficial Yandex Music server: search, likes, history, My Wave, playlists. Token stays local.
Overview
Unofficial Yandex Music server that lets an assistant search the catalog and read or edit your likes, listening history, My Wave and playlists.
- What it does
- Connects an MCP client to your Yandex Music account. Read tools cover account info, search across tracks, albums, artists and playlists, liked tracks, listening history by day, your playlists and their tracks, public playlists or albums by link, album and artist tracks, similar tracks, My Wave and charts. Write tools create, fill, trim and delete playlists, like or unlike tracks, and export likes or a playlist to .txt and .csv. It does not control playback or download audio.
- When to use it
- Useful when you want an assistant to analyze your listening habits, answer questions about what you played recently, build playlists from your likes or similar tracks, compare a shared playlist with your library, or export your likes to a file.
- Requirements
- Runs locally over stdio on Windows, macOS or Linux, started with uvx from the yandex-music-mcp PyPI package (uv required). A Yandex account and a one-time OAuth device sign-in are needed; the token is read from ~/.yandex-music-mcp/token by default, or from YANDEX_MUSIC_TOKEN or the file named by YANDEX_MUSIC_TOKEN_FILE. YANDEX_MUSIC_EXPORT_DIR sets where exports go. Some features such as My Wave may require a Plus subscription.
Installation
In SourceWeft
- Open Yandex Music (unofficial) in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
yandex-music-mcp
Неофициальный MCP-сервер для Яндекс Музыки. Подключается к Claude Desktop, Claude Code и другим MCP-клиентам и даёт ассистенту доступ к вашей библиотеке: лайкам, истории прослушиваний, «Моей волне» и плейлистам.
Сервер работает локально на вашем компьютере (stdio). Токен хранится только у вас и никуда не передаётся. Поддерживаются Windows, macOS и Linux.
⚠️ Неофициальный проект. Не связан с ООО «Яндекс» и не одобрен им. Использует неофициальную библиотеку yandex-music: если Яндекс изменит API, сервер может временно перестать работать. Аудио сервер не скачивает — только работает с метаданными, лайками и плейлистами вашего аккаунта.
Что умеет
Воспроизведением сервер не управляет: музыку вы слушаете, как обычно, в приложении Яндекс Музыки, а новые плейлисты и лайки появляются там сразу.
Примеры запросов
- «Проанализируй мои последние 300 лайков: какие жанры и десятилетия я слушаю?»
- «Что я слушал на этой неделе?»
- «Собери приватный плейлист "Осень" из 25 треков, похожих на мои последние лайки»
- «Вот плейлист друга: <ссылка>. Что из него уже есть в моих лайках?»
- «Выгрузи все мои лайки в файл»
Быстрая установка
1. Установите uv — он скачает и запустит коннектор:
- Windows (PowerShell):
- macOS / Linux:
Закройте терминал, откройте заново и проверьте: uv --version.
2. Войдите в Яндекс (один раз):
3. Подключите к клиенту:
- Claude Code — одна команда:
- Claude Desktop — откройте Settings → Developer → Edit Config и добавьте в файл
claude_desktop_config.json:
Если что-то не получилось, ниже — пошаговая установка из исходников с подробностями.
Установка из исходников
Понадобятся uv и аккаунт Яндекса. Для части функций (например, «Моей волны») может понадобиться подписка Плюс.
1. Установите uv
Windows (PowerShell):
macOS / Linux:
Закройте терминал, откройте заново и проверьте: uv --version.
2. Скачайте проект
Или нажмите Code → Download ZIP на странице репозитория и распакуйте архив.
3. Получите токен (один раз)
Откроется страница входа Яндекса (ya.ru/device), а в терминале появится код. Войдите в аккаунт, введите код и дождитесь в терминале строки «Готово!». Токен сохранится в ~/.yandex-music-mcp/token. Скрипт использует официальный вход Яндекса и вашего пароля не видит.
4. Узнайте полный путь к папке проекта
Клиенту нужно знать, где лежит проект. Самый простой способ — в терминале, в папке проекта (после шага 3 вы уже в ней):
- Windows (PowerShell):
(Get-Location).Path→ например,C:\Users\Ivan\Documents\yandex-music-mcp - macOS / Linux:
pwd→ например,/Users/ivan/yandex-music-mcp
На Windows можно и мышкой: в Проводнике зажмите Shift, щёлкните по папке правой кнопкой и выберите «Копировать как путь».
Важно для Windows: в JSON-конфиге обратный слэш нужно удваивать:
C:\\Users\\Ivan\\Documents\\yandex-music-mcp. Можно вместо этого писать прямые слэши — Windows их понимает:C:/Users/Ivan/Documents/yandex-music-mcp.
5а. Подключите к Claude Desktop
В Claude Desktop откройте Settings → Developer → Edit Config — откроется файл claude_desktop_config.json. Добавьте в него блок mcpServers, подставив свой путь из шага 4:
- В файле уже есть другие настройки? Не удаляйте их: добавьте
"mcpServers": { ... }на верхний уровень рядом с ними, отделив запятой. - Claude не находит
uv? Укажите в"command"полный путь к нему. Его покажетwhere.exe uv(Windows) илиwhich uv(macOS/Linux) — обычно этоC:/Users/Ivan/.local/bin/uv.exeили~/.local/bin/uv.
Полностью закройте Claude Desktop (на Windows — через значок в трее → Quit, крестика окна недостаточно) и откройте снова.
5б. Или подключите к Claude Code
Вместо шага 5а — одна команда с путём из шага 4:
6. Проверьте
Напишите в новом чате: «Проверь подключение к Яндекс Музыке». Если в ответе ваш логин — всё работает.
Настройки
Безопасность и приватность
- Токен даёт полный доступ к вашему аккаунту Музыки. Не публикуйте его и не добавляйте в git —
.gitignoreуже исключает файлы токена и выгрузки. - Отозвать доступ можно на id.yandex.ru в разделе устройств и сервисов.
- Все инструменты, которые что-то меняют, помечены для MCP-клиента как изменяющие, и Claude по умолчанию спрашивает подтверждение перед их вызовом.
delete_playlistдополнительно требует точное название плейлиста.
Решение проблем
- Сервер не появился в Claude. Проверьте JSON на лишние или пропущенные запятые, путь к проекту и путь к
uv. Логи:%APPDATA%\Claude\logs\mcp-server-yandex-music.log(Windows) или~/Library/Logs/Claude/(macOS). - «Нет токена». Выполните шаг 3 ещё раз и не закрывайте терминал, пока не появится «Готово!». В сообщении об ошибке перечислены пути, где сервер искал токен.
- Не видно новых инструментов после обновления. Перезапустите Claude и откройте новый чат.
English
Unofficial MCP server for Yandex Music. It connects Claude Desktop, Claude Code and other MCP clients to your Yandex Music library: likes, listening history, My Wave and playlists.
The server runs locally on your machine (stdio). Your token is stored only on your computer and is never sent anywhere else. Works on Windows, macOS and Linux.
⚠️ Unofficial project. Not affiliated with or endorsed by Yandex. Built on the unofficial yandex-music library, so it may break temporarily if Yandex changes its API. The server does not download audio; it only works with metadata, likes and playlists in your account.
Tools
The server does not control playback: listen in the Yandex Music app as usual; new playlists and likes show up there immediately.
Example prompts: "Analyze my last 300 likes: which genres and decades do I listen to?" · "What did I listen to this week?" · "Build a private playlist 'Autumn' with 25 tracks similar to my recent likes" · "Here's my friend's playlist: . Which of these tracks are already in my likes?" · "Export all my likes to a file"
Quick install
- Install uv. Windows (PowerShell):
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"; macOS/Linux:curl -LsSf https://astral.sh/uv/install.sh | sh. Reopen the terminal and checkuv --version. - Sign in to Yandex (once):
uvx --from yandex-music-mcp yandex-music-mcp-auth - Connect a client:
- Claude Code:
claude mcp add yandex-music -- uvx yandex-music-mcp - Claude Desktop: open Settings → Developer → Edit Config and add to
claude_desktop_config.json:
- Claude Code:
Install from source
- Install uv. Windows (PowerShell):
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"; macOS/Linux:curl -LsSf https://astral.sh/uv/install.sh | sh. Reopen the terminal and checkuv --version. - Get the code:
git clone https://github.com/kenzolika/yandex-music-mcp.git, or Code → Download ZIP on the repository page. - Get a token (once):
cd yandex-music-mcp, thenuv run yandex-music-mcp-auth. A Yandex sign-in page (ya.ru/device) opens and a code appears in the terminal. Sign in, enter the code and wait for the "Готово!" ("Done!") line. The token is saved to~/.yandex-music-mcp/token. This is Yandex's official OAuth device flow; the script never sees your password. - Find the full path to the project folder. In the project folder run
(Get-Location).Path(Windows PowerShell) orpwd(macOS/Linux). On Windows you can also Shift + right-click the folder in Explorer → Copy as path. In JSON, either double the backslashes (C:\\Users\\Ivan\\yandex-music-mcp) or use forward slashes (C:/Users/Ivan/yandex-music-mcp). - Connect a client.
- Claude Desktop: Settings → Developer → Edit Config opens
claude_desktop_config.json. Add: Keep any existing settings and add"mcpServers"next to them, separated by a comma. If Claude can't finduv, put its full path in"command"(where.exe uvon Windows,which uvon macOS/Linux). Then fully quit Claude Desktop (on Windows: tray icon → Quit) and start it again. - Claude Code:
claude mcp add yandex-music -- uv --directory /absolute/path/to/yandex-music-mcp run yandex-music-mcp
- Claude Desktop: Settings → Developer → Edit Config opens
- Check: in a new chat ask "Check my Yandex Music connection". If the answer shows your login, you're all set.
Configuration
Security and privacy
- The token gives full access to your Yandex Music account. Never publish or commit it;
.gitignorealready excludes token files and exports. - You can revoke access at id.yandex.ru under devices and services.
- Every tool that changes something is marked as such for the MCP client, so Claude asks for confirmation before calling it.
delete_playlistalso requires the playlist's exact title.
Troubleshooting
- The server doesn't show up in Claude. Check the JSON for missing or extra commas, the project path and the path to
uv. Logs:%APPDATA%\Claude\logs\mcp-server-yandex-music.log(Windows) or~/Library/Logs/Claude/(macOS). - "No token" error. Run step 3 again and keep the terminal open until "Готово!" appears. The error message lists every path where the server looked for the token.
- New tools are missing after an update. Restart Claude and open a new chat.
Авторы · Authors
Сделано Kenzolika & Claudiea 🎧 — человеком и его ИИ-напарницей (Claude) за один осенний вечер. Made by Kenzolika & Claudiea, a human and his AI sidekick (Claude), in one autumn evening.
Лицензия · License
MIT, см. LICENSE. Использует библиотеку yandex-music (LGPL-3.0) как зависимость, без изменений. MIT, see LICENSE. Uses yandex-music (LGPL-3.0) as an unmodified dependency.
Source: README.md at commit f875a8d
Tools
0Version history
1- v0.2.0LatestOct 5, 2026


