Skip to main content
Glama

internet-archive-mcp-server

Search Internet Archive Items

ia_search_items
Read-only

Search the Internet Archive library (40M+ items) using the Advanced Search (Solr) API. Filter by media type (texts, audio, movies, software, image, etc.), collection, creator, publication date range, and language. Sort by downloads (the default), date, title, or random. Supports pagination via page/rows. Returns identifiers, titles, creators (the first 10, with creator_count when a record lists more), media types, publication dates, upload dates (publicdate), download counts, collections (without fav- favorites lists), total_found, and current page/rows for pagination context. Use ia_get_item with a returned identifier to get full metadata and file manifests.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "ia_search_items"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number (1-indexed). Combine with rows for pagination. Advanced Search serves only the first 10,000 results, so page × rows ≤ 10,000 (page 50 at 200 rows, page 200 at 50).
rowsNoNumber of results per page (default 50). One call returns at most 200: on page 1 a larger value (up to 10,000) is served as 200 with a notice naming the next page; on later pages a value above 200 is rejected.
sortNoSort order in Solr format: a sortable field followed by asc or desc, e.g. "downloads desc", "date asc", "publicdate desc", "titleSorter asc", or "random". Default: "downloads desc". Advanced Search has no relevance sort. Except under random, results tied under the sort are ordered by identifier, so consecutive pages neither repeat nor skip an item.
queryYesSolr query string. Supports field prefixes such as title:"war and peace", creator:dickens, subject:history. Plain keywords search all fields. Put a URL in quotes. At most 2,047 characters, a limit the filters below also count toward.
creatorNoFilter by creator name, e.g. "Charles Dickens". Matches a creator holding every word of the name close together, in any order and case-insensitively, so "Charles Dickens" also finds "Dickens, Charles, 1812-1870" and "Charles John Huffam Dickens". For an exact phrase, put creator:"Charles Dickens" in query instead. Must contain a letter or digit.
date_toNoInclusive end of a range on the publication date (date): YYYY, YYYY-MM, or YYYY-MM-DD. A year or month ends on its last day; blank means no upper bound. Must be a real Gregorian date. An item with no date never matches. For an upload-time range, put publicdate in query instead, e.g. publicdate:[2026-11-01 TO 2026-11-21]; a bare upper date covers its whole day.
languageNoFilter by language: an ISO 639-1, ISO 639-2, or discontinued MARC code, or an English name, e.g. "eng", "en", "English", or "fre". Case-insensitive. A known language matches records under any of its codes and names ("fr" also finds "fre", "fra", and "French"), except a two-letter code that is also an English word (am, an, as, be, he, hi, is, it, my, no, or, so, to), matched only when it is the value given; any other value is matched as given. For a single spelling, put language:"eng" in query instead. Must contain a letter or digit.
date_fromNoInclusive start of a range on the publication date (date): YYYY, YYYY-MM, or YYYY-MM-DD. A year or month starts on its first day; blank means no lower bound. Must be a real Gregorian date. An item with no date never matches. For an upload-time range, put publicdate in query instead, e.g. publicdate:[2026-11-01 TO 2026-11-21]; a bare upper date covers its whole day.
mediatypeNoFilter by media type: texts, movies, audio, software, image, data, web, collection, etree (live concert recordings), or account. Case-insensitive; text, book, and books mean texts, movie, video, and videos mean movies, images means image, and collections means collection. Any other value is rejected.
collectionNoFilter to items within a collection, given by identifier, e.g. "gutenberg" or "librivoxaudio", or by its archive.org details URL, e.g. https://archive.org/details/gutenberg.

Output Schema

