Python Library
from locallens import LocalLens -- import it, use it, done. No server, no Docker needed.
Index, search, and ask questions about your local files. Ships as a Python library, CLI, and MCP server. 100% offline.
pip install locallensfrom locallens import LocalLens
lens = LocalLens("~/Documents")
lens.index()
results = lens.search("quarterly revenue report")
print(results[0].file_name, results[0].score)locallens index ~/Documents
locallens search "quarterly revenue report"
locallens ask "What was the Q3 revenue?"// ~/.config/claude/claude_desktop_config.json
{
"mcpServers": {
"locallens": {
"command": "locallens",
"args": ["serve", "--mcp"]
}
}
}