Libofcongress MCP Server
概览
作者提供的说明(英文原文)
Search LOC digital collections, Chronicling America newspapers (full OCR), and LC Subject Headings.
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i3 项中通过 3 项依据公开信息检查;尚未扫描代码
- 使用情况i起步阶段↓ 467/周 · ★ –
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 电脑或云端
- 传输方式: stdio, Streamable HTTP
- 分类: 搜索与 AI 记忆
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:3 项中通过 3 项
- 在作者的服务器上运行:你向它提出的内容会经过他们的服务器。
- 可以做 6 件事(工具) libofcongress_search_items, libofcongress_get_item, libofcongress_search_newspapers, libofcongress_get_newspaper_page …
- 需要你自己填写:
LOC_USER_AGENT,LOC_REQUEST_DELAY_MS,MCP_LOG_LEVEL,MCP_SESSION_MODE
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
适用于网页版、桌面版和手机版 Claude:
- 打开 Settings → Connectors
- 点击 Add custom connector
- 粘贴下面的地址,然后点击 Add
- 如果要求登录,请登录作者的服务
https://libofcongress.caseyjhand.com/mcp或者在你的电脑上运行
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"libofcongress": {
"command": "npx",
"args": [
"-y",
"@cyanheads/libofcongress-mcp-server"
],
"env": {
"LOC_USER_AGENT": "your-value",
"LOC_REQUEST_DELAY_MS": "your-value",
"MCP_LOG_LEVEL": "your-value",
"MCP_SESSION_MODE": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add --transport http libofcongress https://libofcongress.caseyjhand.com/mcp或者在你的电脑上运行
claude mcp add libofcongress --env LOC_USER_AGENT=your-value --env LOC_REQUEST_DELAY_MS=your-value --env MCP_LOG_LEVEL=your-value --env MCP_SESSION_MODE=your-value -- npx -y @cyanheads/libofcongress-mcp-server运行前请先填写空着的值。
或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"libofcongress": {
"url": "https://libofcongress.caseyjhand.com/mcp"
}
}
}或者在你的电脑上运行
或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"libofcongress": {
"command": "npx",
"args": [
"-y",
"@cyanheads/libofcongress-mcp-server"
],
"env": {
"LOC_USER_AGENT": "your-value",
"LOC_REQUEST_DELAY_MS": "your-value",
"MCP_LOG_LEVEL": "your-value",
"MCP_SESSION_MODE": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"libofcongress": {
"type": "http",
"url": "https://libofcongress.caseyjhand.com/mcp"
}
}
}或者在你的电脑上运行
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"libofcongress": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@cyanheads/libofcongress-mcp-server"
],
"env": {
"LOC_USER_AGENT": "your-value",
"LOC_REQUEST_DELAY_MS": "your-value",
"MCP_LOG_LEVEL": "your-value",
"MCP_SESSION_MODE": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
ChatGPT 只能连接互联网上的服务器:
- 打开网页版 ChatGPT → Settings → Connectors (Apps)
- 点击 Create 或 Add(部分套餐需要先在 Advanced 中开启 Developer mode)
- 粘贴下面的地址,起个名字,然后保存
- 如果要求登录,请登录作者的服务
https://libofcongress.caseyjhand.com/mcp菜单名称可能因套餐和版本不同而略有差异。
你的选择通过 Cookie 保存在这台设备上,无需账户。
需要你填写的值
LOC_USER_AGENTenvUser-Agent header sent with LOC API requests. LOC recommends a descriptive value for polite access.LOC_REQUEST_DELAY_MSenvDelay in milliseconds between LOC API requests to stay under the 20 req/min rate limit.MCP_LOG_LEVELenvSets the minimum log level for output (e.g., 'debug', 'info', 'warn').MCP_SESSION_MODEenvHTTP session mode: auto, stateful, or stateless.
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它能做什么
工具名称和描述与服务器在 2026年11月6日 报告的完全一致。这些内容由作者撰写,不是我们写的;我们以纯文本形式显示。
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 item
libofcongress_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, phys
libofcongress_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. F
libofcongress_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 edition;
libofcongress_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 it
libofcongress_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", "
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 cyanheads 验证,该账户拥有此仓库
- … 尚未检查
仍在维护
我们还没有从 GitHub 读取这个仓库
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- ✓ 通过
端点有响应
在 492 毫秒内响应(HTTP 200)
- – 不适用
使用 OAuth 登录
无需登录
- ✓ 通过
工具描述中没有隐藏指令
已读取 6 个工具描述,未发现针对 AI 的隐藏指令
与“搜索与 AI 记忆”中的其他服务器比较i
- 星标数多于此分类中其他 5696 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 5696 个服务器的 88% 更新
- 基础检查结果等于或优于此分类中其他 5696 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Libofcongress MCP Server 安全吗?
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
两种方式都可以:安装在你的电脑上,或者连接云端版本。
它还在维护吗?
GitHub 仓库最后更新于–,最新版本(0.6.0)于5天前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,所以接受远程 MCP 服务器的应用也可以使用,例如开启开发者模式的 ChatGPT。
有什么可以替代它?
同一分类中有:Context7, Codebase Memory, Exa
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Codebase Memory
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Exa
Connect AI agents to Exa for web search, content fetching, and multi-step research.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
@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. 6 Tools • 1 Resource • 1 Skill
Public Hosted Server: https://libofcongress.caseyjhand.com/mcp
Overview
Library of Congress digital collections, Chronicling America historic newspapers, and LC Subject Headings. Search items and newspaper pages, read full metadata and OCR text, resolve subject terms, and browse curated collections.
Tools
| Tool | Description |
|---|---|
libofcongress_search_items | Search LOC digital collections by keyword with format, date range, subject, location, and collection filters. |
libofcongress_get_item | Retrieve full metadata for a specific LOC digital item — imprint, contributors, subjects, rights, formats, its digital resources, and a paged list of its pages. |
libofcongress_search_newspapers | Search historical newspaper pages in the Chronicling America corpus, with an excerpt of each page's opening OCR text. |
libofcongress_get_newspaper_page | Retrieve the full text and metadata of one page — a newspaper page, or a book or manuscript page from libofcongress_get_item — or only the passages around a search term. |
libofcongress_search_subjects | Search Library of Congress Subject Headings (LCSH) by keyword. |
libofcongress_browse_collections | List and browse LOC curated digital collections, optionally filtered by keyword. |
Resources
| Resource | Description |
|---|---|
libofcongress://item/{+item_id} | LOC digital item metadata by ID — stable URI for injecting item context into agent conversations. |
All resource data is also reachable via libofcongress_get_item. Use libofcongress_search_items to discover item IDs first.
Research guide
libofcongress-guide covers identifier chains, OCR uncertainty, research coverage, and collection, newspaper, book, and manuscript workflows. It ships with plugin, npm, Docker, and MCPB installs and is also available through MCP skill discovery and resource reads.
Capability reference
libofcongress_search_items tool
- Filters: eight material formats (
photo,map,newspaper,manuscript,audio,film,book,notated-music), inclusive year range (date_start/date_end),subject(an LCSH heading fromlibofcongress_search_subjectsor a facet term), location, andcollection_slug(fromlibofcongress_browse_collections, combinable withformat); up to 100 results per page — a largerlimit(up to 1000) is served as 100 witheffectiveLimitand a notice - Use
query: "*"to browse without a keyword.sortacceptsrelevance(default),date(oldest first), ordate_desc(newest first);effectiveSortechoes the order LOC applies before pagination - Each result carries
dateas LOC catalogs it andis_item:truefor catalog items whoseidresolves vialibofcongress_get_item,falsefor other resources. Newspaper rows includepage_urlforlibofcongress_get_newspaper_page; retired catalog links carrylink_noticeand retain their original URL. Other non-item rows can be opened aturl include_facets: trueaddssubject_facetsandlocation_facets(LOC's top 10 terms across all matches, each with its item count); off by default since it slows every search. A zero-result notice names the subject terms and location applied
libofcongress_get_item tool
- Takes a search result's
id(simple or multi-segment, e.g.sn95047246/1935-09-05/ed-1), a loc.gov item link, or anlccn.loc.govpermalink; any other URL is rejected asinvalid_item_idbefore any request - Returns the
imprint, contributors with roles, LCSHsubject_headings,subject_terms(the lowercase terms the searchsubjectfilter accepts), notes, summary, languages, locations,rights_informationas plain text, physical description, call number, former IDs, formats, andaccess_restricted; fields absent upstream are omitted resourceslists each digital resource with its page count,image,pdf, andaudio(MP3).pageslists 50 pages at a time by default (page_offset,page_limit,page_total,next_page_offset; at most 100 per call — a largerpage_limit, up to 1000, is served as 100 witheffectivePageLimitand a notice), each with apage_urlandhas_textthat read throughlibofcongress_get_newspaper_page.include_files: trueadds each page's download URLs
libofcongress_search_newspapers tool
- Filters: keyword, inclusive date range down to the day (
date_start/date_endtake an integer year or aYYYY,YYYY-MM, orYYYY-MM-DDstring), indexed state/province (full name or supported US postal code), and newspaper title (the exactnewspaper_titleof a search result); up to 100 results per page — a largerlimit(up to 1000) is served as 100 witheffectiveLimitand a notice sortacceptsrelevance(default),date(oldest first), ordate_desc(newest first);effectiveSortechoes the applied order- Each result carries the opening ~500 characters of the page's OCR text,
states, and theurlthatlibofcongress_get_newspaper_pagetakes verbatim - The excerpt is the page's first lines, not the text around the match; pass the same query as
matchtolibofcongress_get_newspaper_pagefor the passages around it
libofcongress_get_newspaper_page tool
- Takes the
urlfrom alibofcongress_search_newspapersresult, or apages[].page_urlfromlibofcongress_get_item(newspaper, book, and manuscript pages alike), plus Chronicling America page links; a link that names no single page, any other host, or a malformed path orspis rejected asinvalid_page_urlbefore any request - Returns the page's text as
ocr_textwithnewspaper_title,date,place_of_publication,states,edition,sequence,segment_count,item_title, anditem_id(pass it tolibofcongress_get_itemto list the item's pages).ocr_available: falsemarks an image-only page, and anoticeexplains an empty result: the text service did not answer (retry), the body could not be read as text, or the page is blank matchreturns only the passages around a term — pass the query you searched with. Space-separated words are separate terms and a double-quoted span is one phrase, matched case-insensitively.matchesholds up to 10 passages of about 300 characters either side of each occurrence,match_countcounts every occurrence, andocr_textis empty; a notice says when nothing matched or some occurrences fall outside the passages. If text retrieval fails, both match fields are absent because the result is unknown; blank and image-only pages still report zero
libofcongress_search_subjects tool
- Keyword query, up to 250 results per call (default 10; a larger
limit, up to 1000, returns up to 250 with a notice); returns the authorized LCSHlabeland stable LOCuri - Start at
offset: 0(default), then passnext_offsetto continue.totalcounts this page's headings; the final or past-end page omitsnext_offset. A past-end offset succeeds empty with a recovery notice - An exact match from the first 50 results moves to the start. Subsequent offsets and changed limits preserve that ordering while the upstream results remain unchanged
- Pass the label verbatim as
libofcongress_search_items'ssubjectfilter. A partial word (aerial photog) falls back to headings that begin with it
libofcongress_browse_collections tool
- Optional keyword filter on collection name and description; up to 100 collections per page — a larger
limit(up to 1000) is served as a 100-collection page witheffectiveLimitand a notice - Each collection carries a
slugforlibofcongress_search_items'scollection_slug(taken from the loc.gov route, not derivable from the title);item_countis approximate and omitted when LOC doesn't provide it
libofcongress://item/{+item_id} resource
- Returns the same record as
libofcongress_get_item, asapplication/json, with the first 50 pages and no files;next_page_offsetmarks wherelibofcongress_get_item'spage_offsetcontinues item_idcomes from alibofcongress_search_itemsresult'sid; anything that is not an item ID is rejected asinvalid_item_id. Multi-segment newspaper IDs keep their slashes (libofcongress://item/sn95047246/1935-09-05/ed-1)
Features
Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.
Library of Congress-specific:
- Request queue in front of
www.loc.gov: calls start in arrival order, at leastLOC_REQUEST_DELAY_MSapart (default 3100ms, ~19 req/min), never exceeding LOC's 20 per minute. A call that cannot start in time fails asserver_busywithretryAfter - Rate-limit handling: a 429 triggers LOC's 1-hour block, and calls fail without sending anything until it lifts (never retried); a Cloudflare challenge or HTML page instead of JSON fails as
upstream_unavailablewithretryAfter: 60.libofcongress_search_subjects(id.loc.gov) is unaffected - A 50-second budget per tool call covers queue wait, retries, and the OCR fetch, so a slow upstream fails as
request_timed_out; other upstream failures (dropped connections, 5xx or 403, empty or truncated bodies) fail asupstream_unavailablewith a retry hint - Pages past the end of the results or past
只显示了开头部分;其余内容请在仓库中阅读