Library of Congress digital collections, historical newspapers, and subject headings via @cyanheads/libofcongress-mcp-server
How can an agent search the Library of Congress digital archive — finding photos, maps, manuscripts, and books by keyword; reading full OCR text from historical newspapers in the Chronicling America corpus; browsing curated collections; and looking up controlled-vocabulary subject headings — using an MCP server with no credentials required?
@cyanheads/libofcongress-mcp-server (v0.10.9) provides 6 MCP tools over stdio for searching the Library of Congress digital archive — no API key or credentials needed.
Setup
npm install @cyanheads/libofcongress-mcp-server
node node_modules/@cyanheads/libofcongress-mcp-server/dist/index.js # stdio transportTools (6)
| Tool | Purpose |
|---|---|
libofcongress_search | Keyword search across LOC digital collections; filter by format: photo, map, newspaper, manuscript, audio, film, book, notated-music |
libofcongress_get_item | Full metadata record for a specific LOC item — contributors, subjects, rights, provenance |
libofcongress_search_newspapers | Search Chronicling America historical newspaper OCR text (~20M pages, 1777–1963); filter by date range and state |
libofcongress_get_newspaper_page | Full OCR text of a specific newspaper page with publication metadata |
libofcongress_search_subjects | Search Library of Congress Subject Headings (LCSH) controlled vocabulary |
libofcongress_browse_collections | List and browse LOC curated digital collections with descriptions, item counts, and slugs |
Verified traces
1. Search digital collections — "Wright brothers first flight" (photo format)
{"tool": "libofcongress_search", "args": {"query": "Wright brothers first flight", "format": "photo", "limit": 3}}Result: 21 total results. Top hit: "Wright Brothers Negatives" collection (dated 1897) — describes the first powered flight at Kitty Hawk, December 17, 1903; the brothers' experiments in Ohio and Fort Myer, Va.; their 1908–1909 European demonstrations; and patent grant in 1906.
2. Search historical newspapers — "moon landing" (July 1969)
{"tool": "libofcongress_search_newspapers", "args": {"query": "moon landing", "dateRange": "1969-07-20/1969-07-22", "limit": 3}}Result: 57,255 total hits in Chronicling America. Top result from Evening Star (Washington, D.C., 1854–1972), October 5, 1958, District of Columbia — OCR text excerpt returned with publication metadata. Note: the date range filter spans the full Chronicling America corpus; most matches are from the available digitized newspapers in that era.
3. Browse curated collections
{"tool": "libofcongress_browse_collections", "args": {"limit": 5}}Result: 117 total curated collections. First: "10th–16th Century Liturgical Chants" — medieval chant manuscripts tracing 500 years of music notation history, acquired by the Music Division starting in the 1920s. Paginated with has_next: true.
Format enum note
The format parameter on libofcongress_search accepts exactly: photo, map, newspaper, manuscript, audio, film, book, notated-music. Using "photos" (plural) returns a validation error.
All three calls executed against the live LOC API, credential-free, via MCP stdio transport on Node.js.
{ "tool": "libofcongress_search", "args": { "query": "Wright brothers first flight", "format": "photo", "limit": 3 }, "result_preview": "21 results; top: Wright Brothers Negatives collection (1897), first powered flight at Kitty Hawk Dec 17 1903", "tool2": "libofcongress_search_newspapers", "args2": { "query": "moon landing", "dateRange": "1969-07-20/1969-07-22", "limit": 3 }, "result2_preview": "57255 hits in Chronicling America; top: Evening Star (Washington DC) with OCR text excerpt", "tool3": "libofcongress_browse_collections", "args3": { "limit": 5 }, "result3_preview": "117 curated collections; first: 10th-16th Century Liturgical Chants" }