internet-archive-mcp
Full-coverage MCP server for Internet Archive, enabling search, metadata lookup, collection browsing, and Wayback Machine snapshot retrieval via 13 tools.
README
Internet Archive MCP Server
Full-coverage Internet Archive MCP server — search, metadata, collections, and Wayback Machine in one server.
Why this server?
Existing Internet Archive MCP servers are almost all Wayback-only — small 3–4 tool wrappers around the CDX snapshot API. This is the only server that combines:
- Full IA collections access — search, metadata, files, reviews, and collection browsing across all media types (texts, audio, movies, software, images)
- Full Wayback Machine coverage — CDX snapshot search, availability checks, and raw content fetch
- 13 tools organized in three tiers (core, differentiator, auth-gated)
- Anonymous reads — every read operation works with zero configuration
- Auth-gated writes — Save Page Now requires IA S3 keys, cleanly separated from the read path
Quick start
Install
cd internet-archive-mcp
pip install -e .
Hermes Agent
Add to your Hermes config.yaml:
mcp_servers:
internet-archive:
command: python3
args: ['-m', 'internet_archive_mcp.server']
env:
PYTHONPATH: /path/to/internet-archive-mcp/src
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"internet-archive": {
"command": "python3",
"args": ["-m", "internet_archive_mcp.server"],
"env": {"PYTHONPATH": "/path/to/internet-archive-mcp/src"}
}
}
}
Tool reference
Tier 1 — Core tools
| Tool | Key args | Returns |
|---|---|---|
search_archive |
query, mediatype?, collection?, fields?, sort?, rows=20, page=1 |
Paginated results: {numFound, start, docs, total_pages} |
get_item_metadata |
identifier, include_files=False |
Full metadata block (title, creator, description, subjects, server info) |
list_item_files |
identifier, format_filter? |
List of file dicts (name, format, size, technical metadata) |
get_item_reviews |
identifier |
List of review objects (reviewer, stars, title, body) |
wayback_snapshots |
url, match_type="exact", from_year?, to_year?, limit=25, filter_expr?, collapse?, fields?, page?, show_resume_key?, resume_key?, newest?, fast_latest? |
List of CDX snapshot records (timestamp, URL, MIME, status, digest) |
wayback_availability |
url |
Closest available snapshot timestamp and URL |
wayback_fetch |
url, timestamp?, raw=True, char_limit=50000 |
Archived page content (raw by default, no toolbar) |
Tier 2 — Differentiator tools
| Tool | Key args | Returns |
|---|---|---|
browse_collection |
collection, rows=20, page=1, sort? |
Paginated items in a collection (sorted by downloads desc) |
get_collection_info |
identifier |
Collection metadata with item count; notes if not a collection |
get_item_thumbnail |
identifier |
Thumbnail image URL (usable in markdown) |
search_archive_deep |
query, fields?, sorts?, count=100, cursor?, total_only? |
Cursor-paged results for unlimited deep pagination |
Tier 3 — Auth-gated tools
| Tool | Key args | Returns |
|---|---|---|
save_page |
url, access_key?, secret_key? |
SPN2 job status and archived URL |
save_page_status |
job_id |
Status of a Save Page Now job (completion, Wayback URL) |
Configuration
All read tools work anonymously with no configuration. The only tool requiring credentials is save_page (Save Page Now).
Environment variables
| Variable | Purpose |
|---|---|
IA_ACCESS_KEY |
Internet Archive S3 access key |
IA_SECRET_KEY |
Internet Archive S3 secret key |
Get your keys at: https://archive.org/account/s3.php (free account required).
Keys can also be passed directly as tool arguments (access_key, secret_key) — env vars are the fallback.
Rate limiting & caching
The client is designed to be a polite, well-behaved consumer of IA APIs:
- Rate limiter — minimum 0.5s interval between all outgoing requests
- Bounded TTL cache — in-memory cache with 256-entry cap; search and metadata results cached for 1 hour; oldest entries evicted first
- 429 retry with backoff — automatic retry on HTTP 429 with exponential backoff (honors
Retry-Afterheader), up to 3 attempts - Mandatory User-Agent — every request carries a descriptive
User-Agent: internet-archive-mcp/0.1.0 (...)header per IA policy
Development
# Install with dev dependencies
pip install -e '.[dev]'
# Run tests
pytest tests/ -v
Architecture
internet-archive-mcp/
├── src/internet_archive_mcp/
│ ├── __init__.py
│ ├── client.py # Async httpx client — all API logic
│ └── server.py # FastMCP tool definitions (thin wrappers)
├── tests/
│ ├── __init__.py
│ ├── conftest.py
│ ├── test_client.py
│ ├── test_qa_fixes.py
│ ├── test_qa_round2.py
│ ├── test_qa_round3.py
│ ├── test_server.py
│ └── test_tools.py
├── RESEARCH.md # API research findings (tested with curl)
└── pyproject.toml
client.py—ArchiveClientclass using asynchttpx. Talks to two base URLs:https://archive.org(search, metadata, availability) andhttps://web.archive.org(CDX, content fetch, Save Page Now). Owns caching, rate limiting, and retry logic.server.py— FastMCP server with 13@mcp.tool()definitions. Each tool is a thin async wrapper that delegates toArchiveClientand converts exceptions to error strings.
Design decisions
The Related Items API (archive.org/recommendations/{id}) was investigated during research but returned no useful data. It is intentionally excluded. See RESEARCH.md §5f.
Links
- RESEARCH.md — full API research with tested curl examples
- Internet Archive Developer Docs
- IA Bots Policy — terms of service and acceptable use for automated access
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.