Skip to main content
Glama

libofcongress-mcp-server

Server Details

Search LOC digital collections, Chronicling America newspapers (full OCR), and LC Subject Headings.

If you are the author of this connector, you can claim ownership. Claimed connector authors can inspect health checks, view analytics, and manage their listing.
Status
Healthy
Uptime
100.0% over the last 24 hours
Last Tested
Transport
Streamable HTTP · MCP 2025-11-25
URL
Repository
cyanheads/libofcongress-mcp-server
GitHub Stars
6
Server Listing
@cyanheads/libofcongress-mcp-server
ChatGPT
–
Claude
–

TDQS

A4.4/5.0

Scored across 6 tools

Disambiguation4/5

Each tool has a distinct core action (browse collections, search items, search newspapers, search subjects, get item, get page text), and the descriptions explicitly define handoffs between them. Minor overlap exists between libofcongress_browse_collections and libofcongress_search_items.collection_slug, and between get_item and get_newspaper_page for page text, but the descriptions clarify when to use each.

Naming Consistency5/5

All six tools use the same libofcongress_ prefix followed by a clear verb_noun pattern (browse_collections, search_items, search_newspapers, search_subjects, get_item, get_newspaper_page). The convention is uniform and predictable.

Tool Count5/5

Six tools is well-scoped: two discovery/browse entrypoints, three searches scoped to distinct corpora, and two retrieval tools. Each earns its place with no redundant tool.

Completeness4/5

The surface covers the full discovery-to-retrieval lifecycle: browse collections, keyword/faceted search across items and newspapers, subject lookup, full item metadata, and full page/OCR text. Minor gaps remain, such as no direct tool for browsing exhibits/guides or retrieving raw file downloads as a first-class operation, but these are workable through existing tools.

Available Tools

6 tools
libofcongress_browse_collectionsBrowse LOC CollectionsA
Read-only
Inspect

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", "Baseball Cards", "WPA Posters"). Pass a returned slug to libofcongress_search_items.collection_slug to search within it; use query "*" to browse matching records, optionally with format, date and sort filters. Use the returned URL to navigate directly to a collection on loc.gov.

Inputs: page, limit, query. Returns: page, error, pages, total, +5 more

libofcongress_get_itemGet LOC ItemA
Read-only
Inspect

Retrieve the full metadata record for a specific LOC digital item. Returns the imprint (place, publisher, and date of publication), contributors as cataloged and the contributor terms the search contributor filter accepts, LCSH subject headings and the subject terms the search subject filter accepts, summary, languages, locations, rights information, physical description, call number, original and online formats, access restrictions, former catalog IDs, notes, and related items, plus the item's digital resources (each with its page count, representative image, PDF, audio or video file, and download restriction; a recording, tape side, or film reel LOC sends with only its media file has no url and no pages) and a window of its pages. Each page has a page_url and has_text; pass a page_url with has_text true to libofcongress_get_newspaper_page to read that page's text (newspaper, book, and manuscript pages alike). A resource with has_transcription true holds one transcription of its whole document: pass any of its page_urls, even with has_text false, to read it. A long item lists 50 pages per call: continue with page_offset set to next_page_offset. Set include_files for each listed page's downloadable files (TIFF, JP2, JPEG sizes, text). Use after libofcongress_search_items on a result whose is_item is true. Pass the result id — a simple ID, an LCCN, or a slash-separated newspaper path — or a loc.gov item link (https://www.loc.gov/item/<id>/) or LCCN permalink (https://lccn.loc.gov/<lccn>), which is read as its id. Non-item results (is_item: false) — collections, exhibits, guides, newspaper pages, catalog.loc.gov records, hdl.loc.gov finding aids — have no item record and cannot be retrieved here.

Inputs: item_id (required), page_limit, page_offset, include_files. Returns: url, date, error, notes, +25 more

