Skip to main content
Glama
netease-music-mcp

netease-music-mcp

by a2tem1sia

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoOptional port for HTTP mode.
HTTPS_PROXYNoOptional HTTPS proxy URL used by Node.js when NODE_USE_ENV_PROXY=1.
MCP_AUTH_TOKENNoOptional auth token for HTTP mode. If unset, a random token is generated and printed in the logs for the current run.
NETEASE_COOKIENoOptional NetEase Cloud Music cookie, usually the MUSIC_U value or a full cookie string, used as an alternative to QR-code login.
NODE_USE_ENV_PROXYNoSet to 1 to make Node.js use environment proxy settings such as HTTPS_PROXY when connecting to NetEase servers.
NETEASE_COOKIE_FILENoOptional path to the file where login state is saved. Defaults to ~/.netease-music-mcp/cookie.json.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

网易云音乐 (music.163.com) 连接器。

  • 歌曲、歌单、专辑、歌手都用数字 ID 标识。先用 search 找到 ID,再用 get_* 工具查看详情。

  • 排行榜(飙升榜、热歌榜等)本质上是歌单:get_toplists 拿到榜单 ID 后用 get_playlist 查看曲目。

  • 带 "我的"/需要登录的功能(每日推荐、我喜欢的音乐、我的歌单、听歌排行、收藏/建歌单)需要先登录: 调用 login_qr_start 获得二维码,请用户用网易云音乐 App 扫码并确认,然后调用 login_qr_check。

  • 返回结果里的 link 是网页链接,可以直接给用户点开播放。

  • 修改类操作(like_song、create_playlist、update_playlist_tracks)会改动用户的真实账号,执行前先向用户确认。

  • get_recent_plays 返回最近播放记录(所有设备,通常有几分钟延迟),可以回答“我刚才在听什么”。

  • 本连接器运行在用户自己的电脑上,可以控制电脑上的网易云客户端:play_in_app 让客户端播放指定的歌曲 / 歌单 / 专辑 / 歌手, playback_control 发送系统媒体键(播放/暂停、上一首、下一首、音量)。媒体键作用于系统当前“正在播放”的应用。

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
searchC

在网易云音乐中搜索歌曲、专辑、歌手、歌单、用户、歌词或播客(电台)。

get_song_detailA

根据歌曲 ID 批量获取歌曲信息(歌名、歌手、专辑、时长、是否 VIP)。

get_lyricsA

获取歌曲歌词,包括原文、中文翻译和罗马音(如果有)。

get_playlistB

获取歌单信息和其中的歌曲(支持分页)。排行榜也可以用这个工具查看。

get_albumB

获取专辑信息和曲目列表。

get_artistC

获取歌手简介和热门歌曲,可选附带专辑列表。

get_toplistsA

获取网易云所有官方排行榜(飙升榜、新歌榜、热歌榜、原创榜等)。用 get_playlist 查看某个榜单的歌曲。

get_commentsA

获取歌曲 / 歌单 / 专辑 / MV 的评论。第一页会附带热门评论。

get_similar_songsB

根据一首歌获取网易云推荐的相似歌曲。

login_qr_startA

生成网易云音乐登录二维码。把二维码展示给用户(返回的图片,或把 qr_text 原样放进代码块),请用户用网易云音乐 App 扫码并在手机上确认,然后调用 login_qr_check。

login_qr_checkA

检查二维码登录状态。可设置 wait_seconds 在服务器端等待用户扫码(每 2 秒轮询一次),登录成功后自动保存登录状态。

get_login_statusA

查看当前是否已登录网易云音乐,以及登录账号的基本信息。

logoutA

清除本连接器保存的网易云登录状态。

get_user_playlistsA

获取用户创建和收藏的歌单(默认当前登录用户;他人的公开歌单也可以查)。

get_liked_songsA

获取用户“喜欢”的歌曲(默认当前登录用户),和 App 里“我喜欢的音乐”歌单顺序一致:最近喜欢的在前,附带喜欢的日期。

get_daily_recommendationsA

获取当前登录用户的每日推荐歌曲(需要登录)。

get_recommended_playlistsA

获取为当前登录用户推荐的歌单(需要登录)。

get_listening_historyB

获取用户的听歌排行(最近一周或所有时间)。他人的听歌排行可能因隐私设置不可见。

get_recent_playsA

获取当前登录用户最近播放的歌曲(来自所有设备,按时间倒序,通常有几分钟延迟),可以回答“我刚才在听什么”。需要登录。

play_in_appA

让这台电脑上的网易云音乐客户端播放指定的歌曲、歌单、专辑、歌手热门歌曲或电台(客户端没打开时会先启动)。ID 可以从 search、get_* 等工具获得。

playback_controlA

控制这台电脑上的播放:播放/暂停、上一首、下一首、调节系统音量、静音。通过系统媒体键实现,作用于系统当前“正在播放”的应用(正在用网易云听歌时就是网易云)。macOS 第一次使用需要在“系统设置 → 隐私与安全性 → 辅助功能”里允许 Claude。

like_songA

把歌曲加入(或移出)当前用户的“我喜欢的音乐”。会修改用户账号,调用前请确认。

create_playlistA

在当前用户账号下新建一个歌单,返回歌单 ID。之后可用 update_playlist_tracks 添加歌曲。会修改用户账号,调用前请确认。

update_playlist_tracksA

向当前用户自己创建的歌单添加或移除歌曲。会修改用户账号,调用前请确认。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 24 tools

Disambiguation4/5

Most tools target clearly distinct resources and actions (get_artist vs get_album vs get_playlist, play_in_app vs playback_control). The main potential confusion is among the personal-listening tools (get_listening_history vs get_recent_plays vs get_liked_songs), but the descriptions explicitly differentiate them. Boundaries are generally clear.

Naming Consistency4/5

The dominant pattern is snake_case verb_noun (get_artist, get_lyrics, create_playlist, update_playlist_tracks, like_song), which is predictable. Minor deviations exist: login_qr_start/login_qr_check use noun_action ordering, and a few bare names (search, logout, playback_control) drop the object. Still largely readable and consistent.

Tool Count3/5

24 tools is on the heavy side (16-25 band) for a music client. Each tool does cover a distinct function, so none are clearly redundant, but the surface is large enough that it feels crowded relative to the domain. Borderline rather than ideal.

Completeness4/5

Coverage is broad: search, detail/lyrics, artist/album/playlist, comments, similar songs, toplists, recommendations, full auth lifecycle, user library (liked, playlists, history, recent), and playback control. Minor gaps remain (e.g., no delete_playlist, no comment posting, no explicit MV/podcast playback), but core workflows are complete.

Maintenance

ActivityNo data
ResponsivenessNo recent community issues