How to Use DOI prefix lookup in Windsurf
Inspect the agency and metadata routing information associated with a DOI prefix. Use it to understand shared routing before processing DOI records under that prefix.
Prompts to try with DOI prefix lookup in Windsurf
Copy an example into Windsurf, or ask in your own words.
Use DOI prefix lookup to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from DOI prefix lookup and tell me what changed since last week.
Check DOI prefix lookup and summarize what you find in three bullet points.
Pull the newest data from DOI prefix lookup and give me the result as a table.
Check DOI prefix lookup every morning and tell me only when something changed.
How to set up DOI prefix lookup in Windsurf
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Open the Customize page from the Agents window and click MCPs. Under This computer, open the config file, or edit it directly: ~/.config/devin/mcp_config.json on macOS and Linux, %APPDATA%\devin\mcp_config.json on Windows. Add this:
{ "mcpServers": { "spiral": { "url": "https://api.spiral.ai/mcp" } } } - Sign in
Click Authenticate on the Spiral server in Customize › MCPs, or let the agent call Spiral once: your browser opens. Sign in to Spiral, pick the organization and click Authorize. No API key.
devin mcp login spiral
- Check it
Spiral is listed under This computer in Customize › MCPs. From the terminal:
devin mcp list
Use the Spiral skill
- Send Windsurf 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 DOI prefix lookup
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": "doi-org/identifiers/prefix", "input": { "prefix": "<prefix>" } }'
Then paste one of the prompts above: Windsurf finds DOI prefix lookup on Spiral, shows the price and runs it.
DOI prefix lookup providers and prices
Spiral runs DOI prefix lookup through Alexandria. Open a card for today's price, with every fee included.
What can you do with DOI prefix lookup in Windsurf?
Build a DOI report with citations, registered destinations, agency routing, and system activity. Coding agents can turn returned records into project fixtures, comparison views, and checks for a bibliography import.
Audit DOI ingestion
Check incoming identifiers, identify their agencies, inspect prefix routing, and compare returned metadata with the catalog records being imported.
Review a publisher migration
Compare registered destinations and citation records before and after a platform move. Inspect agency and prefix routing when records behave differently.
Plan a DOI reporting application
Use public DOI examples to design citation, destination, and agency views. Add system statistics and the agency directory to provide context for the application’s reports.
Teach library staff how DOI records work
Walk through a public DOI’s citation, destination, agency, and prefix routing. Use the directory and resolution statistics to explain the wider DOI system.
More on DOI prefix lookup and Windsurf
Overview
DOI prefix lookup in other agents
Questions about DOI prefix lookup in Windsurf
Can Windsurf use DOI prefix lookup?
Yes. Add Spiral to Windsurf as an MCP server, and Windsurf can find and run DOI prefix lookup like any built-in tool.
How much does DOI prefix lookup cost in Windsurf?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Windsurf plan is separate.
Do I need an Alexandria account to use DOI prefix lookup in Windsurf?
No. Spiral runs DOI prefix lookup on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up DOI prefix lookup in Windsurf?
About two minutes: add the server, then sign in, then check it.
Does Windsurf wait while DOI prefix lookup runs?
DOI prefix lookup runs in the background. Windsurf starts the run, checks on it and gives you the json when it's ready.
Does DOI coverage stop at journal articles?
No. DOI registration agencies also serve entertainment, standards, construction products, natural history collections, and research data.
How quickly do changed DOI destinations appear?
DOI.org documents a 24-hour cache for Handle values. A destination change can therefore take up to 24 hours to appear through the proxy.
Can citation metadata be retrieved as one large batch?
DOI content negotiation returns one metadata record at a time. The underlying agency lookup supports multiple DOIs, but that does not make citation retrieval a batch service.
Does a DOI prefix prove who owns a work?
No. The DOI Handbook explicitly says a registrant code does not establish ownership of rights or current management responsibility.
Does converted citation metadata preserve every source distinction?
No. Crossref documents mappings where several source types become one output type, so converted records can lose distinctions present in the original agency schema.
Start using DOI prefix lookup in Windsurf
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Windsurf:
set up https://spiral.ai/SKILL.md


