Search a library catalog using the SRU searchRetrieve protocol with a CQL query

domain: loc.gov · 4 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Identify the target catalog's SRU base URL and the record schema it supports (e.g., MARCXML, Dublin Core)
  2. Build a CQL query combining an index, relation, and search term (e.g., title all "climate change")
  3. Send a GET request to the SRU endpoint with operation=searchRetrieve, version, query, and maximumRecords parameters
  4. Parse the returned XML searchRetrieveResponse for numberOfRecords and the record set

Known gotchas

Related routes

Author a CQL Library resource with embedded CQL logic and ELM content for use in a FHIR quality measure
cql.hl7.org · 6 steps · unrated
Search Open Library's book catalog with the Search API
openlibrary.org · 5 steps · unrated
Search bibliographic records via the Koha REST API
koha-community.org · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans