NetEase Music Local MCP
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 Music Local MCP
在本机的 MCP 客户端查询网易云音乐、读取自己的喜欢与歌单、为推荐去重。启用写入后可管理自己的音乐库,也可以独立在 Windows 上追踪已关注制作人的新作。
默认以本地 stdio 运行,音乐库写入需显式启用。 扫码页面只在本机开放,登录状态保存在本机 SQLite。
快速开始
需要 Python 3.13。Windows PowerShell 示例:
git clone https://github.com/S4kuzy0/netease-music-local.git
Set-Location netease-music-local
py -V:3.13 -m venv .venv
.\.venv\Scripts\python.exe -m pip install -r requirements-local.lock.txtWindows 锁文件包含平台专用依赖。其他平台使用 Python 3.13 环境和 requirements-local.txt。
在 MCP 客户端添加一个 stdio 服务,命令是虚拟环境 Python 的绝对路径,参数依次是 -B、-u 和 local_mcp.py 的绝对路径。Codex CLI 可在仓库目录运行:
$python = (Resolve-Path '.\.venv\Scripts\python.exe').Path
$server = (Resolve-Path '.\local_mcp.py').Path
codex mcp add netease-music-local -- $python -B -u $server需要自定义状态目录时,给 MCP 进程设置 NETEASE_MCP_DATA_DIR。客户端连接细节与超时配置见 Codex 配置和本地运行手册。
Related MCP server: netease-music-mcp
登录后可以做什么
调用
get_netease_login_status查看状态。如果尚未登录,调用start_netease_qr_login,在同一台电脑打开返回的链接,再用自己的网易云音乐 App 扫码。官方安全验证由账号本人完成。调用
get_liked_songs,先取limit=100、offset=0。每页最多 500 个位置,翻页时核对snapshot_id与结果计数。缺失歌曲保留在原位置并标记found=false。返回顺序来自上游歌单。要为推荐去重,调用
check_liked_song_ids,它对照整个喜欢列表。日常浏览可使用list_my_playlists、get_playlist_songs、歌曲搜索、日推或播放记录。
可选:音乐库写入与新作监测
功能 | 使用方式 |
管理音乐库 | 给 MCP 启动参数加 |
跟踪关注制作人的新作 | 使用 |
数据、依赖与验证
每位使用者运行自己的实例、登录自己的账号。默认状态目录的
session.sqlite3保存登录态,和真实.env、审计日志及库导出一起留在本机。扫码链接十分钟失效。服务进程重启后,未完成的扫码需重新开始。音乐数据来自非官方网易云 Web 接口。接口行为和可访问内容受平台及账号权限影响。本工具处理元数据与音乐库操作,音频播放与下载由网易云客户端处理。
开发时运行
.\.venv\Scripts\python.exe -m unittest discover -s tests -q。测试使用合成数据,真实账号连通性需要单独确认。另见本地开发与安全说明。
来源与许可
基于 Rainlxyl/netease-music-mcp-safe,其上游为 Vael-KY/netease-music-mcp。本仓库保留上游原说明与 MIT 许可证。这是独立社区项目。音乐、账号与第三方平台内容仍适用各自的权利和条款。
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
Unofficial, read-only access to your Last.fm listening history, charts, and music lookups.
Full Spotify Web API coverage - albums, artists, playlists, player controls, and more.
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
Read-only sheet music discovery and practice tools, with browser-local recognition guidance.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI agents to control NetEase Cloud Music playback, login, search, and get personalized recommendations through official APIs.1251MIT
- AlicenseAqualityCmaintenanceEnables MCP clients to search songs, retrieve details and lyrics, and manage personal playlists on NetEase Cloud Music, with optional local player control on macOS, all through a privacy-first, self-hosted service.17MIT
- 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
- AlicenseBqualityCmaintenanceEnables users to search songs, play liked music or playlists, control playback and volume, and query playback status and timestamped lyrics using their own account and membership permissions.25MIT