Skip to main content
Glama
laugh29c-cmd

NetEase Music MCP Safe

by laugh29c-cmd

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_HOSTNoBind host for the MCP server. Default is 127.0.0.1; use 0.0.0.0 on platforms such as Zeabur.127.0.0.1
MCP_PORTNoExplicit MCP port. If unset, the platform PORT is used, then 3456.3456
LOG_LEVELNoPython logging level. Default is INFO.INFO
MCP_READ_ONLYNoWhen true, account write tools are hidden. Set to false to register write tools.true
MCP_PUBLIC_URLNoOptional HTTPS origin with no path, query, or fragment. Must be set together with MCP_OAUTH_PASSWORD to enable browser OAuth.
NETEASE_COOKIENoOptional legacy NetEase Cloud Music session cookie; must contain MUSIC_U. Used only as a fallback when no valid persisted runtime session exists.
MCP_ACCESS_TOKENYesRequired static Bearer token with at least 24 characters. Also serves as the root secret for OAuth signing.
MCP_STORAGE_PATHNoPath to the persistent SQLite database for sessions, audit logs, notes, and idempotency records. Required for QR login or write mode and should be on a persistent volume.
MCP_ALLOWED_ORIGINNoOptional single allowed browser origin. Empty by default; set only when cross-origin browser access is required.
MCP_OAUTH_PASSWORDNoOptional OAuth authorization-page password with at least 16 characters. Must differ from MCP_ACCESS_TOKEN and be set together with MCP_PUBLIC_URL.
MCP_MAX_IMAGE_BYTESNoMaximum compressed cover image input size in bytes. Default is 5242880; allowed range is 1-20 MiB.5242880
MCP_DEFAULT_TIMEZONENoIANA timezone used for user-facing local timestamps and date context. Default is Asia/Shanghai.Asia/Shanghai
MCP_MAX_IMAGE_PIXELSNoMaximum decoded cover image pixel count. Default is 25000000; allowed range is 1000000-100000000.25000000
MCP_MAX_REQUEST_BYTESNoHTTP request body size limit in bytes. Default is 1048576; minimum is 1024.1048576
MCP_MAX_OPERATION_LOGSNoMaximum number of audit log records per user. Default is 1000; allowed range is 100-100000.1000
MCP_MAC_PLAYBACK_ENABLEDNoWhen true, register optional macOS local NetEase Music client playback control tools.false
MCP_MOBILE_PLAYBACK_ENABLEDNoWhen true, register optional iPhone NetEase Music app Listen Together control tools.false
MCP_OPERATION_RETENTION_DAYSNoAudit log retention period in days. Default is 90; allowed range is 1-3650.90

Instructions

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

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources