Skip to main content
Glama
luuu-h

netease-music-mcp

by luuu-h

netease-music-mcp

一个用于控制本机音乐播放的 MCP Server。它通过 neteasecli 和本地 mpv 播放音乐,并提供一个本地歌词播放器 Web UI。

免责声明 / Disclaimer

本项目不是网易云音乐官方 MCP,也不隶属于、关联于或受网易云音乐官方认可。本项目仅用于个人学习、研究和本机自动化体验。使用时请合理遵守网易云音乐及相关服务的服务条款、版权规则和账号使用规范。

This project is not an official NetEase Cloud Music MCP and is not affiliated with, associated with, or endorsed by NetEase Cloud Music. It is intended for personal learning, research, and local automation experiments. Please use it responsibly and comply with the applicable NetEase Cloud Music terms of service, copyright rules, and account usage policies.

你可以让 Claude Desktop 这类 MCP 客户端帮你:

  • 搜索并播放网易云音乐歌曲

  • 暂停、继续、停止、切歌

  • 打开本地 Web 播放器:http://127.0.0.1:8765/

  • 显示歌词、歌单、喜欢的音乐和黑胶播放页

  • 在 AI 回复前读取当前歌曲、曲风、歌手和当前歌词上下文

  • 结束听歌时一键停止 mpv 并关闭本次 Web 播放器

Related MCP server: mcp_music_server

环境要求

本项目目前主要面向 Windows 使用。

依赖

要求

说明

Windows

推荐 Windows 10/11

当前主要在 Windows 上开发和测试

Node.js

24 或更新版本

neteasecli 当前版本自身要求 Node.js 24+

npm

随 Node.js 安装

用于安装本项目依赖和全局 CLI

网易云音乐账号

可正常登录

neteasecli 会从浏览器导入 Cookie

neteasecli

全局安装

用于访问网易云音乐账号、搜索、歌单和歌曲信息

mpv

系统可执行文件

推荐加入系统 PATH,确保能运行 mpv --version

需要上游项目:wangwalk/neteasecli。代码默认从 %APPDATA%\npm\node_modules 查找全局安装的 neteasecli。

mpv 是前置依赖,需要提前安装,并确保在 PowerShell 里可以直接运行 mpv --version。

neteasecli 和 mpv 都属于系统/全局依赖,不会被 npm install 自动安装。 neteasecli 当前版本自身要求 Node.js 24 或更新版本,因此推荐直接使用 Node.js 24+ 跑整个项目。 如果你使用的是 Windows 便携版 mpv.exe,也可以临时放在项目根目录。

安装

克隆项目:

git clone https://github.com/luuu-h/netease-music-mcp.git
cd netease-music-mcp

安装项目依赖:

npm install

全局安装音乐 CLI:

npm install -g neteasecli

先在浏览器里登录网易云音乐网页版。neteasecli 的登录方式是从浏览器导入 Cookie,不会在 MCP 里保存你的账号密码。

https://music.163.com/

然后在 PowerShell 里导入登录状态:

neteasecli auth login

如果你有多个 Chrome/Edge 浏览器 Profile,可以指定 Profile:

neteasecli auth login --profile "Profile 1"

确认登录状态:

neteasecli --pretty auth check

安装 mpv。任选一种你常用的方式即可:

# Chocolatey
choco install mpv -y

# Scoop
scoop install mpv

如果 PowerShell 提示找不到 neteasecli 命令,请确认 npm 全局命令目录已经加入 PATH。Windows 上通常是 %APPDATA%\npm。

检查安装

语法检查:

npm run check

Smoke test:

npm run smoke

smoke 会检查:

  • 系统 PATH 或项目根目录里是否能找到 mpv

  • 是否全局安装了 neteasecli

也可以在 MCP 客户端里让模型调用:

netease-music-mcp.check_environment

配置 Claude Desktop

Claude Desktop 通过 claude_desktop_config.json 注册本地 MCP Server。配置完成后,Claude 才能看到 netease-music-mcp 这些工具。

1. 确认项目绝对路径

在项目目录里运行:

pwd

假设输出是:

C:\Users\you\projects\netease-music-mcp

那么 MCP Server 文件路径就是:

C:\Users\you\projects\netease-music-mcp\src\server.js

