mcp-archiveorg

v2.1.0
io.github.smeet666/mcp-archiveorg Checked 13 hours ago Published 1 month ago

Search inside digitised books, browse the Internet Archive catalogue and read Wayback captures.

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

search_inside Search inside scanned pages

Search the text inside digitised books, newspapers and documents on the Internet Archive. This reads what optical recognition took off the scanned pages, so it finds a phrase that appears nowhere in a title or a catalogue record. Put a phrase in double quotes to hold the words together in that order. The index folds accents, case and punctuation before it matches, so the letters are not held: a quoted "bûcher" comes back on pages printing Bücher and Bucher. Read an excerpt before repeating a quoted query as the spelling a page carries. Without quotes the words are matched separately, which f…

ParameterTypeDescription
query *stringWords or a quoted phrase, such as '"call me ishmael"'.
limitintegerMatches to return.
max_excerpt_charsintegerBudget for one passage. Read it together with 'max_excerpts_per_match': the size of the answer is the product of the two and the number of matches.
max_excerpts_per_matchintegerPassages to keep per match. The index finds several in a long work, and the later ones rarely say anything the first did not.
pageintegerWhich page of matches, from 1. Paging stops at 100.

search_items Search the catalogue

Search the Internet Archive catalogue: films, books, recordings, images, software and datasets. This matches titles, creators and descriptions, so a compilation whose notes mention a name ranks alongside that person's own work: read 'creator' on each row before treating a result as theirs. It does not read the contents of a scan; use search_inside for a phrase within a book. Set 'media_type' whenever the kind of thing is known, because one title exists across several media and mixing them makes a result list unreadable. 'oldest', 'newest', 'year_from' and 'year_to' all read one field: the date…

ParameterTypeDescription
query *stringWords to look for in titles, creators and descriptions.
limitinteger
media_typestringNarrow to one kind of thing. Strongly recommended.
pageinteger
sortstring'downloads' surfaces what people actually read, which relevance alone often buries. 'oldest' and 'newest' rank on a declared date, not on when a thing was made.
year_fromintegerEarliest year, inclusive, on the record's declared date, which carries no era.
year_tointegerLatest year, inclusive, on the record's declared date, which carries no era.

get_item Read an item

Read one Internet Archive item by its identifier, as returned by search_items or search_inside. Sections are opt-in: 'basic' is the default and covers what a description needs. 'files' lists the downloadable files, which on a scanned film or book run to dozens of derivatives, so filter by format when a particular one is wanted. 'full_metadata' returns every field the Archive publishes for the item, which is large and rarely needed. 'file_count' and 'total_bytes' are always reported, whether or not the file list was asked for.

ParameterTypeDescription
identifier *stringArchive identifier, such as 'nasa'. It is the last part of an item's address rather than the address itself, and it is matched exactly, capitals included.
file_formatstringKeep only files of this format, such as 'PDF' or 'MP3'. Matched case-insensitively.
max_description_charsinteger
max_filesintegerCeiling on files returned.
sectionsarrayWhich parts to return. Each one beyond 'basic' adds to the size of the answer.

get_snapshot Read a page as it was

Find the Wayback Machine capture of a web page closest to a given date. Give 'at' to ask for a moment in time; leave it out for the most recent capture. The answer always states 'days_from_requested', because the closest capture can be years away from the date asked for: read it before describing what the page said on that date. It also states the address the capture is of, which the Wayback Machine can resolve to a neighbouring form of the one asked about. This finds the capture and links to it. It does not return the page's contents.

ParameterTypeDescription
url *stringAddress to look up, such as 'lemonde.fr' or a full URL.
atstringDate to aim for, as YYYY-MM-DD or a full ISO 8601 timestamp. Omit for the newest capture.

list_snapshots List captures of a page

List Wayback Machine captures of a web page, oldest first, with the dates they were taken. Answers how long a page has been archived and how often, which get_snapshot cannot. A capture whose content repeats the row before it is left out of the index answer. The index also holds one site under several addresses at once, such as its www form, its https form and a form carrying credentials, and returns them interleaved, so two consecutive rows can differ because the address differs rather than because the page did. Every row names the address it captured; read that before counting the captures of…

ParameterTypeDescription
url *stringAddress to look up.
cursorstringThe 'next_cursor' from a previous answer. Omit to start at the oldest capture.
limitintegerCaptures to return.

search_books Search works and editions

Find a book on Open Library, the Internet Archive's catalogue of works, either by name or by description. Pass 'query' when you know what you are looking for: a title, an author. Free text matches parts of words and reads titles and authors together, so a name also finds works by authors whose name merely contains it: read 'authors' on each row before treating a result as that author's work. Pass the criteria instead when you do not, and they combine: 'subject' for what a work is catalogued under, 'place' for where it is set, 'time' for the period it treats, 'person' for who it is about, plus…

ParameterTypeDescription
languagestringThree-letter code of the language, such as 'eng' or 'fre'.
limitinteger
pageinteger
pages_maxintegerLongest acceptable work. The count is a median across editions.
pages_minintegerShortest acceptable work.
personstringWho the work is about, such as 'Napoleon'.
placestringWhere the work is set, such as 'Shanghai'.
querystringTitle or author, as free text. Optional when a criterion below is given.
sortstring'rating' is how readers scored it, 'readers' is how many recorded reading it, and both answer a question relevance cannot. 'newest' and 'oldest' rank on 'first_published_year', which the index takes f…
subjectstringWhat the work is catalogued under, such as 'grief' or 'spy stories'. Also carries prizes and lists, such as 'Booker Prize'.
timestringThe period the work treats, such as '20th century'.
year_fromintegerEarliest first publication.
year_tointegerLatest first publication.