Connects agents to the Discogs API to search the music database and work with a user's record collection.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add discogs --env DISCOGS_PERSONAL_ACCESS_TOKEN='<DISCOGS_PERSONAL_ACCESS_TOKEN>' -- npx -y discogs-mcp-server~/.codex/config.toml
[mcp_servers.discogs]
command = "npx"
args = ["-y", "discogs-mcp-server"]
env = { DISCOGS_PERSONAL_ACCESS_TOKEN = "<DISCOGS_PERSONAL_ACCESS_TOKEN>" }
# codex mcp add discogs --env DISCOGS_PERSONAL_ACCESS_TOKEN='<DISCOGS_PERSONAL_ACCESS_TOKEN>' -- npx -y discogs-mcp-server~/.cursor/mcp.json
{
"mcpServers": {
"discogs": {
"command": "npx",
"args": [
"-y",
"discogs-mcp-server"
],
"env": {
"DISCOGS_PERSONAL_ACCESS_TOKEN": "<DISCOGS_PERSONAL_ACCESS_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"discogs": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"discogs-mcp-server"
],
"env": {
"DISCOGS_PERSONAL_ACCESS_TOKEN": "<DISCOGS_PERSONAL_ACCESS_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"discogs": {
"command": "npx",
"args": [
"-y",
"discogs-mcp-server"
],
"env": {
"DISCOGS_PERSONAL_ACCESS_TOKEN": "<DISCOGS_PERSONAL_ACCESS_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"discogs": {
"command": "npx",
"args": [
"-y",
"discogs-mcp-server"
],
"env": {
"DISCOGS_PERSONAL_ACCESS_TOKEN": "<DISCOGS_PERSONAL_ACCESS_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"discogs": {
"command": "npx",
"args": [
"-y",
"discogs-mcp-server"
],
"env": {
"DISCOGS_PERSONAL_ACCESS_TOKEN": "<DISCOGS_PERSONAL_ACCESS_TOKEN>"
}
}
}
}需要的环境变量
DISCOGS_PERSONAL_ACCESS_TOKEN
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。