2. 打开 Claude Desktop 配置文件

在 Windows 上打开 Claude Desktop 配置文件:

notepad "$env:APPDATA\Claude\claude_desktop_config.json"

如果提示找不到路径,先创建目录:

New-Item -ItemType Directory -Force "$env:APPDATA\Claude"
notepad "$env:APPDATA\Claude\claude_desktop_config.json"

3. 写入 MCP 配置

如果文件是空的,直接填入下面内容。注意把路径换成你自己的项目路径,并使用双反斜杠:

{
  "mcpServers": {
    "netease-music-mcp": {
      "command": "node",
      "args": [
        "C:\\path\\to\\netease-music-mcp\\src\\server.js"
      ]
    }
  }
}

如果文件里已经有其他 MCP Server,就只把 "netease-music-mcp" 这一项加进已有的 "mcpServers" 里:

{
  "mcpServers": {
    "existing-server": {
      "command": "..."
    },
    "netease-music-mcp": {
      "command": "node",
      "args": [
        "C:\\path\\to\\netease-music-mcp\\src\\server.js"
      ]
    }
  }
}

4. 重启并验证

保存配置后,完全退出并重新打开 Claude Desktop。

然后在 Claude 里发送:

请调用 netease-music-mcp.check_environment 检查我的本机音乐环境

如果返回里 neteaseCliInstalled、mpvAvailable 和登录状态都正常,就可以开始点歌。

如果还没登录网易云,可以发送:

请调用 netease-music-mcp.setup_netease_login 带我完成网易云登录

5. 常见配置错误

  • JSON 里 Windows 路径要写双反斜杠,例如 C:\\path\\to\\file.js

  • args 必须指向 src\\server.js,不是项目文件夹

  • 修改配置后必须重启 Claude Desktop

  • 如果 Claude 看不到工具,先确认 node 可以在 PowerShell 里直接运行:

node -v

单独启动 Web 播放器

如果你想不通过 Claude,直接预览 Web UI:

node .\src\server.js --web-player --port 8765

然后在浏览器打开:

http://127.0.0.1:8765/

Web 播放器包含:

  • 收藏歌单

  • 创建歌单

  • 我喜欢的音乐

  • 歌曲搜索

  • 歌单详情页

  • 底部播放器

  • 播放队列

  • 黑胶歌词播放页

  • CLI 支持时显示双语歌词

MCP 工具列表

工具名

作用

check_environment

检查 neteasecli、mpv 和登录状态

setup_netease_login

引导用户安装/登录 neteasecli,并返回下一步命令

search_song

搜索网易云歌曲

play_song

按关键词搜索并播放最匹配的歌曲

play_track

按网易云歌曲 ID 播放

next_song

搜索并切换到另一首歌

pause

暂停播放

resume

继续播放

stop

停止播放并清理当前听歌状态

shutdown

结束本次听歌会话:停止播放、停止 mpv、清理状态,并关闭本次 Web 播放器,但保留 MCP 工具进程

get_status

获取播放器状态和缓存的歌曲信息

get_listening_context

获取当前歌曲、曲风、歌手和歌词上下文

open_web_player

启动本地 Web 播放器并返回 localhost URL

推荐 Claude 指令

建议把下面这段放进 Claude 的项目指令或自定义指令里:

你可以使用 netease-music-mcp MCP 控制本机音乐。

当用户要配置、登录、安装、修复或检查 neteasecli 时,调用 netease-music-mcp.setup_netease_login,并按工具返回的 steps 带用户完成登录。用户执行完命令后,再调用一次 netease-music-mcp.setup_netease_login 或 netease-music-mcp.check_environment 验证。

当用户第一次要求播放音乐、点歌、听歌、打开播放器、查看歌词播放器,或当前对话还没有打开过播放器界面时,你必须先调用 netease-music-mcp.open_web_player,并把返回的 localhost URL 告诉用户。

当用户要求播放音乐时,调用 netease-music-mcp.play_song 或 netease-music-mcp.play_track。
当用户要求切歌时,调用 netease-music-mcp.next_song。
当用户要求暂停、继续、停止时,调用 netease-music-mcp.pause、netease-music-mcp.resume、netease-music-mcp.stop。

音乐播放期间,每次回复用户前,都必须先调用 netease-music-mcp.get_listening_context。
把返回的 ai_context 当作当前对话上下文使用。

