@Cyanheads/Internet Archive Server
БесплатноНе проверенSearch the Wayback Machine and IA library (40M+ items), fetch archived snapshots, retrieve item metadata and full text via MCP.
Описание
Search the Wayback Machine and IA library (40M+ items), fetch archived snapshots, retrieve item metadata and full text via MCP.
README
@cyanheads/internet-archive-mcp-server
Search the Wayback Machine and IA library (40M+ items), fetch archived snapshots, retrieve item metadata and full text via MCP. STDIO or Streamable HTTP.
Public Hosted Server: https://internet-archive.caseyjhand.com/mcp
Overview
The Wayback Machine and Internet Archive library (40M+ items). Find and fetch archived snapshots of any URL, search the library by keyword and metadata, and retrieve item metadata, file manifests, and OCR text.
Tools
| Tool | Description |
|---|---|
ia_find_snapshots |
Find Wayback Machine snapshots of a URL, by closest timestamp or full capture history |
ia_get_snapshot |
Fetch archived page content at a specific Wayback timestamp and, with include_links, the page's links |
ia_search_items |
Search the IA library (40M+ items) by keyword and metadata filters |
ia_get_item |
Retrieve full metadata and file manifest for an Archive item |
ia_get_text |
Retrieve readable OCR text from a text item, with paging, or starting at a phrase's first match (find) |
Resources
| Resource | Description |
|---|---|
ia://item/{identifier} |
Metadata snapshot for an Archive item — title, creator, mediatype, description, subjects, collections, date, upload dates (publicdate, addeddate), license, publisher and catalog numbers, running time of an audio or video item, and file count |
Item resource data is also reachable via ia_get_item.
Agent skill
The internet-archive-guide covers historical comparisons, item identity, and coverage checks. Plugin installs include it, and MCP clients can read it at skill://internet-archive-guide/SKILL.md.
Capability reference
ia_find_snapshots tool
- Timestamps (
timestamp,from,to) take 1–14 digits (YYYYMMDDHHMMSSor a prefix of it) or an ISO 8601 date or UTC date-time such as2020-06-15or2020-06-15T12:34:56Z. A prefix names a period: asfromit starts the period (2015is January 1, 2015), astoit ends it (2015reaches December 31, 2015), and astimestampit resolves to the capture nearest the period's end (2015can resolve to one from early January 2016) urlmay be a Wayback capture URL (web.archive.org/web/<timestamp>/<url>, such as areplay_url), read as the URL it archives before any request.historylists that URL's captures and ignores its timestamp;closesttakes it as thetimestampwhen none is given, and atimestampnaming a different one fails asambiguous_timestampclosestmode: returns the nearest capture to a giventimestamp, or the latest capture whentimestampis omitted or blank, via the Availability API, falling back to one CDX closest-capture query (preferring a200capture) when the Availability API finds no capture, answers 429, or 408, 425, or 5xx after retries, sends an HTML or unreadable response, or answers200with anerrorin place of a capture. That query gets at most 25 s, the request timeout, or the time left in the call's deadline. A timeout, network error, or 4xx refusal from the Availability API does not fall back- Every call, either mode, ends within 55 s, or within
IA_REQUEST_TIMEOUT_MSwhen that is longer; each request, retry, and backoff counts against it historymode: full capture list via the CDX API; filter by date range (from/to) and HTTP status (status_filter). A query no capture matches returnssnapshots: []with anoticesaying why: the Wayback Machine lists no captures of the URL (or none under its prefix or domain), none match thefrom,to, andstatus_filtersent, or none remain past theresume_key; theresume_keyis kept when CDX sent one- For an exact URL, under any
collapse, pass the returnedresume_keywith the same URL to continue without skipping the page boundary. The cursor expires after one hour and retains the original filters;limitmay change between pages. An invalid cursor returnsinvalid_resume_key; conflicting explicit filters returnresume_key_conflict. Legacy CDX keys and wildcard histories remain available with a notice that pages may omit the row at a page boundary (a wildcard page may return it as a later capture of the same URL) - A
urlending in*(example.com/docs/*) lists the captures of every URL under that prefix, ordered by URL and then by time, and aurlstarting with*.(*.example.com) lists the captures of that domain and its subdomains. Both page by CDX's own key with a notice; a wide prefix can fail ascdx_unavailable, so narrow the prefix orfromandto. A*anywhere else is part of the URL collapseistimestamp:8(one capture per day) when omitted or blank; adjustable totimestamp:N(N above 14 reads as 14;timestamp:14lists one row per distinct capture second andtimestamp:0only the first capture in range),digest(the first capture in range and each capture whose content differs from the one before, so a change back to earlier content counts), orurlkey(one row per URL, its first capture in range).status_filterapplies before the collapse, sodigestwithstatus_filter: "200"leaves out redirect captures- Up to 10,000 records per call (
limit, default 100); a largerlimit(up to 150,000) is served as 10,000, settingtruncatedand anoticenamingresume_keywhen captures remain;resume_keypagination for large histories - Replay URLs are always
https://web.archive.org/web/… - Typed errors:
invalid_timestamp(atimestamp,from, ortothat is not 1–14 digits or an ISO 8601 date or UTC date-time, or names a date or time that does not exist; or a capture URL inurlwhose timestamp does the same, namingfield: "url"; answered before any request),ambiguous_timestamp(closest mode, a capture URL inurland atimestampnaming a different one; answered before any request),no_snapshot_available(closest mode, no capture neartimestampfrom either source, or none at all whentimestampis omitted; or, in either mode, the Wayback Machine does not serve the URL — a 403, 410, or 451, as for a site excluded from it),cdx_unavailable(CDX 5xx, 429, another 4xx, timeout, network error, or unreadable response, a body that is not a list of capture rows included, or the call's 55 s deadline (IA_REQUEST_TIMEOUT_MSwhen longer) ran out; or the closest-mode CDX check did not complete after the Availability API found no capture),availability_unavailable(closest mode, the Availability API failed — an error status, an unreadable response, or anerrorin place of a capture — and the CDX check it fell back to failed too or ran out of time, or the Availability API answered another 4xx, timed out, did not finish within the call's 55 s deadline (IA_REQUEST_TIMEOUT_MSwhen longer), or could not be reached, none of which falls back); a 429, another 4xx, or a request timeout is answered after one request, a 429 with a hint to wait and a 4xx with a hint that repeating the request will not help
ia_get_snapshot tool
timestamptakes the formsia_find_snapshotsdoes (1–14 digits or an ISO 8601 date or UTC date-time); a blanktimestampreads the timestamp of a Wayback capture URL passed asurl, else the latest capture. Resolves to the nearest available capture when the exact timestamp has no snapshot; exact 14-digit timestamps skip resolutionurlmay be a Wayback capture URL (web.archive.org/web/<timestamp>/<url>, such as areplay_url), read as the URL it archives at its timestamp before any request; atimestampnaming a different one fails asambiguous_timestamp- A call ends within 55 s, or within
IA_REQUEST_TIMEOUT_MSwhen that is longer; the closest-capture lookup, the page fetch, and every retry share it - Reports the capture Wayback served —
replay_url,resolved_timestamp, andresolved_statusfollow the replay's redirects, up to 10 on the Wayback Machine: Wayback's own redirect when the requested timestamp is not itself a capture, and an archived redirect (a capture of the site's own 3xx), which anoticenames with its capture timestamp, status, and target, whether it is the capture requested or the nearest capture Wayback redirected the requested timestamp to - An HTML page is decoded with its declared charset (byte-order mark, then
Content-Type, then<meta>, else UTF-8 when the bytes are valid UTF-8, else Wayback's guessed charset or windows-1252), then scripts, styles, comments, and tags are removed and character references decoded, returning readable plain text in lines alongside the replay URL: each block element (paragraph, heading, list item, table row) and<br>starts a line, the cells of a table row are separated by tabs (empty cells included),<pre>text keeps its spacing and line breaks, and elsewhere a whitespace run reads as one space and blank lines collapse to one. Another text type (plain text, JSON, XML, JavaScript) is read as stored from the capture'sid_form, markup and line breaks kept, decoded by the same charset order without the<meta>step. A capture that is not text (a PDF, an image) fails asnon_text_capture - Reads at most the first 4 MiB of a page (a
noticesays when a page is longer). Long text comes one page at a time:max_chars(default and maximumIA_MAX_SNAPSHOT_CHARS, 50,000 characters) sizes a page andchar_offsetstarts it;has_moreandtotal_charssay what remains, and anoticenames theurl,char_offset, andresolved_timestamp(astimestamp) that read the next page from the same capture, andinclude_links truewhen the call set it; after an archived redirect thaturldiffers from the one sent include_links(defaultfalse) addslinks, one{ text, url }per http(s) link target whose first occurrence starts in this page of text, in document order, andtotal_links, the count over the capture's whole text (the first 4 MiB). Each target is listed once, with the first non-empty text it is linked by; the page's own URL, other schemes (mailto:,ftp:), and fragments are left out. A link Wayback rewrote reads as the URL it archives; any other resolves against the capture's original URL or its first<base href>. The last page also takes links at the very end of the text, so a read that followshas_morewith the option set lists each link once, and a smallermax_charscarries fewer per call. A non-HTML capture gives[]and0. It adds no request. To read a linked page, pass itsurlwithresolved_timestampastimestamp, or with a blanktimestampwhen the link is a Wayback capture URL (a link to an archived copy); incontent[]the links follow the text as**Links on this page:**and one item per link- Typed errors:
invalid_timestamp(atimestampthat is not blank, 1–14 digits, or an ISO 8601 date or UTC date-time, or names a date or time that does not exist; or a capture URL inurlwhose timestamp does the same, namingfield: "url"; answered before any request),ambiguous_timestamp(a capture URL inurland atimestampnaming a different one; answered before any request),no_snapshot_available(no capture near the timestamp; the capture is an archived error page, the message naming its timestamp and archived status; the replay's redirects reach no readable capture — the target of an archived redirect was never archived, is an archived error page, or was refused, or the redirects loop, run past 10, or carry noLocationor one that is not a Wayback Machine URL — the message naming any archived redirect and its target, and how the redirects ended; or Wayback refused the replay with a 4xx, or the lookup with a 403, 410, or 451, as it does for a site excluded from the Wayback Machine),non_text_capture(the capture Wayback served is not text; the message names its replay URL, and any archived redirect that led to it),content_fetch_failed(Wayback unreachable, rate-limiting, or timed out during the page fetch, or refusing the unmodified form of a text capture it replayed, or that form's redirects reaching no readable capture; the Availability API refused the lookup, timed out, or could not be reached; the closest-capture lookup and its CDX fallback did not complete; or the lookup and the fetch together did not finish within the call's 55 s deadline (IA_REQUEST_TIMEOUT_MSwhen longer))
ia_search_items tool
- Solr query syntax plus structured filters:
mediatype,collection,creator,language, and publication date range (date_from/date_to). With a filter,queryis parenthesized so the filter binds to all of it creatormatches a creator holding every word of the name close together, in any order and case-insensitively, soCharles Dickensalso findsDickens, Charles, 1812-1870; for an exact phrase putcreator:"Charles Dickens"inquery.languagetakes an ISO 639-1, ISO 639-2, or discontinued MARC code or an English name and matches a known language under any of its codes and names (fralso findsfre,fra, andFrench); a two-letter code that is also an English word (am,an,as,be,he,hi,is,it,my,no,or,so,to) is searched only when it is the value given, and an unknown value is matched as given.collectiontakes an identifier or its archive.org details URL- Date bounds accept
YYYY,YYYY-MM, orYYYY-MM-DD:date_fromuses the period's first day anddate_toits last day, including leap years. The bounds match the item's publicationdateonly, so an item with nodatenever matches. Blank bounds leave that side open; invalid dates returninvalid_date_rangebefore a search request. For a range on when an item was uploaded, putpublicdateinquery, such aspublicdate:[2026-11-01 TO 2026-11-21]; a bare upper date covers its whole day mediatypetakes the ten Internet Archive media types —texts,movies,audio,software,image,data,web,collection,etree,account— case-insensitively, and resolves common near-misses (text,book,books→texts;movie,video,videos→movies;images→image;collections→collection)- Sort by downloads, date, title, or random (
sort, Solr syntax such asdate ascortitleSorter asc; defaultdownloads desc; Advanced Search has no relevance sort). Except underrandom, ties under the sort are ordered byidentifier, so consecutive pages neither repeat nor skip an item queryis at most 2,047 characters, the longest Advanced Search accepts; the filters count toward it, and a URL in the query must be quoted- Up to 200 results per call (
rows, default 50), 1-indexedpage; on page 1 a largerrows(up to 10,000) is served as 200, settingtruncatedand anoticenamingrows: 200, page: 2when more results remain - Advanced Search serves only the first 10,000 results, so
page × rows ≤ 10,000 - Output carries
total_found,page, and therowsapplied for pagination; an empty page returns anoticerather than an error — naming every filter applied when nothing matched, or the last page whenpageis past the end - Each row carries
publicdate, when the item became public (its upload time), as Advanced Search returns it, such as2014-10-24T16:15:43Z, omitted when the record has none; apublicdatesort orders by it, andcontent[]renders it as**Public Date:**after**Date:** title,date,publicdate,creator, andcollectionmay be a string or a list;collectionleaves out per-accountfav-favorites lists, andcreatorlists the first 10 names, withcreator_countwhen a record has more. Incontent[]a list of two or more values renders one item per value, so a value holding a comma keeps its boundaries- Typed errors answered before any search request:
invalid_date_range(an invalid date bound),invalid_mediatype(any othermediatype, listing the accepted values),invalid_filter(acreatororlanguagewith no letter or digit, which Advanced Search would ignore and match every item),invalid_query(aqueryending in a backslash that escapes nothing),rows_over_cap(rowsabove 200 past page 1), andpage_limit_exceeded(page × rowspast 10,000, naming the last reachable page) - Typed errors from Advanced Search:
invalid_query(it rejected the query syntax, an unquoted URL, a query its filters take past 2,047 characters, or the sort field; its message is relayed) andsearch_unavailable(it failed, rate-limited the request, sent an unreadable response, timed out, did not finish within the call's 55 s deadline (IA_REQUEST_TIMEOUT_MSwhen longer), or could not be reached); a 5xx or network error is retried while the deadline allows, while a 429, another 4xx, a timeout, or an error body is answered after one request, a 4xx with a hint that repeating the request will not help
ia_get_item tool
identifieris an item identifier or an archive.org item URL (/details/,/download/,/metadata/,/stream/, or/embed/form, or a storage-node/<n>/items/<identifier>/…form) read as the identifier it names- Returns
title,creator,description,mediatype,date,publicdate,addeddate,subject,collection,licenseurl,rights,language,publisher,volume,isbn,oclc_id,lccn,openlibrary_edition,openlibrary_work, andruntimewhen present in upstream metadata; each of them may be a string or a list, and a value of any other shape is left out.dateis the publication date;publicdate(when the item was made public) andaddeddate(when it was added to the Archive) are stored asYYYY-MM-DD HH:MM:SSin UTC,addeddateon some records as a bare date, and an item can have both with nodate.runtimeis an audio or video item's total running time as catalogued (13:06:44, or free text such as27 min 13 sec). Incontent[]a list of two or more values renders one item per value (alicenseurllist as one link per URL; a license that is not a web URL reads as text), and a multi-valuetitleis listed under**Title:**with the heading falling back to the identifier.descriptionis plain text, converted from the HTML the Archive stores (paragraphs and<br>become line breaks, a link reads as its label followed by its URL in parentheses) image_count(texts items only: the scanned page images, covers and calibration cards included, not a printed page count) andaccess_restricted(truewhen the item is in an access-restricted collection such as a lending library) are present when they applyfiles[]is one page of the manifest in upstream order —format,size,md5, and a directdownload_urlper file, plusprivate: trueon a file the manifest marks private, whose download the Archive refuses;file_countis always the full manifest size. An audio or video file also carriestitle,track, andlengthas catalogued (trackas1,01, or1/37,0on checksum and file-list files;lengthas minutes and seconds such as06:21or as seconds such as381.1, which can differ between the copies of one recording, and derived copies often lacktitleandtrack), shown incontent[]as nested**Title:**,**Track:**, and**Length:**items under the file. Each per-file field is kept only as a non-empty string, and a manifest entry with no file name is left outmax_files(default 50, at most 500 per call) andfile_offset(default 0) page through large items; a largermax_files(up to 300,000) is served as 500. When files remain, the response setstruncatedand names the nextfile_offsetformatkeeps one file type (exact match, case-insensitive — e.g.DjVuTXT,Text PDF,VBR MP3) before paging and reports the match count astotalCount; a format with no matches returns an empty page and a notice listing the formats the item has- Typed errors:
invalid_identifier(anidentifierholding/or:that is not an archive.org item URL, answered before any request),item_not_found(unknown or dark identifiers),archive_unavailable(the Metadata API failed, rate-limited or refused the request, timed out, could not be reached, or sent an unreadable response, or the call's 55 s deadline ran out); a first timeout is retried once while time remains, and a call ends within 55 s, orIA_REQUEST_TIMEOUT_MSwhen that is longer
ia_get_text tool
max_charsandchar_offsetpage through long documents;has_moresignals additional text remains.max_charsdefaults to and is capped atIA_MAX_SNAPSHOT_CHARS— a larger value is served at that maximum, with anotice, and the outputmax_charsreports the value applied- For sequential pages, pass
next_continuationback ascontinuationwith the sameidentifier, omittingchar_offset. The cursor expires after one hour, binds the page to the selected text file, and resumes from its byte checkpoint. If a stable file validator or cursor storage is unavailable, the response gives an offset continuation notice - Continuation errors:
ambiguous_paginationwhen both token and offset are supplied,invalid_continuationfor an invalid or changed-file cursor, andrange_unavailablewhen the download cannot resume at the saved range. Recovery names thechar_offsetto use find(a literal phrase of at most 500 characters, trimmed; blank is read as omitted) starts the page at the phrase's first match at or afterchar_offsetor the continuation's position, so a passage can be read without paging to it.match_offsetreports where the match begins and equals the outputchar_offset. Letters match regardless of case, one character to one (ßnever matchesss); a whitespace run in the phrase matches any whitespace run in the text, line breaks included; every other character matches itself, so OCR misreads and words hyphenated across line ends break a phrase.findwithcontinuationis accepted, andcontinuationwithchar_offsetstill fails asambiguous_pagination. The page'snext_continuation, passed back with the samefind, searches on from the page's end; a match that begins inside the returned page and runs past its end is not reported by that search- A
findthat matches nothing returns emptytext,has_more: false, nomatch_offsetornext_continuation, and anoticenaming the file and the offset the search started from; it rules out that one file from that offset to its end only (the file-count notice stays when the file was a default pick) find_incomplete(Timeout) means the search stopped about a second before the download's request timeout or the call deadline would have cut it off, or the first match came after a whitespace run longer than the text one call holds.data.char_offsetis where to resume (the match itself in the second case) anddata.next_continuationis present when a cursor could be stored; call again with the samefindand that token, or with that offset when there is none, which reads the file from its first byte and so searches further only on a faster download. A search that stopped without getting past its start, with no cursor that skips the text before it, fails asarchive_unavailableinstead, as a read withoutfinddoes when its download cannot reachchar_offset. Neither is retried- The upstream read stops at the page's end (with
find, at the end of the page that starts at the first match, or at the end of the file when nothing matches), so memory per call is bounded by the page size identifieris an item identifier or an archive.org item URL (/details/,/download/,/stream/,/metadata/, or/embed/form, or a storage-node/<n>/items/<identifier>/…form); a/download/,/stream/, or storage-node URL that names a file reads that file whenfileis omitted, and a continuation must read the file it names. A Wayback Machine URL is rejected: useia_get_snapshot- Each call reads one text file: the one
filenames, or by default the first DjVuTXT file, else Text, Plain Text, or another.txtfile (Metadata sidecars excluded).filetakes a name asia_get_itemlists it. When an item holds several readable text files, such as one per volume, anoticegives the count and says to passfilefor another source_filenames the file fetched andsource_file_bytesits size in bytes, from the item manifest- Typed errors:
invalid_identifier(anidentifierholding/or:that is not an archive.org item URL),invalid_file(file, or the file a URL names, is not in the manifest or is not readable text),item_not_found,no_text_file,find_incomplete(afindsearch that stopped early, above),download_forbidden(restricted collections),archive_unavailable(the Metadata API or the text download failed, rate-limited or refused the request, timed out, could not be reached, or the call's 55 s deadline ran out, or afindsearch could not get past its start before the download ran out of time); the metadata request and the download each retry a first timeout once while time remains and stop at a second, and a call ends within 55 s, orIA_REQUEST_TIMEOUT_MSwhen that is longer
ia://item/{identifier} resource
- Returns
application/json—title,creator,mediatype,description(plain text, as inia_get_item),subject,collection,date,publicdate,addeddate,licenseurl,rights,language,publisher,volume,isbn,oclc_id,lccn,openlibrary_edition,openlibrary_work,runtime,image_count,access_restricted, andfile_count; each field is omitted when absent, and a field may be a string or a list as inia_get_item identifiercomes fromia_search_itemsresults- Typed errors:
item_not_foundfor unknown identifiers,archive_unavailablewhen the Metadata API fails or the read's 55 s deadline (IA_REQUEST_TIMEOUT_MSwhen longer) runs out
Features
Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.
Internet Archive-specific:
- No credentials required — all four APIs are public
- Three service layers:
WaybackService(Availability + CDX),ArchiveSearchService(Solr),ArchiveMetadataService(Metadata + downloads) - CDX collapse-by-day default and configurable
limitkeep responses tractable for high-capture URLs - Identifies via a custom User-Agent on every request as required by IA's terms of use; configurable via
IA_USER_AGENT
Agent-friendly output:
- Pagination context on every list response —
total_found,page,rows(search),resume_key(CDX history), andfile_countplus the nextfile_offset(item files) so agents never have to guess whether results are complete - Typed error reasons with recovery hints so callers can retry, correct a filter, or recover an expired continuation without parsing error messages
- Structured file manifests —
ia_get_itemreturns file-level metadata (format, size, URL, and for audio and video the track title, number, and duration) and aformatfilter, so agents can pick the right file without paging through thumbnails
Getting started
Connect to the hosted instance, no install:
claude mcp add --transport http internet-archive-mcp-server https://internet-archive.caseyjhand.com/mcp
Or run it locally:
claude mcp add internet-archive-mcp-server -- npx -y @cyanheads/internet-archive-mcp-server
For other clients, add this to the MCP config file:
{
"mcpServers": {
"internet-archive-mcp-server": {
"command": "npx",
"args": ["-y", "@cyanheads/internet-archive-mcp-server"]
}
}
}
No API key is required. For Docker or a source build, see Running the server.
Configuration
All configuration is validated at startup via Zod schemas in src/config/server-config.ts.
| Variable | Description | Default |
|---|---|---|
MCP_TRANSPORT_TYPE |
Transport: stdio or http |
stdio |
MCP_HTTP_PORT |
HTTP server port | 3010 |
MCP_AUTH_MODE |
Auth mode: none, jwt, or oauth |
none |
MCP_LOG_LEVEL |
Log level (debug, info, notice, warning, error) |
info |
LOGS_DIR |
Directory for log files (Node.js only) | <project-root>/logs |
STORAGE_PROVIDER_TYPE |
Storage backend | in-memory |
OTEL_ENABLED |
Enable OpenTelemetry instrumentation | false |
IA_USER_AGENT |
Custom User-Agent for IA API requests | internet-archive-mcp-server/{version} (github.com/cyanheads/internet-archive-mcp-server) |
IA_REQUEST_TIMEOUT_MS |
Timeout for each upstream HTTP request in milliseconds, headers and body. A whole tool call or resource read ends within 55 s, or within this timeout when it is longer. A positive integer — anything else fails startup | 30000 |
IA_MAX_SNAPSHOT_CHARS |
Default and maximum characters per ia_get_text and ia_get_snapshot page (a larger max_chars is served at it). A positive integer — anything else fails startup |
50000 |
See .env.example for the full list of optional overrides.
Running the server
Local development
Requires Bun v1.4.4 or higher (or Node.js v24+).
Clone and install:
git clone https://github.com/cyanheads/internet-archive-mcp-server.git cd internet-archive-mcp-server && bun install cp .env.example .env # optional User-Agent and timeout overridesBuild and run:
# One-time build bun run rebuild # Run the built server bun run start:stdio # or bun run start:httpRun checks and tests:
bun run devcheck # Lint, format, typecheck, security bun run test # Vitest test suite bun run lint:mcp # Validate MCP definitions against spec
Docker
docker run --rm -p 3010:3010 ghcr.io/cyanheads/internet-archive-mcp-server:latest
The image defaults to HTTP transport, stateless session mode, and logs to /var/log/internet-archive-mcp-server. For stdio, use "command": "docker" with "args": ["run", "-i", "--rm", "-e", "MCP_TRANSPORT_TYPE=stdio", "ghcr.io/cyanheads/internet-archive-mcp-server:latest"] in the MCP config. To build locally, docker build -t internet-archive-mcp-server .; OpenTelemetry peer dependencies are installed by default — build with --build-arg OTEL_ENABLED=false to omit them.
Project structure
| Directory | Purpose |
|---|---|
src/index.ts |
createApp() entry point — registers tools, resource, and inits services. |
src/config |
Server-specific environment variable parsing and validation with Zod. |
src/mcp-server/tools |
Tool definitions (*.tool.ts). Five tools across Wayback and IA library. |
src/mcp-server/resources |
Resource definitions. ia://item/{identifier} item metadata resource. |
src/services/wayback |
WaybackService — Availability API + CDX API client, plus archived-page charset decoding, timestamp parsing, and Wayback capture URL reading (including the targets of a page's links). |
src/services |
Shared modules: HTML-to-text extraction (archived pages and item descriptions), upstream error classification, the per-call deadline. |
src/services/archive-search |
ArchiveSearchService — Solr Advanced Search client. |
src/services/archive-metadata |
ArchiveMetadataService — Metadata API + file download client, plus the streaming phrase search behind find. |
tests/ |
Unit and integration tests mirroring src/. |
Development guide
See CLAUDE.md for development guidelines and architectural rules. The short version:
- Handlers throw, framework catches — no
try/catchin tool logic - Use
ctx.logfor request-scoped logging,ctx.statefor tenant-scoped storage - Register new tools and resources via the barrels in
src/mcp-server/*/definitions/index.ts - Wrap external API calls: validate raw → normalize to domain type → return output schema; never fabricate missing fields
Contributing
Issues are welcome. Run checks and tests before submitting:
bun run devcheck
bun run test
License
Apache-2.0 — see LICENSE for details.
Установка @Cyanheads/Internet Archive Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/cyanheads/internet-archive-mcp-serverFAQ
@Cyanheads/Internet Archive Server MCP бесплатный?
Да, @Cyanheads/Internet Archive Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для @Cyanheads/Internet Archive Server?
Нет, @Cyanheads/Internet Archive Server работает без API-ключей и переменных окружения.
@Cyanheads/Internet Archive Server — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить @Cyanheads/Internet Archive Server в Claude Desktop, Claude Code или Cursor?
Открой @Cyanheads/Internet Archive Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Unyly Deploy
Deploy sites and MCP servers to Unyly straight from your AI agent
автор: UnylyTemplate MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectServer Sequential Thinking
MCP server for sequential thinking and problem solving
автор: GitHub ActionsAmap Maps Mcp Server
MCP server for using the AMap Maps API
автор: duxiaohuiPayMCP
Lightweight payments layer for MCP servers: turn tools into paid endpoints with a two-line decorator. [PyPI](https://pypi.org/project/paymcp/) · [npm](https://w
автор: blustAIdemo
demo — MCP server via Smithery
автор: yoojoohans-jpgServer For Power BI
Enables exploring Microsoft Fabric / Power BI workspaces and semantic models, and executing ad-hoc DAX queries.
автор: Mitsubishi-FusoCompare @Cyanheads/Internet Archive Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
