Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MUSIC_MCP_DB_PATHNoSQLite 索引路径./library.db
MUSIC_MCP_LOG_LEVELNo日志级别INFO
MUSIC_MCP_LYRICS_DIRNo歌词存储目录;设置后 get_lyrics 自动写 {artist} - {title}.lrc,无需音频文件存在。留空则歌词只写在与音频同目录(需音频已存在)
MUSIC_MCP_DOWNLOAD_DIRNo歌曲下载目录(download_song 不传 target_dir 时用此值)./downloads
MUSIC_MCP_NETEASE_COOKIENo网易云登录 cookie(可选,如 MUSIC_U=...)
MUSIC_MCP_NETEASE_TIMEOUTNo网易云请求超时(秒)10.0
MUSIC_MCP_NETEASE_MIN_INTERVAL_MSNo网易云请求最小间隔(ms)800

Capabilities

Features and capabilities supported by this server

CapabilityDetails
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

NameDescription
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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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