Searches the University of Michigan Library catalog (Alma SRU) for books, journals, manuscripts, and e-resources. Handles CQL queries, MARCXML records, and vernacular scripts. Includes a robust 'find' routine that tries multiple title/author wordings to avoid false negatives from accents, hyphens, or subtitles.
Ships in umich-library-catalog. 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 U-M Library's catalog (Alma) for print and online holdings. No API key needed.
U-M runs its catalog on Ex Libris Alma. Alma has a public SRU interface (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.
https://umich.alma.exlibrisgroup.com/view/sru/01UMICH_INST
?version=1.2&operation=searchRetrieve&recordSchema=marcxml
&query=alma.title="明史"&maximumRecords=10
U-M's public search site and its backend API (search.lib.umich.edu/spectrum/...) sit behind a Cloudflare bot check. Scripts get HTTP 403 with a "Just a moment…" page. The mlibrary/spectrum repo has an MCP server, but it only runs inside U-M. Use Alma SRU instead. Use search.lib.umich.edu/catalog/record/{mms_id} only as a link for people to open in a browser. (An agent that drives a real browser can use the website like a person does. The website search is more forgiving than SRU: it treats traditional and simplified characters as the same, and its counts differ from SRU counts.)
One search that returns 0 does not show that U-M lacks the book. In a test run, an agent checked seven references with one search each and reported five as "0". U-M has all five. The searches failed on a subtitle, an accent (Cœdès, Śrīvijaya), a hyphen, and a reprint under a new title.
To check whether U-M 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/umich_api.py find --title "The Indianized States of Southeast Asia" --author "George Cœdès"
In Python: um.find("The Fall of Śrīvijaya in Malay History", author="O. W. Wolters") returns status, matched_by, records, tried, and note.
status is one of three. found: the title matched; still read the record. possible: only the author and a few title words matched, so read the records; 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 "U-M does not have it". Give the person the website link to check by hand: https://search.lib.umich.edu/catalog?query=...
The keyword index (alma.all_for_ui) and the author index (alma.creator) match a phrase. keyword="明實錄" gives 36 records, keyword="明实录" gives 31, and the two together give 60 different records, which is what the website returns for the phrase in quotes. author="George Cœdès" gives 0 because the heading is "Cœdès, George"; search the surname alone, or "Cœdès, George".
For Chinese, Japanese, and Korean keywords, search the traditional form, the simplified form, and the romanization, and merge by mms_id.
Each MARC record includes Alma availability fields:
$q library name, $c location, $d call number, $e available/unavailable, $f item count, $t volume summary.$m collection, $t interface (platform), $e Available, $u access link (when the library supplies one).The script reads both into 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.
Like most US catalogs, the main fields (245 title, 100 author, 260/264 publisher) are romanized (pinyin, Hepburn, McCune-Reischauer). The original script is in a linked 880 field. The script pairs them, so title reads 八史經籍志 (Ba shi jing ji zhi).
You can search in either script. alma.title="明史" and alma.title="Ming shi" both work but return different sets, so try both for full coverage.
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.maximumRecords). Page with startRecord (1-based).... sortBy alma.main_pub_date/sort.descending. The sortKeys parameter is ignored. Sortable: title, creator, main_pub_date. Records with unknown dates (uuuu) sort first in ascending order; add cql="alma.main_pub_date>=1000" to drop them. 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: subject="China -- History -- Ming dynasty, 1368-1644 -- Sources" becomes four AND'd clauses and gives 538 records. In raw CQL do the same by hand. Do not send a long heading as one phrase: alma.subjects="China History Ming dynasty, 1368-1644 Sources" gives 2, and with -- inside the quotes it gives 0. Short headings work as one phrase ("Confucius Cult", "Ming shi lu"). 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.hint key. Change the wording and search again before you report a zero.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.references/api_reference.md.urllib.parse.quote). Raw Chinese or quotes in the URL give HTTP 400.alma.lc_class_number=DS753* (no quotes around the term).FILM CS ...)# Title search in Chinese, Chinese-language only, oldest first
python scripts/umich_api.py search --title 明史 --language chi --sort date_asc --limit 5
# Author search
python scripts/umich_api.py search --author "Brook, Timothy" --limit 10
# Raw CQL: pre-1700 imprints with 明史 in the title
python scripts/umich_api.py search --cql 'alma.title=明史 and alma.main_pub_date<1700'
# Call number range, JSON output
python scripts/umich_api.py search --call-number 'DS753*' --json
# Does U-M have this book? Tries several wordings (see "A zero is not a no")
python scripts/umich_api.py find --title "Annotated Sources of Ming History" --author "Wolfgang Franke"
# Follow a subject heading copied from a record
python scripts/umich_api.py search --subject "China -- History -- Ming dynasty, 1368-1644 -- Sources"
# One record by MMS ID; --raw for all MARC fields
python scripts/umich_api.py record 990023071550106381
python scripts/umich_api.py record 990023071550106381 --raw
from scripts.umich_api import UMichCatalogAPI
um = UMichCatalogAPI()
result = um.search(title="明史", language="chi", sort="date_asc", limit=10)
print(result["total"])
for rec in result["records"]:
print(rec["title"], rec["year"])
for h in rec["holdings"]["physical"]:
print(" ", h["library"], h["call_number"], h["availability"])
# Combine fields (AND) or add raw CQL
um.search(author="王守仁", subject="Philosophy, Chinese")
um.search(cql="alma.main_pub_date>=1600 and alma.main_pub_date<1700", keyword="王陽明")
# Identifier lookups
um.search(isbn="9787101003277")
um.search(oclc="424023")
# More than 50 results
records = um.search_all(subject="China History Ming dynasty", max_results=200)
# Single record
rec = um.get_record("990023071550106381")
marc = um.get_record("990023071550106381", raw=True) # full MARC fields
Search field names: keyword, title, author, subject, isbn, issn, oclc, lccn, publisher, series, call_number, language (MARC code: chi, jpn, kor, eng), mms_id. Sort: date_desc, date_asc, title, author.
{
"mms_id": "990023071550106381",
"title": "八史經籍志 (Ba shi jing ji zhi)",
"titles": [{"romanized": "Ba shi jing ji zhi", "vernacular": "八史經籍志"}],
"author": "",
"publication": "[蘇州] : [振新印書社], 光緖8年 [1882] ([Suzhou] : ...)",
"year": "1882",
"language": "chi",
"subjects": ["..."],
"isbns": [], "oclc": ["..."], "lccn": [],
"lc_call_number": "Z3102 .P15",
"classifications": [{"scheme": "lcc", "number": "Z3102 .P15"}],
"subject_headings": [{"heading": "Chinese literature -- Bibliography", "source": "lcsh", "tag": "650"}],
"holdings": {
"physical": [{"library": "Buhr Shelving Facility", "location": "Main",
"call_number": "Z 3102 .P15", "availability": "available",
"items_total": "2", "items_unavailable": "0", "summary": "(v.1-16 1883)"}],
"electronic": []
},
"url": "https://search.lib.umich.edu/catalog/record/990023071550106381"
}
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.
language (chi, jpn, kor) when a title word is common in many languages.oclc or isbn to match an item found in another catalog. These are exact.url so they can see live circulation status, request items, or check "Get This" options in a browser.Retry-After. Do not loop over thousands of pages.references/api_reference.md — SRU parameters, CQL syntax, index list, MARC and AVA/AVE field guidescripts/umich_api.py — Python client and CLI (zero dependencies)tests/test_umich_api.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 "umich-library-catalog"gh issue create --repo kltng/humanities-skills --label bug --title "[umich-library-catalog] <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 University of Michigan Library; name the library as the source of catalog data you use. U-M publishes no fixed credit line for catalog data (checked 2026-11-14); "catalog data from the University of Michigan Library" with the record ID is enough. 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: umich-library-catalog (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-catalog, sru, cql, marcxml, alma, university-of-michigan
/umich-library-catalog:umich-library-catalogfrom umich-library-catalog
npx claudepluginhub kltng/humanities-skills --plugin umich-library-catalogOther plugins' skills for the same job