Skip to main content
Glama

πŸ“š bookworm

Your AI reading companion. Point Bookworm at any folder β€” Obsidian vault, research papers, book collection, work docs β€” and Claude Desktop will read, remember, and discuss everything in it.

Like NotebookLM, but local, open-source, and through Claude Desktop.

How it works

Your documents (books, notes, articles, code, data) ↓ Index locally (free, no API costs) ↓ Claude Desktop reads it all via MCP ↓ Ask anything β†’ get expert answers

Bookworm uses local embeddings (BGE-M3) and a local vector database (Qdrant) to index your documents. Claude Desktop connects to this index via MCP (Model Context Protocol) and uses it as memory β€” not as a search engine, but as knowledge it has "read."

Related MCP server: Claude RAG MCP Pipeline

Supported formats

Documents & notes: .md, .txt, .pdf, .docx, .rtf

Books: .epub

Data: .csv, .tsv, .json

Web: .html, .htm

Code & configs: .py, .js, .ts, .yaml, .yml, .sh, .sql, .xml, .log

Subtitles: .vtt, .srt

Quick Start

Step 1. Clone and install

git clone https://github.com/vadimkasse/bookworm.git
cd bookworm
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

The first run will download the embedding model (~2GB). This only happens once.

Step 2. Point to your documents

Edit config.yaml and set the path to your folder:

vault:
  path: "/Users/yourname/Documents/my-notes"

This can be any folder: an Obsidian vault, a folder with PDFs, a mix of books and notes β€” anything.

Step 3. Check that everything is ready

python3 check_status.py

You should see all green checkmarks. If something is missing, the script will tell you what to fix.

Step 4. Index your documents

python3 index.py

This scans your folder, extracts text from all supported files, splits it into chunks, and creates embeddings. Performance: ~1 minute per 1000 files on Apple Silicon. Cost: $0 (everything runs locally).

Indexing is incremental β€” when you add new files, just run python3 index.py again. Only new files will be processed.

Step 5. Connect to Claude Desktop

Open Claude Desktop β†’ click your profile icon (bottom-left) β†’ Settings β†’ Developer β†’ Edit Config.

This opens claude_desktop_config.json. Add bookworm to mcpServers:

{
  "mcpServers": {
    "bookworm": {
      "command": "/full/path/to/bookworm/venv/bin/python3",
      "args": ["/full/path/to/bookworm/search_mcp.py"]
    }
  }
}

Important: Use full absolute paths. ~ and relative paths do not work.

Example for macOS:

{
  "mcpServers": {
    "bookworm": {
      "command": "/Users/yourname/Projects/bookworm/venv/bin/python3",
      "args": ["/Users/yourname/Projects/bookworm/search_mcp.py"]
    }
  }
}

Save the file.

Step 6. Restart Claude Desktop

Fully quit Claude Desktop (Cmd+Q on macOS, not just close the window) and reopen it.

Step 7. Verify the connection

Open Claude Desktop β†’ Settings β†’ Developer. You should see bookworm with a green "running" status.

Then open a new chat, click the + button next to the message input, and look for bookworm in the tools list β€” it should be toggled on.

Recommended model: Use Claude Sonnet 4.6 or Opus for best results. Haiku may struggle with complex search strategies.

Step 8. (Optional) Set up a project instructions

For the best experience, create a Project in Claude Desktop:

  1. Open the sidebar β†’ Projects β†’ New Project

  2. In project settings, paste the contents of instructions.md as the project instructions

  3. Replace the placeholders ({SOURCE_NAME}, {TOTAL_ITEMS}, {DOMAIN}) with your values

  4. Start chats inside this project

The project instructions makes Claude behave as an expert who has read your entire collection, rather than a search engine that returns results.

Usage

Just talk to Claude naturally:

  • "What do you know about typography in the collection?"

  • "Find all mentions of Edward Tufte"

  • "What's in the Books folder?"

  • "Summarize the key ideas from design_principles.pdf"

  • "How many documents are in the database?"

  • "What books in my library discuss systems thinking?"

Claude picks the right search tool automatically β€” semantic search for topics, full-text search for specific names and phrases, and full document retrieval when needed.

Tools

Bookworm gives Claude 5 tools to work with your knowledge base:

Tool

What it does

search

Semantic search β€” finds relevant chunks by meaning

fulltext

Substring search β€” scans the entire database for exact matches

get_note

Retrieves the full text of a specific file

list_notes

Lists files in the knowledge base, with optional folder filter

stats

Shows database statistics: total chunks, files, folders

Updating your index

When you add new documents to your folder:

cd /path/to/bookworm
source venv/bin/activate
python3 index.py

Only new files are indexed β€” existing ones are skipped.

Troubleshooting

"bookworm" not showing in Claude Desktop tools:

  • Check Settings β†’ Developer β€” is bookworm "running"?

  • Verify paths in claude_desktop_config.json are absolute

  • Fully restart Claude Desktop (Cmd+Q, not just close)

  • Check MCP logs: cat ~/Library/Logs/Claude/mcp*.log | tail -20

Claude doesn't use the tools:

  • Click + next to message input β†’ make sure bookworm toggle is ON

  • Try asking directly: "Use your search tools to find..."

  • Switch to Sonnet or Opus (Haiku may not use tools effectively)

Indexing is slow:

  • Normal speed: ~1 min per 1000 files on Apple Silicon

  • First run downloads the model (~2GB) β€” subsequent runs are faster

  • Use python3 index.py --test to index only 100 files for testing

Stack

  • Python 3.10+

  • BGE-M3 β€” local multilingual embeddings

  • Qdrant β€” local vector database

  • MCP β€” Model Context Protocol

  • Claude Desktop

Project structure

bookworm/
β”œβ”€β”€ config.yaml        β€” settings (paths, model, chunking)
β”œβ”€β”€ parser.py          β€” text extraction from 20+ file formats
β”œβ”€β”€ chunker.py         β€” smart chunking (headings β†’ paragraphs β†’ sliding window)
β”œβ”€β”€ index.py           β€” indexing pipeline: parse β†’ chunk β†’ embed β†’ store
β”œβ”€β”€ search_mcp.py      β€” MCP server with 5 tools
β”œβ”€β”€ check_status.py    β€” setup diagnostics
β”œβ”€β”€ instructions.md   β€” Claude Desktop prompt template
β”œβ”€β”€ requirements.txt   β€” dependencies
└── qdrant_data/       β€” vector database (created on first index)

License

Apache 2.0 β€” see LICENSE for details.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Turns Claude Desktop into a personal document question-answering system using local vector search. Index PDF, TXT, and Markdown documents into collections and get answers based strictly on your documents with zero hallucination.
      10 npm
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables Claude Desktop to search and query personal document collections (PDF, Word, Markdown, text) using semantic search and conversational AI with full context preservation across exchanges.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables Claude Desktop to perform local-first semantic search, ingest documents, and manage a private knowledge base with hybrid search, PII redaction, and multi-format support.
      1
      MIT