Integrations¶
MCP server¶
MCP Server: connect an LLM client (Claude Code or any MCP-aware client) to your library over stdio.
The *-memex ecosystem¶
book-memex is the book-domain archive of the *-memex family of personal-data
archives (alongside, for example, llm-memex for AI conversations, mail-memex
for email, and bookmark-memex for bookmarks). Each archive is an independent
package that satisfies a shared contract, and the memex federation layer works
across them. What book-memex provides to that ecosystem:
- Durable, URI-addressable records:
book-memex://book/<unique_id>,book-memex://marginalia/<uuid>,book-memex://reading/<uuid>. Positions inside a book are fragments (#epubcfi(...),#page=47), not separate records. - Record resolution over MCP:
get_recordresolves any of those URIs (archived records included) andget_record_kindsdeclares the kinds, tables, and id columns, so the federation can follow cross-archive trail steps. - A RAG-ready surface: per-segment FTS5 search (
search_book_content,search_library_content) and paginated segment text (get_segment,get_segments). The federation pulls text through these tools and does any embedding itself; the archive computes no embeddings and wraps no LLM calls. - arkiv interchange:
book-memex export arkivwrites the ecosystem's JSONL +schema.yamlbundle (as a directory,.zip, or.tar.gz), andbook-memex import arkivreads it back without clobbering local data. See Import/Export. - A durable offline export:
book-memex export html-appproduces a single self-contained HTML file (vendored sql.js, gzipped database, hash routing). - Soft delete everywhere: archived records keep their URIs until explicitly purged, so references held by trails and notes elsewhere stay valid.
Other formats¶
- Calibre:
book-memex import calibreandbook-memex export calibre. - Goodreads:
book-memex export goodreadsproduces an importable CSV. - OPDS:
book-memex servepublishes a live OPDS catalog at/opds/;book-memex import opdsandbook-memex export opdsread and write feeds.