Skip to main content

Notion Search

Search Notion by what you mean, not just what you typed.
A private, offline replacement for the Cmd+K search in Notion Desktop, powered by Google's EmbeddingGemma 2.

PyPI version macOS, Apple Silicon MIT license

uvx notion-search

Notion's own search leans on exact words and titles. It misses text deep inside long pages, links you saved, database tags and properties, and anything you only remember by its meaning. Notion Search keeps the same Cmd+K box and answers it from your own Mac instead. It indexes every page in your workspace and ranks each query by exact words and by meaning together. Each result opens at the block that matched, with Notion's blue highlight.

Install

You need a Mac with Apple Silicon, Notion Desktop in /Applications, and uv (brew install uv works). Then run:

uvx notion-search

The first run takes 5 to 10 minutes and sets up everything: the command, the model (about 900 MB, once), the index and a background service that starts at every login. Open Notion and press Cmd+K. Run notion-search any time for the menu.

The menu

Option What it does
Update Gets the newest release, then refreshes the service and index
Status Shows whether the service is running and linked to Notion
Restart Restarts the background service
Reindex Rebuilds the index from scratch (2 to 3 minutes)
Uninstall Removes the service, index, model and the command

The same actions work as commands: notion-search update, status, restart, reindex, uninstall, and logs.

What gets searched

Page titles and folder paths, and the full text of every page: toggles, columns, lists, callouts and table cells. Database properties are searched too: a book is found by its author, and a task by its status or tag. Long pages are split into chunks of about 1,500 characters, so a match deep inside a page still finds it.

Not searched: dates, people, and the contents of PDFs, images and other files. Notion Desktop must have opened a page at least once before it can be indexed. New and edited pages are picked up within about 15 seconds.

Private

Search and indexing run on your Mac, and it works offline. No page text or telemetry leaves it, and the only download is the model, once. Notion's database is opened read-only and Notion's app files are never changed.

One thing does go online. To find pages whose text is not on your Mac yet (see the FAQ), the service also sends your query to Notion's servers, the same request Notion sends without us. Offline, it skips that step and answers from the local index.

The service talks to Notion over Chromium's DevTools port (127.0.0.1:9222), which any process running as you can reach. Do not use this on a Mac that other people control.

How it works

Notion Desktop ── Cmd+K ──> /api/v3/search request
        │  (intercepted over the DevTools port)
        ▼
service.py ──> engine.py ──> answer in Notion's own response format
        │                    ├─ SQLite FTS5 index   (exact words)
        │                    └─ vectors             (EmbeddingGemma 2, MLX, 8-bit)
        ▼
indexer.py: reads Notion's local database (read-only),
re-embeds only the pages whose text changed

Each query runs both ways and the results are merged. A meaning match only counts when it stands well above the usual score for that query, so nonsense queries return nothing. Pages that hold all your words, and the page you have open, get a small boost. Under each result you see the one block that matched best.

Searching the local index takes about 20 to 50 ms. While you are online, the check with Notion's own search for pages not on your Mac adds about half a second. Memory is about 350 MB, mostly the model. The first index takes 2 to 3 minutes for about 800 pages. After that only changed pages are processed.

FAQ

Does it update itself?

Yes. The service checks for a new release every few hours and installs it an hour after it comes out, then restarts. To update right away, choose Update in the menu.

Does it keep working after a Notion update?

Yes. The service checks every 2 seconds that Notion is running with the debug port. After an update, or any normal launch, Notion starts without it. The service then restarts Notion once with the port enabled. You do not need to set anything up again.

Why does Notion restart when I open it?

Notion has to run with a debug port so the service can answer its searches. If you open it normally, the service restarts it once with the port enabled. Your pages are safe, because Notion saves continuously.

A page is missing from the results.

Notion saves a page's text on your Mac when you open the page. Until then Notion Desktop lists only its title, so Notion Search cannot read it. For those pages it adds Notion's own search hits to the results. Open the page once and it joins the local index within about 15 seconds; after that it is answered locally.

Does it work on Windows or Linux?

Not yet. The model runs on MLX, which needs Apple Silicon. A port would be a welcome contribution; see CONTRIBUTING.md.

Does it work in the browser?

No. It needs Notion Desktop for Mac.

Something is wrong.

Run notion-search status, then notion-search logs. If results look stale, choose Reindex in the menu.

How do I remove it?

Run notion-search, choose Uninstall and confirm. uv stays, because other tools may use it.

Contributing

Issues and pull requests are welcome. Please read CONTRIBUTING.md first.

Credits

Built with ideas from DigUp by ARahim3 (MIT), which searches local files with the same model: the model card's query and document prompts, scoring a hit against the whole score distribution for a query instead of a fixed cutoff, and a model fingerprint in the index so a model change triggers a rebuild.

License

MIT. See LICENSE. Notion Search is not affiliated with Notion Labs, Google or Apple. Notion is a trademark of Notion Labs, Inc.

Metadata

Release files for notion-search 0.1.16

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

Source distribution (sdist)

Source distribution for notion-search 0.1.16
File Size Uploaded Provenance Actions
notion_search-0.1.16.tar.gz 32.2 kB With provenance Details for notion_search-0.1.16.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for notion-search 0.1.16
File Interpreter ABI Platform Actions
notion_search-0.1.16-py3-none-any.whl Python 3 none any Details for notion_search-0.1.16-py3-none-any.whl

Total release size: 66.6 kB

Release files / notion_search-0.1.16.tar.gz

Download URL notion_search-0.1.16.tar.gz
Size 32.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4d4ec70d19d39beb2440c3248fd1039b2c1791cc2b7fd3b622241192bd6d9701
BLAKE2b-256 checksum
How to use checksums
6d9cd9d0a43041e5e0b421ed665655f487490e74ef237d589f4202d22a59b448
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 23, 2026.

Transparency log

Release files / notion_search-0.1.16-py3-none-any.whl

Download URL notion_search-0.1.16-py3-none-any.whl
Size 34.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
54f065725814f69af1b8e52a1fd64e94a5aaf42a039cc84b6f7c0d68244d994c
BLAKE2b-256 checksum
How to use checksums
72a690b7729f450a8a9e62d3e6dd36e1d3c6fd8def2a2369abe6b5ff5c7c91b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 23, 2026.

Transparency log

Security for notion-search 0.1.16

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for notion_search-0.1.16.tar.gz

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 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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