[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [Discogs database search](https://spiral.ai/integrations/codex/discogs-database-search)

# How to Use Discogs database search in Codex

Returns matching artists, labels, releases, and master records from the Discogs catalog. Use it to find candidate records from names or identifying details before retrieving a specific record.

|  |  |
| --- | --- |
| Model | Discogs database search |
| Available through | Alexandria |
| Category | E-commerce |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Discogs database search in Codex

- Use Discogs database search to find candidate records for the Radiohead albums in our catalog CSV, starting with OK Computer. Add candidate IDs and record types to a review report.
- Use Discogs database search to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Discogs database search and tell me what changed since last week.
- Check Discogs database search and summarize what you find in three bullet points.
- Pull the newest data from Discogs database search and give me the result as a table.

## How to set up Discogs database search in Codex

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the hosted server**

```bash
codex mcp add spiral --url https://api.spiral.ai/mcp
```

2. **Sign in**: Codex opens the browser: sign in to Spiral and click Authorize. No API key. `codex mcp list` then shows Spiral.

```bash
codex mcp login spiral
```

### Use the Spiral skill

1. **Send Codex this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Discogs database search**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "discogs-com/releases/search",
    "input": {
      "page": 1
    }
  }'
```

Then paste one of the prompts above: Codex finds Discogs database search on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/codex

## Discogs database search tools and prices

- [Discogs · Search](https://spiral.ai/tools/alexandria/discogs-com/releases/search) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| page | 1 to 10000 | 1 | Result page, 1-based. |
| type | release, master, artist, label | — | Restrict results to one record type. Omit for all types. |
| year |  | — | Release year. |
| catno |  | — | Catalog number as printed, e.g. `PB 41447` or `WARPLP92`. |
| genre |  | — | Genre, e.g. `Electronic`, `Rock`, `Jazz`. |
| label |  | — | Label name. |

## What can you do with Discogs database search in Codex?

Build a music catalog checker that separates artist identities, label identities, master records, and individual editions. A coding agent can compare Discogs metadata with project files and flag ambiguous matches for review.

### Compare editions before choosing a record

Find an album, inspect its master record, list its editions, and compare individual release notes and tracklists. Produce a shortlist distinguished by label, format, catalog number, and release market.

### Research an artist’s discography

Check the artist’s identity and aliases, work through their catalog, and separate master records from individual editions. Use release details to investigate titles that need closer inspection.

### Prepare a record label retrospective

Check the imprint’s profile and label relationships, then research its catalog by artist, title, format, and year. Add artist context and inspect selected release records for the retrospective.

### Resolve duplicate music catalog entries

Search ambiguous artist, label, and album names, check their profiles, and compare the master’s editions. Decide whether two catalog rows refer to the same edition or different releases of the same recording.

### Review artist and label identity matches

Check whether catalog entries point to the intended artist and imprint. Compare profiles, aliases, label relationships, and associated releases to flag matches that need manual review.

### Prepare a catalog update digest

Recheck selected public artists, labels, and albums and summarize relevant catalog changes. Describe newly discovered Discogs entries separately from their recorded release dates.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Codex guides](https://spiral.ai/integrations/codex)

## Discogs database search in other agents

- [Amp](https://spiral.ai/integrations/amp/discogs-database-search)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/discogs-database-search)
- [Claude](https://spiral.ai/integrations/claude-desktop/discogs-database-search)
- [Claude Code](https://spiral.ai/integrations/claude-code/discogs-database-search)
- [Cline](https://spiral.ai/integrations/cline/discogs-database-search)
- [Cursor](https://spiral.ai/integrations/cursor/discogs-database-search)
- [Devin](https://spiral.ai/integrations/devin/discogs-database-search)
- [dots](https://spiral.ai/integrations/dots/discogs-database-search)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/discogs-database-search)
- [Gemini](https://spiral.ai/integrations/gemini/discogs-database-search)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/discogs-database-search)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/discogs-database-search)
- [goose](https://spiral.ai/integrations/goose/discogs-database-search)
- [Grok](https://spiral.ai/integrations/grok/discogs-database-search)
- [Grok Build](https://spiral.ai/integrations/grok-build/discogs-database-search)
- [Hermes](https://spiral.ai/integrations/hermes/discogs-database-search)
- [Instinct](https://spiral.ai/integrations/instinct/discogs-database-search)
- [Manus](https://spiral.ai/integrations/manus/discogs-database-search)
- [Muse](https://spiral.ai/integrations/muse/discogs-database-search)
- [Muse Code](https://spiral.ai/integrations/muse-code/discogs-database-search)
- [n8n](https://spiral.ai/integrations/n8n/discogs-database-search)
- [Notion](https://spiral.ai/integrations/notion/discogs-database-search)
- [OpenClaw](https://spiral.ai/integrations/openclaw/discogs-database-search)
- [opencode](https://spiral.ai/integrations/opencode/discogs-database-search)
- [Perplexity](https://spiral.ai/integrations/perplexity/discogs-database-search)
- [Raycast](https://spiral.ai/integrations/raycast/discogs-database-search)
- [VS Code](https://spiral.ai/integrations/vscode/discogs-database-search)
- [Windsurf](https://spiral.ai/integrations/windsurf/discogs-database-search)
- [Zapier](https://spiral.ai/integrations/zapier/discogs-database-search)

## More Codex guides

- [Discogs artist profile](https://spiral.ai/integrations/codex/discogs-artist-profile)
- [Discogs label catalog](https://spiral.ai/integrations/codex/discogs-label-catalog)
- [Discogs artist discography](https://spiral.ai/integrations/codex/discogs-artist-discography)
- [Discogs label profile](https://spiral.ai/integrations/codex/discogs-label-profile)
- [Dell support product search](https://spiral.ai/integrations/codex/dell-support-product-search)
- [Discogs master release](https://spiral.ai/integrations/codex/discogs-master-release)

## Questions about Discogs database search in Codex

**Can Codex use Discogs database search?**

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run Discogs database search like any built-in tool.

**How much does Discogs database search cost in Codex?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Codex plan is separate.

**Do I need an Alexandria account to use Discogs database search in Codex?**

No. Spiral runs Discogs database search on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Discogs database search in Codex?**

About two minutes: add the hosted server, then sign in.

**Does Codex wait while Discogs database search runs?**

Discogs database search runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.

**What kinds of recordings does Discogs cover?**

Discogs catalogs audio releases made available to the general public, including commercially sold releases and free giveaways. That is its submission boundary, rather than a promise that every eligible release has been entered.

**How quickly can Discogs information change?**

Submitted information goes live immediately. A newly appearing catalog entry can therefore be an older recording that someone has just documented.

**Does Discogs include artists and labels without cataloged releases?**

Artists and labels are created through release submissions and cannot be added directly. Discogs is therefore tied to documented releases rather than a standalone directory of every artist or music business.

**What does a release’s country mean?**

Discogs uses country for the market where a release was sold and distributed. It does not necessarily identify where the record was manufactured.

**Does a master record describe one exact pressing?**

A master collects two or more matching releases. Its displayed tracklist comes from a selected key release, so consult an individual release record when checking an edition’s tracks.

