opds-mcp
Allows browsing, searching, and downloading books from Calibre-Web OPDS catalogs.
Enables full-text search across OPDS catalogs using OpenSearch descriptions.
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., "@opds-mcpsearch Project Gutenberg for 'Alice in Wonderland'"
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.
opds-mcp
An MCP server that lets an LLM browse, search and download books from OPDS catalogs (Open Publication Distribution System) — the Atom/JSON-based feed format used by digital libraries such as Project Gutenberg, Standard Ebooks, Feedbooks, and many self-hosted book servers (Calibre-Web, COPS, KOReader sync targets, etc).
Supports both OPDS 1.x (Atom + XML) and OPDS 2.0 (JSON) catalogs, OpenSearch-based full-text search, and downloading acquisition links to disk.
Tools
opds_browse— fetch a catalog/feed document and return its navigation links (search, next/prev, subsections, facets) plus entries (title, authors, summary, categories, acquisition links, cover images).opds_search— search a catalog. Give it either the catalog's feed URL (itsrel="search"link is discovered automatically) or an OpenSearch description URL directly, plus a free-text query.opds_get_entry— fetch a single entry/publication document (e.g. an entry'srel="alternate"link) for full details.opds_download— download the file behind an acquisition link to a local directory and return the saved file path.
All tools accept optional username/password for catalogs that require HTTP Basic Auth. The
url argument of opds_browse/opds_search/opds_get_entry is optional if the server is
configured with a default catalog via OPDS_BASE_URL (see below) — pass url explicitly to
browse a different catalog for that one call.
Related MCP server: grimoire-beholder-mcp
Install
npm install
npm run buildConfigure in an MCP client
Via npx (no local checkout required)
The package hasn't been published to the npm registry, but npx can install and run it straight
from this GitHub repo — it clones the repo, runs npm install (which triggers the prepare
script to build dist/), then executes the opds-mcp bin:
{
"mcpServers": {
"opds": {
"command": "npx",
"args": ["-y", "github:pastukhov/opds-mcp"],
"env": {
"OPDS_BASE_URL": "https://example.com/opds/root.xml",
"OPDS_USERNAME": "optional-default-username",
"OPDS_PASSWORD": "optional-default-password",
"OPDS_DOWNLOAD_DIR": "/absolute/path/to/save/books"
}
}
}
}To pin a specific branch or commit, append it: "github:pastukhov/opds-mcp#branch-or-sha".
Via a local checkout
Example for Claude Desktop / Claude Code (claude_desktop_config.json or .mcp.json):
{
"mcpServers": {
"opds": {
"command": "npx",
"args": ["-y", "/absolute/path/to/opds-mcp"],
"env": {
"OPDS_BASE_URL": "https://example.com/opds/root.xml",
"OPDS_USERNAME": "optional-default-username",
"OPDS_PASSWORD": "optional-default-password",
"OPDS_DOWNLOAD_DIR": "/absolute/path/to/save/books"
}
}
}
}npx -y /absolute/path installs dependencies and builds on first run, same as the GitHub form
above. Alternatively, run npm install && npm run build yourself and point command/args
directly at node and dist/index.js.
OPDS_BASE_URL— the catalogopds_browse/opds_search/opds_get_entryuse when a tool call doesn't pass its ownurl. This is the recommended way to point the server at a specific library (e.g.https://your-library.example/opds) without relying on the model to know or guess the address; omit it to require an expliciturlon every call instead.OPDS_USERNAME/OPDS_PASSWORD— used as a fallback whenever a tool call doesn't pass its own credentials, which is convenient when the server is dedicated to a single authenticated catalog.OPDS_DOWNLOAD_DIR— whereopds_downloadsaves files; defaults to a directory under the OS temp folder.
Example flow
opds_browsewith the catalog's root URL to see navigation links and/or a first page of entries.opds_searchwith that same root URL and a query to find a specific book.Pick an entry's
acquisitions[].hreffrom the result and pass it toopds_downloadto save the file locally (or useopds_get_entryfirst if you need more detail than the search result already includes).
Development
npm run dev # run the server directly with tsx
npm run typecheck # tsc --noEmit
npm test # vitest, using fixture OPDS documents under fixtures/
npm run test:coverage # vitest with a coverage report under coverage/
npm run build # compile to dist/Every pull request runs typecheck, build and test:coverage via
.github/workflows/ci.yml. On every push to main,
.github/workflows/coverage-badge.yml recomputes coverage
and commits .github/badges/coverage.json, which the badge at the top of this file reads via
shields.io's endpoint badge.
Notes
Only
http:/https:URLs are accepted; other schemes are rejected before any request is made.Downloaded files are capped at 200MB by default and written under a sanitized filename inside the configured download directory.
Because feed documents can be arbitrarily large,
opds_browse/opds_searchreturn whatever a single page contains; use thenavigation.nextlink from the response to page through the rest of the catalog.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseAqualityFmaintenanceAn MCP server enabling LLMs to access WeChat Reading bookshelf, notes, highlights, and reviews via tools like get_bookshelf, search_books, and get_book_notes_and_highlights.4162168
- FlicenseAqualityBmaintenanceAn MCP server that exposes a fully offline RAG library of books (PDFs, EPUBs, markdown, text) to Claude, enabling hybrid search and retrieval of contextualized chunks via read-only tools.5
- Alicense-qualityDmaintenanceMCP server enabling LLMs to query a local Calibre Content Server for ebook metadata, chapters, and content in HTML or Markdown.15MIT
- AlicenseBqualityBmaintenanceA local MCP server that lets LLM agents read EPUB books and PDF documents with outline-first navigation, precise node reads, and local SQLite persistence.292MIT
Related MCP Connectors
MCP server for Project Gutenberg — 75,000+ public-domain ebooks with full plain-text retrieval.
MCP server for AI dialogue using various LLM models via AceDataCloud
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
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/pastukhov/opds-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server