CloudMusic Desktop MCP
Controls the official NetEase Cloud Music Windows desktop client: searches songs and playlists, starts playback, manages queues and playback modes, adjusts the app volume, toggles desktop lyrics and themes, and sends playback shortcuts.
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.
CloudMusic Desktop MCP
A small, local-only MCP server that lets an AI control the official NetEase Cloud Music desktop client on Windows.
It searches through the desktop client's own API (with an anonymous HTTPS
fallback), opens one-off selections through the official orpheus:// protocol,
and controls queues, playback modes, desktop lyrics, and app volume through a
localhost-only Chromium control channel. It does not replace the official
player or create a second playback process.
This is an independent community project. It is not affiliated with, endorsed by, or supported by NetEase Cloud Music.
Prerequisites
Windows 10 or Windows 11.
The official NetEase Cloud Music desktop client installed.
A personal account signed in to the desktop client is recommended. The account determines which subscribed or paid tracks the client can play.
Python 3.11 or newer.
A local MCP host that can launch a stdio server, such as Codex or Claude Desktop.
The MCP never reads the signed-in account, browser cookies, credentials, listening history, playlists, or local music library.
Related MCP server: netease-desktop-mcp
Install
git clone https://github.com/Seraph310/cloudmusic-desktop-mcp.git
cd cloudmusic-desktop-mcp
py -3.11 -m venv .venv
.\.venv\Scripts\python.exe -m pip install -e .If the executable is installed outside a standard NetEase directory, set
CLOUDMUSIC_EXE to its full path in the MCP configuration.
Codex configuration
Add the following to %USERPROFILE%\.codex\config.toml, replacing both paths:
[mcp_servers.cloudmusic]
command = 'C:\path\to\cloudmusic-desktop-mcp\.venv\Scripts\python.exe'
args = ['C:\path\to\cloudmusic-desktop-mcp\server.py']
startup_timeout_sec = 30
[mcp_servers.cloudmusic.env]
CLOUDMUSIC_EXE = 'C:\path\to\CloudMusic\cloudmusic.exe'Restart the MCP host after changing its configuration.
Tools
Tool | Purpose |
| Check the executable, running state, and available client capabilities |
| Start the official desktop client |
| Search songs or playlists without playing |
| Search and play an unambiguous match |
| Play a known numeric song or playlist ID |
| Read the queue, current song, mode, app volume, and desktop-lyrics state |
| Replace the queue with ordered numeric song IDs |
| Stop playback and empty the current queue |
| Search several phrases and build a queue in that order |
| Insert songs next or append them to the queue |
| Select order, list loop, single loop, or shuffle |
| Set the app's independent 0-100 player volume |
| Explicitly show or hide desktop lyrics |
| Choose an official desktop-lyrics color theme |
| Play/pause, stop, skip, mute, or use Windows volume keys |
| Send an allowlisted like, lyrics, or mini-mode shortcut |
When an artist is supplied, search_and_play refuses to play unless it finds
one exact normalized title/artist match. This avoids silently choosing a cover
version. Optional app shortcuts must first be configured to the matching global
shortcuts inside NetEase Cloud Music.
The advanced stateful tools require Cloud Music to be launched with the local
control channel. If get_netease_status reports
control_channel_ready: false, close Cloud Music once and call
launch_netease_music. The MCP starts it with the channel bound to
127.0.0.1 on port 9223. Set CLOUDMUSIC_CDP_PORT in the MCP environment to
choose another local port.
Client compatibility in 0.2.1
NetEase updates can change internal module numbers and export names. Version
0.2.1 discovers the initialized player-state interface and the export for
/api/cloudsearch/pc instead of depending on fixed module IDs. It checks
candidate client pages to avoid selecting a lyrics or mini-player window when
the main player's state is available. Discovery inspects already-loaded
modules without issuing search requests or dispatching player actions; missing
or ambiguous matches remain unavailable.
get_netease_status reports these capabilities separately:
Field | What |
| A local Cloud Music page can be inspected through the control channel |
| A compatible initialized player-state and dispatch interface was found |
| The desktop client's search export was identified |
A reachable channel alone does not prove that queue or search integration is
compatible. If the channel is ready but a capability is false, allow the client
to finish loading and check again. The compatibility and diagnostic fields
provide details if it remains unavailable. Capability discovery also does not
guarantee that every internal action remains unchanged in a future release.
Search prefers the desktop client's API. Anonymous HTTPS search is a
best-effort fallback with only anonymously visible results, so tracks available
in the signed-in client may be missing. NetEase may also return an API error or
an encrypted response that this server cannot use. If client search is
unavailable, anonymous search is not guaranteed to work; enabling the local
control channel and checking client_search_ready is the recommended first
step.
Playback modes are order, list_loop, single_loop, and shuffle.
set_netease_volume changes only Cloud Music's own volume, not Windows master
volume. set_desktop_lyrics reads the current state before acting, so repeated
requests do not accidentally toggle it the wrong way.
Desktop-lyrics themes are netease_red, sunset, cute_pink, sky_blue,
fresh_green, vivid_purple, warm_yellow, and soft_gray.
Tested environment
Windows 11 64-bit, build
26200.Python
3.11.5.
NetEase Windows client | Verification for 0.2.1 |
| Live status, queue reads, and desktop-client search passed |
| Live capability discovery, queue reads, song/playlist search, and temporary volume, play-mode, and lyric-visibility changes passed |
On 3.1.44.205670, the existing queue order, current track, volume, and playback
mode survived the upgrade. Temporary settings changes were restored and the
final state matched the initial state. Queue replacement, clearing, and
insertion were not live-tested on this version. Other client versions and
actions beyond those listed above have not been verified.
Safety choices
HTTPS-only search.
No Selenium, ChromeDriver, cookies, or account credentials.
Advanced control is bound to
127.0.0.1only and is never exposed remotely.Only fixed, allowlisted client actions plus validated song IDs and settings are evaluated.
No arbitrary commands, URLs, keyboard input, or shell execution.
Does not kill or restart an existing Cloud Music process.
Opens only allowlisted
orpheus://commands built from numeric result IDs.
The queue integration uses internal client actions. A future NetEase update may rename them; use the capability flags and returned state to diagnose compatibility.
Optional hardware companion
Pair this server with Halo PixelBar MCP so an MCP host can coordinate music with the speaker's ambient light, pixel screen, and independent hardware volume.
Related project
luuu-h/netease-music-mcp
inspired this project and offers a different, feature-rich approach using
neteasecli, mpv, synchronized lyrics, and a local web player. Choose that
project when you want an independent player UI; choose this one when you want
to keep using the official Windows desktop client without importing cookies
into the MCP.
Test
.\.venv\Scripts\python.exe -m unittest discover -s tests -vThe Python suite covers core behavior, page selection, capability reporting,
and connection failures using mocks. When Node.js is available on PATH, the
same command also runs the JavaScript runtime-discovery tests against synthetic
clients, including renumbered modules, renamed exports, and missing or
ambiguous capabilities. Those tests are skipped when Node.js is unavailable;
Node.js is not required to run the MCP server. Unit tests do not launch the
desktop client and do not replace live-version validation.
Acknowledgements
Thanks to zhuobichen for documenting the
module-number compatibility failure on NetEase Cloud Music 3.1.41.205529
and the limits of anonymous search in their
compatibility report.
Credits
Built together by Celia and OpenAI Codex.
Celia led the product direction and live client validation. Codex assisted with reverse engineering, implementation, and testing.
License
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
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
Generate full songs with vocals, instrumentals and sound effects from text. One server for Suno, Google Lyria, Mureka, MiniMax, ACE-Step, YuE and ElevenLabs. Your agent can quote the credit cost before generating, start a song, wait for it to finish and return download links. Sign in with OAuth; optional daily credit caps; retries never charge twice.
Generate AI music via the Lacuna Music API from MCP clients like Claude Desktop & Code.
ScoreStarling is an all-in-one AI sheet music assistant. Ask for anything to do with sheet music: transcribe a song from audio, video or a link, read a PDF or photo, add chords, change the key, make it easier, turn it into guitar TAB or jianpu, or arrange it for another instrument. Every change lands on a real score you can hear, fix and download (PDF, MIDI, MusicXML, guitar TAB, jianpu, audio). Hosted remote server with OAuth sign-in. Free accounts get monthly credits and free previews; prices are at scorestarling.com/pricing. Setup: https://scorestarling.com/mcp
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI agents to control NetEase Cloud Music playback, login, search, and get personalized recommendations through official APIs.1255MIT
- AlicenseAqualityCmaintenanceEnables AI clients to control the Windows NetEase Cloud Music desktop app via local stdio MCP, including reading current song and liked state, searching and playing tracks, playback control, track skipping, and setting the current song's liked status.10MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to control a local NetEase Cloud Music client in natural language — searching songs and playlists, playing or queuing tracks, replacing the queue with a playlist, and pausing, skipping, or adjusting volume — via a BetterNCM plugin and localhost bridge with token authentication.MIT
- AlicenseNot gradedqualityBmaintenanceEnables control of the local Kugou Music client on Windows, including playback status, play/pause, daily recommendations, and favorites. Also supports searching songs, albums, artists, playlists, lyrics, and cover art across Kugou, NetEase, Tencent, and Kuwo.MIT