Directory Indexer
Turn your directories into an AI-powered knowledge base.
Give AI assistants semantic search across your local files. Find relevant documents based on meaning, not just filenames.
Quick Start
# Install via npm
# Index your directories
# Start MCP server for AI assistants
Configure with Claude Desktop:
Now ask Claude: "Find files similar to my Redis incident reports" and it will search your indexed documents semantically.
Requirements
- Qdrant: Vector database for semantic search
Embedding Provider (choose one):
- Ollama (recommended): Self-hosted embeddings
# Install Ollama natively for GPU support (recommended)
|
# Visit https://ollama.ai for Windows installer
# OR use Docker (CPU-only, slower)
- OpenAI: Requires API key
Configuration
Directory Indexer uses environment variables for configuration. Set these if your services run on different ports or require API keys:
# Service endpoints (defaults shown)
# Optional database path (default: ~/.directory-indexer/data.db)
# Optional Qdrant collection name (default: directory-indexer)
# Note: Setting to "test" enables auto-cleanup for testing
# Optional API keys
# if using hosted Ollama
For MCP clients (like Claude Desktop), configure with environment variables:
CLI Usage
# Index your directories
# Search semantically
# Find similar files
# Get file content
# Show status
Supported Files
- Text:
.md,.txt - Code:
.rs,.py,.js,.ts,.go,.java, etc. - Data:
.json,.yaml,.csv,.toml - Config:
.env,.conf,.ini
Documentation
- API Reference: Complete CLI and MCP tool documentation
- Contributing: Development setup and guidelines
- Design: Architecture and technical decisions
License
MIT