NameRequiredDescriptionDefault
capNoThe per-call cap applied to rows (200).
pageNoCurrent page number (1-indexed).
rowsNoRows per page applied: the requested rows, or 200 when a larger value was capped.
errorNoPresent when the call failed. Absent on success.
itemsNoItems matching the search query.
shownNoNumber of items returned.
noticeNoGuidance when the page came back empty — nothing matched (naming every filter applied), or the requested page is past the last page of results — or when rows was capped, naming the rows and page that continue.
truncatedNoTrue when rows above 200 was served at 200 and more results remain.
total_foundNoTotal number of matching items across all pages.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / date_from / description
      Previous value: -"Inclusive start of date range: YYYY, YYYY-MM, or YYYY-MM-DD. A year or month starts on its first day; blank means no lower bound. Must be a real Gregorian date."New value: +"Inclusive start of a range on the publication date (date): YYYY, YYYY-MM, or YYYY-MM-DD. A year or month starts on its first day; blank means no lower bound. Must be a real Gregorian date. An item with no date never matches. For an upload-time range, put publicdate in query instead, e.g. publicdate:[2026-11-01 TO 2026-11-21]; a bare upper date covers its whole day."
    • changedInput schema / properties / date_to / description
      Previous value: -"Inclusive end of date range: YYYY, YYYY-MM, or YYYY-MM-DD. A year or month ends on its last day; blank means no upper bound. Must be a real Gregorian date."New value: +"Inclusive end of a range on the publication date (date): YYYY, YYYY-MM, or YYYY-MM-DD. A year or month ends on its last day; blank means no upper bound. Must be a real Gregorian date. An item with no date never matches. For an upload-time range, put publicdate in query instead, e.g. publicdate:[2026-11-01 TO 2026-11-21]; a bare upper date covers its whole day."
    • changedOutput schema / properties / items / items / properties / date / description
      Previous value: -"Publication or upload date; a few records carry a list, relayed as received."New value: +"Publication date; a few records carry a list, relayed as received."
    • addedOutput schema / properties / items / items / properties / publicdate
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "Single public date.",
      +      "type": "string"
      +    },
      +    {
      +      "description": "Multiple public date values.",
      +      "items": {
      +        "description": "Public date value.",
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  ],
      +  "description": "When the item became public on the Archive (its upload time), ISO 8601 in UTC as Advanced Search returns it, e.g. 2014-10-24T16:15:43Z; the value a publicdate sort orders by. Omitted when the record has none."
      +}
  2. Changed1 schema field changed
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `invalid_date_range`: date_from or date_to is not a real Gregorian year, month, or date. `invalid_mediatype`: mediatype is not an Internet Archive media type or one of its recognized spellings. `invalid_filter`: creator or language has no letter or digit, so Advanced Search would ignore it and match every item. `page_limit_exceeded`: page × rows exceeds 10,000, the last result Advanced Search serves. `rows_over_cap`: rows is above 200 on a page after the first. `invalid_query`: The query ends in a backslash that escapes nothing, or Advanced Search rejected the query syntax, an unquoted URL, the query length, or the sort field. `search_unavailable`: Advanced Search failed, rate-limited the request, returned an unreadable response, timed out, or could not be reached (network error). Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `invalid_date_range`: date_from or date_to is not a real Gregorian year, month, or date. `invalid_mediatype`: mediatype is not an Internet Archive media type or one of its recognized spellings. `invalid_filter`: creator or language has no letter or digit, so Advanced Search would ignore it and match every item. `page_limit_exceeded`: page × rows exceeds 10,000, the last result Advanced Search serves. `rows_over_cap`: rows is above 200 on a page after the first. `invalid_query`: The query ends in a backslash that escapes nothing, or Advanced Search rejected the query syntax, an unquoted URL, the query length, or the sort field. `search_unavailable`: Advanced Search failed, rate-limited the request, returned an unreadable response, timed out, did not finish within the call's 55 s deadline (the request timeout when that is longer), or could not be reached (network error). Other values are possible when a failure originates below the handler."
  3. Changed6 schema fields changed
    • changedInput schema / properties / collection / description
      Previous value: -"Filter to items within a specific collection identifier, e.g. \"gutenberg\" or \"librivoxaudio\"."New value: +"Filter to items within a collection, given by identifier, e.g. \"gutenberg\" or \"librivoxaudio\", or by its archive.org details URL, e.g. https://archive.org/details/gutenberg."
    • changedInput schema / properties / creator / description
      Previous value: -"Filter by creator name, e.g. \"Charles Dickens\"."New value: +"Filter by creator name, e.g. \"Charles Dickens\". Matches a creator holding every word of the name close together, in any order and case-insensitively, so \"Charles Dickens\" also finds \"Dickens, Charles, 1812-1870\" and \"Charles John Huffam Dickens\". For an exact phrase, put creator:\"Charles Dickens\" in query instead. Must contain a letter or digit."
    • changedInput schema / properties / language / description
      Previous value: -"Filter by language code or name, e.g. \"eng\" or \"English\"."New value: +"Filter by language: an ISO 639-1, ISO 639-2, or discontinued MARC code, or an English name, e.g. \"eng\", \"en\", \"English\", or \"fre\". Case-insensitive. A known language matches records under any of its codes and names (\"fr\" also finds \"fre\", \"fra\", and \"French\"), except a two-letter code that is also an English word (am, an, as, be, he, hi, is, it, my, no, or, so, to), matched only when it is the value given; any other value is matched as given. For a single spelling, put language:\"eng\" in query instead. Must contain a letter or digit."
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `invalid_date_range`: date_from or date_to is not a real Gregorian year, month, or date. `invalid_mediatype`: mediatype is not an Internet Archive media type or one of its recognized spellings. `page_limit_exceeded`: page × rows exceeds 10,000, the last result Advanced Search serves. `rows_over_cap`: rows is above 200 on a page after the first. `invalid_query`: Advanced Search rejected the query syntax, an unquoted URL, the query length, or the sort field. `search_unavailable`: Advanced Search failed, rate-limited the request, returned an unreadable response, timed out, or could not be reached (network error). Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `invalid_date_range`: date_from or date_to is not a real Gregorian year, month, or date. `invalid_mediatype`: mediatype is not an Internet Archive media type or one of its recognized spellings. `invalid_filter`: creator or language has no letter or digit, so Advanced Search would ignore it and match every item. `page_limit_exceeded`: page × rows exceeds 10,000, the last result Advanced Search serves. `rows_over_cap`: rows is above 200 on a page after the first. `invalid_query`: The query ends in a backslash that escapes nothing, or Advanced Search rejected the query syntax, an unquoted URL, the query length, or the sort field. `search_unavailable`: Advanced Search failed, rate-limited the request, returned an unreadable response, timed out, or could not be reached (network error). Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / error / properties / data / properties / reason / examples
      Previous value: -[
      -  "invalid_date_range",
      -  "invalid_mediatype",
      -  "page_limit_exceeded",
      -  "rows_over_cap",
      -  "invalid_query",
      -  "search_unavailable"
      -]New value: +[
      +  "invalid_date_range",
      +  "invalid_mediatype",
      +  "invalid_filter",
      +  "page_limit_exceeded",
      +  "rows_over_cap",
      +  "invalid_query",
      +  "search_unavailable"
      +]
    • changedOutput schema / properties / notice / description
      Previous value: -"Guidance when the page came back empty — nothing matched (naming the mediatype filter applied, if any), or the requested page is past the last page of results — or when rows was capped, naming the rows and page that continue."New value: +"Guidance when the page came back empty — nothing matched (naming every filter applied), or the requested page is past the last page of results — or when rows was capped, naming the rows and page that continue."
  4. Changed4 schema fields changed
    • changedInput schema / properties / date_from / description
      Previous value: -"Start of date range filter in YYYY-MM-DD format. Example: \"1900-01-01\"."New value: +"Inclusive start of date range: YYYY, YYYY-MM, or YYYY-MM-DD. A year or month starts on its first day; blank means no lower bound. Must be a real Gregorian date."
    • changedInput schema / properties / date_to / description
      Previous value: -"End of date range filter in YYYY-MM-DD format. Example: \"1999-12-31\"."New value: +"Inclusive end of date range: YYYY, YYYY-MM, or YYYY-MM-DD. A year or month ends on its last day; blank means no upper bound. Must be a real Gregorian date."
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `invalid_mediatype`: mediatype is not an Internet Archive media type or one of its recognized spellings. `page_limit_exceeded`: page × rows exceeds 10,000, the last result Advanced Search serves. `rows_over_cap`: rows is above 200 on a page after the first. `invalid_query`: Advanced Search rejected the query syntax, an unquoted URL, the query length, or the sort field. `search_unavailable`: Advanced Search failed, rate-limited the request, returned an unreadable response, timed out, or could not be reached (network error). Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `invalid_date_range`: date_from or date_to is not a real Gregorian year, month, or date. `invalid_mediatype`: mediatype is not an Internet Archive media type or one of its recognized spellings. `page_limit_exceeded`: page × rows exceeds 10,000, the last result Advanced Search serves. `rows_over_cap`: rows is above 200 on a page after the first. `invalid_query`: Advanced Search rejected the query syntax, an unquoted URL, the query length, or the sort field. `search_unavailable`: Advanced Search failed, rate-limited the request, returned an unreadable response, timed out, or could not be reached (network error). Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / error / properties / data / properties / reason / examples
      Previous value: -[
      -  "invalid_mediatype",
      -  "page_limit_exceeded",
      -  "rows_over_cap",
      -  "invalid_query",
      -  "search_unavailable"
      -]New value: +[
      +  "invalid_date_range",
      +  "invalid_mediatype",
      +  "page_limit_exceeded",
      +  "rows_over_cap",
      +  "invalid_query",
      +  "search_unavailable"
      +]
  5. First observed

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare readOnly and openWorld; the description adds substantial behavior beyond that: a 10,000-result Advanced Search ceiling, a 200-row per-call cap with a notice naming the next page, rejection of >200 on later pages, deterministic tie ordering by identifier so pages neither repeat nor skip, and no relevance sort. These are non-obvious constraints an agent cannot get from annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action and corpus size, then filters, then sort/pagination, then return shape, then routing to the sibling tool. Dense but every sentence carries information; no filler or repetition of the name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

A 10-parameter search tool with an output schema, and the description still covers the constraints that matter most (result cap, page-size behavior, sort semantics, tie ordering, filter capabilities). An agent has everything needed to call it correctly and to know the next step.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds meaning beyond the schema: default sort of downloads desc, the page/rows pagination model, filterable dimensions (media type, collection, creator, publication date range, language), and the notable exclusion of fav- favorites from returned collections. It does not restate field-specific syntax, correctly leaving that to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Search the Internet Archive library (40M+ items)") plus the underlying API (Advanced Search/Solr), and explicitly names the sibling to use for the follow-up step ("Use ia_get_item with a returned identifier"). An agent can distinguish it from ia_get_item, ia_get_text and the snapshot tools without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear operational context: enumerate a large corpus with filters, then hand a returned identifier to ia_get_item for full metadata and files. It also implicitly scopes use to discovery rather than retrieval. It stops short of stating exclusions (e.g., when to prefer ia_find_snapshots or full-text search), so it is not a full 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.