calibreweb-mcp
Provides read-only access to a Calibre-Web ebook library via its OPDS feed, allowing AI agents to search books by title, author, series, publisher, and tags; list books by various views (new, hot, rated, discover, read, unread, all); retrieve public and user shelves; fetch book covers as images; and obtain library statistics (total books, authors, categories, series). All operations are strictly read-only, returning metadata and download URLs without exposing file contents.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@calibreweb-mcpfind me books by Stephen King"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
calibreweb-mcp
A read-only Model Context Protocol server for Calibre-Web (and Calibre-Web Automated), the self-hosted ebook library web UI.
Calibre-Web has no REST API β its only stable machine-readable interface is the OPDS catalog feed it serves for e-reader apps. This server speaks that feed: Atom XML with HTTP Basic auth in, structured book data out. Search the library, browse the curated views and shelves, follow per-format download links, and pull cover images straight into the conversation. It never writes anything: every tool is a GET against the OPDS routes.

π Full documentation: calibreweb-mcp.ni-c.de
Requirements
Node.js 22 or newer
A Calibre-Web instance (developed against the current
linuxserver/calibre-webimage; Calibre-Web Automated works the same way)A Calibre-Web user for the server. The OPDS feed authenticates with the normal web login β use a dedicated account with only the View and Download roles, not your admin account. If the instance allows anonymous browsing, the server can also run without credentials.
Related MCP server: access-calibre
Configuration
Variable | Required | Description |
| yes | Root URL of the instance, e.g. |
| yesΒΉ | Username of the Calibre-Web account. |
| yesΒΉ | Password of that account (the web login password). |
| no |
|
ΒΉ Leave both unset for an instance that allows anonymous browsing; setting only one of them is a configuration error.
Claude Code
claude mcp add calibreweb \
-e CALIBRE_WEB_URL=https://books.example.com \
-e CALIBRE_WEB_USERNAME=reader \
-e CALIBRE_WEB_PASSWORD=... \
-- npx calibreweb-mcpClaude Desktop
{
"mcpServers": {
"calibreweb": {
"command": "npx",
"args": ["calibreweb-mcp"],
"env": {
"CALIBRE_WEB_URL": "https://books.example.com",
"CALIBRE_WEB_USERNAME": "reader",
"CALIBRE_WEB_PASSWORD": "..."
}
}
}
}Codex
[mcp_servers.calibreweb]
command = "npx"
args = ["calibreweb-mcp"]
env = { CALIBRE_WEB_URL = "https://books.example.com", CALIBRE_WEB_USERNAME = "reader", CALIBRE_WEB_PASSWORD = "..." }Tools
All tools are read-only (readOnlyHint: true).
Tool | Description |
| Search by title, author, series, publisher and tags. Calibre-Web returns every match at once; the result is capped client-side ( |
| Book listings by view: |
| Public shelves plus the configured user's own shelves. |
| The books on a shelf, in shelf order. |
| A book's cover, returned as an image the client can display. |
| Total books, authors, categories and series. |
Book entries include authors, tags, series (with index), rating, a bounded summary, a cover URL and per-format download URLs β ready-made links a human can open, since the model itself has no reason to download an EPUB.
Pagination
Feeds are paginated by the instance's books per page setting (default 60); the
page size is not client-controllable. Every listing returns
pagination.nextOffset when more pages exist β pass it as offset in the next
call. The discover view is a random selection and not paginated.
Deliberately out of scope
No writes. The OPDS feed has none, and this server would not add any.
No file downloads. Tools return download URLs, not ebook payloads.
No facet browsing (authors/series/tags/publishers/languages/formats as their own index feeds).
search_bookscovers those lookups; the routes exist and tools for them can be added if there is a real use case.
Safety
The server is read-only by construction β GET requests only, no state anywhere.
Book metadata is untrusted third-party data; every result says so, control characters are stripped, and XML entity processing is disabled (documents declaring a DOCTYPE or entities are refused outright).
Responses are bounded before parsing (8 MB feeds, 1 MB covers) and again before they reach the model (per-book and per-response budgets).
Feed hrefs are only passed through when they resolve to the configured origin over http(s) β a hostile feed cannot plant
javascript:,file:or cross-origin URLs into the results.Redirects are refused so the Basic credentials can never be replayed to another host; covers are only passed through for real image content types.
The password is scrubbed from the process environment at startup, and URLs are credential-redacted before they appear in any log or result.
Container
docker run -i --rm \
-e CALIBRE_WEB_URL=https://books.example.com \
-e CALIBRE_WEB_USERNAME=reader \
-e CALIBRE_WEB_PASSWORD=... \
ghcr.io/ni-c/calibreweb-mcpDevelopment
npm install
npm test # unit tests against a stubbed OPDS feed, no instance needed
npm run lint
npm run buildSee CONTRIBUTING.md.
Releasing
Update
CHANGELOG.mdand bump the version inpackage.json(+ lockfile).npm run lint && npm run test:coverage && npm run buildTag the release:
git tag -s vX.Y.Z -m "vX.Y.Z" && git push origin vX.Y.Z
License
Maintenance
Related MCP Servers
- AlicenseAqualityCmaintenanceAn MCP server to manage and organize a Calibre ebook library, enabling metadata editing, search, conversion, and more through AI assistants.174MIT
- Alicense-qualityDmaintenanceMCP server enabling LLMs to query a local Calibre Content Server for ebook metadata, chapters, and content in HTML or Markdown.15MIT
- AlicenseAqualityCmaintenanceA local stdio MCP server that enables AI tools to search a self-hosted Calibre library over SSH, supporting metadata queries, full-text search, and book details.7MIT
- AlicenseAqualityBmaintenanceAn 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.41AGPL 3.0
Related MCP Connectors
MCP server for Project Gutenberg β 75,000+ public-domain ebooks with full plain-text retrieval.
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
MCP Server for Slima - AI Writing IDE for Novel Authors with AI Beta Reader.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ni-c/calibreweb-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server