Local-first personal AI brain: index your own folders and search them from local MCP clients such as Claude Desktop, Claude Code and Cursor.
pip install locusfiles==0.1.3 Copy PIP instructions
Your files, your machine, the MCP clients you already use.
Locus indexes folders you choose on your own computer and gives MCP clients that can start a local server (tested: Claude Desktop, Claude Code and Cursor) a semantic search tool over them. Every result carries the file path, so the assistant can cite its sources.
The package is locusfiles; the command it installs is locus.
We recommend uv: you do not need Python installed first, because it installs its own. pipx works too if you already have Python 3.11 or newer. Either one puts locus in its own environment. locusfiles has been on PyPI since 0.1.0 (2026-09-29):
# Recommended: uv (install it first; skip if `uv --version` already works) curl -LsSf https://astral.sh/uv/install.sh | sh # then open a new terminal, so `uv` is found # On-device embeddings, no account (downloads PyTorch, about 1-2 GB): uv tool install --python 3.12 "locusfiles[local]" # or a Locus plan (managed embeddings, remote connection), no PyTorch: uv tool install --python 3.12 "locusfiles[relay]" uv tool update-shell # adds ~/.local/bin to PATH; open a new terminal afterwards # Alternative: pipx (needs Python 3.11+) pipx install "locusfiles[local]" # or "locusfiles[relay]" Other extras: voyage or openai to embed with your own provider key.
macOS and Linux are tested. Windows is not yet verified.
export LOCUS_EMBEDDER=local # or managed (with LOCUS_API_KEY), voyage, openai locus doctor # checks Python, packages, settings and the embedder locus index ~/Documents/notes --prune # parse, chunk, embed and index a folder locus query "what did I decide about pricing" -k 5 Then connect your AI assistant: it runs locus serve (MCP over stdio). Setup steps for each client are on the Locus website's Connect page (/docs/connect).
Indexes live in ~/.locus (set LOCUS_DATA_DIR to move them). Settings are environment variables, or a .env file in the directory you run locus from or one of its parents.
The locusfiles package is licensed under the Functional Source License, Version 1.1, ALv2 Future License (FSL-1.1-ALv2). The full text ships inside the package as its LICENSE file, and that text is the binding version. In short, the engine is source-available: you may use, copy, modify and redistribute it for any purpose except a Competing Use (making it available to others in a commercial product or service that substitutes for it or offers substantially similar functionality). Two years after a version is made available, that version is also available under the Apache License, Version 2.0. The hosted services (the relay, the website and billing) are not part of the package and are not licensed by it.
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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 verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.




