Arquivo Pt

v0.2.1
io.github.pipeworx-io/arquivo-pt Checked 1 day ago Published 1 month ago

Arquivo.pt MCP — full-text search over the Portuguese web archive.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

arquivo_search_pages

Full-text search of archived web pages in Arquivo.pt, the Portuguese web archive (captures since 1996), when the URL is unknown. Finds pages whose TEXT contains the given terms or a quoted phrase and returns, per hit, the page title, original URL, capture date, a text snippet with the matching terms, the archived (replay) URL, and links to the extracted text and a screenshot. Coverage: centred on the Portuguese web (.pt sites and Portuguese-language pages) but international English-language sites that Portuguese pages link to are captured too — probes for "climate change", "quantum computing…

ParameterTypeDescription
query *stringSearch terms. Quote a phrase for an exact match ("inteligência artificial"); prefix a term with - to exclude it. Portuguese or English both work. Must not be a URL.
fromstringEarliest capture date, as YYYY, YYYYMMDD or YYYYMMDDhhmmss. Default 1996.
limitnumberHits to return (default 10, max 200).
offsetnumberHit offset for paging (default 0). The response carries next_offset when more hits exist.
per_sitenumberMaximum hits per site, to spread results across sources (default 2 — the upstream default). Raise it to see more captures of the same site.
sitestringRestrict hits to one site, e.g. "publico.pt" or "http://www.publico.pt".
tostringLatest capture date, as YYYY, YYYYMMDD or YYYYMMDDhhmmss. Omit it unless you need a window; the full-text index lags the crawl by years.
typestringRestrict to a file type by MIME subtype: pdf, html, doc, xls, ppt, rtf, ps.

arquivo_url_history

List every preserved capture of a specific URL in Arquivo.pt, the Portuguese web archive, newest first — the version history of a page or domain from 1996 to the current crawl. Each capture carries the capture timestamp (UTC), the archived replay URL, the crawl HTTP status, MIME type, content length and content digest, plus links to the extracted text, the raw original file and a screenshot. Accepts a bare domain (publico.pt), a host (www.publico.pt) or a full URL with path and query. Use this to see how a Portuguese page changed over time or to find the capture timestamp to pass to arquivo_…

ParameterTypeDescription
url *stringThe URL whose captures to list: "publico.pt", "www.sapo.pt" or "https://www.publico.pt/politica".
fromstringEarliest capture date, as YYYY, YYYYMMDD or YYYYMMDDhhmmss.
limitnumberCaptures to return (default 20, max 200).
offsetnumberCapture offset for paging (default 0).
tostringLatest capture date, as YYYY, YYYYMMDD or YYYYMMDDhhmmss.

arquivo_page_text

Read the extracted plain text of one archived page capture held by Arquivo.pt, the Portuguese web archive — the page content with HTML stripped, as the archive indexed it. Takes the original URL and the capture timestamp (YYYYMMDDhhmmss) that arquivo_search_pages or arquivo_url_history returned, and returns the text (optionally truncated to max_chars) with the archived replay URL. Use it to quote or summarise what a Portuguese page said on a given date without fetching the archived HTML.

ParameterTypeDescription
timestamp *stringCapture timestamp as YYYYMMDDhhmmss, e.g. "20120121210152" (the captured_at_ts of a hit).
url *stringThe original URL exactly as returned in original_url, e.g. "http://www.appia.pt/".
max_charsnumberTruncate the text to this many characters (default 20000, max 200000).