Discogs MCP Server is a powerful tool that connects to the Discogs API, allowing you to search music catalogs, manage your collection, and perform various music-related operations through compatible clients like Claude and other MCP-enabled applications.
Before getting started with the Discogs MCP Server, you'll need:
node --version
To obtain your Discogs personal access token, visit your Discogs Settings > Developers page and either find your existing token or generate a new one. Keep this token secure and do not share it.
If you just want to use the server without installing it locally, you can run it directly using NPX:
npx -y discogs-mcp-server
You'll need to provide your Discogs token as an environment variable:
DISCOGS_PERSONAL_ACCESS_TOKEN=your_token_here npx -y discogs-mcp-server
To install and run the server locally:
git clone https://github.com/cswkim/discogs-mcp-server.git
cd discogs-mcp-server
.env
file in the root directory with your Discogs token:DISCOGS_PERSONAL_ACCESS_TOKEN=your_token_here
pnpm install
pnpm run dev
For HTTP streaming mode:
pnpm run dev:stream
To run the server in a Docker container:
docker build -t discogs-mcp-server:latest .
docker run --env DISCOGS_PERSONAL_ACCESS_TOKEN=your_token_here discogs-mcp-server:latest
For HTTP streaming mode:
docker run -p 3001:3001 --env DISCOGS_PERSONAL_ACCESS_TOKEN=your_token_here discogs-mcp-server:latest stream
To use the Discogs MCP Server with Claude Desktop, go to Claude > Settings > Developer > Edit Config
and add one of the following configurations:
{
"mcpServers": {
"discogs": {
"command": "npx",
"args": [
"-y",
"discogs-mcp-server"
],
"env": {
"DISCOGS_PERSONAL_ACCESS_TOKEN": "your_token_here"
}
}
}
}
{
"mcpServers": {
"discogs": {
"command": "npx",
"args": [
"tsx",
"/path/to/your/project/folder/src/index.ts"
],
"env": {
"DISCOGS_PERSONAL_ACCESS_TOKEN": "your_token_here"
}
}
}
}
{
"mcpServers": {
"discogs": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--env",
"DISCOGS_PERSONAL_ACCESS_TOKEN=your_token_here",
"discogs-mcp-server:latest"
]
}
}
}
In the librechat.yaml
configuration file, add:
mcpServers:
discogs:
type: stdio
command: npx
args: ["-y", "discogs-mcp-server"]
env:
DISCOGS_PERSONAL_ACCESS_TOKEN: your_token_here
In LM Studio's Chat Settings, select "Edit mcp.json" from the Program tab and add:
"discogs": {
"command": "npx",
"args": [
"-y",
"discogs-mcp-server"
],
"env": {
"DISCOGS_PERSONAL_ACCESS_TOKEN": "your_token_here"
}
}
Save the configuration and enable the "mcp/discogs" toggle in the Program tab.
You can test your local MCP server using the MCP Inspector:
pnpm run inspect
This will start the MCP Inspector at http://127.0.0.1:6274
. Visit this URL in your browser to interact with and test your local MCP server.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "discogs" '{"command":"npx","args":["-y","discogs-mcp-server"],"env":{"DISCOGS_PERSONAL_ACCESS_TOKEN":"<YOUR_TOKEN>"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"discogs": {
"command": "npx",
"args": [
"-y",
"discogs-mcp-server"
],
"env": {
"DISCOGS_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"discogs": {
"command": "npx",
"args": [
"-y",
"discogs-mcp-server"
],
"env": {
"DISCOGS_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect