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