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 with GitHub, an HTTP challenge, or a DNS record. Claimed connector authors can inspect health checks, view analytics, and manage their listing.
Status
Healthy
Last Tested
Transport
Streamable HTTP · MCP 2025-11-25
URL
Repository
cyanheads/libofcongress-mcp-server
GitHub Stars
4
Server Listing
@cyanheads/libofcongress-mcp-server

TDQS

A4.4/5.0

Scored across 6 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: browsing collections, retrieving item metadata, retrieving newspaper OCR text, searching general collections, searching newspapers, and searching subject headings. The descriptions explicitly cross-reference each other to guide selection, leaving no ambiguity about which tool fits a given task.

Naming Consistency5/5

All tools follow a consistent libofcongress_ prefix with verb_noun naming (browse_collections, get_item, get_newspaper_page, search, search_newspapers, search_subjects). The pattern is uniform and predictable, with snake_case throughout.

Tool Count5/5

Six tools is well-scoped for the server's purpose of exploring Library of Congress resources. Each tool addresses a distinct capability—search, browse, retrieval, and subject assistance—without redundancy or bloat, making the surface manageable for agents.

Completeness4/5

The tool set covers the core workflows: discovering collections, searching across formats, drilling into item details, and handling newspaper-specific data. Minor gaps exist (e.g., no direct tool for listing all newspapers or retrieving collection-level metadata beyond summary), but these are acceptable and do not block common user goals.

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"). Use the returned URL to navigate directly to a collection on loc.gov.

ParametersJSON Schema
NameRequiredDescriptionDefault
pageNo1-indexed page number for paginating results.
limitNoMaximum number of collections to return. Default 25, max 100.
queryNoOptional keyword to filter collections by name or description. Omit to list all collections.

Output Schema

ParametersJSON Schema
NameRequiredDescription
pageNoCurrent 1-indexed page number.
errorNoPresent when the call failed. Absent on success.
pagesNoTotal number of pages available.
totalNoTotal number of matching collections across all pages.
noticeNoRecovery hint when results are empty or a page is out of range — suggests broadening the keyword or removing filters. Absent on successful result pages.
has_nextNoTrue when more pages are available after this one.
totalCountNoTotal matching collections — mirrors output.total for agent reasoning.
collectionsNoLOC curated collections matching the keyword filter, or all collections when no keyword is specified.

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and openWorldHint=true, covering the read-only nature and unpredictability of results. The description adds value by listing what is returned (names, descriptions, item counts, slugs, URLs) and advising the use of URLs for direct navigation. It does not contradict annotations and provides useful behavioral context beyond the structured metadata.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three sentences with no fluff. The first sentence front-loads the primary purpose and return type, the second explains the filtering option, and the third provides context and a practical usage tip. Every sentence earns its place, and the structure is efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the presence of an output schema, full parameter descriptions in the input schema, and annotations covering read-only and open-world behavior, the description is complete for an agent to call the tool correctly. It explains what the tool returns and how to use the results, leaving no critical gap for execution.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage for all three parameters (page, limit, query), so the baseline is 3. The description mentions the keyword filter ('Optionally filter by keyword') but does not add any additional semantics about page or limit beyond what the schema already specifies. It reinforces the query parameter but adds no new information.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's function: listing and browsing Library of Congress curated digital collections. It specifies the resource (curated collections) and the action (list/browse), and distinguishes itself from sibling tools by focusing on collections rather than item-level search or retrieval. The inclusion of concrete examples (e.g., 'Civil War Glass Negatives') further clarifies the scope.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context for when to use this tool—when browsing or listing curated collections—and mentions the optional keyword filter. It implies this is the entry point for discovering collections before navigating to specific items, but it does not explicitly name alternatives or state when NOT to use it (e.g., 'For item-level search, use libofcongress_search'). The usage is clear but lacks explicit exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

libofcongress_get_itemGet LOC ItemA
Read-only
Inspect

