How to Use Discogs database search in opencode
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.
Prompts to try with Discogs database search in opencode
Copy an example into opencode, or ask in your own words.
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 opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
- Sign in
Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.
opencode mcp auth spiral
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Discogs database search
One request; the result comes back by polling or a webhook.
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: opencode finds Discogs database search on Spiral, shows the price and runs it.
Discogs database search providers and prices
Spiral runs Discogs database search through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Page | 1 to 10000 | 1 | Result page, 1-based. |
| Type | release, master, artist, or label | Restrict results to one record type. Omit for all types. | |
| Year | a number | Release year. | |
| Per page | 1 to 100 | 25 | Results per page, 1 to 100. |
Every API field of Discogs · Search is on its tool page: open its card above.
What can you do with Discogs database search in opencode?
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.
More on Discogs database search and opencode
Overview
Discogs database search in other agents
Questions about Discogs database search in opencode
Can opencode use Discogs database search?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Discogs database search like any built-in tool.
How much does Discogs database search cost in opencode?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.
Do I need an Alexandria account to use Discogs database search in opencode?
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 opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Discogs database search runs?
Discogs database search runs in the background. opencode 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.
Start using Discogs database search in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