点歌或切歌成功后,也要使用工具返回的 ai_context。
playback.style 字段已经优先来自网易云歌曲百科,可直接作为曲风/风格使用。

如果 netease-music-mcp.open_web_player 已经返回过 URL,不要重复打开,除非用户明确要求重新打开播放器。
如果用户问播放器在哪里,直接给出上次的 URL;如果不知道 URL,再调用 netease-music-mcp.open_web_player。

当用户说“结束听歌”、“不听了”、“关闭播放器”、“停止整个程序”,或任何表示要结束音乐/听歌会话的请求时,调用 netease-music-mcp.shutdown。这个工具只结束本次听歌和 Web 播放器,不会关闭 MCP 工具进程,因此之后仍然可以继续调用 netease-music-mcp。

使用示例

在 Claude Desktop 里可以这样说:

一起听歌吧,听歌过程中每次回复我之前请先看 listening_context
打开音乐播放器
播放 布拉格广场 蔡依林
切到 编号89757 林俊杰
暂停
继续
结束听歌

听歌上下文是怎么工作的

每次开始播放歌曲后,服务会把当前歌曲信息缓存到 .listening-state.json:

  • 歌曲 ID

  • 歌名

  • 歌手

  • 专辑

  • 封面 URL

  • 歌曲时长

  • 曲风,优先来自网易云歌曲百科

  • 带时间戳的歌词

  • CLI 提供时的翻译歌词

get_listening_context 会返回类似下面的 ai_context,其中歌词是当前播放时间之后的 6 句:

我们正在一起听歌,你现在跟我一起听xxx,曲风是xxx,歌手是xxx,当前的6句歌词是xxx

注意:MCP Server 本身不能 100% 强制 Claude 在每次回复前调用某个工具。上面的推荐指令会强约束 Claude 主动调用 get_listening_context。如果你需要硬性保证,需要自己做一个代理层或自定义客户端,在每次发给模型前自动注入听歌上下文。

常见问题

Claude 看不到工具

修改 claude_desktop_config.json 后需要重启 Claude Desktop。

同时确认配置里的 src/server.js 是正确的绝对路径。

PowerShell 找不到 neteasecli

先确认安装:

npm install -g neteasecli

然后确认 npm 全局命令目录在 PATH 里。Windows 通常需要包含:

%APPDATA%\npm

如果命令暂时不可用,也可以直接用 Node 运行全局安装的 CLI:

node "$env:APPDATA\npm\node_modules\neteasecli\dist\index.js" auth login
node "$env:APPDATA\npm\node_modules\neteasecli\dist\index.js" --pretty auth check

如何登录网易云

neteasecli 不走短信验证码登录,而是从浏览器导入网易云音乐 Cookie:

  1. 先在 Chrome 或 Edge 里打开 https://music.163.com/ 并登录网易云账号。

  2. 回到 PowerShell 运行:

neteasecli auth login
  1. 检查登录状态:

neteasecli --pretty auth check

你也可以直接让 Claude 调用:

netease-music-mcp.setup_netease_login

它会检查当前缺哪一步,并返回下一步应该运行的命令。

neteasecli 找不到登录 Cookies

如果 neteasecli auth login 一直找不到浏览器里的登录 Cookies,可以手动写入 neteasecli 的 session 文件。这通常比继续处理浏览器锁文件更直接。

默认 profile 的 session 文件路径是:

C:\Users\<你的用户名>\.config\neteasecli\profiles\default\session.json

文件内容最少只需要 MUSIC_U:

{"MUSIC_U":"这里填你从浏览器里拿到的值"}

获取 MUSIC_U 的方法:

  1. 在 Edge、Chrome 或其他浏览器里打开 https://music.163.com/ 并登录。

  2. 按 F12 打开开发者工具。

  3. 进入 Application / 应用程序。

  4. 在左侧找到 Cookies -> https://music.163.com。

  5. 找到名为 MUSIC_U 的 Cookie,复制它的 Value。

然后在 PowerShell 里执行:

New-Item -ItemType Directory -Force "$HOME\.config\neteasecli\profiles\default"
Set-Content -Encoding UTF8 "$HOME\.config\neteasecli\profiles\default\session.json" '{"MUSIC_U":"把这里替换成你的MUSIC_U"}'
neteasecli --pretty auth check

