Calibre
Search and read books from your Calibre ebook library.
calibre-mcp
A Model Context Protocol (MCP) server for searching and reading books from your Calibre ebook library.
Features
- Full-text search with automatic phrase matching and fuzzy fallback
- Search by author or title with partial matching
- Extract text excerpts from books with keyword highlighting and pagination
- Pure bash implementation using
calibredbCLI - Returns Calibre deep links (
calibre://) and file URLs (file://) - Robust timeout handling for macOS compatibility
Prerequisites
- Calibre installed at
/Applications/calibre.app - A Calibre library at
~/Calibre Library - Text (.txt) exports of your books for excerpt functionality
- Bash 4.0 or later
Installation
- Clone this repository:
git clone https://github.com/trieloff/calibre-mcp.git
cd calibre-mcp
- Make the script executable:
chmod +x calibre-mcp.sh
Usage
With MCP Inspector
Test the server using the MCP Inspector:
npx @modelcontextprotocol/inspector /path/to/calibre-mcp.sh
With Claude Desktop
Add to your Claude Desktop configuration:
{
"mcpServers": {
"calibre": {
"command": "/path/to/calibre-mcp.sh"
}
}
}
Available Tools
search-fulltext
Search books using Calibre's full-text search engine.
Parameters:
query(required): Search query. Multi-word queries are automatically phrase-searchedlimit(optional): Maximum results (default: 50)fuzzy_fallback(optional): Fallback query with related terms if exact search fails
Example:
{
"query": "machine learning",
"fuzzy_fallback": "AI artificial intelligence ML neural networks deep learning"
}
search-author
Search books by author name with partial matching.
Parameters:
author(required): Author name (partial match supported)limit(optional): Maximum results (default: 50)
search-title
Search books by title with partial matching.
Parameters:
title(required): Book title (partial match supported)limit(optional): Maximum results (default: 50)
get-excerpt
Extract text excerpts from books with keyword context.
Parameters:
book_id(required): Calibre book IDkeyword(optional): Search term to find in the bookcontext_lines(optional): Lines of context around matches (default: 10)max_results(optional): Results per page (default: 10)page(optional): Page number for pagination (default: 1)
Response Format
Search results include:
- Book metadata (title, authors, series, tags, publisher)
- Calibre deep link for opening in Calibre
- File URL for direct EPUB access
- Available formats
- Whether text format is available for excerpts
Logging
The server logs all requests and responses to requests.log for debugging.
Limitations
- Requires Calibre to be closed or may experience timeouts
- Full-text search requires indexed books
- Excerpt extraction only works with .txt exports
License
Apache License 2.0 - See LICENSE file for details.
相關伺服器
Baselight
By connecting to Baselight, you can browse, discover, and query 70,000+ datasets and 450+ billion rows directly from your preferred environment—whether you’re building, analysing, or exploring.
招投标大数据服务
Provides comprehensive import and export trade data query functions, including trend analysis, product statistics, and geographic distribution.
Halal Terminal MCP
Shariah-compliant investing for AI agents — screen stocks & ETFs across 5 methodologies (AAOIFI, DJIM, FTSE, MSCI, S&P), audit portfolios, calculate zakat, get market data, news & SEC filings.
MCP RAG
A managed Retrieval-Augmented Generation (RAG) server using MCP, integrated with knowledge bases and OpenSearch.
FetchSERP
All-in-One SEO & Web Intelligence Toolkit API from FetchSERP.
Semantic Scholar
Access Semantic Scholar's academic paper database through their API.
Dartpoint
Access public disclosure information for Korean companies (DART) using the dartpoint.ai API.
SkillFlow
AI skills marketplace MCP server - search, discover, and install AI agent skills from SkillFlow.builders marketplace
Mevzuat MCP
Programmatic access to the Turkish Ministry of Justice Legislation Information System (mevzuat.gov.tr) for searching legislation and retrieving article content.
MCP Tavily
Advanced web search and content extraction using the Tavily API.