calibre-manager

calibre-manager

An MCP server to manage and organize a Calibre ebook library, enabling metadata editing, search, conversion, and more through AI assistants.

Category
访问服务器

README

Calibre Manager MCP

An MCP server to manage and organize a Calibre library from an AI assistant (Claude Desktop, Cursor, etc.).

Unlike other Calibre MCPs —which are read-only— this one is built to write and inject metadata and keep your library spotless: tags, authors, series, covers, duplicates, conversion to AZW3 for Kindle, and more.

All writing goes through the official calibredb command, which is the supported, safe way to modify the library: it never touches metadata.db directly, avoiding corruption and conflicts.

Tools

Tool What it does
health_check Verifies that calibredb and the library respond.
search_books Searches using Calibre syntax (tag:, author:, series:...).
get_book_metadata Returns all metadata for a book.
list_categories Lists a category's values with counts (tags, authors...).
library_stats Total books and breakdown by category.
set_metadata Sets (replaces) a book's fields.
add_tags Adds tags without removing the existing ones.
remove_tags Removes specific tags, keeping the rest.
rename_tag Renames a tag across the whole library.
bulk_set_metadata Applies metadata to every book matching a search.
add_book Adds a file (EPUB/PDF/MOBI/AZW3...) to the library.
remove_books Removes books by id (requires confirmation).
convert_book Converts to another format (e.g. AZW3) and adds it to the book.
export_books Exports books to a folder (e.g. for your Kindle).
find_duplicates Detects duplicates by (title, author).
find_books_missing_metadata Lists books without tags/cover/series/etc.
fetch_online_metadata Fetches online metadata (Google Books...) and applies it.

Requirements

  • Calibre installed (includes calibredb, ebook-convert and fetch-ebook-metadata).
  • Node.js 18 or newer.

Installation

git clone https://github.com/ericknavarro/calibre-manager-mcp.git
cd calibre-manager-mcp
npm install      # installs dependencies and builds (the "prepare" script)

To rebuild after a change:

npm run build

The compiled server lives at dist/index.js.

Configuration in Claude Desktop

Edit claude_desktop_config.json (on Windows: %APPDATA%\Claude\claude_desktop_config.json) and add:

{
  "mcpServers": {
    "calibre-manager": {
      "command": "node",
      "args": ["C:\\Users\\<your-username>\\repos\\calibre-manager-mcp\\dist\\index.js"],
      "env": {
        "CALIBRE_LIBRARY_PATH": "C:\\Users\\<your-username>\\calibre",
        "CALIBREDB_PATH": "C:\\Program Files\\Calibre2\\calibredb.exe",
        "EBOOK_CONVERT_PATH": "C:\\Program Files\\Calibre2\\ebook-convert.exe",
        "FETCH_EBOOK_METADATA_PATH": "C:\\Program Files\\Calibre2\\fetch-ebook-metadata.exe"
      }
    }
  }
}

Restart Claude Desktop. To check it works, ask it: "Run a health_check on Calibre".

Where is my library?

It's the folder that contains metadata.db (in Calibre: top-right, over the library name → "Switch/create library" shows the path). If you omit it, Calibre's default library is used.

Environment variables

Variable Required Description
CALIBRE_LIBRARY_PATH No Path to the library, or Content Server URL. If omitted, the default.
CALIBREDB_PATH No Path to calibredb (defaults to looking it up on PATH).
EBOOK_CONVERT_PATH No Path to ebook-convert.
FETCH_EBOOK_METADATA_PATH No Path to fetch-ebook-metadata.
CALIBRE_USERNAME / CALIBRE_PASSWORD No Only if you use the Content Server via URL.

Important note: library locking

While the Calibre app is open using that same library, calibredb cannot open it — for reading or writing — because the app holds a lock (you get an error like "Another calibre program is running"). You have two options:

  1. Close Calibre before write operations. (simplest)
  2. Start Calibre's Content Server and point CALIBRE_LIBRARY_PATH at its URL (http://localhost:8080#library) with a username/password.

In short: keep Calibre closed while you use this MCP, or run the Content Server (which lets multiple programs share the library safely).

Usage examples

Once configured, you can ask Claude things like:

  • "Tag book 5 with Philosophy and Stoicism without removing its tags."
  • "Set the series 'Greek Classics' on all books by Plato and Aristotle."
  • "Find duplicates in my library."
  • "Which books have no cover?"
  • "Convert book 12 to AZW3 for my Kindle."
  • "Fetch the online metadata for 'The Name of the Rose' by Umberto Eco and apply it to book 8."

License

MIT © Erick Navarro

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选