Smoke test 提示找不到 mpv

先确认 PowerShell 里能直接运行:

mpv --version

如果不能,请先安装 mpv,或者把 mpv.exe 所在目录加入系统 PATH。如果你只是本机开发,也可以把便携版 mpv.exe 放在项目根目录;项目里的 .gitignore 已经忽略了本机 mpv 二进制和 DLL,避免误上传到 GitHub。

关闭网页后音乐还在播放

网页只是播放器界面,真正播放音频的是后台 mpv。

只停止播放:

netease-music-mcp.stop

结束整个听歌会话并关闭本次 Web 播放器:

netease-music-mcp.shutdown

手动停止后台 mpv

如果你想手动停掉后台播放进程,可以在 Windows PowerShell 里运行:

Get-Process mpv,mpv.com -ErrorAction SilentlyContinue | Stop-Process -Force

开发

先进入项目目录:

cd netease-music-mcp

运行检查:

npm run check
npm run smoke

启动 Web UI:

node .\src\server.js --web-player --port 8765

启动 MCP Server:

npm start

Available Tools

13 tools
check_environmentCheck local music environmentB

Check neteasecli, mpv, and login status.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

B3.2/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations exist, so the description bears full burden. It only says 'check', but does not disclose if this involves network calls, permissions, or side effects. Behavioral traits are insufficiently described.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single concise sentence that front-loads the purpose. No unnecessary words; each word earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given zero parameters, no output schema, and no annotations, the description is minimal. It lists what is checked but does not mention the format or meaning of the result, which could be important for an AI agent. Slightly lacking completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has zero parameters, and the schema is fully covered. The description adds meaning by naming the specific components to check (neteasecli, mpv, login status), which is valuable. Baseline is 4 for zero parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool checks neteasecli, mpv, and login status, specifying the verb and resources. However, it could be more precise about what 'check' entails (e.g., verify installation or running status). It distinguishes from sibling 'get_status' by focusing on environment components.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives like get_status. The description lacks context for when this check is appropriate or what prerequisites exist.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_listening_contextGet current listening contextA

Return the context that the AI should include on the next user message while music is playing. The lyric context is the next 6 lyric lines at or after the current playback time.

ParametersJSON Schema
NameRequiredDescriptionDefault
beforeNoDeprecated. Kept for compatibility; lyric context now uses upcoming lines only.
afterNoNumber of upcoming lyric lines to include by default.

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the burden. It reveals the lyric context behavior (next 6 lines at current time) but does not discuss potential errors, side effects, or required permissions, leaving some gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise, using two sentences that front-load the purpose and provide necessary detail without any fluff. Every word earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema and no annotations, the description adequately explains what the tool returns and the default number of lines. It does not cover error states (e.g., when nothing is playing) but is reasonably complete for its simplicity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%. The description adds value by noting the 'before' parameter is deprecated and kept for compatibility, and clarifies the default behavior of 'after'. This goes beyond the schema's basic description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool returns the listening context (lyric lines) for AI inclusion while music is playing. This is a specific verb+resource combination that distinguishes it from sibling tools like check_environment or play_song.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies the tool should be used to get context for the next user message while music is playing, but does not explicitly state when to use it versus alternatives, nor does it provide exclusions or conditions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_statusGet playback statusB

Get current neteasecli/mpv playback status plus cached song metadata.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

B3.3/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description must fully disclose behavior. It states it's a read operation but fails to mention side effects, prerequisites, or what 'cached' implies. Minimal transparency given no annotation support.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single sentence, no filler, directly states purpose. Highly efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema, but description explains return content (playback status and metadata). However, lacks detail on format or additional context that might be needed, making it adequate but not complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Input schema has 100% coverage (no parameters), and the description doesn't add parameter details. Baseline 3 is appropriate since schema already covers everything.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses specific verbs ('get') and resources ('playback status plus cached song metadata'), clearly distinguishing it from sibling tools like play_song, pause, and get_listening_context.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool versus alternatives like get_listening_context. Given the set of sibling tools, explicit usage context would help an agent decide between similar read-only tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

next_songCut to another songB

Switch to another requested song by searching and playing it. Use this for natural-language '切歌'.

