music-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MUSIC_MCP_DB_PATH | No | SQLite 索引路径 | ./library.db |
| MUSIC_MCP_LOG_LEVEL | No | 日志级别 | INFO |
| MUSIC_MCP_LYRICS_DIR | No | 歌词存储目录;设置后 get_lyrics 自动写 {artist} - {title}.lrc,无需音频文件存在。留空则歌词只写在与音频同目录(需音频已存在) | |
| MUSIC_MCP_DOWNLOAD_DIR | No | 歌曲下载目录(download_song 不传 target_dir 时用此值) | ./downloads |
| MUSIC_MCP_NETEASE_COOKIE | No | 网易云登录 cookie(可选,如 MUSIC_U=...) | |
| MUSIC_MCP_NETEASE_TIMEOUT | No | 网易云请求超时(秒) | 10.0 |
| MUSIC_MCP_NETEASE_MIN_INTERVAL_MS | No | 网易云请求最小间隔(ms) | 800 |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| extensions | {
"io.modelcontextprotocol/ui": {}
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| search_songsC | 按关键词搜索歌曲,返回标题/歌手/专辑/来源/是否已入库。 |
| download_songB | 下载歌曲到本地。传 norm_key(来自搜索结果)或 title+artist。 target_dir 省略时用 MUSIC_MCP_DOWNLOAD_DIR 配置。 |
| get_lyricsA | 获取歌词(LRC 优先)。传 norm_key 或 title+artist。 audio_dir 提供时写同名 .lrc;否则用 MUSIC_MCP_LYRICS_DIR 配置写 .lrc。 |
| scan_libraryC | 扫描本地音频目录,补元数据并触发歌词补全。 |
| query_libraryC | 查询本地库,可按关键词和有无歌词过滤。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/xiaonanbo1998/music-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server