Searches Northwestern University Libraries' Digital Collections (photographs, art, manuscripts, maps, audio, video) via public API or hosted MCP server, with IIIF manifests for every item.
Ships in northwestern-digital-collections. 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 Northwestern University Libraries' digitized collections. No API key needed for public items.
Northwestern publishes its Digital Collections API (v2) and a hosted MCP server for AI assistants. Both are official and public. The collections are digitized objects, not the full library catalog: over 100,000 works in about 186 collections.
Search: GET https://api.dc.library.northwestern.edu/api/v2/search/works?query=Yungang&size=10
DSL: POST https://api.dc.library.northwestern.edu/api/v2/search/works (OpenSearch JSON body)
Work: GET https://api.dc.library.northwestern.edu/api/v2/works/{id}
IIIF: GET https://api.dc.library.northwestern.edu/api/v2/works/{id}?as=iiif
MCP: https://api.dc.library.northwestern.edu/api/v2/mcp (streamable HTTP)
If MCP tools are welcome, this is the simplest route. It gives tools such as search, similarity-search, get-work, view-work, and list-collections.
claude mcp add --transport http dc-api https://api.dc.library.northwestern.edu/api/v2/mcp
Tested on 2026-10-25: it answers without login. Ask the user before adding it, because it changes their Claude Code settings.
python scripts/northwestern_dc.py search Yungang --limit 5
python scripts/northwestern_dc.py search 'subject.label:"China" AND work_type:Image' --sort date_created:asc
python scripts/northwestern_dc.py search 'collection.title:"Rob Linrothe Image Collection" AND Yungang'
python scripts/northwestern_dc.py search --dsl '{"query": {"match": {"title": "Shanghai"}}}'
python scripts/northwestern_dc.py work a84ea83c-bf11-4c4f-89ac-87a951b9ce58
python scripts/northwestern_dc.py collections --limit 50
from scripts.northwestern_dc import NorthwesternDC
dc = NorthwesternDC()
result = dc.search('subject.label:"China" AND work_type:Image', limit=20, sort="date_created:asc")
for w in result["records"]:
print(w["title"], w["dates"], w["url"], w["iiif_manifest"])
dc.get_work("a84ea83c-bf11-4c4f-89ac-87a951b9ce58")
dc.collections(limit=200)
Each work summary has id, title, alternate_titles, work_type, dates, creators (with roles), subjects, genres, languages, places, materials, description, collection, library_unit, accession_number, rights, visibility, url (public page), iiif_manifest, and thumbnail.
query, not q?q=... is silently ignored and returns every item (over 130,000 hits). The script uses query.
query takes OpenSearch query-string syntax:
Yungang · phrase: "Juyong Guan" · CJK: always quoted, "雲岡"title:Beijing, work_type:Image (Image, Audio, Video), subject.label:"China", collection.title:"..."subject.label, contributor.label, collection.title) match the whole label: use the exact form (contributor.label:"Linrothe, Robert N., 1951-") or a wildcard (contributor.label:Linrothe*)Shanghai AND work_type:Image, China NOT Japandate_created:asc, create_date:desc, title.keyword:ascFor anything more complex, send a full OpenSearch body with --dsl.
The search splits CJK text into single characters and ORs them, so an unquoted CJK query matches any one character: 孔廟 returns 1,794 unrelated items (a Sgt. Pepper insert, a blimp cutout, a gurdwara). Always quote CJK terms: a quoted term matches only the whole term ("孔廟" returns 0). The same applies to fields: title:"北京".
Most records are in English with romanized names. Search Yungang, Shanxi, Juyong Guan, not only characters.
Full records include vector embeddings and file lists. The script leaves those out of searches (_source_excludes). Use work --raw for the complete record.
rights before reusing images.University of Minnesota's UMedia has a search.json endpoint, but its robots.txt explicitly disallows /search.json for automated clients, item pages return 403 to scripts, and its ContentDM host disallows everything. Do not build on it without the library's permission.
references/api_reference.md — endpoints, parameters, query syntax, record fields, MCP toolsscripts/northwestern_dc.py — client and CLI (zero dependencies)tests/test_northwestern_dc.py — offline testsReport 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 "northwestern-digital-collections"gh issue create --repo kltng/humanities-skills --label bug --title "[northwestern-digital-collections] <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 items come from Northwestern University Libraries' Digital Collections, through the NUL Digital Collections API. The Libraries publish no general terms or credit line for the API (checked 2026-11-14). Credit each item as "Northwestern University Libraries", with the collection name, the item title and the item URL. Each item has its own rights statement in rights; follow it, and ask the Libraries when it is unclear.
Cite. If this skill helped work that is published, please cite it, together with the source credited above:
Tang, Kwok-leong. humanities-skills: northwestern-digital-collections (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
/northwestern-digital-collections:northwestern-digital-collectionsfrom northwestern-digital-collections
npx claudepluginhub kltng/humanities-skills --plugin northwestern-digital-collectionsOther plugins' skills for the same job