Searches 21 research library catalogs simultaneously via public Alma SRU interfaces (no API key). Returns call numbers, locations, availability, and online access per library.
Ships in alma-sru-catalogs. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Search the catalogs of 21 research libraries with one script. No API key needed.
Many research libraries run Ex Libris Alma, and many leave its SRU interface open (Search/Retrieve via URL, a library standard for searching catalogs over plain HTTP). Queries are written in CQL (Contextual Query Language, e.g. alma.title="明史"). Records come back as MARCXML; the script turns them into simple JSON with holdings.
| Key | Library | Notes |
|---|---|---|
umich | University of Michigan | |
princeton | Princeton University | East Asian Library (cjk locations) |
yale | Yale University | AVE has direct access links |
penn | University of Pennsylvania | AVE has direct access links |
mit | MIT | SRU finds far fewer records than TIMDEX; prefer mit-timdex |
duke | Duke University | |
pitt | University of Pittsburgh | |
uiuc | University of Illinois Urbana-Champaign | |
berkeley | UC Berkeley | East Asian Library |
ucla | UCLA | East Asian Library |
toronto | University of Toronto | AVE has direct access links |
oxford | Bodleian Libraries, Oxford | |
cambridge | Cambridge University Libraries | |
edinburgh | University of Edinburgh | |
sydney | University of Sydney | No AVA/AVE holdings in SRU records; slow and drops connections (one request took 143 s, the next 1.5 s) |
ntu | National Taiwan University 國立臺灣大學 | Taiwan records (see below) |
nccu | National Chengchi University 國立政治大學 | Taiwan records |
ncku | National Cheng Kung University 國立成功大學 | Taiwan records |
nsysu | National Sun Yat-sen University 國立中山大學 | Taiwan records |
nchu | National Chung Hsing University 國立中興大學 | Taiwan records |
ccu | National Chung Cheng University 國立中正大學 | Taiwan records |
The single-library skills umich-library-catalog, princeton-library-catalog, yale-library-catalog (which adds Yale LUX), and pitt-library-catalog use the same code.
Most of these libraries' public search sites block scripts (Cloudflare, bot challenges) or forbid search URLs in robots.txt (Princeton, Penn). The Primo REST API needs a key. Alma SRU is open. Use the url in each record only as a link for people to open in a browser.
The six Taiwan libraries catalog in Chinese:
Ming shi) find very little; search in characters, and try both traditional and simplified forms.$2 csht), e.g. 歷史地理 -- 研究 -- 中國 -- 明代, not LCSH. Search them in Chinese: subject="歷史地理".084 $2 ncsclt), e.g. 626.01, not LC.language=jpn).One search that returns 0 does not show that the library lacks the book. A full citation often misses because of a subtitle, an accent (Cœdès, Śrīvijaya), a hyphen, or a reprint under a new title.
To check whether a library has a known book, use find, not search. It tries several wordings (full title with author, main title, first words of the title, plain-ASCII spelling, then looser steps) and stops at the first one that gives records.
python scripts/alma_sru.py find --library umich,princeton,toronto --title "The Indianized States of Southeast Asia" --author "George Cœdès"
The answer has a status. found: the title matched; still read the record. possible: only the author and a few title words matched; it may be a reprint under another title, or other books by the same author. not_found: none of the steps matched.
Report not_found as "not found by these searches, unchecked", never as "the library does not have it". Give the person a link to the library's website search to check by hand.
The keyword index (alma.all_for_ui) and the author index (alma.creator) match a phrase. author="George Cœdès" gives 0 because the heading is "Cœdès, George"; search the surname alone.
For Chinese, Japanese, and Korean keywords, search the traditional form, the simplified form, and the romanization, and merge by mms_id.
$q library name, $c location, $d call number, $e available/unavailable, $t volume summary.$m collection, $t interface (platform), $e Available, $n note, $u access link (Yale, Penn, Toronto).The script returns them as holdings.physical and holdings.electronic. Keys: holdings.physical[] has library, location, call_number, availability, items_total, items_unavailable, summary; holdings.electronic[] has collection, interface, availability, note, url.
Main fields are romanized (pinyin, Hepburn, McCune-Reischauer); the original script is in linked 880 fields. The script pairs them: 明史研究 (Ming shi yan jiu). Search both scripts for full coverage. Some records (e.g. some at Toronto and Oxford) have only the original script. Some Taiwan records (e.g. NTU) put the romanized name inside the 880 field itself, like 希爾 (Hill, A. V. (Archibald Vivian), 1886- ); the script then shows it once, not twice.
alma.title="shi dian" matches records with shi and dian anywhere in the title (353 hits at U-M, including a Shenyang phone book). Quotes and adj change nothing; == matches the whole title field exactly.phrase=True (CLI --phrase) to keep only titles that contain the term as one connected phrase. It filters each page after the search, so total is still the server's count; use search_all(..., phrase=True) to scan every page.shi dian also matches 知识典籍 (zhi shi dian ji), and ji qi is 機器 as well as 祭器. After a romanized search, keep the records whose vernacular title has the characters you want.alma.title="文廟" misses it at U-M and Princeton (Yale finds it). The romanized Wen miao finds it.mms_id.search_all() pages for you.sortBy alma.main_pub_date/sort.descending); sortKeys is ignored. Unknown dates (uuuu) sort first in ascending order; add cql="alma.main_pub_date>=1000". But placeholder years such as #### still pass that filter and sort first (seen at Princeton and U-M on 2026-10-26). Add known_dates=True (CLI --known-dates) to drop records whose year is not four digits. It filters each page after the search, like phrase.-- and pass it to subject. The script splits it and searches each part, AND'd together. Do not send a long heading as one phrase, with or without -- inside the quotes: that gives 0 or only a few records. Short headings work as one phrase ("Confucius Cult"). Use LC's inverted form: "Temples, Confucian" works; "Confucian temples" gives 0. The split search is a little wide: it returns records that carry all the parts, not always inside one heading. At U-M, Humanities -- Electronic information resources gives 55 this way and 32 as one phrase (the website shows 34). So read the subjects of the records, and for a short heading also try it as one phrase without the dashes.Song, Yingxing, 1587-approximately 1666. Dian gong kai wu. Only the subdivisions $v $x $y $z are joined with --, e.g. Science -- China -- History.Retry-After). If a later page of search_all() still fails, it raises IncompleteResults; the records fetched so far are in its .records.ap01), so they go one per second.python scripts/alma_sru.py libraries
python scripts/alma_sru.py search --library oxford --title 明史 --language chi --limit 5
python scripts/alma_sru.py search --library oxford,cambridge,edinburgh --oclc 424023
python scripts/alma_sru.py search --library all --isbn 9787101003277 --limit 1
python scripts/alma_sru.py search --library berkeley,ucla --cql 'alma.title=明史 and alma.main_pub_date<1900' --sort date_asc
python scripts/alma_sru.py search --library toronto --title "Ming shi" --json
python scripts/alma_sru.py search --library ntu,nccu,ccu --subject 歷史地理 --limit 3
python scripts/alma_sru.py record --library penn 9960332043503681
from scripts.alma_sru import AlmaSRU, search_many, resolve_libraries
# One library
oxford = AlmaSRU("oxford")
result = oxford.search(title="明史", language="chi", limit=10)
for rec in result["records"]:
print(rec["title"], rec["year"], rec["url"])
for h in rec["holdings"]["physical"]:
print(" ", h["library"], h["call_number"], h["availability"])
# Many libraries: {key: result}; a failing library gets {"error": ...}
results = search_many(resolve_libraries("all"), oclc="424023", limit=1)
holders = [k for k, r in results.items() if r.get("total")]
from scripts.alma_sru import IncompleteResults
try:
records = AlmaSRU("sydney").search_all(title="kong miao", max_results=500)
except IncompleteResults as e: # a later page failed after retries
records = e.records # keep what was fetched; say the list is partial
oxford.search_all(subject="China History Ming dynasty", max_results=200)
oxford.get_record("991027744457507026")
Search fields: keyword, title, author, subject, isbn, issn, oclc, lccn, publisher, series, call_number, language (MARC code: chi, jpn, kor), mms_id. Sort: date_desc, date_asc, title, author.
Each summary has mms_id, title, titles, author, authors, contributors, edition, publication, year, language, physical_description, series, subjects, isbns, oclc, lccn, lc_call_number, classifications, subject_headings, holdings, and url. Search results also carry library, total, and query.
Cataloging fields (for comparing cataloging traditions): subject_headings lists each 6XX heading with its vocabulary (lcsh, csht = Taiwan's Chinese subject headings, fast, mesh, …), and classifications lists each class number with its scheme (lcc, ddc, ncsclt = 中文圖書分類法, the Chinese classification used in Taiwan, …). subjects stays a plain list of strings.
oclc or isbn to compare holdings. Title searches return different editions at each library.all if needed.url to check live status or request items.references/api_reference.md — endpoints, how to add a library, CQL syntax, indexes, MARC and AVA/AVE guidescripts/alma_sru.py — client and CLI (zero dependencies); the LIBRARIES tabletests/test_alma_sru.py — offline tests (python -m unittest discover -s tests)Report a problem. This skill is part of the public repository kltng/humanities-skills. If it fails (an API changed, a script errors, or these instructions are wrong), report it as a GitHub issue:
gh issue list --repo kltng/humanities-skills --state all --search "alma-sru-catalogs"gh issue create --repo kltng/humanities-skills --label bug --title "[alma-sru-catalogs] <short summary>" --body "<details>". Without gh, give the user this link: https://github.com/kltng/humanities-skills/issues/new?template=skill-problem.ymlCredit the source. The records belong to the library that answered the search; name the library as the source of catalog data you use. When you report holdings, name each library in full (for example "Bodleian Libraries, University of Oxford" or "國立臺灣大學圖書館"). Some libraries have their own open-data terms; for example, Princeton releases its catalog data under CC0 and asks for attribution when possible. The search interface (SRU) is a feature of Alma, the library system made by Ex Libris (part of Clarivate). Ex Libris says SRU is meant for looking up records (interlibrary loan, copy cataloging, selection), not for bulk export, so keep searches small.
Cite. If this skill helped work that is published, please cite it, together with the source credited above:
Tang, Kwok-leong. humanities-skills: alma-sru-catalogs (version ). GitHub, . https://github.com/kltng/humanities-skills
When you help a user write up results that relied on this skill, remind them once about this citation and the credit above.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
library-catalogs, sru, cql, marc-records, cross-library-search
/alma-sru-catalogs:alma-sru-catalogsfrom alma-sru-catalogs
npx claudepluginhub kltng/humanities-skills --plugin alma-sru-catalogsOther plugins' skills for the same job