Open Library

v1.3.0
io.github.8enSmith/mcp-open-library Checked 7 hours ago Published 9 days ago

Search books and authors on the Internet Archive's Open Library

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

search_books Search books

Search Open Library across titles, authors, subjects, places, people, publishers and ISBNs. Provide at least one search criterion: q, title, author, subject, place, person, publisher, isbn; combining several narrows the search. Returns at most `limit` results (default 10) together with `num_found`, the total number of matches; page through them with `offset`. Each result carries `best_edition` — one edition of the work, with its `isbn_13`/`isbn_10` where Open Library has them, and its `edition_key`, which can be passed to `get_book_by_id` as `{ idType: "olid" }` for that edition's full recor…

ParameterTypeDescription
authorstringSearch by author name.
isbnstringSearch by ISBN-10 or ISBN-13.
languagestringRestrict results to a language, as a 3-letter MARC code (e.g. eng, fre, spa).
limitintegerMaximum number of results to return (1-50, default 10).
offsetintegerNumber of results to skip, for paging through the total reported as num_found (0-1000, default 0).
personstringSearch by a person the book is about.
placestringSearch by a place the book is about.
publisherstringSearch by publisher.
qstringFree-form query searched across all fields. Supports Solr syntax, e.g. `subject:cyberpunk AND first_publish_year:[1980 TO 1990]`.
sortstringResult ordering. Omit for relevance. `new`/`old` order by first publication date, `rating` by average rating.
subjectstringSearch by subject.
titlestringSearch by book title.

get_book_by_title Find books by title

Search for a book by its title on Open Library. Returns at most `limit` results (default 10) together with `num_found`, the total number of matches; page through them with `offset`. Each result carries `best_edition` — one edition of the work, with its `isbn_13`/`isbn_10` where Open Library has them, and its `edition_key`, which can be passed to `get_book_by_id` as `{ idType: "olid" }` for that edition's full record. Each result's `open_library_work_key` can be passed to `get_work` for the work's description, subjects and authors, or to `get_work_editions` to list its editions.

ParameterTypeDescription
title *stringThe title of the book to search for.
limitintegerMaximum number of results to return (1-50, default 10).
offsetintegerNumber of results to skip, for paging through the total reported as num_found (0-1000, default 0).

get_book_by_id Get book by identifier

Get detailed information about a book using its identifier (ISBN, LCCN, OCLC, OLID).

ParameterTypeDescription
idType *stringThe type of identifier used (isbn, lccn, oclc, olid). Case-insensitive.
idValue *stringThe value of the identifier.

get_work Get work details

Get the full record for an Open Library work — the book as a whole, across all its editions: description, subjects, authors, first publication date, cover and external links. Takes the `open_library_work_key` returned by `search_books`, `get_book_by_title` or `get_book_by_id`. Use `get_work_editions` to list the work's editions.

ParameterTypeDescription
work_key *stringThe Open Library work key, e.g. OL45804W. The /works/OL45804W form returned by search_books, get_book_by_title and get_book_by_id is also accepted.

get_work_editions List editions of a work

List the editions of an Open Library work — its specific printings, each with publisher, date, language, ISBNs, page count and format. Takes the `open_library_work_key` returned by `search_books`, `get_book_by_title` or `get_book_by_id`. Returns at most `limit` editions (default 20, maximum 100) with `num_found`, the total; page through them with `offset`. Editions are in Open Library's order, not by date, and cannot be filtered. Pass an edition's `edition_key` to `get_book_by_id` as `{ idType: "olid" }` for its full record.

ParameterTypeDescription
work_key *stringThe Open Library work key, e.g. OL45804W. The /works/OL45804W form returned by search_books, get_book_by_title and get_book_by_id is also accepted.
limitintegerMaximum number of editions to return (1-100, default 20).
offsetintegerNumber of editions to skip, for paging through the total reported as num_found (default 0).

get_authors_by_name Find authors by name

Search for author information on Open Library. Returns at most `limit` authors (default 10) together with `num_found`, the total number of matches; page through them with `offset`. Each result's `key` can be passed to `get_author_info` for that author's full record.

ParameterTypeDescription
name *stringThe name of the author to search for.
limitintegerMaximum number of results to return (1-50, default 10).
offsetintegerNumber of results to skip, for paging through the total reported as num_found (0-1000, default 0).

get_author_info Get author details

Get detailed information for a specific author using their Open Library Author Key (e.g. OL23919A).

ParameterTypeDescription
author_key *stringThe Open Library key for the author (e.g., OL23919A).

get_author_photo Get author photo URL

Get the URL for an author's photo using their Open Library Author ID (OLID e.g. OL23919A). Reports when no photo exists rather than returning a URL to a blank placeholder.

ParameterTypeDescription
olid *stringThe Open Library Author ID (OLID) for the author (e.g. OL23919A).

get_book_cover Get book cover URL

Get the URL for a book's cover image using a key (ISBN, OCLC, LCCN, OLID, ID) and value. Reports when no cover exists rather than returning a URL to a blank placeholder.

ParameterTypeDescription
key *stringThe type of identifier used (ISBN, OCLC, LCCN, OLID, ID). ID is Open Library's internal cover ID.
value *stringThe value of the identifier.
sizestringThe desired size of the cover (S, M, or L). Defaults to L.