ParametersJSON Schema
NameRequiredDescriptionDefault
keywordYesThe next song request.
qualityNoexhigh
styleNoOptional fallback style/genre hint. NetEase song wiki style is used first when available.

TDQS

B3.1/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must convey behavioral traits. It mentions searching and playing but omits important details such as whether the current song is stopped, what happens to playback history, or any side effects like modifying a playlist.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences and gets straight to the point without extraneous details. It is efficient but could be slightly more structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the lack of annotations and output schema, the description is too brief. It does not cover error handling, the effect on current playback, or how the natural-language request is parsed, leaving significant gaps for an agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 67% description coverage (keyword and style have descriptions; quality does not). The description adds no additional parameter information beyond the schema, so it meets the baseline for this coverage level.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('switch to another song by searching and playing') and identifies the use case ('natural-language '切歌''). However, it does not explicitly differentiate from sibling tools like 'play_song' or 'search_song', which could cause ambiguity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies when to use (natural-language skip requests) but gives no guidance on when not to use it, nor does it mention alternatives like 'play_song' for exact song selection or 'search_song' for browsing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

open_web_playerOpen local web playerB

Generate and serve a local web player UI for search/play/pause/stop and lyric context. Returns a localhost URL.

ParametersJSON Schema
NameRequiredDescriptionDefault
portNo

TDQS

B3.1/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must fully disclose behavior. It mentions generating and serving a web player UI and returning a URL, but does not detail side effects such as server lifecycle, resource usage, whether it blocks, or how to stop it. This is insufficient for a tool that starts a local server.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence that efficiently conveys the core purpose and return value. Every word serves a purpose, with no redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite the tool's relative simplicity (one optional parameter, no output schema), the description omits important behavioral context such as prerequisites (e.g., must be logged in?), server persistence, and how to terminate the web server. The agent may not understand the tool's operational implications.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, and the description does not mention the 'port' parameter at all. The schema provides constraints and a default, but the description adds no context about the parameter's purpose (e.g., that it specifies the port for the local server). This leaves the agent uninformed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool generates and serves a local web player UI for controlling playback (search/play/pause/stop/lyrics) and returns a localhost URL. This distinguishes it from sibling tools that perform individual actions.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies the tool is for obtaining a UI for music control, but it does not explicitly state when to use it vs. using individual playback commands or when not to use it. Context can be inferred from sibling tool names, but explicit guidance is lacking.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

pausePause playbackA

Pause current neteasecli/mpv playback.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A3.6/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must carry the full burden. It only states that pausing occurs, but fails to disclose what happens if nothing is playing, whether the state is persistent, or any side effects. The behavioral transparency is minimal.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, concise sentence with no unnecessary words. It earns its place by conveying the essential purpose efficiently.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (no parameters, no output schema), the description adequately conveys the core functionality. However, it could mention that pausing only applies to the specified players and whether it can be undone. Still, for a straightforward action, it is nearly complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has zero parameters, so the description does not need to explain parameter meanings. The baseline score of 4 applies because there is no parameter information to provide.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The title and description clearly state the action (pause) and the resource (current neteasecli/mpv playback). It is a specific verb+resource pair and distinguishes itself from siblings like 'stop' or 'resume'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like 'stop', nor does it mention any prerequisites or context. The agent receives no hints about appropriate usage.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

play_songSearch and play songA

Search for a song, play the best match with neteasecli/mpv, and return song info plus listening context. The style field is filled from NetEase song wiki when available.

ParametersJSON Schema
NameRequiredDescriptionDefault
keywordYesSong request, for example '编号89757 林俊杰'.
qualityNoexhigh
styleNoOptional fallback style/genre hint. NetEase song wiki style is used first when available.
resultIndexNoZero-based search result index to play, accepts a number or numeric string.

TDQS

