Skip to main content

lanternkb

Private, local search over your own files, for you and the AI tools you choose.

lanternkb indexes the folders you pick and searches them by meaning and by exact words. It runs as a local MCP server for Claude Code and other assistants, with no daemon, no open port and no telemetry. Secrets it detects are redacted before anything is stored, and you decide which folders an assistant that sends results to the cloud may see.

Install

macOS 14 or later on Apple silicon, or Linux, with uv:

uv tool install --managed-python --python 3.12 "lanternkb[embed,ui]"
lanternkb setup        # asks for folders and whether an assistant may see them, offers the models, indexes

--python 3.12 matters: without it uv may pick an older Python already on the machine, and the install fails. The install takes about 0.9 GB on macOS, plus about 1.2 GB for the embedding model. uv tool upgrade lanternkb updates it.

lanternkb search "what did the plumber say about the boiler"
lanternkb search "boiler quote" --type pdf,docx --since 30d
lanternkb recent       # files changed lately
lanternkb ui           # the settings page, with a search box
lanternkb doctor       # checks the setup and says what to fix

Use it from Claude Code

  1. lanternkb mcp-setup prints a claude mcp add command. Run it.
  2. The server it registers returns files from folders you marked open, and nothing else.
  3. Claude Code can also read files with its own tools, so mcp-setup prints deny rules too. Add them to ~/.claude/settings.json to keep its tools away from your local-only folders and the index.

What it reads

Notes, code, PDFs, Word and OpenDocument files, rich text, saved web pages and subtitles; scanned pages and audio optionally. Plugins can add file types, embedding models and rules for which folder is open (plugins).

Privacy and safety

  • Every folder is open or local-only, and new folders are local-only.
  • Credential folders and secret-shaped files are skipped, and a secret scanner redacts what it finds before anything is split up or embedded. A file in which it finds a secret becomes local-only, even in an open folder.
  • Files are read in sandboxed worker processes that deny by default: sandbox-exec on macOS, Landlock and seccomp on Linux.
  • Nothing goes over the network except the model downloads you agree to.

The threat model says what is protected and what is not.

How well it works

Tested on a synthetic set of files (three open-source code bases and 654 generated notes) with 330 held-out questions: nDCG@10 0.831, against 0.777 for grooveseek with its reranker and 0.760 for QMD, at about 30 ms a search (about 120 ms with reranking, on an M5 Max). On the hardest held-out test of planted fake secrets, the scanner kept 71.9% out of the index, so treat it as a second line of defence: keep credential folders out of indexed folders, or local-only.

Limits

  • The secret scanner misses some secrets, and values that read as examples (example, changeme, a <placeholder>, a ${VARIABLE}) are left alone.
  • On Linux, reranking runs on the CPU at 0.4 to 1 s a search, so it is off until you enable it.
  • Email, browser history, calendars and contact cards are not indexed.
  • Scanned PDFs and images need OCR, which is off by default.

More

Licence

Apache-2.0: see LICENSE, NOTICE and THIRD_PARTY_NOTICES.md.

Metadata

Release files for lanternkb 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lanternkb 0.1.1
File Size Uploaded
lanternkb-0.1.1.tar.gz 234.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lanternkb 0.1.1
File Interpreter ABI Platform
lanternkb-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 499.8 kB

Release files / lanternkb-0.1.1.tar.gz

Download URL lanternkb-0.1.1.tar.gz
Size 234.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0d4a8fafaded0dcec46e5f26a1e621c3914f6c2242827e9f93eef6d29b692929
BLAKE2b-256 checksum
How to use checksums
8b22de3641f53e093d203228a56fbb4fd67526c33d7fd54a6f1ed52b425e4765
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

Release files / lanternkb-0.1.1-py3-none-any.whl

Download URL lanternkb-0.1.1-py3-none-any.whl
Size 265.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e834b4f2e4641937a31443183cfb372b5d033ae957f8f4303a1223e1d8eff12c
BLAKE2b-256 checksum
How to use checksums
6de77bd0458513fcd57a248ab6de0328683f1039ba012c5087c228ca044ecb7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.3

2 release files

0.1.2

2 release files

This release

0.1.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page