网易云音乐 MCP
Provides tools for interacting with NetEase Cloud Music via the official ncm-cli, including categorized search of the catalog, browsing personal favorites and daily recommendations, reading lyrics, accessing the music cloud drive and podcast categories, checking AI songwriting credits, and managing playlists (creating, renaming, adding and removing tracks, favoriting songs). Supports multiple accounts distinguished by tool-name prefixes.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
NetEase Cloud Music MCP
自用项目 · 本仓库主要供维护者自用。
在聊天里按歌名找歌、查自己的歌单,或按选中的歌曲 ID 整理收藏。这个第三方连接器调用网易云音乐官方 CLI,使用运行 MCP 的本地账户所登录的音乐账号。
先找对歌,再整理歌单
登录并接入客户端后,试着问:
搜索《茉莉花》,只列出前五首歌的歌名、歌手和歌曲 ID,先让我选版本。
music_status 用来确认登录,music_search 支持按歌曲、专辑、歌单等分类查找。按返回的歌曲 ID 可以分清同名作品;需要收藏时再指定你选中的版本。若一台电脑上同时使用工作账号和个人账号,先看下文的多账号配置,将两个 CLI 登录分别放到各自的目录。
Related MCP server: NetEase Music Local MCP
安装运行环境
使用 Python 3.11 或更高版本。在仓库根目录执行 python -m venv .venv。Windows 用 .venv\Scripts\python.exe -m pip install -r requirements.txt 安装依赖,macOS/Linux 用 .venv/bin/python -m pip install -r requirements.txt。
连接自己的账户
安装 Node.js 与 npm,运行
npm install -g @music163/ncm-cli安装官方 CLI。按官方说明配置自己的开放平台 App ID 和私钥,再执行
ncm-cli login --background,用ncm-cli login --check验证。已有可用 CLI 配置的用户可直接复用。CLI 和 MCP 要在同一操作系统账户下运行。官方认证说明工具支持分类搜索、个人收藏、每日推荐、歌词、音乐云盘、播客分类、AI 写歌积分,以及收藏歌曲、创建或重命名歌单、增删曲目。后续操作使用搜索结果中的资源 ID。若客户端看不到全局 npm 的 PATH,可设置
NCM_CLI_JS为包声明的 bin 入口,NCM_NODE为 Node 的绝对路径。
接入 Cursor、DSH 或 Codex
在仓库目录执行对应命令。生成器使用 Python 3,按当前机器的路径输出可合并的客户端配置。
python client_config.py cursor
python client_config.py dsh
python client_config.py codex客户端 | 配置位置 |
Cursor | 项目 |
DSH | 当前 profile 的插件列表,启用一条 |
Codex |
|
可重复使用 --env NAME=VALUE 传递这些设置:NCM_CLI_JS、NCM_NODE。涉及密钥的设置只填写私有文件的路径。在客户端刷新工具后先调用 music_status。各端使用同一个服务入口,克隆到另一台机器时重新生成路径。仓库另附 Codex 插件清单、图标和技能,可用于打包本地插件。若插件被复制到客户端缓存,可通过进程环境 LDAI_MCP_PYTHON 指定已安装依赖的 Python 绝对路径。 Cursor MCP 文档 · DSH MCP 客户端
账号管理窗口
账号版从本插件详情页点「管理」→「已连接的账户」→「连接另一个账户」。已连接账号右侧菜单提供重命名、重新连接和断开连接。
使用独立 stdio 客户端时可运行 python account_manager.py 设置本机账号。站点与凭据保存在部署端;图形窗口需要 Python 的 Tk 组件。
重新连接会启动官方 CLI 登录。可查/搜歌单与播客、读我的最爱和订阅电台、按播单 ID 获取节目、红心歌曲、向自建歌单添加歌曲。获取内容需要该账号在网易云开放平台具有相应权限。
多账号和终端更新
MCP 入口为 router.py,需要 Python 3.11+。主机在本地保存账号配置,默认位置为 ~/.config/ldai-mcp/netease-music/accounts.json,也可用 LDAI_ACCOUNTS_FILE 指定。复制 两账号示例,将地址与路径换成自己的值。每个 accountHome 对应独立的 HOME、USERPROFILE、APPDATA、LOCALAPPDATA 和 XDG 目录。先用下述 profile_exec.py 在对应环境运行官方 CLI 完成配置和登录。
ldai_accounts 仅列出别名和连接状态。配置两个账号后,工具以 work__ 和 personal__ 前缀区分,所选工具始终进入该账号的独立子进程。已有单账号配置继续使用原工具名。运行 python profile_exec.py work -- <程序> <参数…> 可在同一账号环境完成登录或初始化。完成配置后重新连接 MCP。需要自有适配器时,管理员可为某个账号填写可信 stdio 程序的 command、args 和 env;连接器仅发布当前产品前缀下的业务工具。
安装本仓库后,其他终端可运行 git pull --ff-only;Python 服务在其虚拟环境执行 python -m pip install -r requirements.txt,随后重新加载客户端。需要固定版本时可检出发布标签。
维护者在 main 提交改进、运行测试,并同步更新 connector.json、两个插件清单的版本,再执行 python build_plugin.py --push。此命令将 main 与版本标签一起推送到本仓库,再从已提交文件生成 ZIP。更新既有账号插件时传 --account-name <既有包名>,把生成的 ZIP 发布到同一插件。包内 release-source.json 记录精确提交,可与各终端核对。Git 推送与账号插件发布是两个独立步骤。
使用 Codex 插件页连接、重连和管理多个工作站账号,见工作站接入。
English quick start
Search the catalog or work with your own playlists through the official NetEase Cloud Music CLI. Install Python 3.11+ and the Python requirements, set up @music163/ncm-cli, and verify the intended profile with ncm-cli login --check. Run python client_config.py cursor to print the host entry. After loading it, use music_status, then music_search with a keyword and kind set to song. Use the returned song ID when choosing among recordings.
实现参考
GitHub 数据核对日期为 2026-11-11。
参照网易官方 CLI 的认证和命令,同时借鉴社区 MCP 的搜索、歌单与推荐工具划分。
NetEase/skills · 266 stars,默认分支 7 次提交
Vael-KY/netease-music-mcp · 221 stars,默认分支 68 次提交
许可
本项目以 GNU Affero General Public License v3.0 only(AGPL-3.0-only) 发布。分发受许可覆盖的修改版或通过网络向用户提供修改版时,应按许可条款向相应用户提供对应源码。仅在本机自行使用无需公开发布。第三方服务及依赖遵循各自条款。许可全文
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Create songs from prompts or lyrics, check credits, and access your private library with OAuth.
Spotify MCP server for ChatGPT, Claude and any AI agent: search songs and artists, list playlists, read playlist songs, create playlist, add songs to playlist, remove songs from playlist, set playlist public or private and save to Liked Songs in your own Spotify account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Spotify yourself; Cotlet does not store your password and you need no Spotify API key. About the official Spotify API: Spotify has a full Web API and, since 23 Apr 2026, an official connector for Claude (checked 5 Nov 2026). The API needs an app you register, and in development mode the app owner must have Premium and the app allows 5 users; unlimited users need a registered business with at least 250,000 monthly users. Setup and FAQ: https://cotlet.dev/integrations/spotify-api-mcp-server
Connect AI to your flomo notes. Search, create, edit notes and manage tags via MCP.
Search, analyze, and discover commercially released music using sonic intelligence.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI agents to control NetEase Cloud Music playback, login, search, and get personalized recommendations through official APIs.1255MIT
- AlicenseNot gradedqualityBmaintenanceEnables local QR-code login to NetEase Cloud Music and read-only access to complete liked-song pagination, playlists, search, song details, daily recommendations, and listening history with whole-library recommendation de-duplication.MIT
- AlicenseNot gradedqualityCmaintenanceEnables ChatGPT and Codex to read and curate a NetEase Cloud Music account's recommendations, playlists, listening history, and podcasts, and to perform safely bounded, audited account writes, with optional macOS playback and iPhone Listen Together controls.MIT
- AlicenseBqualityBmaintenanceEnables Claude to search NetEase Cloud Music and browse songs, albums, artists, playlists, lyrics, comments, and charts. After QR-code login it also exposes daily recommendations, liked songs, listening history, and playlist editing or song liking through 21 tools.24MIT