Wayback Machine MCP Server
This server provides access to the Internet Archive's Wayback Machine for retrieving historical web snapshots and searching archived content.
List snapshots: Get available archived versions of a URL with date range filtering (
from,to), result limits, and match type control (exact, prefix, host, domain)Fetch archived pages: Retrieve content from specific timestamps (YYYYMMDDHHMMSS format), with option to get original content without Wayback Machine's rewriting
Search archive items: Query Internet Archive's collection with advanced filters like media type, collection, field selection, sorting, and pagination
Resource access: Directly fetch archived content via
wayback://{url}/{timestamp}resource URLs
Provides access to the Internet Archive Wayback Machine, enabling retrieval of historical website snapshots, archived page content, and searching of archive.org items with metadata filtering capabilities.
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., "@Wayback Machine MCP Server show me snapshots of wikipedia.org from last year"
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.
Wayback Machine MCP Server (Python)
A Model Context Protocol (MCP) server that provides access to the Internet Archive Wayback Machine: list snapshots and fetch archived pages. Inspired by the TypeScript server described in the LobeHub listing.
Reference: Wayback MCP (listing) — link
Reference: Internet Archive APIs — Wayback APIs index
Reference: MCP server quickstart — Build an MCP Server
Features
Tools
get_snapshots(url, from, to, limit, match_type)via Wayback CDX APIget_archived_page(url, timestamp, original)fetches archived contentsearch_items(query, mediatype, collection, fields, sort, rows, page)searches archive.org items
Resource
wayback://{url}/{timestamp}returns the archived page content
Install
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtRun (stdio)
python -m wayback_mcp.serverInstall as CLI
pip install wayback-mcp
wayback-mcpRun with uvx (no install)
uvx wayback-mcpPin Python version:
uvx --python 3.12 wayback-mcpPin package version:
uvx --from wayback-mcp==0.1.1 wayback-mcpConfigure in MCP client
Claude Desktop settings (example):
{
"mcpServers": {
"wayback-machine": {
"command": "wayback-mcp",
"args": [],
"env": {},
"disabled": false,
"autoApprove": []
}
}
}Alternatively, using uvx (no install):
{
"mcpServers": {
"wayback-machine": {
"command": "uvx",
"args": ["wayback-mcp"],
"env": {},
"disabled": false,
"autoApprove": []
}
}
}Usage examples
Tool call (snapshots):
get_snapshots(url="example.com", from="20200101", to="20201231", limit=10)Tool call (page):
get_archived_page(url="example.com", timestamp="20200101120000", original=true)Tool call (items search):
search_items(
query="title:(Wayback) AND creator:(Internet Archive)",
mediatype="texts",
fields=["identifier","title","creator","mediatype","publicdate"],
sort=["publicdate desc"],
rows=20,
page=1
)Resource fetch:
wayback://example.com/20200101120000Notes
Snapshot data via CDX API:
https://web.archive.org/cdx/search/cdx?url={url}&output=jsonPage retrieval via Wayback:
https://web.archive.org/web/{timestamp}/{url}(orid_mode for original content)Advanced item search endpoint:
https://archive.org/advancedsearch.php(JSON output)
Available Tools
3 toolsget_archived_pageC
Retrieve content of an archived webpage from the Wayback Machine using YYYYMMDDHHMMSS timestamp. If original=true, request id_ mode.
Inputs: timestamp (required), url (required), original. Returns: result
get_snapshotsC
Get a list of available Wayback Machine snapshots for a URL. Dates use YYYYMMDD, match_type is one of: exact, prefix, host, domain.
Inputs: url (required), from_, limit, match_type, +1 more. Returns: result
search_itemsC
Search Internet Archive items using Advanced Search (archive.org). Supports basic query, optional mediatype/collection filters, fields, sort, rows, and page.
Inputs: query (required), collection, fields, mediatype, +3 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: get_archived_page retrieves specific archived content, get_snapshots lists available snapshots for a URL, and search_items searches Internet Archive items. There is no overlap in functionality, making it easy for an agent to select the correct tool.
All tool names follow a consistent verb_noun pattern (get_archived_page, get_snapshots, search_items) with clear, descriptive verbs. There are no deviations in naming conventions, ensuring predictability and readability.
Three tools are reasonable for a Wayback Machine server, covering key operations: retrieving archived pages, listing snapshots, and searching items. It might benefit from additional tools like saving pages or handling metadata, but the core functionality is well-scoped.
The tools cover essential Wayback Machine operations: retrieving archived content, exploring available snapshots, and searching items. Minor gaps include no explicit tool for saving or submitting URLs to the archive, but agents can work around this with the provided tools.
Maintenance
Related MCP Connectors
Search the Wayback Machine and IA library (40M+ items), fetch snapshots, item metadata, and text.
Wayback CDX timelines, snapshot text/diffs with Common Crawl S3 fallback, and Archive.org search.
1Shared copies of public web pages for AI agents. Search stored pages or fetch a URL.
Wayback Machine for agents: closest archived copy of a URL with its text, and full capture history
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with the Internet Archive's Wayback Machine to save web pages, retrieve archived versions, search historical snapshots, and check archive statistics without requiring API keys.Creative Commons Attribution Non Commercial Share Alike 4.0 International
- AlicenseAqualityDmaintenanceProvides tools to archive URLs, retrieve clean readable text from Wayback Machine snapshots, list snapshots, search Internet Archive items, and compare snapshots, designed to avoid context window blowup by returning stripped text.611 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables agents to retrieve the closest archived snapshot of a URL with extracted page text, and to query the complete capture history for a URL, prefix, host, or domain, with fallback to Common Crawl.1MIT
- AlicenseNot gradedqualityBmaintenanceProvides read-only access to the Internet Archive's Wayback Machine and catalog, enabling retrieval of archived web captures, snapshot metadata, and catalog search.BSD 3-Clause