booklore-mcp

booklore-mcp

Enables AI assistants to interact with BookLore self-hosted libraries, allowing natural language queries to search books, manage reading status, ratings, series, authors, and highlights.

Category
访问服务器

README

booklore-mcp

A Model Context Protocol (MCP) server for BookLore — your self-hosted digital library manager.

Connect Claude (or any MCP-compatible AI client) directly to your BookLore instance to search your library, check reading progress, update statuses and ratings, browse series, explore highlights, and more — all through natural conversation.


Requirements

  • BookLore v2.x running and accessible
  • Node.js 22+
  • An MCP-compatible client (Claude Desktop, Cursor, etc.)

Installation

From GitHub Packages (recommended)

  1. Add the scope registry to your project's .npmrc (or ~/.npmrc):

    @cyberglitchlabs:registry=https://npm.pkg.github.com
    
  2. Authenticate with a GitHub personal access token that has read:packages scope:

    //npm.pkg.github.com/:_authToken=YOUR_GITHUB_TOKEN
    
  3. Install the package:

    npm install -g @cyberglitchlabs/booklore-mcp
    

From source

git clone https://github.com/cyberglitchlabs/booklore-mcp.git
cd booklore-mcp
npm install
npm run build

Configuration

BookLore MCP supports two authentication methods.

Option A — API token (recommended if available)

  1. Log in to your BookLore instance
  2. Go to Settings → Profile
  3. Copy your API token

Option B — Username / password

If you don't have easy access to an API token, you can authenticate with your BookLore username and password. The server will log in on startup, cache the access token, and automatically refresh it when it expires.

Environment variables

Variable Required Default Description
BOOKLORE_BASE_URL http://localhost:6060 Base URL of your BookLore instance
BOOKLORE_TOKEN ✅ (Option A) Your BookLore API token
BOOKLORE_USERNAME ✅ (Option B) BookLore username
BOOKLORE_PASSWORD ✅ (Option B) BookLore password

Set either BOOKLORE_TOKEN or BOOKLORE_USERNAME + BOOKLORE_PASSWORD — not both.


Claude Desktop setup

Add the following to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json

If installed via npm

Option A — API token:

{
  "mcpServers": {
    "booklore": {
      "command": "booklore-mcp",
      "env": {
        "BOOKLORE_TOKEN": "your-token-here",
        "BOOKLORE_BASE_URL": "http://localhost:6060"
      }
    }
  }
}

Option B — Username / password:

{
  "mcpServers": {
    "booklore": {
      "command": "booklore-mcp",
      "env": {
        "BOOKLORE_USERNAME": "your-username",
        "BOOKLORE_PASSWORD": "your-password",
        "BOOKLORE_BASE_URL": "http://localhost:6060"
      }
    }
  }
}

If installed from source

Replace "command": "booklore-mcp" with:

"command": "node",
"args": ["/absolute/path/to/booklore-mcp/dist/index.js"]

Restart Claude Desktop after saving.


Available tools

Books

Tool Description
search_books Search and filter books by title, author, library, shelf, status, rating, language, and file type
get_book Full book details — metadata, progress, files, shelves, Goodreads rating
update_book_rating Set personal rating (1–5)
update_book_status Set read status (WANT_TO_READ, IN_PROGRESS, READ, DNF)
get_continue_reading Books currently in progress
get_recently_added Most recently added books

Libraries

Tool Description
list_libraries List all libraries with book counts and allowed formats
get_library_books Browse books in a specific library

Shelves

Tool Description
list_shelves List all user-created shelves
list_magic_shelves List all smart/auto-populated shelves
get_magic_shelf_books Browse books on a specific magic shelf

Series

Tool Description
list_series List or search series with reading progress
get_series_books Get all books in a specific series

Authors

Tool Description
list_authors List or search authors
get_author Author bio and book count
get_author_books All books by a specific author

Notebooks

Tool Description
list_notebook_books Books that have highlights or notes
get_book_notebook_entries All highlights and notes for a specific book

Usage examples

"What books am I currently reading?"

"Search for sci-fi books I haven't read yet, sorted by most recently added"

"Show me all books in the Dune series"

"What are my highlights from Project Hail Mary?"

"Mark book 42 as read and give it a 5-star rating"

"List all my libraries"


Development

# Run in watch mode (auto-recompile on change)
npm run dev

# Type-check without emitting
npx tsc --noEmit

# Build for production
npm run build

# Run tests
npm test

# Lint
npm run lint

Disclaimer

BookLore's API is internal and unversioned — it may change between BookLore releases without notice. This MCP server targets BookLore v2.x. If your BookLore instance is updated and tools start failing, check whether the API endpoints or response shapes have changed.


License

MIT

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选