discorg-mcp
MCP server for Discogs that enables searching the catalog, managing collections and wantlists, and handling marketplace and orders via the Discogs API.
README
discogs-mcp
A Model Context Protocol server for Discogs. Search the
catalog, manage your collection and wantlist, and work the marketplace — straight from Claude or any other MCP
client. No hosting required: it runs locally via npx and talks to Discogs' own OAuth 1.0a API directly.
Features
| Area | Tools |
|---|---|
| Identity | discogs_whoami |
| Catalog | discogs_search, discogs_get_release, discogs_get_master, discogs_get_master_versions, discogs_get_artist, discogs_get_artist_releases, discogs_get_label, discogs_get_label_releases |
| Collection | discogs_list_collection_folders, discogs_get_collection_items, discogs_add_to_collection, discogs_remove_from_collection, discogs_update_collection_item, discogs_get_collection_value |
| Wantlist | discogs_get_wantlist, discogs_add_to_wantlist, discogs_remove_from_wantlist |
| Marketplace | discogs_get_marketplace_stats, discogs_get_price_suggestions, discogs_get_listing, discogs_get_seller_inventory, discogs_create_listing, discogs_update_listing, discogs_delete_listing |
| Orders | discogs_list_orders, discogs_get_order, discogs_update_order, discogs_list_order_messages, discogs_add_order_message |
Prerequisites
- Node.js 18+.
- A free Discogs application — discogs-mcp doesn't ship with a shared API key, so each user registers their own at discogs.com/settings/developers. Any name/description works; you just need the Consumer Key and Consumer Secret it gives you.
Install & authorize
export DISCOGS_CONSUMER_KEY=your_consumer_key
export DISCOGS_CONSUMER_SECRET=your_consumer_secret
npx discogs-mcp login
This opens your browser to Discogs' authorization page and, once you approve, saves an access token to
~/.config/discogs-mcp/credentials.json (mode 0600). You only need to do this once — the MCP server itself reads
those saved credentials on startup. See Environment variables if you'd rather inject a
token directly (e.g. in CI) instead of running the interactive flow.
Add it to your MCP client
The consumer key/secret need to be available to the server process too (it re-signs every API request with them), so pass them through your client's env config.
Claude Code
claude mcp add discogs -e DISCOGS_CONSUMER_KEY=your_consumer_key -e DISCOGS_CONSUMER_SECRET=your_consumer_secret -- npx -y discogs-mcp
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"discogs": {
"command": "npx",
"args": ["-y", "discogs-mcp"],
"env": {
"DISCOGS_CONSUMER_KEY": "your_consumer_key",
"DISCOGS_CONSUMER_SECRET": "your_consumer_secret"
}
}
}
}
Restart your client and the discogs_* tools should show up.
Environment variables
| Variable | Required | Purpose |
|---|---|---|
DISCOGS_CONSUMER_KEY / DISCOGS_CONSUMER_SECRET |
Yes | Your registered Discogs application's credentials. Used both by login and to sign every API request. |
DISCOGS_USER_AGENT |
No | Overrides the User-Agent header Discogs requires of API clients. Defaults to discogs-mcp/<version> +<repo url>. |
DISCOGS_ACCESS_TOKEN / DISCOGS_ACCESS_TOKEN_SECRET |
No | Skip the on-disk credential file and inject an access token directly (useful for CI/containers). Both must be set together. |
DISCOGS_USERNAME |
No | Only needed alongside the two vars above if the token's identity lookup should be skipped. |
DISCOGS_MCP_CREDENTIALS_PATH |
No | Overrides where login reads/writes credentials. Defaults to ~/.config/discogs-mcp/credentials.json. |
Security notes
- The access token/secret saved by
loginare only as sensitive as your Discogs account — they grant the same access you approved (collection, wantlist, marketplace, orders). The file is written with0600permissions. - You can revoke access at any time from your Discogs account under Settings → Developers, then delete
~/.config/discogs-mcp/credentials.jsonlocally. - Tools that create, modify, or delete marketplace listings/orders are real, live actions — most MCP clients ask for confirmation before running a tool call, but treat those tools as if they were.
- See SECURITY.md for how to report a vulnerability.
Development
git clone https://github.com/Spiegelberg/discogs-mcp.git
cd discogs-mcp
npm install
npm run dev # run the server against source with tsx
npm run lint
npm run typecheck
npm test
npm run build # bundle to dist/
See CONTRIBUTING.md for more.
Publishing / distribution checklist
Automated by this repo:
- [x]
npm run buildproduces a workingdist/index.jsbin. - [x] CI (
.github/workflows/ci.yml) lints, typechecks, tests, and builds on every push/PR. - [x] Pushing a
vX.Y.Ztag runs.github/workflows/publish.yml, which publishes to npm with provenance. - [x]
server.jsonis ready to submit to the open MCP Registry via themcp-publisherCLI, andpackage.json'smcpNamefield matches it.
Still manual, and outside what code in this repo can do:
- [ ] Create/own the
discogs-mcpnpm package and add anNPM_TOKENrepo secret so the publish workflow can run. - [ ] Run
mcp-publisher(or open a PR against the MCP Registry) to list it there. - [ ] If you want it in Anthropic's curated in-product connector directory, that's a separate outreach/review process with Anthropic — not something a GitHub Action can trigger.
License
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。