Retrieve the full metadata record for a specific LOC digital item. Returns contributors, subjects, summary, languages, locations, rights information, physical description, call number, original and online formats, access restrictions, former catalog IDs, notes, related items, and links to digital resources (TIFF, JPEG, PDF) for items with digital surrogates. Use after libofcongress_search on a result whose is_item is true. Pass the result id verbatim — it may be a simple ID or a slash-separated newspaper path; do not prepend the loc.gov URL. Non-item results (is_item: false) — collections, exhibits, guides, newspaper pages — have no item record and cannot be retrieved here.

ParametersJSON Schema
NameRequiredDescriptionDefault
item_idYesLOC item id from a libofcongress_search result's "id" field (where is_item is true). A simple ID ("2009632251", "loc.pnp.ppmsc.02404") or a slash-separated path for newspaper pages ("sn95047246/1935-09-05/ed-1"). Pass the id verbatim; do not prepend the loc.gov URL or an "item/" prefix.

Output Schema

ParametersJSON Schema
NameRequiredDescription
urlNoCanonical LOC item URL.
dateNoPublication or creation date.
errorNoPresent when the call failed. Absent on success.
notesNoDescriptive notes and annotations from catalogers.
titleNoItem title.
item_idNoLOC item ID as resolved by the service (matches the input item_id).
summaryNoCataloger's abstract of the item's subject and historical context.
languagesNoLanguages of the item (e.g., "english").
locationsNoPlaces the item depicts or originates from (e.g., "united states").
former_idsNoSuperseded catalog identifiers or URLs this item was previously known by.
call_numberNoLOC call number — the shelf location for requesting the physical original.
contributorsNoNames of contributors, creators, or photographers.
related_itemsNoIDs or URLs of related LOC items for follow-up retrieval.
online_formatsNoFormats the digitized surrogate is available in (e.g., "image").
resource_linksNoURLs to downloadable digital files (TIFF, JPEG, PDF). Empty when no digital surrogate exists.
original_formatsNoMaterial types of the original (e.g., "photo, print, drawing").
subject_headingsNoLCSH subject headings assigned to this item.
access_restrictedNoTrue when LOC restricts access to the original. Absent when upstream omits it.
rights_informationNoRights and reproduction statement for this item.
physical_descriptionNoPhysical or technical description of the original item.

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already establish readOnlyHint and openWorldHint, and the description adds valuable behavioral context: the exact id forms accepted, the instruction not to prepend the loc.gov URL, the detailed set of returned fields, and the conditional presence of digital-resource links. It stops short of describing not-found or error behavior, but that is a minor gap for a read-only retrieval tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core purpose and then gives structured usage details. The enumerated return fields add length but provide useful expectations about what the full metadata record contains. It is somewhat dense, but every part earns its place with no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter retrieval tool with a rich output schema and annotations covering read-only behavior, the description is complete: it states when to call it, what input to pass, what the output includes, and which results are out of scope. Nothing critical is missing for an agent to invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%: the input schema already explains the id sources, simple-ID versus newspaper-path forms, verbatim passing, and the no-URL-prefix rule. The description reinforces the same guidance but adds no new parameter meaning beyond the schema, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Retrieve the full metadata record for a specific LOC digital item.' It distinguishes itself from search by requiring a prior libofcongress_search result and from newspaper-page retrieval by explicitly stating that non-item results such as newspaper pages have no item record and cannot be retrieved here.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit workflow: 'Use after libofcongress_search on a result whose is_item is true.' It also gives a clear when-not condition, enumerating collections, exhibits, guides, and newspaper pages as invalid. The alternative for newspaper pages is inferable from the sibling list, and the exclusion is stated directly.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

libofcongress_get_newspaper_pageGet Newspaper PageA
Read-only
Inspect

Retrieve the full OCR text of a specific historical newspaper page along with publication metadata. Pass the url field from a libofcongress_search_newspapers result — do not construct this URL manually. OCR quality varies by digitization batch and era: 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.

ParametersJSON Schema
NameRequiredDescriptionDefault
page_urlYesThe url field from a libofcongress_search_newspapers result (e.g., "https://www.loc.gov/resource/sn83045462/1905-03-15/ed-1/seq-1/"). Always pass the value directly from search results — do not construct or modify this URL.

Output Schema

