Skip to main content
Glama

CI Nightly compliance Ask DeepWiki Maintenance assisted by Hivecommons Hive ACMM L6 Autonomous AI assisted License: GPL-3.0

πŸ“š goodreads-mcp

Thank you, Shreeya Chand. This project is a fork of shreeyachand/goodreads-mcp, and it would not exist without that work. The core idea of reaching Goodreads without its retired API, and the tool set this server offers, come from Shreeya's project. We're grateful for it, and for the MIT licence that let us build on it. If this server is useful to you, please go star the original.

A read-only MCP server for Goodreads β€” built without the Goodreads API, because there hasn't been one since December 2020. Lets an LLM find and research books, ratings, and reviews. Tools ride on the JSON autocomplete endpoint, the __NEXT_DATA__ blob embedded in book pages, the AppSync GraphQL backend the Goodreads website itself uses, and the shelf RSS feed, which Goodreads has answered with 404 for every user since Oct 2026. No login, no cookies, no writes β€” public data only.

tools

tool

source / what it returns

search_books

JSON autocomplete endpoint (stable) β€” book_id, title, author, rating, cover; max_results defaults to 10, but the endpoint returns about 5 matches at most

get_book

__NEXT_DATA__ via the .xml page (stable) β€” details, cover, ratings histogram, every series membership, review-language breakdown (review_language_limit, default 5, max 25); edition publication_date and the work's first_published, original_title, language, isbn / isbn13 / asin, author_url (each null when absent)

get_reviews

