
Yandex Music (unofficial)
io.github.kenzolikav0.2.0更新于 Oct 5, 2026
Unofficial Yandex Music server: search, likes, history, My Wave, playlists. Token stays local.
概览
非官方 Yandex Music 服务器,让助手搜索曲库并读取或修改你的喜欢、收听历史、My Wave 和播放列表。
- 功能
- 把 MCP 客户端连接到你的 Yandex Music 账户。读取类工具包括账户信息、跨曲目/专辑/艺人/播放列表的搜索、喜欢的曲目、按天统计的收听历史、你的播放列表及其曲目、通过链接访问公开播放列表或专辑、专辑与艺人曲目、相似曲目、My Wave 和排行榜。写入类工具可创建、填充、删减和删除播放列表,添加或取消喜欢,并把喜欢或播放列表导出为 .txt 和 .csv。它不控制播放,也不下载音频。
- 适用场景
- 适合让助手分析你的收听习惯、回答最近听了什么、根据喜欢或相似曲目生成播放列表、把别人分享的播放列表与你的曲库对比,或把喜欢导出成文件。
- 运行要求
- 通过 stdio 在 Windows、macOS 或 Linux 本地运行,使用 uvx 从 PyPI 包 yandex-music-mcp 启动(需要 uv)。需要 Yandex 账户并完成一次 OAuth 设备登录;令牌默认从 ~/.yandex-music-mcp/token 读取,也可用 YANDEX_MUSIC_TOKEN 或 YANDEX_MUSIC_TOKEN_FILE 指定的文件。YANDEX_MUSIC_EXPORT_DIR 决定导出位置。My Wave 等功能可能需要 Plus 订阅。
安装
在 SourceWeft 中
- 打开 控制台中的 Yandex Music (unofficial),将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
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.
来源:README.md,提交 f875a8d
工具
0版本历史
1- v0.2.0最新Oct 5, 2026


