book-library-mcp
Based on the provided schema, this server provides read-only access to browse and search a local book library and retrieve book content.
List all books with slug, title, and author.
Full-text search across all book content with slug and line context.
Retrieve a book's full metadata.yaml.
Retrieve a specific chapter summary markdown.
Retrieve a book's action items.
Retrieve aggregated personal notes for a book.
Retrieve a book's infographic text, with chatgpt/gemini source selection and fallback.
Provides tools for inspecting uncommitted changes in the book library's git repository and saving changes by staging, committing, rebasing onto origin/main, and pushing.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@book-library-mcp Search my library for 'stoicism' and show me the book titles."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
book-library-mcp
MCP server that exposes a local book library to Claude clients.
The server reads a directory of books — each in its own folder with a
metadata.yaml, chapter summaries, action items, and personal notes — and
exposes them via MCP tools. The book content is private; this repo contains only
the server code.
Tools
Tool | Description |
| List all books: slug, title, author |
| Full-text search across all book content |
| Full metadata.yaml for one book |
| One chapter summary markdown |
| action-items.md for one book |
| Aggregated personal-notes/ for one book |
| Infographic text file for one book |
| Whether a book has a whole-book infographic, and which chapters have one |
| The whole-book infographic, or one chapter's, as an image |
| Append a quote to one book's |
| Replace one book's |
| Uncommitted changes in the library (parsed |
| Stage, commit and push |
Explicit-save model
The write tools only touch disk, and only <book>/personal-notes/README.md. They
never commit. save_book_changes stages, commits, rebases onto origin/main and
pushes. The LLM must only call it when the user explicitly approves ("save it",
"commit that", "looks good"). Saving needs a clone the server can write to, and a
deploy key with write access.
Related MCP server: grimoire-beholder-mcp
Self-hosting
Prerequisites
Expected library layout
book-library/
├── some-book/
│ ├── metadata.yaml # title, author, source_folder, ...
│ ├── action-items.md
│ ├── chapter-summaries/
│ │ └── chapter-01-intro.md
│ └── personal-notes/
│ └── notes.md
└── another-book/
└── ...metadata.yaml minimum fields:
title: Some Book
author: Jane Doe
source_folder: some-book # slug; defaults to directory name if absentInstall and run
git clone https://github.com/kennyrnwilson/book-library-mcp.git
cd book-library-mcp
uv syncstdio (Claude Desktop):
BOOK_LIBRARY_ROOT=/path/to/book-library uv run python -m book_library_mcpStreamable HTTP (remote/VM):
BOOK_LIBRARY_ROOT=/path/to/book-library uv run python -m book_library_mcp \
--transport streamable-http --host 127.0.0.1 --port 5102Claude Desktop config (stdio)
{
"mcpServers": {
"book-library": {
"command": "uv",
"args": ["run", "python", "-m", "book_library_mcp"],
"cwd": "/path/to/book-library-mcp",
"env": {
"BOOK_LIBRARY_ROOT": "/path/to/book-library"
}
}
}
}Self-test
BOOK_LIBRARY_ROOT=/path/to/book-library uv run python -m book_library_mcp --selftestDevelopment
uv sync --extra dev
uv run pytest
uv run ruff check src/Available Tools
7 toolsget_action_itemsB
Return the contents of action-items.md for one book.
Inputs: slug (required). Returns: result
get_book_infographic_textA
Return the contents of <slug>_book_infographic_<source>.txt.
source is one of chatgpt (default) or gemini. Falls back to whichever
variant exists if the requested one isn't present.
Inputs: slug (required), source. Returns: result
get_book_metadataB
Return the full metadata.yaml for one book.
Inputs: slug (required).
get_chapter_summaryB
Return the markdown of chapter-summaries/<chapter>.md for one book.
Inputs: slug (required), chapter (required). Returns: result
get_personal_notesC
Return aggregated personal-notes/ content for one book.
Inputs: slug (required). Returns: result
list_booksA
List all books in the library: slug, title, author.
Inputs: no named parameters. Returns: result
search_booksA
Full-text search across all book content. Returns slug + line context.
Inputs: query (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool targets a distinct access pattern: listing, searching, metadata, chapter summaries, action items, personal notes, and infographic text. There is no meaningful functional overlap between the tools.
Tool names consistently follow a verb_noun pattern, with list_ and search_ for browsing and get_ for retrieving specific artifacts. The naming is predictable and easy to navigate.
Seven tools is a well-scoped set for a book-library MCP server. Each tool serves a distinct purpose without unnecessary bloat or redundancy.
The server covers discovery, search, metadata, and several curated book-related resources well. However, there is no direct tool for retrieving full chapter text or raw book content, which is a minor gap given full-text search implies such content exists.
Maintenance
Related MCP Connectors
- ORANO MCP ServerDeprecatedio.github.infotik
Read-only MCP server exposing a user ORANO library to their own AI agent.
Turn books in your private library into tables of contents, summaries and study docs.
Your personal library, readable by AI agents: durable snapshots, hybrid search, 46 MCP tools.
Read-only access to Penwright's writing-craft book library, grounded guide metadata (card-level...
Related MCP Servers
- 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
- FlicenseAqualityDmaintenanceAn MCP server that exposes a fully offline RAG library of books (PDFs, EPUBs, markdown, text) to Claude, enabling hybrid search and retrieval of contextualized chunks via read-only tools.51-
- FlicenseNot gradedqualityDmaintenanceEnables Claude or any LLM to manage a book library via MCP tools, allowing listing, searching, creating, updating, and deleting books through natural language.-
- AlicenseAqualityCmaintenanceEnables browsing, searching, and quote verification of a local ebook library via MCP, providing deterministic RAG with no embeddings or network.62MIT