Wayback Machine MCP Server
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)
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sisilet/wayback-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server