GraphQL β€” paginated reader reviews (text, rating, likes, date, spoiler flag, permalink); limit default 10, capped at 100; server-side min_rating / max_rating (1–5, min ≀ max), sort (relevance default, newest, oldest), language (two-letter code, as in get_book's review_languages) and search over review text; exclude_spoilers; reports has_more

similar_books

GraphQL β€” paginated "readers also enjoyed" recommendations; limit up to 100

author_books

GraphQL β€” paginated author bibliography, ranked by popularity, from any of their books, plus author_url; limit up to 100

series_books

GraphQL β€” paginated series books with reading-order placement; series_index (zero-based, in get_book's series_memberships order) picks the series; limit up to 100

get_editions

GraphQL β€” paginated editions (format, ISBN, publisher, publication date as publication_date YYYY-MM-DD plus raw publication_time in epoch ms); limit up to 100

book_lists

GraphQL β€” paginated Listopia lists a book appears on (title, votes, size); limit up to 100

popular_books

GraphQL β€” most popular books by release year, or a single month (1–12), ranked; limit capped at 50

compare_books

get_book for each id (__NEXT_DATA__ via .xml) β€” ranks 1–10 distinct books by rating with positive/critical share; a repeated id is fetched once; more than 10 ids is refused; a book that fails comes back as an error entry; if Goodreads answers 429 or 503 the comparison stops there, keeps the books already fetched, and marks the rest as not fetched

get_shelf

shelf RSS feed β€” books on a public shelf (rating and year as ints, None when absent; dates as YYYY-MM-DD; plus cover, pages, my_review); page starts at 1, about 100 items per page; user_id overrides the configured user; raises LoginRequired for a private profile, and ShelfFeedUnavailable while Goodreads answers the feed with 404 (since Oct 2026)

list_shelves

best-effort HTML scrape of the public profile page β€” shelf names; raises LoginRequired for a private profile

Every tool is registered with MCP read-only annotations (read-only, non-destructive, idempotent).

The discovery tools all take a book_id and return results carrying book_id/title/author/rating/url, so an agent can chain them β€” e.g. similar_books β†’ get_reviews on a recommendation. book_id is a string on both sides ("54493401", or the slug form "54493401-title" on input), so a value copied out of one result is accepted as-is by the next call. average_rating is a number (or null) in every tool, so results from different tools sort together. This is the structured book graph a general web search can't assemble.

The five paginated discovery tools (similar_books, author_books, series_books, get_editions, book_lists) page in batches of 20 and accept a total limit up to 100; popular_books caps limit at 50. Responses include returned and has_more, keeping larger lookups useful without allowing unbounded traffic.

WAF and login note: Goodreads book HTML pages now sit behind an AWS WAF JavaScript challenge (HTTP 202) that plain HTTP clients can't solve. get_book routes around it via the .xml-suffixed page, so it still works without a browser. If Goodreads ever extends the WAF to a path we depend on, the client raises WAFChallenge with a clear message instead of a confusing parse error. The review-list page (/review/list/{uid}) became login-only in Sep 2026; the client raises LoginRequired on a sign-in redirect for the same reason, and list_shelves reads the public profile page instead.

Related MCP server: goodreads-mcp

install

With pip:

cd goodreads-mcp
python3.11 -m venv .venv && .venv/bin/pip install -e .

Or with uv, which is also what the Claude Desktop bundle uses:

cd goodreads-mcp
uv sync
uv run goodreads-mcp

Requires Python β‰₯ 3.11.

Each date-numbered release is also published to PyPI as goodreads-mcp-ai (the goodreads-mcp name there belongs to an unrelated project) and listed on the official MCP registry as io.github.Danathar/goodreads-mcp-ai, from server.json. The listing carries a uvx runtime hint; a client that follows it runs uvx goodreads-mcp-ai, which you can also run yourself.

config (optional)

No login or cookies β€” everything is public data. The only setting is your numeric user_id, the default for the shelf tools. It's the number in goodreads.com/user/show/<ID>-yourname; you can also pass user_id to each shelf tool per call.

mkdir -p ~/.config/goodreads-mcp
cat > ~/.config/goodreads-mcp/config.json << 'EOF'
{ "user_id": "12345678" }
EOF

Env var GOODREADS_USER_ID overrides the file. A config file that can't be read, isn't valid JSON, isn't a JSON object, or has a user_id that is neither a string nor a whole number is ignored with a warning on stderr (a bare number such as 12345678 is accepted and used as its string form; booleans, floats, lists and objects are ignored); the server still starts.

Claude Desktop config

Bundle. Each release carries a goodreads-mcp.mcpb. Releases come out monthly when the server itself changed, numbered by date (2026.10.0, 2026.10.1, 2026.11.0); 0.1.1 was the last of the old numbering, and every date-numbered release is newer than it. See CONTRIBUTING.md for how one is cut. Open the .mcpb in Claude Desktop to install. The bundle ships no dependencies β€” the manifest launches the server with uv run, and the host resolves pyproject.toml into a private environment on first launch β€” so one bundle runs on macOS, Windows and Linux with any Python β‰₯ 3.11. The bundle's optional "Goodreads User ID" setting (user_config.goodreads_user_id) is passed to the server as GOODREADS_USER_ID; left empty, it is passed as an empty value, and the server falls back to the config file.

Manual. Add the server to claude_desktop_config.json β€” on macOS ~/Library/Application Support/Claude/claude_desktop_config.json, on Windows %APPDATA%\Claude\claude_desktop_config.json; in any version, Settings β†’ Developer β†’ Edit Config opens it:

{
  "mcpServers": {
    "goodreads": {
      "command": "/path/to/goodreads-mcp/.venv/bin/goodreads-mcp"
    }
  }
}

Or for development, mcp dev goodreads_mcp/server.py gives you the Inspector UI to poke each tool.

first-run verification

The endpoints are unofficial, so verify in this order:

  1. search_books("project hail mary") β€” should just work

  2. get_book("54493401") β€” confirms the .xml/WAF workaround; check the histogram is populated

  3. get_reviews("54493401") β€” should return real review text

  4. get_shelf("to-read") β€” raises ShelfFeedUnavailable while Goodreads answers the shelf feed with 404 (since Oct 2026); that is not a user_id problem

  5. list_shelves() β€” best-effort shelf-name scrape

For an end-to-end example that chains the tools, see prompts/research-a-book.md.

tests

.venv/bin/pip install -e ".[test]"     # pytest + pytest-cov
.venv/bin/pytest                       # offline parser/unit tests
GOODREADS_LIVE=1 .venv/bin/pytest      # + live network smoke tests

The offline suite runs on fixtures; CI runs it with pytest-cov and enforces a coverage floor (--cov-fail-under in ci.yml). The live smoke tests are in tests/e2e/test_smoke_live.py and skip unless GOODREADS_LIVE=1 is set. The nightly compliance run runs the live suite against the real endpoints every night, so upstream drift shows up within a day.

documentation

about this project

NOTE

Work on this fork is done with AI assistance and should be treated cautiously.

This is a third-party tool. It is not an official Goodreads or Amazon product, is not sanctioned by either, and uses no official API β€” there hasn't been one since December 2020. "Goodreads" is a trademark of its owner and is used here only to say what this software talks to.

It reads public data only: no login, no cookies, no writes. It is provided as-is, with no promise that the endpoints it depends on will keep working or that using it is consistent with Goodreads' terms. Keep request volume modest. The maintainer is not responsible for rate limiting, blocking, data loss, or other consequences of using this software.

license

This fork is licensed under the GNU General Public License v3.0, version 3 only (GPL-3.0-only) β€” no automatic upgrade to later versions.

It incorporates code from shreeyachand/goodreads-mcp, Copyright (c) 2026 Shreeya Chand, released under the MIT License. That code remains under MIT; its licence text and copyright notice are preserved in LICENSE.MIT as the MIT licence requires. The combined work β€” upstream code together with this fork's changes β€” is distributed under GPL-3.0.

Available Tools

12 tools
author_booksA
Read-onlyIdempotent

List an author's works (bibliography), given any of their books.

Resolves the book's primary author, then returns their works ranked by popularity. Each result has book_id/title/author/rating/url. Results paginate in batches and limit is capped at 100.

Inputs: book_id (required), limit. Returns: object

book_listsA
Read-onlyIdempotent

List the Listopia lists a book appears on (e.g. "Best Dystopian Fiction"), ordered by popularity.

Each list has its title, total member votes, how many books it contains, and a 'url'. Good for "what kind of book is this / what's it grouped with" and for discovery. Results paginate in batches and limit is capped at 100.

Inputs: book_id (required), limit. Returns: object

compare_booksA
Read-onlyIdempotent

Compare several books side by side by rating and rating distribution.

Fetches each book and returns them ranked best-to-worst by average rating, with the ratings_histogram plus 'pct_positive' (share of 4-5 star) and 'pct_critical' (share of 1-2 star) so you can judge not just the average but how divisive each book is. Pass up to 10 distinct book ids (from search_books etc.); one id returns that book alone. A repeated id is fetched once. More than 10 is refused rather than silently trimmed, so split the call.

A book that fails (a bad id, a page Goodreads does not have) comes back as an 'error' entry and the rest are still fetched. If Goodreads asks to slow down (HTTP 429 or 503), the comparison stops there: the books already fetched are ranked as usual, the refused book keeps its 'error', and each book not yet asked for gets an 'error' saying it was not fetched. Wait before comparing those again.

Inputs: book_ids (required). Returns: object

get_bookA
Read-onlyIdempotent

Get full details for a book by its Goodreads id (numeric, or numeric-slug like '11870085-the-fault-in-our-stars' or '2767052.The_Hunger_Games'). An ISBN is not a book id: find the book with search_books first.

Parses the page's embedded NEXT_DATA JSON (Apollo state) rather than scraping the DOM, which survives markup changes. Includes the full ratings histogram, all series memberships, and review-language breakdown β€” use get_reviews for the actual review text. review_language_limit controls how many languages are returned (default 5, maximum 25).

publication_date is this edition's; first_published is the work's first publication, so a reprint reports both. language is the edition's language name ('English'); original_title is the work's title in its first language, useful for translations. asin identifies a Kindle edition, which often has no isbn/isbn13. author_url links the author. Any of these is null when Goodreads does not carry it.

When you cite details or ratings from this book, link to its 'url'.

Inputs: book_id (required), review_language_limit. Returns: object

get_editionsA
Read-onlyIdempotent

List published editions of a book (formats, ISBNs, publishers, dates).

Useful for "which edition / format / ISBN" questions. Results paginate in batches and limit is capped at 100.

Inputs: book_id (required), limit. Returns: object

get_reviewsA
Read-onlyIdempotent

Get reader reviews for a book β€” the actual review text, not just a score.

Fetches from Goodreads' GraphQL backend with true pagination, so limit can exceed the ~30 shown on a page. Reviews aggregate across all editions of the work. Each review has the reviewer name, star rating (1-5), full text, like/comment counts, date, a spoiler flag, a 'url' permalink (use it to cite/link), and the reviewer's profile url.

limit: max reviews to return (capped at 100 to stay polite). min_rating / max_rating: server-side star filters, each 1-5, e.g. min_rating=4 for positive reviews, max_rating=2 for the critical ones. exclude_spoilers: drop reviews flagged as spoilers. Paging is capped, so a book whose reviews are mostly spoilers can return fewer than limit. sort: "relevance" (default, Goodreads' "most relevant" order), "newest" or "oldest" β€” e.g. sort="newest" for what recent readers say. language: only reviews written in this language, as a two-letter code ('en', 'es'); the keys of get_book's review_languages. search: only reviews whose text matches these words, as the review panel's search box does.

The filters apply server-side, so total_text_reviews counts the matching reviews. 'has_more' is true when Goodreads has reviews this call did not read.

Inputs: book_id (required), sort, limit, search, +4 more. Returns: object

get_shelfA
Read-onlyIdempotent

List books on a shelf via its RSS feed (public shelves; no auth).

Common shelves: 'read', 'currently-reading', 'to-read', plus any custom shelf name. Names are case-sensitive and must match a shelf the user has (list_shelves gives them); any other name raises ValueError. An empty name, or '#ALL#', lists every shelf. RSS pages hold ~100 items; pass page=2,3,... for more (pages start at 1). Defaults to the configured GOODREADS_USER_ID. Raises LoginRequired for a private profile, whose feed is empty. Raises ShelfFeedUnavailable when Goodreads answers the feed with 404, as it has for every user since Oct 2026 (#421).

Each item has title, author, book_id, isbn, average_rating (float), my_rating (int 1-5; None when unrated), shelves, date_added and date_read (YYYY-MM-DD; "" when absent, the raw text if it is not a date), year_published (int or None), cover (image URL), pages (int), my_review (the reader's review text, may hold line breaks) and link. cover, pages and my_review are None when the book has none.

When you cite a book from a shelf, link it to its 'link' field.

Inputs: page, shelf, user_id. Returns: result

list_shelvesA
Read-onlyIdempotent

List a user's shelf names (scraped from their public profile page; best effort). Defaults to the configured user.

Covers the exclusive shelves (read, to-read, ...) and custom shelves; every name works as get_shelf's 'shelf' argument. Raises LoginRequired for a private profile. The profile page may cap a very long shelf list.

Inputs: user_id. Returns: result

search_booksA
Read-onlyIdempotent

Search Goodreads for books by title/author/ISBN.

Uses the JSON autocomplete endpoint (no auth, no HTML parsing). Returns book_id, title, author, rating info, and a cover URL.

max_results: how many to return. The autocomplete endpoint itself answers with at most ~5 matches, so a larger value returns what Goodreads sent, not more.

Inputs: query (required), max_results. Returns: result

series_booksA
Read-onlyIdempotent

List the books in a series (with reading-order placement), given any book in that series. When a book belongs to multiple series, pass the zero-based series_index from get_book's series_memberships order.

Each entry has the series 'placement' (e.g. '1', '0.5' for a prequel), 'is_primary' (a main-sequence entry vs companion), and the usual book_id/title/author/rating/url. Results paginate in batches and limit is capped at 100.

Inputs: book_id (required), limit, series_index. Returns: object

similar_booksA
Read-onlyIdempotent

"Readers also enjoyed" β€” books similar to the given one.

Goodreads' own recommendation graph (hard to reproduce with web search). Each result has book_id/title/author/rating/url so you can chain into get_book or get_reviews. Results paginate in batches and limit is capped at 100.

Inputs: book_id (required), limit. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 12 tools

    Disambiguation4/5

    Each tool targets a distinct resource or relation: search, full detail, reviews, editions, series, author bibliography, Listopia lists, similar books, popularity chart. The only real friction is the pair list_shelves vs get_shelf (shelf names vs books on a shelf) and compare_books vs get_book, but the descriptions clearly delineate them.

    Naming Consistency4/5

    All names are snake_case and stable, with verb_noun forms for action tools (get_book, get_reviews, search_books, list_shelves, compare_books) and consistent noun_books forms for the family of related-book listers (author_books, series_books, similar_books, popular_books, book_lists). The bare noun names lack an explicit 'list_' verb, which is a minor deviation but internally consistent.

    Tool Count5/5

    Twelve tools sit squarely in the well-scoped range, and each earns its place by covering a distinct Goodreads data surface. Nothing feels redundant or padded.

    Completeness4/5

    Read-only coverage is broad: discovery (search, popular, lists, similar), detail (book, editions, series, author bibliography), and reviews are all present with chaining ids. The notable gap is user-shelf data: get_shelf is documented as broken by a Goodreads feed change (#421), and there are no author-profile or write operations (rating/shelf updates), which limits the personal-library use case.

    Maintenance

    ActivityActive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Connects AI assistants to the Hardcover book library, enabling natural language book searches, reading status updates, list management, and library exploration.
      28
      237 PyPI
      10
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      A read-only MCP server for Goodreads that enables LLMs to search for books, retrieve detailed book info with ratings and reviews, and explore recommendations, series, and author bibliographies using public data sources without requiring authentication.
      12
      12
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables searching for books using the OpenLibrary API; provides a search_books tool for AI assistants to find books by title, author, or keywords.
      3
      Apache 2.0