calibre-mcp
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., "@calibre-mcpsearch for books by Isaac Asimov"
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.
Calibre MCP
A read-only Model Context Protocol server for an existing Calibre ebook library.
Calibre MCP lets MCP-compatible clients search book metadata, query Calibre's full-text index, inspect book details, browse library categories, and discover related books. It uses Calibre's supported calibredb command-line interface rather than reading metadata.db directly.
Features
Metadata search using Calibre's search language
Full-text search with matching snippets
Detailed metadata for individual books
Recently added books
Authors, tags, series, publishers, and language categories
Related-book discovery
MCP resources for books, searches, and library status
Optional Calibre Content Server links
In-memory TTL cache
Streamable HTTP transport
Podman Quadlet deployment
No metadata-changing MCP tools
Related MCP server: calibre-mcp
Available tools
Tool | Purpose |
| Show server, Calibre, cache, and library configuration |
| Show book count and full-text indexing status |
| Search Calibre metadata |
| Search inside indexed ebooks and return snippets |
| Return all available metadata for one book |
| List books most recently added |
| Browse authors, tags, series, publishers, and languages |
| Find books with overlapping authors, series, or tags |
| Clear the in-memory read cache |
MCP resources
URI | Purpose |
| Library and full-text index status |
| Detailed metadata for a book |
| Metadata search results |
Requirements
A Calibre library with
metadata.dbCalibre 9.x
Python 3.11 or newer
An MCP client supporting Streamable HTTP
Podman and systemd for the included Quadlet deployment
The full-text tools require Calibre's full-text index to be enabled and completed.
Quick start with Podman Quadlet
1. Clone the repository
git clone https://github.com/monch1962/calibre-mcp.git
cd calibre-mcp2. Confirm your Calibre library
The supplied Quadlet assumes:
/tank/media/BooksConfirm that the library database exists:
test -f /tank/media/Books/metadata.db && echo "Calibre library found"3. Determine the library owner
stat -c 'uid=%u gid=%g owner=%U:%G' /tank/media/BooksEdit quadlet/calibre-mcp.container and set User= to the returned numeric UID and GID:
User=1000:1000Also change the host library path if yours is different:
Volume=/tank/media/Books:/books4. Build the image
sudo podman build \
--build-arg CALIBRE_VERSION=9.11.0 \
-t localhost/calibre-mcp:1.0.0 .5. Install the Quadlet
sudo mkdir -p /etc/containers/systemd
sudo cp quadlet/calibre-mcp.container \
/etc/containers/systemd/calibre-mcp.container
sudo systemctl daemon-reload
sudo systemctl start calibre-mcp.serviceDo not run systemctl enable calibre-mcp.service. The generated service is transient; the Quadlet's [Install] section creates the boot dependency.
6. Verify the deployment
sudo systemctl status calibre-mcp.service --no-pager
sudo journalctl -u calibre-mcp.service -n 100 --no-pager
sudo podman ps --filter name=calibre-mcpVerify Calibre inside the container:
sudo podman exec calibre-mcp \
calibredb list \
--with-library /books \
--for-machine \
--fields title \
--limit 1
sudo podman exec calibre-mcp \
calibredb fts_index status \
--with-library /booksThe default endpoint is:
http://localhost:8008/mcpTest with MCP Inspector
npx @modelcontextprotocol/inspectorSelect Streamable HTTP and connect to:
http://YOUR_SERVER:8008/mcpExample metadata search:
{
"query": "author:asimov",
"limit": 10
}Example full-text search:
{
"query": "zero trust architecture",
"limit": 10
}Example restricted full-text search:
{
"query": "encryption",
"limit": 10,
"restrict_to": "search:tags:security"
}Connect an MCP client
Use the Streamable HTTP endpoint exposed by the server:
http://YOUR_SERVER:8008/mcpClient configuration formats vary. Consult your client's MCP documentation and select Streamable HTTP rather than stdio or legacy SSE.
Calibre search examples
search_books accepts Calibre search expressions:
author:asimov
title:"i robot"
tags:history
series:"Discworld"
publisher:penguin
languages:eng
rating:>=4An empty query returns all books, subject to the result limit.
Optional Content Server links
Set the URL of your existing Calibre Content Server in the Quadlet:
Environment=CALIBRE_CONTENT_SERVER_URL=http://mini-nas:8083When configured, metadata results include browser and format-download links.
Configuration
Environment variable | Default | Description |
|
| Calibre library inside the container |
|
| Path to the Calibre CLI |
|
| Command timeout in seconds |
|
| Maximum results returned by a tool |
|
| Cache lifetime in seconds; set to |
|
| Maximum cached entries |
| unset | Optional Content Server base URL |
|
| MCP HTTP bind address |
|
| MCP port inside the container |
|
| Writable location for Calibre configuration |
Why the library mount is writable
Calibre checks whether the library filesystem is case-sensitive by briefly creating and deleting a probe file in the library root. Consequently, the bind mount cannot be mounted read-only.
This server remains functionally read-only because it exposes no tools that call Calibre commands such as:
addremoveset_metadataadd_formatremove_format
Run the container as the same unprivileged UID and GID that owns the library. Do not run it as root unless your environment specifically requires that.
Security
Keep port
8008restricted to trusted LAN or Tailscale clients.Do not expose the endpoint directly to the public Internet.
Streamable HTTP does not add authentication in this deployment.
Place an authenticated reverse proxy in front of the service before broader exposure.
Pin release versions rather than using a moving container tag.
Review SECURITY.md before reporting a vulnerability.
Local development
Create a virtual environment:
python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -e .
python -m pip install pytest ruffRun the tests:
pytestRun lint checks:
ruff check .Start the server locally:
export CALIBRE_LIBRARY_PATH="/path/to/Calibre Library"
python server.pyProject status
Version 1.0.0 is suitable for personal and trusted-network deployments. The public API may gain additional tools and resources in future minor releases, while existing tool names and argument shapes will be kept stable where practical.
Contributing
Issues and pull requests are welcome. See CONTRIBUTING.md.
Licence
Released under the MIT Licence.
This server cannot be installed
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
- Alicense-qualityBmaintenanceAn MCP server that enables querying and managing Calibre libraries via chat by interacting with the Calibre content server over HTTP. It allows users to search for books, update metadata, manage authors and tags, and handle book file uploads or conversions.Last updatedBSD 3-Clause
- FlicenseAqualityDmaintenanceAn MCP server for managing local Calibre libraries using the calibredb CLI. It allows users to search books, manage metadata, and retrieve EPUB file paths through natural language commands.Last updated7
- Alicense-qualityCmaintenanceRead-only MCP server for accessing local Kindle library data, exposing tools to query profile, health, and book metadata.Last updatedMIT
- AlicenseAqualityCmaintenanceAn MCP server to manage and organize a Calibre ebook library, enabling metadata editing, search, conversion, and more through AI assistants.Last updated174MIT
Related MCP Connectors
MCP server for Project Gutenberg — 75,000+ public-domain ebooks with full plain-text retrieval.
Read-only MCP server for ClassQuill, a tutoring-business-management platform.
BookBrainz MCP — open book metadata (MetaBrainz / sister of MusicBrainz)
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/monch1962/calibre-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server