Skip to content

LocalLensSemantic File Search for AI Agents

Index your files. Search by meaning. Ask questions. 100% offline. Ships as a Python library, CLI, and MCP server.

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
pip install locallens
locallens index ~/Documents
locallens search "quarterly revenue report"
json
// ~/.config/claude/claude_desktop_config.json
{
  "mcpServers": {
    "locallens": {
      "command": "locallens",
      "args": ["serve", "--mcp"]
    }
  }
}

Released under the MIT License.