Skip to main content
Glama

internet-archive-mcp-server

Get Internet Archive Item Text

ia_get_text
Read-onlyIdempotent

Retrieve the readable text content of a text item (OCR DjVuTXT or plain-text file) from the Internet Archive, with length-aware truncation and a continuation pointer for pagination. Suited for public-domain books, documents, scanned periodicals, and transcripts. Use max_chars and char_offset to page through long documents. To confirm the item has a text file first, call ia_get_item with format "DjVuTXT"; its response also gives the mediatype.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
max_charsNoMaximum number of characters to return in this response. Defaults to the server-configured maximum (IA_MAX_SNAPSHOT_CHARS, typically 50 000); a larger value is served at that maximum, with a notice. Lower values reduce token usage.
identifierYesInternet Archive item identifier, e.g. "prideprejudice00aust" (Pride and Prejudice). Obtain from ia_search_items results.
char_offsetNoCharacter offset to start reading from (default 0). To read the next page, add max_chars to the previous char_offset.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
textNoThe text slice starting at char_offset up to max_chars characters.
errorNoPresent when the call failed. Absent on success.
noticeNoSet when max_chars exceeded the server maximum (IA_MAX_SNAPSHOT_CHARS) and was served at it, naming the char_offset of the next page, or saying the page reaches the end of the document.
has_moreNoTrue when there is more text beyond this slice. Increment char_offset by max_chars to read the next page.
max_charsNoMaximum characters this response could hold — the requested max_chars, or the server maximum when the request exceeded it.
char_offsetNoCharacter offset used for this response.
source_fileNoFilename of the source text file fetched from the item.
source_file_bytesNoSize of the source text file in bytes, from the item manifest — a byte count, not a character count (non-ASCII text takes several bytes per character). Omitted when the manifest lists no size.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.