bookshelf
Provides tools for searching Douban book metadata and importing book details such as cover, author, synopsis, ISBN, and rating into the bookshelf.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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)前端:http://localhost:5173(`/api`、`/covers` 代理到 3000)
后端:http://localhost:3000(REST
/api/*、MCP/mcp、封面/covers/*)
常用命令
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.db、covers/、logs/。日志按天轮转,保留天数由 BOOKSHELF_LOG_DAYS 控制(默认 14)。
项目结构
包 | 职责 |
| React 18 + Vite 前端 |
| Fastify:REST API + MCP + 静态服务 |
| 纯类型 / 常量 |
| better-sqlite3 + Drizzle,迁移内联 |
| cheerio 抓取豆瓣元数据 |
协议
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Search Chinese books with Douban ratings, AI book guides and curated toplists. Free, no API key.
Connect AI to your flomo notes. Search, create, edit notes and manage tags via MCP.
Official Bookmax MCP server: search and save bookmarks, read notes and docs from AI assistants.
Your personal library, readable by AI agents: durable snapshots, hybrid search, 46 MCP tools.
Related MCP Servers
- AlicenseBqualityCmaintenanceEnables 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.11MIT
- FlicenseAqualityDmaintenanceAn 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.4174 npm169-
- AlicenseNot gradedqualityBmaintenanceEnables AI clients to read and write local Apple Books library, collections, and annotations. Supports searching, exporting, and modifying books and highlights via MCP tools.1MIT
- AlicenseAqualityBmaintenanceConnects AI assistants to the Hardcover book library, enabling natural language book searches, reading status updates, list management, and library exploration.28377 PyPI10MIT