ParametersJSON Schema
NameRequiredDescription
dateNoIssue publication date.
errorNoPresent when the call failed. Absent on success.
stateNoState where the newspaper was published.
noticeNoSet when ocr_available is true but ocr_text is empty — the page has digitized OCR, but the text service did not return it this call. Distinguishes a transient retrieval miss from a genuinely image-only page (where ocr_available is false). Absent when OCR text was returned or the page has no OCR.
editionNoEdition or publication context identifier.
ocr_textNoFull plain-text OCR content for the page. Empty string when ocr_available is false. May contain fragmented words, line-break artifacts, and misspellings inherent to historical OCR — do not attempt to repair.
page_urlNoThe LOC resource URL for this newspaper page.
sequenceNoPage sequence number within the issue.
ocr_availableNoTrue when digitized OCR text exists for this page. False for image-only digitization batches where OCR has not been applied.
newspaper_titleNoTitle of the newspaper publication.

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the readOnlyHint annotation, the description discloses meaningful behavior: OCR quality varies by batch/era, text may be fragmented or garbled, and missing OCR is represented as ocr_available=false with empty ocr_text and is explicitly not an error. This preempts likely misinterpretations by the agent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three focused sentences with no filler. The primary purpose is front-loaded, the critical usage constraint is stated early, and the edge-case behavior is placed at the end without bloating the description.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter read-only retrieval tool with an output schema and 100% schema coverage, the description covers everything needed: what is retrieved, how to obtain the URL, likely data-quality issues, and how to interpret empty OCR results. No essential guidance is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, and the schema already documents the page_url parameter, including an example and an explicit warning not to modify the URL. The description reinforces the same guidance but adds no new semantic information beyond the schema, matching the baseline for full coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Retrieve the full OCR text of a specific historical newspaper page along with publication metadata.' This clearly distinguishes it from the sibling search/browse tools and leaves no ambiguity about what the tool returns.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives clear operational context by instructing the agent to pass the url field from a libofcongress_search_newspapers result and not to construct the URL manually. It implies the correct workflow, though it does not explicitly contrast this tool with siblings such as libofcongress_get_item.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

libofcongress_search_newspapersSearch Historical NewspapersA
Read-only
Inspect

Search historical newspaper pages in the Chronicling America corpus. Returns matching pages with OCR text excerpts (~500 characters), publication title, date, state, and the page URL needed for libofcongress_get_newspaper_page. Filters by keyword, date range, US state, and newspaper title. The OCR excerpts are sufficient for relevance assessment — call libofcongress_get_newspaper_page with the returned url field to read the full page text. OCR quality varies: 19th-century and degraded materials may contain fragmented or garbled text.

ParametersJSON Schema
NameRequiredDescriptionDefault
pageNo1-indexed page number for paginating results.
limitNoResults per page. Default 25, max 100.
queryYesKeyword search across OCR text and newspaper metadata.
stateNoFilter to newspapers published in this US state. Use the full state name, lowercase (e.g., "oklahoma", "new york").
date_endNoEnd year for date filter, inclusive (e.g., 1920). Omit for no upper bound.
date_startNoStart year for date filter, inclusive (e.g., 1900). Omit for no lower bound.
newspaper_titleNoFilter to a specific newspaper by title (partial match accepted).

Output Schema

