calibre_list_libraries
List Calibre libraries
List the Calibre libraries available on the Content Server and which one is the default. Call this first to discover valid library names.
Takes no parameters.

io.github.caelum29Published by GitHub account caelum29v0.12.0Updated Oct 31, 2026
Calibre ebook library server: search, read content, curate metadata, semantic search, gated writes.
Connects an assistant to a local Calibre ebook library for metadata and full-text search, reading book text and figures, semantic search, and gated metadata…
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Follow the launch instructions in the repository.
[npm version] [npm downloads] [MCP Registry] [CI] [Node] [license] [skills.sh]
The most capable Calibre MCP server in existence — connect Claude (or any MCP client) to your Calibre ebook library and search it by meaning, not just keywords.
Ask your AI assistant “which of my books explain consumer-group rebalancing?” and get the exact chapter — across 800+ books or inside one. Curate metadata, dedupe, and safely edit your library, all through natural language.
[Claude Desktop: a plain-language question becomes a semantic search across the library, results render as a 3D cover flow, a click opens the book card, search-inside returns the exact passage with its location, and the figure viewer shows the book's diagrams]
One question → semantic search → 3D cover flow → book card → exact passage → figure viewer, all inside Claude Desktop (MCP Apps)
calibre_get_book a book detail card
with cover, rating, and read/similar actions, and calibre_get_figures a figure viewer
that shows you the same diagrams the assistant fetched. Text-only hosts are unaffected.795731065.pdf →
Fundamentals of Software Engineering) via Open Library / Google Books.pdftotext
(brew install poppler) or Python 3 with PyMuPDF (pip install pymupdf). Without
them the server falls back to Calibre's ebook-convert.Grab the guided-installer skill and hand the whole job to your agent:
Then tell your agent: "set up calibre-mcp". The calibre-mcp-setup skill drives
everything below — preflight (Node, calibredb, Content Server), the Calibre-side
config, the right install for your client (macOS/Windows/Linux), and a calibre_ping
verification — asking you only the questions that are yours to answer (which client,
writes on/off). Works in any Agent-Skills-compatible harness (Claude Code, Copilot,
Amp, …). Prefer doing it by hand? Pick your client below.
MCP server only:
Or install the plugin — server and the companion skills in one step, with a settings dialog (server URL, library, write gate) at install time:
Download the .mcpb bundle from the
latest release and open it —
Claude Desktop installs it and prompts for settings (server URL, library, writes on/off).
No terminal needed.
About the install warning. Claude Desktop shows “Installing will grant this extension access to everything on your computer… developer information has not been verified by Anthropic” for every extension installed from a file rather than the built-in directory — it’s not specific to this one. The server runs as a local Node process under your user account, exactly like the
npxinstall below; the bundle is built and published by CI from this repository, so you can audit what you’re running. Click Install to proceed.
The bundle ships without the optional embeddings dependency to stay small, so the two semantic-search tools report themselves unavailable. Metadata and full-text search work fully. For semantic search, use the npx install below instead.
Add to claude_desktop_config.json:
Configure the server in Claude Desktop (either method above) — Desktop bridges local MCP servers into Cowork automatically. No extra setup.
The repo's Agent Skills — a guided installer (calibre-mcp-setup), the calibre-mcp usage
guide, and the two distill skills — install into any Agent-Skills-compatible harness with
the skills.sh installer:
Pick the skills and target agents interactively. Two philosophies, same as
mattpocock/skills: skills.sh copies the files
into your setup so you can hack on them; the Claude Code plugin (above) keeps them as a
managed, auto-updating bundle. Either way the skills drive this MCP server's tools, so
install the server too — or let the calibre-mcp-setup skill do it: it walks any agent
through preflight, per-client install (macOS/Windows/Linux), and verification.
The server auto-detects your default library; if the Content Server isn’t reachable it logs an actionable hint to stderr. Then try, in order:
Bonus: “what’s wrong with my library?” runs the quality audit (missing metadata, raw-filename titles, invalid ISBNs).
Write tools (calibre_update_book, calibre_bulk_update, calibre_add_book,
calibre_remove_book, calibre_merge_books, calibre_manage_bundles) are hidden by
default — including calibre_manage_bundles' read-only list action, since the gate works
per tool, not per action. Two independent switches must be on:
The MCP-side gate — set CALIBRE_MCP_ENABLE_WRITE=1 (or tick Enable writes in
the Desktop bundle settings). Without it the write tools are disabled — hidden from the tool list and uncallable.
The Calibre-side gate — the Content Server must allow local writes. By
default the server embedded in the Calibre GUI is read-only, so either enable
the GUI option below or run a standalone server with --enable-local-write:
Or enable it on the GUI-embedded server without quitting the app: open
Calibre → Preferences → Sharing over the net → Advanced and tick
“Allow un-authenticated local connections to make changes to the library”
(i.e. permit local write access), then restart the Content Server from the GUI.
This is the --enable-local-write equivalent for the embedded server.
With only the first switch on, write tools appear but Calibre refuses the write — the error message tells you exactly that. Reads work fine against the GUI-embedded server.
Safety behavior: calibre_bulk_update requires an explicit book selection (ids or
query — there is no “all books” default) and previews changes until you pass
preview: false. calibre_remove_book is a dry-run until you pass confirm: true;
deletion removes records and files, permanently. calibre_merge_books shows its full
merge plan until you pass confirm: true, and trashed sources stay recoverable from
Calibre's trash (mode safe keeps them entirely). calibre_add_book only imports files
from whitelisted folders (CALIBRE_MCP_ADD_ROOTS).
Deep dive:
docs/SEMANTIC-SEARCH.md— how indexing, hybrid retrieval, and reranking work.
Meaning-based search is opt-in and needs two things:
@huggingface/transformers is an
optionalDependencies entry, so a normal npx calibre-mcp / npm install gets it
automatically. (Only the MCPB bundle excludes it.)calibre_build_index for the books you care about
(by ids or a Calibre query). The first build downloads the embedding model
(multilingual-e5-small, ~118 MB, one-time) into the index directory; after that
everything runs offline. Indexing runs at roughly 100 chunks/sec on Apple Silicon.[!IMPORTANT] Search results are sharpened by a cross-encoder reranker whose model is a separate ~576 MB one-time download.
calibre_build_indexpre-downloads it during the build — the step you already expect to be slow. If you skip straight to searching on a machine without the cached model, your first hybrid/vector search triggers that download instead. Reranking also adds seconds of CPU per semantic search; setCALIBRE_MCP_RERANK=offto disable it (faster, noticeably less precise ranking).
Then calibre_semantic_search answers queries like “which of my books explain consumer
group rebalancing?” — across the library (scope: library, ranks books) or within one
book (scope: book, returns located passages). Retrieval is hybrid by default:
vector cosine + stemmed keyword FTS, fused with reciprocal rank fusion, then reranked by
the cross-encoder (top 30 candidates) when its model is available. Queries in one
language find passages in another (EN⇄RU verified).
No embeddings? Keyword search still works. mode: keyword uses no model at query
time, but it needs an index. If the embedding model isn’t installed (the default MCPB
bundle ships without it), build a keyword-only index — calibre_build_index with
keywordOnly: true, or it happens automatically when the model is absent — and search with
mode: keyword. That path has zero ML dependencies. mode: vector then errors actionably
and mode: hybrid degrades to keyword (with a note); rebuild with the model installed
(force: true) to add semantic ranking.
Full reference with parameters and examples:
docs/TOOLS.md.
* Figures reach the assistant as real images, but models sometimes describe a figure from memory before looking at it — if the first description doesn’t match the picture, re-ask with “look at the image — what does it actually show?” (details in Troubleshooting).
In MCP Apps hosts, calibre_search and calibre_semantic_search (library scope) render
their results as a cover-board carousel, calibre_get_book as a book card, and
calibre_get_figures as a figure viewer (reading pane + margin rail, click to zoom to 100%)
so you see the diagrams the assistant is reading — covers load from your local Content
Server. Everywhere else the same tools return their usual text results; no configuration
needed either way.
An Agent Skill that distills a book from your library into a reusable, structured skill
(frameworks, mental models, glossary, cheatsheet) by driving the tools above — the chapter
map (calibre_get_content structure=true) plus in-book keyword + semantic search. Works on
EN and RU/UK books, no temp files, and can optionally stamp what you learned back into the
catalog (tags + a distill note) through the gated write tools.
It ships in this repo at skills/calibre-distill/. Install it
via npx skills@latest add caelum29/calibre-mcp or the Claude Code plugin (see
Quick start), or manually by symlinking:
Then ask, e.g., “distill book 187 into a skill called kafka-ops”. Note: the MCPB bundle can’t ship skills — install the skills separately from the MCP server on Claude Desktop.
A sibling skill that synthesizes one topic across several books (≥3) into a single
concept-keyed skill — a decision framework, per-concept sections, a cross-source config
table, an explicit “where the sources disagree or complement” section, and an ISBN
bibliography that doubles as a live-source binding. Use it when you want a topic study aid
built from a shelf of books rather than a single-book distill (single-book requests belong
to calibre-distill). Ships at skills/calibre-distill-topic/;
installed by the same skills.sh / plugin / symlink paths as above.
Then ask, e.g., “synthesize kafka reliability from books 187 182 571 186 into a skill.”
Generated skills can be checked with the bundled verifier — verbatim-overlap (8-gram shingles vs the source books), quote budget, compression floor, heading mirroring, cursor leaks, and attribution:
Everything is optional — with a running Content Server on the default port, zero config works. Environment variables (the Desktop bundle exposes the same settings as UI fields):
¹ macOS ~/Library/Application Support/calibre-mcp/index, Windows
%APPDATA%\calibre-mcp\index, Linux $XDG_DATA_HOME/calibre-mcp/index.
² Size the cap against what the Content Server serves, not the file on disk — it can hand back a much heavier copy (an 8 MB PDF served as 70 MB), so a disk-sized cap silently skips books.
More symptoms and fixes:
docs/TROUBLESHOOTING.md.
CALIBRE_MCP_SERVER_URL at the right host/port.--enable-local-write, or tick the GUI’s Sharing over the net → Advanced option
and restart the Content Server.@huggingface/transformers package
isn’t installed (expected with the MCPB bundle). Use the npx install, or
npm install @huggingface/transformers next to the server. To search without it, build a
keyword-only index (calibre_build_index keywordOnly=true) and use mode: keyword.calibredb not found — install Calibre, or set CALIBRE_MCP_CALIBREDB_PATH to
the binary (macOS: /Applications/calibre.app/Contents/MacOS/calibredb).calibre_list_libraries; when in doubt, leave the library unset and let the server
pick its default (unless calibre_list_libraries reports the default as unavailable — then pass an explicit id).The codebase is Clean Architecture: tool handlers, Calibre clients, and the semantic
core are SDK-free; only src/server.ts touches the MCP SDK. User docs — the tool
reference and the semantic-search guide — live in docs/.
Questions, ideas, and setups welcome in Discussions; bug reports and PRs in Issues.
MIT © 2026 Artem Sorochynskyi
An independent project, not affiliated with Calibre.
Calibre itself is
Kovid Goyal's open-source project (GPLv3) —
this server drives it as a separate program via calibredb and the Content Server.
Source: README.md at commit 164b070
List Calibre libraries
List the Calibre libraries available on the Content Server and which one is the default. Call this first to discover valid library names.
Takes no parameters.
Search books
Find books by exact title, author, ISBN, tag, or Calibre query syntax (mode=meta), or by full text (mode=fts). scope=book returns short keyword snippets from inside one book; first hits often land in TOC/front matter — for definitional or topic questions within a book prefer calibre_semantic_search scope=book (ranked passages with char offsets). Use calibre_semantic_search for meaning/topic queries. For "how many" questions use countOnly=true (returns only the count). filter accepts a bundle name to scope the search (list bundles via calibre_manage_bundles).
modesortlimitqueryrequiredscopebookIdcursorfilterlibrarycountOnlysortOrderinclude_excludedGet book metadata
Get full metadata (authors, ISBN, formats, comments, cover) for one book by its id or uuid (id and bookId are interchangeable — pass the bookId from a search result). Set include_cover=true only when the cover image itself must be inspected.
idbookIdlibraryinclude_coverRead book text
Extract a book's text as a capped, fenced excerpt; pass the returned nextCursor token verbatim to walk the whole book, or jump to a char position with offset (e.g. a search passage's charStart). Set structure=true for a chapter map with per-chapter cursors. To find text inside a book, use calibre_search scope=book.
idbookIdcursorformatoffsetlibrarymaxCharsstructuresentenceAwareGet book figures
List a book's figures — images the text references, identified by caption (Figure 1-2 / Рис. 3.1) — with page + caption per figure, then fetch chosen ones as images via indexes (≤3 per call). Captions let you pick figures before spending image tokens. In MCP Apps hosts the fetched figures also render for the user in an in-chat viewer, so you can point at them by figure number — but describe only what the pixels you received actually show.
idbookIddetailformatindexeslibraryinclude_uncaptionedList categories
Browse library categories (Authors, Tags, Series, Languages, Publisher). No field → list the categories; with a field → its values + counts, filterable via a valueFilter regex (case-insensitive by default; a leading inline flag like `(?i)` is accepted).
fieldlimitcursorlibraryvalueFilterSemantic search
Meaning-based search over the local index. scope=library ranks books; scope=book (needs bookId) ranks passages within one book. target=figures searches figure captions instead of text — use when the user asks for a diagram/chart/schema; hits point at calibre_get_figures for the pixels. mode=hybrid (default) fuses semantic + keyword matches; mode=vector is semantic-only; mode=keyword is exact keyword/FTS (no model at query time). All modes need an index built by calibre_build_index. filter accepts a bundle name to scope library searches (list bundles via calibre_manage_bundles). Model inference is serialized: prefer one call at a time — parallel calls queue, and past a few the extras skip the rerank.
modetopKqueryrequiredscopebookIdfiltertargetlibraryinclude_excludedBuild semantic index
Build the semantic index for specific books (required: bookId, ids, or query — full-library indexing is deferred). A query selects ALL matching books (no 100-book cap); large selections run long and may outlive the client timeout — re-run the same call to resume, since up-to-date books are skipped. Extracts, chunks, and embeds each book. Set keywordOnly=true (or when the embedding model is absent, it happens automatically) to build a keyword-only index that powers mode:"keyword" search with zero ML dependencies. Re-run after adding books; use force to re-index unchanged ones. Set prune=true to also drop index entries for books that no longer exist in the library (removals/merges leave searchable orphans behind).
idsforceprunequerybookIdlibraryenableFtskeywordOnlyFind duplicates
Find probable duplicate books. mode=identical (exact title+authors) or similar (fuzzy) group the library (or ids/query/filter subset — filter takes a bundle name) with a merge-safety score; mode=compare diffs 2+ ids field-by-field. Read-only — never merges.
idsmodelimitquerycursorfilterlibraryQuality report
Scan books for metadata problems: missing fields, raw-filename titles, invalid ISBNs, author-sort mismatches, series gaps. Defaults to the whole library; narrow with ids/query/filter (a bundle name) or specific checks. Read-only.
idslimitquerycheckscursorfilterlibraryreadabilityRecover book metadata
Propose real metadata for a book with a missing/raw-filename title via online provider lookup (ISBN from its identifiers or text, else title/author) on Open Library and Google Books. Preview only — returns a changes object for calibre_update_book; never writes.
idbookIdlibrarysourcesCover board data (widget-internal)
Internal endpoint for the in-chat cover-board widget. Returns the cached payload of a recent search. Do not call as the model — search results already contain everything this returns.
toolqueryfilterlibraryOpen book in local viewer (widget-internal)
Internal endpoint for the in-chat widgets' Open button. Launches a book in the local Calibre viewer via the calibre:// scheme. Do not call as the model — use calibre_get_book to show a book instead.
idrequiredformatlibraryCalibre ping
Health check: confirms the MCP server can reach the running Calibre Content Server via calibredb, and reports semantic-search status (embedding model, dependency, index vector count). Returns library categories on success, plus the server's recent errors and its log file path for self-diagnosis.
Takes no parameters.
90% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
npx skills@latest add caelum29/calibre-mcp # pick calibre-mcp-setupclaude mcp add calibre -- npx -y calibre-mcp/plugin marketplace add caelum29/calibre-mcp/plugin install calibre-mcp@caelum29{ "mcpServers": { "calibre": { "command": "npx", "args": ["-y", "calibre-mcp"] } }}npx skills@latest add caelum29/calibre-mcp# quit the Calibre GUI first (it holds the library lock), then:calibre-server --enable-local-write --port 8080 "/path/to/Calibre Library"ln -s "$PWD/skills/calibre-distill" ~/.claude/skills/calibre-distillpnpm build && node scripts/legal-gate.mjs <skill-dir> --book <id> [--book <id>…]pnpm installpnpm build # tsc → dist/pnpm test # vitest (unit; no network, no model download)pnpm test:model # gated embedding-model integration tests (~118 MB download)pnpm inspect # MCP Inspector against the built serverpnpm pack:mcpb # build the Claude Desktop .mcpb bundle