Calibre MCP Server
Enables searching and reading books from your Calibre ebook library through MCP. Supports title, author, and full-text search across multiple formats with lightweight Windows-optimized implementation.
README
Calibre MCP Server
A lightweight Node.js MCP server for searching and reading books from your Calibre ebook library. Designed specifically for Windows compatibility.
Features
- Library Search: Search your Calibre library by title, author, or content
- Book Reading: Retrieve and read book contents in various formats
- Metadata Access: Get detailed book information and metadata
- Windows Compatible: Optimized for Windows environments
- Zero Dependencies: Lightweight implementation with no external dependencies
Prerequisites
- Node.js >= 16.0.0
- Calibre installed on Windows
Installation
- Clone this repository:
git clone https://github.com/yourusername/calibre-mcp-nodejs.git
cd calibre-mcp-nodejs
- Install dependencies:
npm install
Usage
Starting the Server
npm start
Available Tools
search: Search for books in your Calibre libraryfetch: Retrieve specific content from books using epub:// URLs
Example MCP Configuration
Add to your MCP client configuration:
{
"mcpServers": {
"calibre": {
"command": "node",
"args": ["path/to/calibre-mcp-nodejs/server.js"]
}
}
}
Configuration
The server automatically detects your Calibre library location. The search looks for Calibre in common installation paths:
C:\Program Files\Calibre2\C:\Program Files (x86)\Calibre2\- Custom paths via environment variables
API Reference
Search Books
// Search by title
search({ query: "title:\"The Great Gatsby\"" })
// Search by author
search({ query: "author:\"F. Scott Fitzgerald\"" })
// Full-text search
search({ query: "green light" })
Fetch Book Content
// Fetch specific book content
fetch({ url: "epub://book_id/chapter_1" })
Project Structure
calibre-mcp-nodejs/
├── server.js # Main MCP server
├── package.json # Dependencies and scripts
├── test.js # Test file
├── test.bat # Windows test script
└── README.md # This file
Testing
Run the test:
npm test
Or use the Windows batch file:
test.bat
Troubleshooting
Common Issues
- Calibre Not Found: Ensure Calibre is installed in a standard location
- Library Access: Make sure the Calibre library is accessible and not locked
- Permissions: Run with appropriate permissions to access Calibre files
Debug Mode
Set the DEBUG environment variable for verbose logging:
set DEBUG=calibre:*
npm start
Supported Formats
The server supports all formats that Calibre can handle:
- EPUB
- MOBI
- AZW/AZW3
- TXT
- HTML
- And many more
Performance
This lightweight server is designed for:
- Fast startup times
- Low memory usage
- Quick search responses
- Minimal system impact
Comparison with RAG Version
This is the lightweight version. For advanced features like vector search, semantic similarity, and RAG capabilities, see calibre-rag-mcp-nodejs.
| Feature | Simple Version | RAG Version |
|---|---|---|
| Basic Search | ✅ | ✅ |
| Book Reading | ✅ | ✅ |
| Dependencies | None | Many |
| Memory Usage | Low | High |
| Vector Search | ❌ | ✅ |
| Semantic Search | ❌ | ✅ |
| OCR Support | ❌ | ✅ |
| Project Organization | ❌ | ✅ |
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for new functionality
- Submit a pull request
License
Licensed under the Apache License 2.0. See LICENSE file for details.
Support
For issues and questions, please open an issue on GitHub.
Changelog
v2.0.0
- Improved Windows compatibility
- Enhanced search functionality
- Better error handling
- Optimized performance
v1.0.0
- Initial release
- Basic search and fetch functionality
- Windows support
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.