# Library of Congress MCP for AI Agents AI Agent Connect

> Library of Congress MCP connects your AI agent to millions of records in the world's largest library. It pulls historical newspapers, rare maps, sound recordings, and digitized manuscripts into your workflow. Instead of clicking through pages of catalog results, your agent can find specific primary sources, grab OCR text, and pull technical image data directly from the archives.

## Overview
- **Category:** knowledge-management
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_AjTjJo3aHNsbsGSqfRyZvlZJBZfDk0w19q4MaOwY/ai-agent-connect
- **Tags:** digital-archives, historical-data, catalog-search, metadata, public-records, research-tools

## Description

Imagine you're trying to track down a specific 19th-century map of a Virginia battlefield or a digitized newspaper from the 1860s. Usually, this means navigating a massive, sometimes clunky web interface, filtering by date, and manually copying bibliographic details into a spreadsheet. This Connector changes that. By connecting your agent to the Library of Congress archives, you can just ask for what you need. Your agent does the heavy lifting of scanning the catalog, filtering by media type, and pulling the exact metadata or full-text OCR you're looking for. It's a way to turn one of the world's biggest information silos into a direct data stream for your research projects. If you're looking for a way to scale up historical analysis or just want to find a specific primary source without the headache of manual navigation, this is how you do it. You can find this tool in the Vinkius catalog to get started.

## Tools

### list_collections
Lists every digital collection available in the archive. It's great for seeing the full scope of what's available.

### search_format
Filters your search results by media types like maps, photos, or audio. This helps narrow down your research quickly.

### get_image_info
Fetches technical IIIF metadata for high-resolution images. Use this when you need precise image details.

### get_item
Pulls the full bibliographic record for a specific item. It gives you all the metadata you need for citations.

### search
Performs a keyword search across the entire Library of Congress website. It's the starting point for any broad research.

### get_text_service
Retrieves full-text OCR and word coordinates from digitized documents. This is essential for analyzing the actual content of old papers.

### get_resource
Accesses specific digitized files, like a single page of a newspaper. This lets you grab the actual content.

### get_collection_items
Lists every item within a specific digital collection. Use this to see everything in a curated set of archives.

## Prompt Examples

**Prompt:** 
```
Find some maps of the Civil War in Virginia from 1861.
```

**Response:** 
```
I've found several maps from 1861 regarding the Virginia campaign. Here are the most relevant items:

| Item Title | Date | Link |
| :--- | :--- | :--- |
| Map of the seat of war in Virginia | 1861 | [View Archive Link] |
| Central Virginia Campaign Map | 1861 | [View Archive Link] |

Would you like the full bibliographic metadata for any of these?
```

**Prompt:** 
```
List the items in the World War I Posters collection.
```

**Response:** 
```
Retrieving the World War I Posters collection... I found 25 items on the first page, including:

* **I want you for U.S. Army**
* **Destroy this mad brute**
* **Join the Navy**

Would you like me to fetch more items or get the specific details for one of these?
```

**Prompt:** 
```
Can you get the OCR text for this document segment: service/gdc/gdcscd/00/01/02/03/0001.txt?
```

**Response:** 
```
Accessing the text service for that document segment... 

**OCR Transcript:**
'PROCEEDINGS OF THE CONVENTION... [Full text follows] ...

I've pulled the full text for you. Would you like me to summarize this content or search for a specific term within it?'
```

## Capabilities

### Search the entire Library of Congress website
Your agent can use keywords to find specific records across the whole archive.

### Filter results by media type
Narrow down your search to only show maps, photos, audio, or other specific formats.

### Pull full-text OCR
Get the actual text from digitized documents without having to read the images yourself.

### Retrieve technical image metadata
Fetch IIIF technical data for high-resolution images from the collection.

### Browse digital collections
See all available items in specific sets like the Abraham Lincoln Papers.

### Get bibliographic data
Retrieve detailed metadata for a single item to use in citations and records.

## Use Cases

### Finding Civil War maps
A historian asks for maps of Virginia from 1861. The agent uses search and search_format to find them and provides the links.

### Analyzing old newspapers
A researcher needs to find specific mentions of a company in 1920s papers. The agent uses get_resource and get_text_service to pull the text.

### Browsing specific archives
A student wants to see everything in the 'world-war-i-posters' collection. The agent uses get_collection_items to list them all.

### Getting high-res image data
A digital archivist needs technical data for a specific photo. The agent uses get_image_info to pull the IIIF metadata.

## Benefits

- Stop manual catalog navigation by letting your agent use search to find specific historical records in seconds.
- Get full-text OCR data with get_text_service so you can analyze the content of old documents without transcribing them by hand.
- Pull precise image metadata with get_image_info to handle high-resolution archival assets more effectively.
- Instantly see what's in a collection using get_collection_items instead of clicking through multiple pages of results.
- Save time on citations by using get_item to pull complete bibliographic data for any historical record you find.
- Filter your research by media type using search_format to quickly isolate maps, photos, or audio files.

## How It Works

The bottom line is that you get a direct line into millions of historical records without leaving your chat interface.

1. Subscribe to the Library of Congress MCP on Vinkius.
2. Enter your Library of Congress API key to get higher rate limits.
3. Ask your AI client to find historical records or specific collection items.

## Frequently Asked Questions

**Can the Library of Congress MCP find historical newspapers?**
Yes, it lets your agent search the entire catalog for specific dates and titles, pulling the records directly into your conversation.

**Does the Library of Congress MCP support maps and photos?**
It does. You can use specific filters to isolate only maps, audio files, or photographs from the archives.

**Can I use the Library of Congress MCP for academic research?**
It's built for that. It pulls bibliographic data and primary source links that you can use for citations and deep-dive research.

**How do I get text from digitized documents?**
The Connector includes a tool to pull full-text OCR, so your agent can read and summarize old manuscripts or newspapers for you.

**Can I see what's in a specific digital collection?**
Yes, you can ask your agent to list all items in a collection like the Abraham Lincoln Papers to see what's available.

**Does the Library of Congress MCP provide high-resolution image data?**
It provides technical IIIF metadata, which is what you need to access and handle high-resolution images correctly.

**Can I search for items specifically in a format like 'maps' or 'audio'?**
Yes! Use the `search_format` tool and specify the format parameter (e.g., 'maps', 'photos', 'audio') along with your query to get targeted results.

**How do I get the full OCR text of a digitized document?**
You can use the `get_text_service` tool. Provide the document segment path and set the `full_text` parameter to 1 to retrieve the complete OCR transcript.

**Can I list items from a specific collection like the Abraham Lincoln papers?**
Yes. Use the `get_collection_items` tool with the collection slug (e.g., 'abraham-lincoln-papers') to see all items contained within that specific archive.