Skip to content

Model Context Protocol (MCP) Server

ebook-rs includes a built-in implementation of Anthropic’s Model Context Protocol (MCP 2024-11-05) specification.

  • open_book: Mounts an eBook file into the assistant context.
  • search_book: Performs SIMD full-text search and returns highlighted snippet context.
  • read_section: Fetches full section text or semantic HTML for a specific spine chapter.
  • query_rag: Executes BM25 semantic chunk retrieval with exact CFI citation spans.
  • export_epub: Converts books to standard EPUB 3 on the fly.
Terminal window
# Stdio Mode (Default)
ebook-rs mcp
```\n