A3.7/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are present, so the description must fully disclose behavioral traits. It mentions playing and returning context, but omits side effects (e.g., replacing current playback, queue behavior), error handling, and dependency on external players. This leaves significant gaps for an action that mutates playback state.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences: the first concisely captures purpose and output, the second adds a specific detail about the style parameter. No redundancy, every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema and no annotations, the description covers key actions but lacks details on return format, error handling, prerequisites, and integration with sibling tools like 'pause', 'resume'. Some context is indirectly provided by sibling names, but the description could be more self-contained.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 75%, and the description adds value by explaining the 'style' field behavior ('filled from NetEase song wiki when available'), which is not in the schema. Other parameters are adequately described in the schema, so the description provides marginal but useful improvement.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool searches for a song, plays the best match using neteasecli/mpv, and returns song info plus listening context. It distinguishes from sibling 'search_song' (search only) and 'play_track' (play specific track) by combining both actions.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies the tool is for searching and playing a song in one step, but it does not explicitly state when to use this over alternatives like 'search_song' or 'play_track', nor does it mention prerequisites or when not to use it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

play_trackPlay track by IDC

Play a NetEase numeric song ID with neteasecli/mpv and return song info plus the start listening context. The style field is filled from NetEase song wiki when available.

ParametersJSON Schema
NameRequiredDescriptionDefault
idYesNetEase numeric track ID.
qualityNoexhigh
styleNoOptional fallback style/genre hint. NetEase song wiki style is used first when available.

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description must fully convey behavioral traits. It mentions using mpv and returning context, but omits critical details such as whether an active login is required, side effects on current playback state, error handling, and idempotency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise (two sentences, ~30 words) and front-loads the primary purpose. Every sentence contributes necessary information without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the lack of output schema and sibling differentiation, the description is insufficient. It fails to specify return format, error behavior, or usage boundaries, leaving the agent with gaps in understanding how to use the tool effectively.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema covers 2 of 3 parameters with descriptions. The description adds context for the 'style' parameter (fallback when wiki unavailable), but no additional meaning for 'id' or 'quality'. This is a modest improvement over the schema alone.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action (play), resource (NetEase numeric song ID), technology (neteasecli/mpv), and return values (song info plus listening context). However, it does not differentiate from the sibling tool 'play_song', which likely serves a similar purpose.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives like 'play_song', 'search_song', or when prerequisites (e.g., login via 'setup_netease_login') are needed. The agent is left to infer usage context without explicit direction.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

resumeResume playbackA

Resume paused neteasecli/mpv playback.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A3.7/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so the description bears full burden. It only states the action without explaining behavior in edge cases (e.g., already playing, errors, prerequisites). For a 0-param tool, more context is needed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single 5-word sentence, perfectly front-loaded with no wasted words. It conveys the essential meaning efficiently.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 0 parameters and no output schema, the description is minimally adequate. However, it lacks details on behavior when already playing, error conditions, or state requirements, which would improve completeness for a simple tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There are 0 parameters, and schema coverage is trivially 100%. Per calibration, baseline is 4, and the description adds the purpose of the tool without repeating any schema details.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description explicitly states it resumes paused playback, with verb 'Resume' and resource 'paused neteasecli/mpv playback'. This clearly differentiates from siblings like pause, play_song, and next_song.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied (after pausing), but no explicit guidance on when to use versus alternatives. For example, if playback is already playing, the behavior is unclear, and no contrast with play_song for starting new playback is given.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

search_songSearch NetEase songsA

Search songs using neteasecli and return normalized NetEase track IDs.

ParametersJSON Schema
NameRequiredDescriptionDefault
keywordYesSong, artist, or natural-language search keywords.
limitNoResult count, accepts a number or numeric string.

TDQS

A3.6/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It only states the action and output, with no disclosure of side effects, authentication requirements, or rate limits. This is minimal behavioral information.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single sentence that is direct and to the point. No redundant or extraneous information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple search tool with two fully-described parameters and no output schema, the description is largely sufficient. It clearly states the return type (track IDs), though it could hint at subsequent usage (e.g., with play_song). Minor gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, with both parameters having descriptions. The description adds no extra meaning beyond what is in the schema; it does not elaborate on keyword types or limit behavior. Baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('Search'), resource ('songs'), and specifies the backend tool ('neteasecli') and output ('normalized NetEase track IDs'). This differentiates it from sibling tools like 'play_song' or 'get_status'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit guidance on when or when not to use this tool. The usage is implied by the purpose (searching for songs), but alternatives or prerequisites are not mentioned.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

setup_netease_loginGuide NetEase CLI loginA

