
Libofcongress Mcp Server
Plugs Claude into three Library of Congress APIs: the main digital collections search (with format, date, subject, and location filters), Chronicling America's newspaper archive with full OCR text extraction, and the LC Subject Headings authority file. You get six tools that cover discovery, full metadata retrieval, and newspaper page text fetching. The newspaper tools are the standout piece. They return OCR excerpts inline during search, then pull complete ALTO XML text for individual pages, which is useful for historical research or citation work that needs the actual digitized words, not just catalog records. Also exposes a resource template for stable item references.
- GitHub stars
- 6
- tools
- 6
- transport
- STDIO, HTTP
- env vars
- 9
- last updated
- Nov 3, 2026
Install
From registry metadata$ npx add-mcp https://libofcongress.caseyjhand.com/mcp --name libofcongressRun in your terminal. add-mcp asks which agents to add it to (Claude Code, Codex, Cursor and more). Add -g to install it for every project.
Review the command, arguments and environment values before installing. MCP servers run with your local permissions.
Other ways
Claude Code
$ claude mcp add --transport http libofcongress https://libofcongress.caseyjhand.com/mcpRun in your terminal. Add --scope user to make it available in every project.
Tools
Verified live · 6 toolsVerified live against the running server on Nov 6, 2026.
libofcongress_search_itemsSearch the Library of Congress digital collections by keyword. Optionally filter by material format (photos, maps, newspapers, audio, etc.), date range, subject heading, or geographic location, or scope the search to a single curated collection with collection_slug. Returns it...11 params
Search the Library of Congress digital collections by keyword. Optionally filter by material format (photos, maps, newspapers, audio, etc.), date range, subject heading, or geographic location, or scope the search to a single curated collection with collection_slug. Returns it...
collection_slugstringdate_endintegerdate_startintegerformatstringphoto · map · newspaper · manuscript · audio · filminclude_facetsbooleanlimitintegerlocationstringpageintegerquery*stringsortstringrelevance · date · date_descdefault: relevancesubjectstringlibofcongress_get_itemRetrieve the full metadata record for a specific LOC digital item. Returns the imprint (place, publisher, and date of publication), contributors, LCSH subject headings and the subject terms the search subject filter accepts, summary, languages, locations, rights information, p...4 params
Retrieve the full metadata record for a specific LOC digital item. Returns the imprint (place, publisher, and date of publication), contributors, LCSH subject headings and the subject terms the search subject filter accepts, summary, languages, locations, rights information, p...
include_filesbooleanitem_id*stringpage_limitintegerpage_offsetintegerlibofcongress_search_newspapersSearch historical newspaper pages in the Chronicling America corpus. Returns matching pages with the opening of each page's OCR text (~500 characters), publication title, date, the states LOC indexes the title under, and the page URL needed for libofcongress_get_newspaper_page...8 params
Search historical newspaper pages in the Chronicling America corpus. Returns matching pages with the opening of each page's OCR text (~500 characters), publication title, date, the states LOC indexes the title under, and the page URL needed for libofcongress_get_newspaper_page...
date_endvaluedate_startvaluelimitintegernewspaper_titlestringpageintegerquery*stringsortstringrelevance · date · date_descdefault: relevancestatestringlibofcongress_get_newspaper_pageRetrieve the full text of one LOC page — a historical newspaper page, or a book or manuscript page — or, with match, only the passages around your search terms, with its publication metadata: for newspapers the title, issue date, place of publication, indexed states, and editi...2 params
Retrieve the full text of one LOC page — a historical newspaper page, or a book or manuscript page — or, with match, only the passages around your search terms, with its publication metadata: for newspapers the title, issue date, place of publication, indexed states, and editi...
matchstringpage_url*stringlibofcongress_search_subjectsSearch Library of Congress Subject Headings (LCSH) by keyword. Returns authorized subject headings and their URIs in a stable paged order, promoting an exact match from the first 50 results to the start; a partial word with no keyword match returns the headings that begin with...3 params
Search Library of Congress Subject Headings (LCSH) by keyword. Returns authorized subject headings and their URIs in a stable paged order, promoting an exact match from the first 50 results to the start; a partial word with no keyword match returns the headings that begin with...
limitintegeroffsetintegerquery*stringlibofcongress_browse_collectionsList and browse Library of Congress curated digital collections. Returns collection names, descriptions, item counts, slugs, and URLs. Optionally filter by keyword. Collections are curated subsets of the digital holdings with specific focuses (e.g., "Civil War Glass Negatives"...3 params
List and browse Library of Congress curated digital collections. Returns collection names, descriptions, item counts, slugs, and URLs. Optionally filter by keyword. Collections are curated subsets of the digital holdings with specific focuses (e.g., "Civil War Glass Negatives"...
limitintegerpageintegerquerystringSponsors
Configuration
LOC_USER_AGENTdefault: libofcongress-mcp-server/0.6.0User-Agent header sent with LOC API requests. LOC recommends a descriptive value for polite access.
LOC_REQUEST_DELAY_MSdefault: 3100Delay in milliseconds between LOC API requests to stay under the 20 req/min rate limit.
MCP_LOG_LEVELdefault: infoSets the minimum log level for output (e.g., 'debug', 'info', 'warn').
MCP_SESSION_MODEdefault: statelessHTTP session mode: auto, stateful, or stateless.
MCP_TRANSPORT_TYPEdefault: httpSelects the HTTP transport.
MCP_HTTP_HOSTdefault: 127.0.0.1The hostname for the HTTP server.
MCP_HTTP_PORTdefault: 3010The port to run the HTTP server on.
MCP_HTTP_ENDPOINT_PATHdefault: /mcpThe endpoint path for the MCP server.
MCP_AUTH_MODEdefault: noneAuthentication mode to use: 'none', 'jwt', or 'oauth'.
Readme
@cyanheads/libofcongress-mcp-server
Search LOC digital collections, browse Chronicling America newspapers with full OCR text, and look up LC Subject Headings via MCP. STDIO or Streamable HTTP.
Details
- Repository
- github.com/cyanheads/libofcongress-mcp-server
- Category
- Search & Web Crawling
- Package
@cyanheads/libofcongress-mcp-server- Transport
- STDIO, HTTP
- Registry
- MCP registry, active
- Resources
- 1
- Tools verified
- Nov 6, 2026
More from cyanheads
- Orcid Mcp Server6
- Protein Mcp Server6
- Wikipedia Mcp Server6
- Cdc Health Mcp Server5
- Usaspending Mcp Server5
- Openstreetmap Mcp Server9
- Biorxiv Mcp Server4
- Brapi Mcp Server4
- Courtlistener Mcp Server4
- Crossref Mcp Server4
- Internet Archive Mcp Server4
- Met Museum Mcp Server4
- Noaa Spaceweather Mcp Server4
- Openfda Mcp Server4
- Openlibrary Mcp Server4
- Un Comtrade Mcp Server4
- Aviation Weather Mcp Server3
- Devops Status Mcp Server3
- Earthquake Mcp Server3
- Eia Energy Mcp Server3
- Ensembl Mcp Server3
- Noaa Marine Mcp Server3
- Openstates Mcp Server3
- Treasury Fiscaldata Mcp Server3