C

Calibre MCP

by caelum29 · io.github.caelum29/calibre-mcp

Connects MCP clients to a Calibre ebook library for semantic search, metadata curation, and library management via natural language.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-caelum29-calibre-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "calibre-mcp"
      ],
      "env": {
        "CALIBRE_MCP_SERVER_URL": "http://localhost:8080",
        "CALIBRE_MCP_LIBRARY": "",
        "CALIBRE_MCP_ENABLE_WRITE": "off",
        "CALIBRE_MCP_CALIBREDB_PATH": "",
        "CALIBRE_MCP_RERANK": "on",
        "CALIBRE_MCP_ADD_ROOTS": "~/Documents, ~/Downloads",
        "CALIBRE_MCP_INDEX_DIR": "platform data dir",
        "CALIBRE_MCP_BOARD_STYLE": "shelf",
        "CALIBRE_MCP_MAX_BOOK_BYTES": "268435456",
        "CALIBRE_MCP_SEMANTIC_FLOOR": "0.78"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-caelum29-calibre-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "calibre-mcp"
      ],
      "env": {
        "CALIBRE_MCP_SERVER_URL": "http://localhost:8080",
        "CALIBRE_MCP_LIBRARY": "",
        "CALIBRE_MCP_ENABLE_WRITE": "off",
        "CALIBRE_MCP_CALIBREDB_PATH": "",
        "CALIBRE_MCP_RERANK": "on",
        "CALIBRE_MCP_ADD_ROOTS": "~/Documents, ~/Downloads",
        "CALIBRE_MCP_INDEX_DIR": "platform data dir",
        "CALIBRE_MCP_BOARD_STYLE": "shelf",
        "CALIBRE_MCP_MAX_BOOK_BYTES": "268435456",
        "CALIBRE_MCP_SEMANTIC_FLOOR": "0.78"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-caelum29-calibre-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "calibre-mcp"
      ],
      "env": {
        "CALIBRE_MCP_SERVER_URL": "http://localhost:8080",
        "CALIBRE_MCP_LIBRARY": "",
        "CALIBRE_MCP_ENABLE_WRITE": "off",
        "CALIBRE_MCP_CALIBREDB_PATH": "",
        "CALIBRE_MCP_RERANK": "on",
        "CALIBRE_MCP_ADD_ROOTS": "~/Documents, ~/Downloads",
        "CALIBRE_MCP_INDEX_DIR": "platform data dir",
        "CALIBRE_MCP_BOARD_STYLE": "shelf",
        "CALIBRE_MCP_MAX_BOOK_BYTES": "268435456",
        "CALIBRE_MCP_SEMANTIC_FLOOR": "0.78"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-caelum29-calibre-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "calibre-mcp"
      ],
      "env": {
        "CALIBRE_MCP_SERVER_URL": "http://localhost:8080",
        "CALIBRE_MCP_LIBRARY": "",
        "CALIBRE_MCP_ENABLE_WRITE": "off",
        "CALIBRE_MCP_CALIBREDB_PATH": "",
        "CALIBRE_MCP_RERANK": "on",
        "CALIBRE_MCP_ADD_ROOTS": "~/Documents, ~/Downloads",
        "CALIBRE_MCP_INDEX_DIR": "platform data dir",
        "CALIBRE_MCP_BOARD_STYLE": "shelf",
        "CALIBRE_MCP_MAX_BOOK_BYTES": "268435456",
        "CALIBRE_MCP_SEMANTIC_FLOOR": "0.78"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-caelum29-calibre-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "calibre-mcp"
      ],
      "env": {
        "CALIBRE_MCP_SERVER_URL": "http://localhost:8080",
        "CALIBRE_MCP_LIBRARY": "",
        "CALIBRE_MCP_ENABLE_WRITE": "off",
        "CALIBRE_MCP_CALIBREDB_PATH": "",
        "CALIBRE_MCP_RERANK": "on",
        "CALIBRE_MCP_ADD_ROOTS": "~/Documents, ~/Downloads",
        "CALIBRE_MCP_INDEX_DIR": "platform data dir",
        "CALIBRE_MCP_BOARD_STYLE": "shelf",
        "CALIBRE_MCP_MAX_BOOK_BYTES": "268435456",
        "CALIBRE_MCP_SEMANTIC_FLOOR": "0.78"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-caelum29-calibre-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "calibre-mcp"
      ],
      "env": {
        "CALIBRE_MCP_SERVER_URL": "http://localhost:8080",
        "CALIBRE_MCP_LIBRARY": "",
        "CALIBRE_MCP_ENABLE_WRITE": "off",
        "CALIBRE_MCP_CALIBREDB_PATH": "",
        "CALIBRE_MCP_RERANK": "on",
        "CALIBRE_MCP_ADD_ROOTS": "~/Documents, ~/Downloads",
        "CALIBRE_MCP_INDEX_DIR": "platform data dir",
        "CALIBRE_MCP_BOARD_STYLE": "shelf",
        "CALIBRE_MCP_MAX_BOOK_BYTES": "268435456",
        "CALIBRE_MCP_SEMANTIC_FLOOR": "0.78"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
CALIBRE_MCP_SERVER_URL No Calibre Content Server base URL Default: http://localhost:8080
CALIBRE_MCP_LIBRARY No Library name; empty = the server’s default library
CALIBRE_MCP_ENABLE_WRITE No Master write gate (1/true/yes) Default: off
CALIBRE_MCP_CALIBREDB_PATH No calibredb binary; found via standard install paths, then PATH
CALIBRE_MCP_RERANK No Cross-encoder rerank stage on semantic search (~576 MB model, seconds of CPU per query); set off/false/0 to disable Default: on
CALIBRE_MCP_ADD_ROOTS No Folders calibre_add_book may import from (path-delimiter separated) Default: ~/Documents, ~/Downloads
CALIBRE_MCP_INDEX_DIR No Semantic index + embedding-model cache Default: platform data dir
CALIBRE_MCP_BOARD_STYLE No Search-results widget style in MCP Apps hosts: shelf (scrolling cover shelf) or coverflow (3D cover flow) Default: shelf
CALIBRE_MCP_MAX_BOOK_BYTES No Largest book download calibre_build_index / calibre_get_content will extract; bigger books are skipped Default: 268435456
CALIBRE_MCP_SEMANTIC_FLOOR No Cosine score below which semantic results are flagged low-confidence Default: 0.78

Similar servers