libofcongress_get_newspaper_pageGet Newspaper PageA
Read-only
Inspect

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 edition; for every page its sequence, the page count, and the item_title and item_id of the issue, book, or manuscript it belongs to — pass item_id to libofcongress_get_item to list every page of the item. Pass the url field from a libofcongress_search_newspapers result, or a pages[].page_url from libofcongress_get_item (has_text true, or any page of a resource with has_transcription true), or a Chronicling America page link (…/ed-N/seq-M/) — do not construct this URL manually. A dense newspaper page runs to 50,000 characters, and the transcription of a long pamphlet past 200,000: to find the article a search hit on, or one passage of a long document, pass the search query as match and read the passages around it rather than the whole text. The text is OCR, or for some manuscripts a volunteer transcription; for manuscripts and printed pamphlets LOC transcribed as one document (the Lincoln papers among them), it is that transcription of the whole document, the same on every page of it (text_scope "document", credited in text_attribution when LOC names a transcriber); a manuscript's comes without the editors' notes or the wording the writer canceled. OCR quality varies by digitization batch and era, and 19th-century and degraded materials may contain fragmented text, garbled words, and line-break artifacts that are surfaced as-is. When a page exists but has no digitized text, ocr_available is false and ocr_text is empty — this is a data property, not an error.

Inputs: page_url (required), match. Returns: date, error, notice, states, +14 more

libofcongress_search_itemsSearch LOC ItemsA
Read-only
Inspect

Search the Library of Congress digital collections by keyword. Optionally filter by material format (photos, maps, newspapers, audio, etc.), date range, subject heading, geographic location, or contributor (a creator, photographer, author, or other credited name), or scope the search to a single curated collection with collection_slug. Returns item summaries with titles, dates, descriptions, LOC IDs, format tags, and the contributors LOC credits. Each result carries is_item: pass the id of a result where is_item is true to libofcongress_get_item for full metadata. Non-item resources include collections, exhibit and research-guide pages, newspaper pages, catalog.loc.gov records, and hdl.loc.gov finding aids. When page_url is present, pass it to libofcongress_get_newspaper_page, optionally using the search query as match; its item_id identifies the issue. A link_notice warns that a retired catalog URL no longer opens its record; otherwise follow a non-item url. Use libofcongress_search_subjects to find an LCSH heading for the subject filter. To discover the subject, location, and contributor values the filters accept for a search, set include_facets to get its top subject_facets, location_facets, and contributor_facets.

Inputs: query (required), page, sort, limit, +8 more. Returns: page, error, items, pages, +12 more

libofcongress_search_newspapersSearch Historical NewspapersA
Read-only
Inspect

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, the page's languages, and the page URL needed for libofcongress_get_newspaper_page. Filters by keyword, date range, indexed state/province, newspaper title, and language. The excerpt is the page's first lines, not the text around the match: to read where the query occurs, call libofcongress_get_newspaper_page with the returned url field and this query as its match, which returns the passages around each occurrence; omit match for the full page text. OCR quality varies: 19th-century and degraded materials may contain fragmented or garbled text. To discover the newspaper_title, state, and language values the filters accept for a search, set include_facets to get its top newspaper_title_facets, state_facets, and language_facets.

Inputs: query (required), page, sort, limit, +6 more. Returns: page, error, items, pages, +10 more

libofcongress_search_subjectsSearch LC Subject HeadingsA
Read-only
Inspect

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 it. Use the returned label as the subject filter in libofcongress_search_items — LCSH uses precise, standardized terms that differ from natural language (e.g., "World War, 1939-1945" not "World War II"; "Aerial photography" not "Photography, Aerial"). Running this tool before a subject-filtered libofcongress_search_items dramatically improves result quality.

Inputs: query (required), limit, offset. Returns: cap, error, shown, total, +6 more

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables full-text search of digitized historical U.S. newspapers from the Library of Congress Chronicling America collection, returning publication metadata and page-scan image URLs with filters for date range and state.
      177 npm
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables Claude to search, browse, and read more than 20 million digitized historical US newspaper pages from the Library of Congress's Chronicling America archive, covering the 1700s through 1963. Queries can be filtered by date range, state, newspaper, or front pages only, and results include full OCR text with citations and links back to each scan and PDF.
      4
      MIT
    Try in Browser

    Glama MCP Gateway

    Add one secure layer between your agents and this server.