bookorbit-mcp
Click on "Install 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., "@bookorbit-mcpFind 'The Hobbit' and list its chapters."
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.
bookorbit-mcp
An MCP server that exposes the text of your ebooks — managed by BookOrbit — to LLMs, so an assistant can answer questions about what happens inside a book without you copy-pasting chapters.
It is deliberately navigation-first: instead of dumping a whole 100k-word book into the model's context (which would overwhelm it), the server lets the model find a book, look at its chapter list, and pull only the pieces it needs.
How it works
BookOrbit stores raw EPUB files and exposes a reader backend
(/epub/{bookId}/info + /epub/{bookId}/file/{path}). This server uses that
backend to read a book's structure, fetch only the needed chapters, strip the
XHTML to plain text, and cache the result on disk. Nothing is re-downloaded
after the first read.
Three guardrails keep the model from drowning:
Structure before text —
list_chaptersreturns chapter labels and sizes, never the body.Bounded, paginated text —
get_chaptercaps output (~24k chars) and pages through long chapters withoffset/nextOffset.Snippet-only search —
search_in_bookreturns short snippets plus a chapter index + offset the model can re-fetch precisely.
Related MCP server: access-calibre
Tools
All tools are read-only.
Find & read book text
Tool | What it does |
| Find books by title/author/series; returns |
| Full metadata (description, series, genres, files). |
| Chapter list with per-chapter char/word counts (no text). Parses + caches on first call. |
| Plain text of one chapter, paginated. |
| Keyword search within a book → snippets + locations. |
Discovery & browse
Tool | What it does |
|
|
| Library's series with book/read counts. |
| Books in a series, in order. |
| Library's authors with book counts. |
| One author, including their bio. |
| Books by an author. |
| User collections, one collection's detail, and its books. |
| Saved dynamic filters and the books they match. |
| Libraries with per-library book/size/format stats. |
| Typeahead over authors/series/genres/tags/publishers/languages/narrators/collections — resolve an exact name. |
| A curated shelf: recently-added, want-to-read, up-next-in-series, continue-reading/listening, random, smart-scope. |
| External provider author-bio candidates (enrichment, not your library). |
Reading state & stats
Tool | What it does |
| Per-file progress (+ audiobook progress) for a book. |
| Books you're reading now, with progress. |
| Reading-session history + aggregate stats for a book. |
| Library-wide totals (books/authors/series/storage/…). |
| Your personal reading totals (started/completed/…). |
| One library-wide chart: distributions, top-authors/series, timelines, metadata-health gauges. |
| One personal reading chart: peak-hours, favorite-days, heatmap, completion-latency, goal-trajectory, … |
| One "headline card": reading-streak, reading-goal, year-projection, neglected-gems, library-overview, … |
Annotations (your own highlights & notes)
Tool | What it does |
| All highlights/notes across the library, paginated. |
| Which books have annotations, with counts. |
| One book's highlights/notes, in chapter order. |
Images (returned as image content, not text)
Tool | What it does |
| A book's cover image ( |
| An author's photo ( |
Typical flow: search_books → list_chapters → get_chapter /
search_in_book.
Requirements & scope
EPUB only (v1). Books without an EPUB file return a clear error from the text tools.
Auth: BookOrbit access tokens expire after ~15 minutes and there is no long-lived API key, so the server logs in with your username + password and refreshes / re-logs in automatically. A static
BOOKORBIT_TOKENis supported for quick tests but will not auto-refresh.Single-user / local: it acts as the account you configure.
Configuration
Set these as environment variables (or in a local .env — see .env.example):
Variable | Required | Notes |
| yes | Base URL, e.g. |
| recommended | Enables automatic token refresh. |
| recommended | |
| alternative | Static Bearer token; dev/testing only (expires ~15 min). |
| optional | Where extracted text is cached (default |
Install & build
npm install
npm run buildUse with a Claude client
Add to your MCP client config (e.g. Claude Desktop's claude_desktop_config.json,
or claude mcp add). Point at the built entry and pass your credentials:
{
"mcpServers": {
"bookorbit": {
"command": "node",
"args": ["/absolute/path/to/bookorbit-mcp/dist/server.js"],
"env": {
"BOOKORBIT_URL": "https://bookorbit.example.com",
"BOOKORBIT_USERNAME": "your-username",
"BOOKORBIT_PASSWORD": "your-password"
}
}
}
}Development
npm test # unit tests (offline; run against captured fixtures)
npm run typecheck # type-check only
npm run dev # run the server from source over stdio
# Live checks against a real server (need .env with credentials):
node --import tsx scripts/smoke.mts # exercises search → parse → chapter → search
node --import tsx scripts/mcp-check.mts # drives the built server over the MCP stdio protocolDesign notes
Chapters follow the TOC, not raw files. A single EPUB spine file can bundle many chapters separated by
#fragmentanchors; the server resolves the table of contents into meaningful sections and slices each one by its anchor range.Cache layout:
~/.cache/bookorbit-mcp/<bookId>/book.json(chapter list + sizes) andtext/section-NNN.txt(extracted text per chapter).Discovery, reading-state, stats, and annotation tools are live passthroughs to BookOrbit and are not cached (that data is mutable); only extracted EPUB text is cached.
Not included (v1): semantic/RAG search, cross-library content search, PDF/MOBI, and any write operations. The cache layout leaves room to add a cross-book index later.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/joshstrange/bookorbit-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server