Skip to main content
Glama
sisilet

Wayback Machine MCP Server

by sisilet

Wayback Machine MCP Server (Python)

CI PyPI version Python versions License: MIT

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.

Features

  • Tools

    • get_snapshots(url, from, to, limit, match_type) via Wayback CDX API

    • get_archived_page(url, timestamp, original) fetches archived content

    • search_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.txt

Run (stdio)

python -m wayback_mcp.server

Install as CLI

pip install wayback-mcp
wayback-mcp

Run with uvx (no install)

uvx wayback-mcp
  • Pin Python version:

uvx --python 3.12 wayback-mcp
  • Pin package version:

uvx --from wayback-mcp==0.1.1 wayback-mcp

Configure 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/20200101120000

Notes

  • Snapshot data via CDX API: https://web.archive.org/cdx/search/cdx?url={url}&output=json

  • Page retrieval via Wayback: https://web.archive.org/web/{timestamp}/{url} (or id_ mode for original content)

  • Advanced item search endpoint: https://archive.org/advancedsearch.php (JSON output)

Install Server
A
license - permissive license
B
quality
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    D
    maintenance
    Enables 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.
    758
    Creative Commons Attribution Non Commercial Share Alike 4.0 International
  • A
    license
    A
    quality
    B
    maintenance
    MCP server for the Internet Archive's Wayback Machine. Search archived snapshots, extract page text from a specific date, track how a site has changed over time, check if broken links are recoverable, and perform research across Internet Archive collections.
    6
    3
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    Provides 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.
    6
    15
    MIT

View all related MCP servers

Related MCP Connectors

  • Read a URL as clean markdown, screenshot a website, url to PDF. Web access for agents, no signup.

  • LLM-ready web search + instant answers + URL-to-clean-text fetch for agents and RAG.

  • Read any web page as clean Markdown for AI agents: fetch, search, metadata, links. SSRF-safe.

View all MCP Connectors

Latest Blog Posts

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