Use this when the user needs to set up, log in, or troubleshoot neteasecli. It checks installation/login state and returns step-by-step commands Claude can guide the user through.

ParametersJSON Schema
NameRequiredDescriptionDefault
profileNoOptional Chrome/Edge browser profile name for neteasecli auth login --profile.

TDQS

A3.8/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must fully disclose behavior. It states that the tool checks installation/login state and returns step-by-step commands, but it does not mention any side effects, required permissions, or potential modifications. This is insufficient for a setup tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is only two sentences (27 words), front-loaded with the purpose, and every sentence adds value. No unnecessary information is present.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has one parameter and no output schema. The description explains the output type ('step-by-step commands') and the overall workflow. It is complete for the tool's complexity, though the output format could be slightly more specific.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema already provides full documentation for the single optional parameter ('profile') with 100% coverage. The description does not add additional meaning beyond the schema, so baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: to set up, log in, or troubleshoot neteasecli. It distinguishes itself from sibling tools (all music playback or environment checks) by focusing specifically on NetEase CLI authentication.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly says when to use the tool ('when the user needs to set up, log in, or troubleshoot neteasecli'). It does not mention when not to use it, but sibling tools are unrelated, so no exclusions are necessary. It provides clear context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

shutdownEnd listening sessionA

Use this when the user asks to end the listening session, stop listening to music, close the player, or stop the music program. It stops mpv playback, clears listening state, and closes the current web player server, while keeping the MCP tool process alive for future calls.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, but the description fully discloses behavior: stops mpv playback, clears listening state, closes web player server, while keeping MCP process alive. This covers safety and side effects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two concise sentences: first defines usage, second describes behavior. No wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema, but the tool's action is simple (stop). Description is complete for an agent to invoke correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

No parameters, so description doesn't need to add schema info. Baseline 4 is appropriate; the tool is fully described without parameter details.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly specifies the action ('end the listening session', 'stop listening to music', 'close the player') and the resource, distinguishing it from siblings like 'stop' and 'pause'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states when to use the tool ('when the user asks to end the listening session...'), implying when not to (e.g., for pause, use 'pause' tool). No explicit exclusion, but context is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

stopStop playbackA

Stop current neteasecli/mpv playback and clear listening state.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, but the description clearly states it stops playback and clears listening state, which is a behavioral effect beyond mere stopping. This is sufficient transparency for a simple tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One sentence, concise, front-loaded with verb and resource, no wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema and no parameters, the description is complete enough. It fully explains the tool's action.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Input schema has zero parameters and 100% coverage, so baseline is 4. Description adds no parameter info, which is acceptable.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'stop', the resource 'playback', and specifies the additional effect of clearing listening state. This effectively distinguishes it from siblings like pause or shutdown.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies when to use (when stopping and clearing state is desired) but does not explicitly contrast with alternatives like pause (which likely doesn't clear state) or shutdown.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 13 tool updatesv0.1.0
    • First observedcheck_environment
    • First observedget_listening_context
    • First observedget_status
    • First observednext_song
    • First observedopen_web_player
    • First observedpause
    • First observedplay_song
    • First observedplay_track
    • First observedresume
    • First observedsearch_song
    • First observedsetup_netease_login
    • First observedshutdown
    • First observedstop

TDQS

A3.7/5.0

Scored across 13 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: environment checks, playback controls, search and play via ID or query, status, context, and session management. No significant overlap.

Naming Consistency4/5

Most tools follow a verb_noun pattern (e.g., play_song, search_song), but a few like 'next_song' (adjective_noun) and 'shutdown' (single verb) deviate slightly.

Tool Count5/5

13 tools cover the essential functionality of a music player (search, play, control, status, login) without being excessive.

Completeness4/5

Core playback and search are complete, but missing volume control and playlist management represent minor gaps.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    MCP server that enables AI assistants to search and retrieve music data (songs, lyrics, playlists, albums, artists) from Netease Cloud Music.
    MIT
  • A
    license
    C
    quality
    A
    maintenance
    Multi-source music search and playback MCP server supporting QQ Music, NetEase Cloud, and local files with playlist management.
    3
    2
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    A read-only MCP server for NetEase Cloud Music data, enabling querying of songs, artists, albums, playlists, lyrics, and user library through tools like search and get details.
    15
    3
    MIT