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.

Search takes about 20 to 50 ms. Memory is about 800 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 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.13

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.13
File Size Uploaded Provenance Actions
notion_search-0.1.13.tar.gz 28.4 kB With provenance Details for notion_search-0.1.13.tar.gz

Built distribution (wheel)

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

Total release size: 58.8 kB

Release files / notion_search-0.1.13.tar.gz

Download URL notion_search-0.1.13.tar.gz
Size 28.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9e81836cf07d79d25a3633e296f1a0fcf145d552bd33e236ebb20a25eea29983
BLAKE2b-256 checksum
How to use checksums
e445cb05a9f7ee249b1e64ffb0fb79d8fbbe28a9a44351d0abe6d0df804e8234
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 17, 2026.

Transparency log

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

Download URL notion_search-0.1.13-py3-none-any.whl
Size 30.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c2bc9b2611aa28dd1c8f1f38ffd67d093e324e8464307f4f00915992fc413e92
BLAKE2b-256 checksum
How to use checksums
5e4b1477e09d788b3a4f5fab4baa1886d0f19ef139194e4ed1b734ffafea22c0
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 17, 2026.

Transparency log

Security for notion-search 0.1.13

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.13.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 17, 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