historical-investigator-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@historical-investigator-mcp Search for newspaper articles about the 1906 San Francisco earthquake in California"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Historical Investigator MCP
A beginner-friendly Model Context Protocol (MCP) server that searches historical records from the Library of Congress APIs.
Built with TypeScript, Node.js, the official @modelcontextprotocol/sdk, and zod for input validation.
Setup
npm install
npm run buildRelated MCP server: Gospel Library MCP
Running the server
The server communicates over stdio (standard for MCP):
npm startCursor / MCP client configuration
Add this to your MCP settings (for example in Cursor):
{
"mcpServers": {
"historical-investigator": {
"command": "node",
"args": ["/absolute/path/to/historical-investigator-mcp/dist/index.js"]
}
}
}Replace the path with your local clone of this project.
Tools
1. search_historical_newspapers
Search historical newspaper records from Chronicling America via the Library of Congress API.
Parameter | Type | Required | Description |
| string | yes | Search keywords |
| string | no | US state name or abbreviation |
| string | no | Start date ( |
| string | no | End date ( |
| number | no | Max results (1–100, default 20) |
Example prompt: “Search Chronicling America for articles about the San Francisco earthquake in California between 1906-04-01 and 1906-04-30.”
Uses the Chronicling America collection endpoint with:
q— keyword searchfa=location:{state}— state filter (e.g.location:california)start_date/end_date— date range (YYYY-MM-DD)c— result limitfo=json— JSON response
The response includes a requestUrl field with the exact LOC API URL used, which helps with debugging.
Date filtering limitation: The LOC API accepts start_date and end_date, but results are not always strictly limited to that range. You may see newspaper pages from nearby dates (or later years) when the search terms appear in OCR text. If you need an exact date window, check each result’s date field and filter client-side.
2. get_newspaper_item
Fetch metadata for a specific LOC item or resource.
Parameter | Type | Required | Description |
| string | yes | Item ID (e.g. |
Example prompt: “Get metadata for LOC item 2014717546.”
3. fetch_page_ocr_text
Download raw OCR plain text from a URL (often found in item metadata).
Parameter | Type | Required | Description |
| string | yes | URL to the OCR text file |
Example prompt: “Fetch the OCR text from this URL: …”
Returns plain text. Errors are handled safely and reported back to the client.
4. search_prints_and_photographs
Search prints and photographs in the LOC collections.
Parameter | Type | Required | Description |
| string | yes | Search keywords |
| number | no | Max results (1–100, default 20) |
Uses: https://www.loc.gov/photos/ with fo=json.
5. search_maps
Search map records in the LOC collections.
Parameter | Type | Required | Description |
| string | yes | Search keywords |
| number | no | Max results (1–100, default 20) |
Uses: https://www.loc.gov/maps/ with fo=json.
6. search_manuscripts
Search manuscript records in the LOC collections.
Parameter | Type | Required | Description |
| string | yes | Search keywords |
| number | no | Max results (1–25, default 10) |
Uses: https://www.loc.gov/manuscripts/ with fo=json.
Returns trimmed fields: title, date, contributor, description, subjects, and item link.
7. search_audio_recordings
Search audio recordings in the LOC collections.
Parameter | Type | Required | Description |
| string | yes | Search keywords |
| number | no | Max results (1–25, default 10) |
Uses: https://www.loc.gov/audio/ with fo=json.
Returns trimmed fields: title, date, contributors, description, subjects, and item link.
8. search_film_and_video
Search film and video records in the LOC collections.
Parameter | Type | Required | Description |
| string | yes | Search keywords |
| number | no | Max results (1–25, default 10) |
Uses: https://www.loc.gov/film-and-videos/ with fo=json.
Returns trimmed fields: title, date, contributors, description, subjects, and item link.
9. get_item_resources
Fetch a specific LOC item or resource and return digital files when available.
Parameter | Type | Required | Description |
| string | yes | Item ID, resource path, or full loc.gov URL |
Returns title, date, item link, resources/files/images/OCR links when present. If nothing is digitized, returns a helpful message.
10. compare_historical_sources
Compare two LOC records side by side using metadata only (no AI summarization).
Parameter | Type | Required | Description |
| string | yes | First item ID or full loc.gov URL |
| string | yes | Second item ID or full loc.gov URL |
Returns both records (title, date, location, contributors, subjects, description, link) plus a comparison object with same_year, shared_subjects, and source_types.
Project structure
historical-investigator-mcp/
├── src/
│ └── index.ts # MCP server and LOC API helpers
├── package.json
├── tsconfig.json
├── README.md
└── .gitignoreAPI notes
All LOC requests use
fo=jsonfor JSON responses.Newspaper searches use
q, optionalfa=location:..., and optionalstart_date/end_dateon the Chronicling America collection endpoint.Photo and map searches use the
/photos/and/maps/format endpoints withqandc.Manuscript, audio, and film searches use
/manuscripts/,/audio/, and/film-and-videos/with trimmed result fields.get_item_resourcesandcompare_historical_sourcesfetch item metadata withfo=json.No API key is required for the public LOC JSON/YAML API.
State values can be full names (
California) or abbreviations (CA); both are normalized to LOC location facets.
License
MIT
Available Tools
10 toolscompare_historical_sourcesA
Compare two LOC source records side by side using metadata fields only.
Inputs: itemIdOrUrl1 (required), itemIdOrUrl2 (required).
fetch_page_ocr_textC
Fetch raw OCR text from a supplied text URL (plain text).
Inputs: ocrTextUrl (required).
get_item_resourcesC
Fetch a LOC item and return available digital resource files, images, and OCR links when present.
Inputs: itemIdOrUrl (required).
get_newspaper_itemA
Fetch metadata for a specific Library of Congress newspaper or item record.
Inputs: itemIdOrUrl (required).
search_audio_recordingsC
Search Library of Congress audio records.
Inputs: query (required), limit.
search_film_and_videoC
Search Library of Congress film and video records.
Inputs: query (required), limit.
search_historical_newspapersB
Search historical newspaper records from Chronicling America via the Library of Congress API.
Inputs: query (required), limit, state, dateEnd, +1 more.
search_manuscriptsB
Search Library of Congress manuscript records.
Inputs: query (required), limit.
search_mapsB
Search Library of Congress map records.
Inputs: query (required), limit.
search_prints_and_photographsC
Search Library of Congress prints and photographs.
Inputs: query (required), limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Each tool targets a distinct resource type (audio, film, newspapers, manuscripts, maps, prints) or a specific action (compare, fetch, get), with no overlapping purposes. An agent can easily select the right tool based on the resource or operation needed.
All tool names follow a consistent verb_noun pattern in snake_case, with verbs like 'search', 'get', 'fetch', 'compare' clearly indicating the action. The naming is uniform and predictable across the set.
With 10 tools, the server covers the major historical resource categories and common operations without being overwhelming or too sparse. The count is well-scoped for the purpose of investigating historical materials.
The tool set provides search and retrieval for major LOC collections (audio, film, newspapers, manuscripts, maps, prints) plus comparison and OCR features. It lacks coverage for some categories like books or serials, but these are reasonable omissions for a historical investigator focused on primary sources.
Maintenance
Related MCP Connectors
Agentic search over your Dewey document collections from any MCP-compatible client.
Official MCP connector for Legalize: read and search its whole open corpus, at any point in time.
Search extracted newspaper articles from the Library of Congress, 1736-1963. Subscription required.
Unofficial Archive MCP — wraps the Internet Archive APIs (free, no auth)
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceA Model Context Protocol server that provides LLM-friendly access to the official GovInfo API for searching and retrieving U.S. government documents including bills, laws, regulations, and other official publications.7-
- FlicenseNot gradedqualityDmaintenanceEnables access to LDS Gospel Library content and scriptures through the Model Context Protocol. Provides tools for searching and retrieving religious texts and study materials from the Church of Jesus Christ of Latter-day Saints.2-

cfabric-mcpofficial
AlicenseNot gradedqualityBmaintenanceEnables AI agents to perform corpus analysis tasks such as discovery, search, and data access via the Model Context Protocol.13MIT- AlicenseNot gradedqualityCmaintenanceProvides access to the Library of Congress (loc.gov) data, enabling AI agents to search and retrieve information from the world's largest library.4 npmMIT