Calibre
STDIOCalibre电子书库搜索阅读MCP服务器
Calibre电子书库搜索阅读MCP服务器
A Model Context Protocol (MCP) server for searching and reading books from your Calibre ebook library.
calibredb CLIcalibre://) and file URLs (file://)/Applications/calibre.app~/Calibre Librarygit clone https://github.com/trieloff/calibre-mcp.git cd calibre-mcp
chmod +x calibre-mcp.sh
Test the server using the MCP Inspector:
npx @modelcontextprotocol/inspector /path/to/calibre-mcp.sh
Add to your Claude Desktop configuration:
{ "mcpServers": { "calibre": { "command": "/path/to/calibre-mcp.sh" } } }
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 failsExample:
{ "query": "machine learning", "fuzzy_fallback": "AI artificial intelligence ML neural networks deep learning" }
Search books by author name with partial matching.
Parameters:
author (required): Author name (partial match supported)limit (optional): Maximum results (default: 50)Search books by title with partial matching.
Parameters:
title (required): Book title (partial match supported)limit (optional): Maximum results (default: 50)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)Search results include:
The server logs all requests and responses to requests.log for debugging.
Apache License 2.0 - See LICENSE file for details.