Skip to main content
Glama
goodreads-mcp

goodreads-mcp

by shreeyachand

📚 goodreads-mcp

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, embedded book JSON, GraphQL, and public profile HTML. No login, no cookies, no writes — public data only.

tools

tool

stability

search_books

stable (JSON endpoint)

get_book

stable (__NEXT_DATA__ via .xml path) — details, cover, ratings histogram, all series memberships, review-language breakdown

get_reviews

GraphQL — paginated reader reviews (text, rating, likes, date, spoiler flag, permalink) with server-side min_rating / max_rating and exclude_spoilers; limit up to 100

similar_books

GraphQL — paginated "readers also enjoyed" recommendations

author_books

GraphQL — paginated author bibliography (from any of their books)

series_books

GraphQL — paginated series books with reading-order placement; selectable membership for books in multiple series

get_editions

GraphQL — paginated editions (format, ISBN, publisher, date)

book_lists

GraphQL — paginated Listopia lists a book appears on (title, votes, size)

popular_books

GraphQL — most popular books by release year (or year+month), ranked

compare_books

takes several book ids, ranks them by rating with positive/critical share

list_shelves

best effort (HTML) — public profiles

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. This is the structured book graph a general web search can't assemble.

RSS note: Goodreads retired RSS feeds in October 2026. get_shelf is therefore kept internally for reference but disabled and no longer advertised over MCP. list_shelves still works because it reads public profile HTML.

GraphQL discovery tools page in batches of 20 and accept a total limit up to 100. Responses include returned and has_more, keeping larger lookups useful without allowing unbounded traffic.

WAF 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.

Related MCP server: anna-book-search

install

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

Requires Python ≥ 3.10.

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.

Claude Desktop config

~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "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. list_shelves() — best-effort public-profile shelf-name scrape

tests

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

design notes

  • Request-first, no browser automation. Everything is httpx against JSON/embedded-JSON/GraphQL surfaces; the only HTML regex is in list_shelves and the GraphQL config discovery.

  • GraphQL backbone (reviews). get_reviews calls Goodreads' AppSync GraphQL endpoint — the same backend the website uses. The web app injects a public read-only API key into page-level __NEXT_DATA__ and keeps the production endpoint in its _app bundle; the client resolves both at runtime and caches them, so rotations self-heal (client.graphql_config). Legacy bundles that carry a paired key and endpoint are still supported. This is what enables real pagination (past the ~30 reviews a page embeds) and server-side rating filters. GraphQL partial-success is respected: a deleted review's sub-resource just comes back null rather than failing the call.

  • WAF-aware. Book pages sit behind an AWS WAF JS challenge; get_book uses the .xml path that isn't gated, and the client raises WAFChallenge if it ever gets a challenge body so failures are loud, not silent. (The GraphQL endpoint is a separate AppSync host and isn't WAF-gated.)

  • Polite client. Single persistent session, browser-faithful headers, exponential backoff on 429/503; get_reviews caps paging at 100 reviews.

  • Caveats: all of this is unofficial and depends on markup/endpoints/keys that can drift.

shipped since v0.1

  • richer book data — get_book includes covers, the ratings histogram, every series membership, normalized publication dates, and configurable review-language depth; series_books can traverse any listed membership, and get_reviews returns paginated, filterable reader reviews.

  • author bibliography — author_books returns an author's works (ranked by popularity) plus a link to their author page (author_url).

  • bounded discovery pagination — similar books, bibliographies, series, editions, and Listopia memberships can return up to 100 results with has_more metadata.

ideas for v2

  • author page detail (bio, photo, follower count) — not currently exposed cleanly: the author page is legacy server-rendered HTML with no structured JSON, and there's no discoverable GraphQL contributor-detail query, so this would require brittle DOM scraping. author_books links to the page instead.

  • caching layer for repeated lookups (the discovery tools each resolve the book first; a small TTL cache would cut duplicate GraphQL calls)

Available Tools

11 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 2-10 book ids (from search_books etc.); more than 10 is refused rather than silently trimmed, so split the call.

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').

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).

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 come in "most relevant" order and 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.

Inputs: book_id (required), limit, max_rating, min_rating, +1 more. Returns: object

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. 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.3/5.0

    Scored across 11 tools

    Disambiguation5/5

    Each tool targets a distinct resource/source: search vs. full detail vs. reviews vs. author bibliography vs. series order vs. editions vs. Listopia lists vs. popularity charts vs. side-by-side comparison. The discovery-oriented tools (similar_books, book_lists, popular_books) all list books but pull from clearly different sources and the descriptions make their boundaries explicit. No two tools appear interchangeable.

    Naming Consistency4/5

    All names are snake_case and readable, but the convention mixes verb-first (search_books, get_book, get_reviews, get_editions, compare_books, list_shelves) with noun-first (author_books, series_books, book_lists, popular_books, similar_books). The split is sensible (get_* for single-entity fetches, noun_books for listings) but not consistently applied, so an agent can't fully predict the prefix pattern.

    Tool Count5/5

    11 tools is squarely in the well-scoped range, and each one covers a genuinely different Goodreads surface (search, detail, reviews, recommendations, author, series, editions, lists, popularity, comparison, shelves). Nothing looks like filler or a redundant variant of another tool.

    Completeness4/5

    The read-side surface is unusually thorough: search, details, reviews with filters, recommendations, bibliography, series order, editions, Listopia, popularity, and comparison. Gaps are minor but real — list_shelves returns only shelf names, not the books on a shelf, and there's no author-profile tool (author_books gives works but no bio/metadata). A read-only server with no write operations is a reasonable design choice, not a defect.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      MCP server that provides book recommendation tools, allowing an AI agent to search and filter books by genre, page count, and ratings using the Goodreads dataset.
      1
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Self-hosted MCP server for searching and discovering books using Anna's Archive and Goodreads datasets, enabling full-text search, ISBN/md5 lookup, similarity matching, and optional download URL retrieval.
      12 npm
      4
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      An MCP server that lets an LLM browse, search, and download books from OPDS catalogs (e.g., Project Gutenberg, Standard Ebooks) using tools for feed navigation, full-text search, and acquisition link downloads.
      4
      1
      AGPL 3.0
    • F
      license
      A
      quality
      D
      maintenance
      Read-only MCP server that provides tools to search books, get book details, list authors, and view library statistics from a PostgreSQL database.
      5
      -