Cloud Music MCP Server logo

Cloud Music MCP Server

Community
Code-MonkeyZhang

基于网易云音乐API实现的本地MCP工具,可以将AI接入网易云音乐,实现登录、播放和歌单自动收集

PublisherCode-MonkeyZhang
Repositorycloud-music-mcp
LanguagePython
Forks
5
Stars
45
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Cloud Music MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    45 stars and 5 forks from the linked repository.

网易云音乐 MCP 服务器

Python 3.10+ License: MIT Pull Requests Welcome

基于 网易云音乐开发平台 标准 API 实现

🎵 为您的 AI Agent 插上音乐的翅膀

这是一个基于 网易云音乐 官方API 的本地MCP服务器。可以让用户通过 Claude Code, OpenCode 等 AI Agent以原生 API 的方式点歌!

📢 Update

  • 2026-06-29 🎉 新增歌单管理 — AI 现在可以帮你创建歌单并批量添加歌曲,一句话完成「搜歌 → 建单 → 加歌」全流程。
  • 2026-06-29 🔎 新增资料查询 — 支持查询歌单详情、专辑信息、歌手信息以及你的收藏列表。
  • 2026-06-16 🔧 修复安装问题 — 替换已失效的 PyPI pyncm 为自维护 fork,补齐 build-system,并清除误提交的登录态等敏感文件。

✨ 功能特性

  • 🤖 让 AI Agent 为你播放音乐:通过自然语言指令控制音乐播放。只需说“给我放首热血的歌”,Agent 就会为你搞定一切。
  • 🔓 扫码登录:支持使用手机 App 扫码安全登录。登录状态(Cookies)仅保存在本地,保护您的隐私。
  • 🧠 个性化推荐:完美接入您的每日推荐和歌单。Agent 会根据您的听歌品味来播放音乐。
  • 🔍 搜歌功能:支持按关键词搜索歌曲、歌手或专辑,并直接播放。
  • 📝 歌单管理:不只是放歌,还能帮你创建歌单、批量加歌。说一句"建个某个主题的歌单",AI 就会自动搜歌、建单、加歌一气呵成。
  • 🎛️ 桌面端联动:通过 URL Scheme 唤起网易云音乐客户端播放,无缝衔接原生体验。

🛠️ 工具列表

本服务器向 AI Agent 暴露以下工具:

工具名称 (Tool Name)参数 (Parameters)功能描述 (Description)
cloud_music_login无启动扫码登录流程 (模拟官方 App)。
cloud_music_status无检查当前登录状态和用户信息。
cloud_music_get_daily_recommend无获取今日推荐歌曲列表。
cloud_music_my_playlists无获取用户的所有歌单(包括创建的和收藏的)。
cloud_music_playlist_detailplaylist_id: 歌单 ID获取歌单详情及歌单内所有歌曲。
cloud_music_create_playlistname: 歌单名称 <br>privacy: 是否隐私(默认否)创建新歌单。
cloud_music_add_to_playlistplaylist_id: 歌单 ID <br>track_ids: 歌曲 ID 列表批量添加歌曲到指定歌单。
cloud_music_searchkeyword: 关键词 <br>category: 类型(默认'song')按关键词搜索歌曲、专辑、歌手或歌单。
cloud_music_album_infoalbum_id: 专辑 ID获取专辑详情及歌曲列表。
cloud_music_artist_infoartist_id: 歌手 ID获取歌手详情和热门歌曲 Top 10。
cloud_music_my_subscriptionscategory: 'artists'/'albums'获取收藏的歌手或专辑列表。
cloud_music_playid: 资源ID <br>type: 类型 ('song'/'playlist')播放指定的歌曲或歌单(自动唤起桌面应用)。

🚀 安装与使用

前置条件

  • 操作系统:macOS 或 Windows
  • Python 版本:3.10 或更高
    • macOS:通常自带,运行 python3 --version 检查
    • Windows:从 python.org 下载安装
  • 安装网易云音乐桌面客户端(
  • LLM 客户端(如 Claude Desktop、OpenCode 等)

安装步骤

1. 安装 uv 包管理器

bash
# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh

# Windows (PowerShell)
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

2. 克隆项目并安装依赖

bash
# 克隆项目
git clone https://github.com/Code-MonkeyZhang/cloud-music-mcp.git
cd cloud-music-mcp

# 创建虚拟环境
uv venv

# 激活虚拟环境
source .venv/bin/activate  # macOS/Linux
# .venv\Scripts\activate   # Windows

# 安装项目(可编辑模式)
uv pip install -e .

配置 LLM 客户端

Claude Desktop

找到配置文件:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%/Claude/claude_desktop_config.json

添加以下配置:

json
{
  "mcpServers": {
    "cloud-music": {
      "command": ["/绝对路径到/cloud-music-mcp/.venv/bin/cloud-music-mcp"],
      "enabled": true
    }
  }
}

重要:将 /绝对路径/到/cloud-music-mcp 替换为项目的实际绝对路径。Windows 用户请使用双反斜杠 \\ 或正斜杠 /。

开启日志(可选)

如需调试,可在配置中添加环境变量:

json
{
  "mcpServers": {
    "cloud-music": {
      "command": ["/绝对路径/到/cloud-music-mcp/.venv/bin/cloud-music-mcp"],
      "enabled": true,
      "env": {
        "MCP_LOG_ENABLE": "true"
      }
    }
  }
}

日志说明:

  • 默认状态:日志功能默认关闭
  • 开启后:日志会以 session_YYYYMMDD_HHMMSS.log 的格式保存在项目根目录的 logs/ 文件夹中

使用方法

  1. 重启 LLM 客户端(如 Claude Desktop)

  2. 登录网易云音乐

    • 在对话中输入:"帮我扫码登录网易云音乐"
    • AI 会调用 cloud_music_login 工具,弹出二维码
    • 用手机网易云 App 扫码登录
    • 登录状态(Cookies)仅保存在本地,保护隐私
  3. 开始使用

    • 播放音乐:"给我放首歌"
    • 获取推荐:"看看今日推荐有什么"
    • 搜索歌曲:"搜一下周杰伦的歌"
    • 创建歌单:"帮我建个周杰伦热门歌曲的歌单"
    • 播放歌单:"播放我的收藏歌单"

Installation

TypingMind
{
  "mcpServers": {
    "cloud-music-mcp": {
      "command": ".venv/bin/cloud-music-mcp",
      "args": []
    }
  }
}

Use Cloud Music MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Cloud Music MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Cloud Music MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Cloud Music MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "cloud-music-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Cloud Music MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Cloud Music MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Cloud Music MCP Server to help me with this task?
Cloud Music MCP Server
Sure. I read it.
Here is what I found using Cloud Music MCP Server.

Frequently asked questions

What is the Cloud Music MCP Server MCP server used for?

Cloud Music MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Cloud Music MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Cloud Music MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Cloud Music MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Cloud Music MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Cloud Music MCP Server MCP to TypingMind?

Cloud Music MCP Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Cloud Music MCP Server MCP provide in TypingMind?

Cloud Music MCP Server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Cloud Music MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Cloud Music MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