Skip to content

LocalLensSemantic File Search for AI Agents

Index, search, and ask questions about your local files. Ships as a Python library, CLI, and MCP server. 100% offline.

LocalLens pipeline illustration

Install in 10 seconds

bash
pip install locallens

Quick Examples

python
from locallens import LocalLens

lens = LocalLens("~/Documents")
lens.index()
results = lens.search("quarterly revenue report")
print(results[0].file_name, results[0].score)
bash
locallens index ~/Documents
locallens search "quarterly revenue report"
locallens ask "What was the Q3 revenue?"
json
// ~/.config/claude/claude_desktop_config.json
{
  "mcpServers": {
    "locallens": {
      "command": "locallens",
      "args": ["serve", "--mcp"]
    }
  }
}

Powered by

Qdrant Edge|sentence-transformers|Ollama|PyO3 + Rust

Released under the MIT License.