calibre-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
calibre-mcp 
A Model Context Protocol (MCP) server for searching, reading, and managing your Calibre ebook library. Completely rewritten in TypeScript for Bun, it offers ultra-fast performance, deep integration with Calibre's CLI tools, and automated content extraction.
π Features
Blazing Fast Metadata Search: Queries the Calibre
metadata.dbdirectly via SQLite for near-instant results.Full-text Content Search: Leverages Calibre's indexed full-text search engine to find specific phrases across your entire library.
Dynamic Content Extraction: Automatically converts EPUB, PDF, and other formats to text on-the-fly. No manual .txt exports required.
Comprehensive Library Management: Update database metadata, modify internal file metadata, polish books, and convert between formats.
Smart Result Distribution: Search results are intelligently balanced across different books to provide diverse matches.
Custom URL Scheme: Uses
epub://URLs for precise referencing of book locations and line ranges.
Related MCP server: Calibre RAG MCP Server
π Prerequisites
βοΈ Configuration
The server uses the following environment variables:
CALIBRE_LIBRARY_PATH: Path to your Calibre library (wheremetadata.dbresides). Defaults to/Volumes/Xarismata/eBooks/CalibreNuevo.
π Installation
Clone this repository:
git clone https://github.com/2b3pro/calibre-mcp.git
cd calibre-mcpInstall dependencies:
bun installβ¨οΈ Usage
With MCP Inspector
Test the server in an interactive environment:
npx @modelcontextprotocol/inspector bun src/index.tsWith Claude Desktop
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"calibre": {
"command": "bun",
"args": ["run", "/absolute/path/to/calibre-mcp/src/index.ts"]
}
}
}π§° Available Tools
Tool | Description |
| Unified search (metadata + full-text). Supports |
| Extracts text from a book via |
| Updates the Calibre database metadata for a book. |
| Retrieves high-quality metadata from online sources (OPF format). |
| Enhances book files (punctuation, compression, CSS cleanup). |
| Converts books between formats (e.g., EPUB β MOBI) and adds them to the library. |
| Searches for content inside a specific book (bypasses FTS index). |
| Reads metadata embedded directly inside the ebook file. |
| Writes metadata directly into the ebook file itself. |
Tool Details & Examples
search_library
Search using natural language for content or specific fields for metadata.
Query Examples:
"machine learning"(Full-text search)author:Asimov title:Foundation(Metadata search)tag:science-fiction rating:>4(Advanced filtering)
read_content
Uses the epub:// scheme.
Format:
epub://[author]/[title]@[book_id]#[start_line]:[end_line]Example:
epub://Isaac%20Asimov/Foundation@123#500:600retrieves lines 500 to 600.
polish_book
Perfect for cleaning up automated conversions or old files.
Options:
smartenPunctuation,compressImages,upgradeBook,removeUnusedCss.
convert_ebook
Convert formats and automatically update your library record.
Example:
book_id: 45, output_format: "azw3", options: ["--enable-heuristics"]
deep_search_book
Search directly inside a specific book (useful if Calibre FTS hasn't indexed it yet).
Example:
book_id: 123, query: "quantum entanglement", context_lines: 3
βοΈ License
Apache License 2.0 - See LICENSE file for details.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Read, search, cite, and inspect figures from your personal PDF and EPUB books.
Turn books in your private library into tables of contents, summaries and study docs.
Academic literature search, retrieval, and private library management on top of OpenAlex.
Federated search of books and papers, BibTeX/RIS citations, open-access retrieval and reading.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables read-only access to local Calibre libraries for searching metadata, inspecting book formats, and extracting content samples. Supports full-text search, batch operations, and detailed book analysis through natural language queries.3MIT
- AlicenseBqualityDmaintenanceEnables semantic search and contextual conversations with your Calibre ebook library using vector-based RAG technology. Supports project-based organization, multi-format book processing, and OCR capabilities for enhanced content extraction and retrieval.72Apache 2.0
- AlicenseNot gradedqualityDmaintenanceProvides AI agents with research capabilities for local Calibre e-book libraries, including fulltext search across titles, ISBNs, and comments, plus structured excerpt retrieval from books.2GPL 3.0
- AlicenseBqualityCmaintenanceConnects AI agents to Calibre ebook libraries for searching, reading, and managing digital collections. It supports metadata updates, format conversion, and full-text content searches while providing granular permission controls for library access.725MIT