ParametersJSON Schema
NameRequiredDescription
pageNoCurrent 1-indexed page number.
errorNoPresent when the call failed. Absent on success.
itemsNoNewspaper page results matching the search query and filters.
pagesNoTotal retrievable pages. For result sets larger than LOC will page through (~100,000 pages) this is capped, and a notice discloses how to reach the rest (partition by date/state).
totalNoTotal number of matching newspaper pages in the result set.
noticeNoRecovery hint when results are empty or a page is out of range — echoes applied filters and suggests how to broaden. Absent on successful result pages.
has_nextNoTrue when a retrievable next page follows this one. Never promises a page past LOC's ~100,000-item retrieval ceiling.
totalCountNoTotal matching newspaper pages — mirrors output.total for agent reasoning.
effectiveQueryNoThe keyword query as submitted to the Chronicling America API, after trimming.

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already indicate read-only and open-world behavior. The description adds valuable behavioral context: excerpt length (~500 characters), the warning about OCR quality in 19th-century/degraded material, and the dependency relationship between this tool's url field and get_newspaper_page. It does not disclose ordering/sorting behavior, but that is likely covered by the output schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, each earning its place: the first states purpose and returns, the second gives routing guidance, and the third warns about data quality. Information is front-loaded; no filler or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter tool with a full output schema, the description covers everything an agent needs: what is searched, what is returned, how to proceed to the next step, and data quality caveats. Nothing essential is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description's summary of filters (keyword, date range, state, title) merely mirrors the schema; it adds no new parameter-specific meaning beyond what the property descriptions already provide.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb ('Search'), a precise resource ('historical newspaper pages in the Chronicling America corpus'), and concrete return fields (OCR excerpts, title, date, state, URL). It clearly distinguishes this from the broader libofcongress_search and from libofcongress_get_newspaper_page by framing the page URL as the input to that sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives explicit workflow guidance: OCR excerpts are sufficient for relevance assessment, and the returned url field should be passed to libofcongress_get_newspaper_page for full text. It gives context for when to stop at this tool, but it does not explicitly say when to prefer other siblings like libofcongress_search or search_subjects.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

libofcongress_search_subjectsSearch LC Subject HeadingsA
Read-only
Inspect

Search Library of Congress Subject Headings (LCSH) by keyword. Returns controlled-vocabulary subject labels and their URIs. Use the returned label as the subject filter in libofcongress_search — LCSH uses precise, standardized terms that differ from natural language (e.g., "World War, 1939-1945" not "World War II"; "Photography, Aerial" not "Aerial photography"). Running this tool before a subject-filtered libofcongress_search dramatically improves result quality.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of subject headings to return. Default 10, max 50.
queryYesKeyword or partial subject heading to search for (e.g., "civil war", "immigration", "jazz").

Output Schema

ParametersJSON Schema
NameRequiredDescription
capNoThe limit applied to this response — maximum headings the API will return.
errorNoPresent when the call failed. Absent on success.
shownNoNumber of subject headings returned in this response.
totalNoNumber of subject headings returned.
noticeNoRecovery hint when results are empty, or when the upstream candidate cap under-filled the request. Distinguishes "exhausted by ranking" (retry with a more specific query) from "no LCSH coverage", and suggests inverted-form strategies. Absent when the full requested set was returned.
subjectsNoLCSH subject headings matching the query, ordered by relevance.
truncatedNoTrue when results were capped at the requested limit. Increase limit or refine the query to surface additional headings.
effectiveQueryNoThe keyword query as submitted to the id.loc.gov suggest endpoint, after trimming.

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description adds valuable context: LCSH terms are standardized and differ from natural language, with concrete examples, and that the returned labels are meant to be fed into a downstream search. This goes beyond the annotations without contradicting them.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three sentences with no filler: it states the action, the return value, and the downstream usage rationale. The parenthetical examples are instructive rather than redundant, and the most important scoping information is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter lookup tool with a full input schema, output schema present, and safety annotations, the description tells an agent everything needed to invoke it correctly: what to search, what it returns, and how to use the result. No critical context is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema already documents both parameters with 100% coverage, including examples for query and constraints for limit. The description adds little parameter-specific meaning beyond calling the search 'by keyword,' so the baseline of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Search Library of Congress Subject Headings (LCSH) by keyword.' It clearly states the output (controlled-vocabulary subject labels and URIs) and distinguishes the tool's role from the sibling libofcongress_search by positioning this as the subject-term lookup step.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives explicit when-to-use guidance: run this tool before a subject-filtered libofcongress_search, and use the returned label as the subject filter. It does not enumerate when-not-to-use cases or compare against alternative lookups, so it stops short of a full 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

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

  1. 6 tool updates
    • First observedlibofcongress_browse_collections
    • First observedlibofcongress_get_item
    • First observedlibofcongress_get_newspaper_page
    • First observedlibofcongress_search
    • First observedlibofcongress_search_newspapers
    • First observedlibofcongress_search_subjects

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    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.
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    MCP server for searching and retrieving full-text pages from the Library of Congress, including newspapers, books, and manuscripts, via the loc.gov API.
    3
    Apache 2.0
Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.