Skip to main content
Glama
LiJF0406

bookshelf

by LiJF0406

Bookshelf

个人书架应用:书籍管理 + 豆瓣元数据抓取 + MCP 服务。

  • 前端:React 18 + Vite(纯静态)

  • 后端:Fastify 单进程(REST API + MCP + 静态托管)

  • 数据库:better-sqlite3 + Drizzle(迁移内联在代码中)

  • 元数据:cheerio 抓取豆瓣读书

功能

  • 书籍增删改查、阅读状态(想读/未读/在读/已读)、标签分类、置顶

  • 豆瓣元数据搜索与一键导入(封面、作者、简介、ISBN、评分等)

  • 书架筛选(按状态 / 标签 / 关键词)

  • MCP 服务:10 个工具(豆瓣搜索、增删改查、标签),可供 Claude / Cursor 等客户端调用

Related MCP server: mcp-server-weread

快速开始

pnpm install
pnpm dev        # 并行启动 server(:3000) 和 web(:5173)

常用命令

pnpm build      # 构建全部 workspace
pnpm typecheck  # 全包类型检查
pnpm --filter @bookshelf/server mcp:test   # MCP 端到端测试

MCP 接入

将以下配置加入 MCP 客户端(如 Claude Desktop / Cursor):

{
  "mcpServers": {
    "bookshelf": {
      "url": "http://localhost:3000/mcp"
    }
  }
}

部署(Docker)

# 构建并推送镜像(交叉编译到 amd64)
docker buildx build --platform linux/amd64 -t lijf0406/bookshelf:latest . --push

# 服务器端(需预建 external 网络 web-network)
docker compose pull && docker compose up -d

数据目录由 BOOKSHELF_DATA_DIR 控制(默认 data/),内含 bookshelf.dbcovers/logs/。日志按天轮转,保留天数由 BOOKSHELF_LOG_DAYS 控制(默认 14)。

项目结构

职责

apps/web

React 18 + Vite 前端

apps/server

Fastify:REST API + MCP + 静态服务

packages/shared

纯类型 / 常量

packages/db

better-sqlite3 + Drizzle,迁移内联

packages/douban

cheerio 抓取豆瓣元数据

协议

MIT

A
license - permissive license
-
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    B
    quality
    C
    maintenance
    Enables management of Micro.blog book collections through natural language, allowing users to organize bookshelves, add/move books, and track reading goals. Built with FastMCP for reliable integration with Claude Desktop.
    11
    MIT
  • F
    license
    A
    quality
    F
    maintenance
    An MCP server enabling LLMs to access WeChat Reading bookshelf, notes, highlights, and reviews via tools like get_bookshelf, search_books, and get_book_notes_and_highlights.
    4
    163
    168
  • A
    license
    -
    quality
    C
    maintenance
    Enables AI clients to read and write local Apple Books library, collections, and annotations. Supports searching, exporting, and modifying books and highlights via MCP tools.
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Connects AI assistants to the Hardcover book library, enabling natural language book searches, reading status updates, list management, and library exploration.
    31
    5
    MIT

View all related MCP servers

Related MCP Connectors

  • Brazilian Open Finance MCP — 30+ banks (Itaú, Nubank, etc.) to Claude/Cursor. Read-only.

  • Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only

  • Federated search of books and papers, BibTeX/RIS citations, open-access retrieval and reading.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/LiJF0406/bookshelf'

If you have feedback or need assistance with the MCP directory API, please join our Discord server