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.
Setup
Before using directory-indexer, you need to set up two services:
1. Qdrant Vector Database
Choose one option:
Docker (recommended for most users):
Alternative: Install natively from qdrant.tech
2. Embedding Provider
Choose one option:
Option A: Ollama (recommended - free, runs locally)
# Install Ollama
| # For Windows: Download from https://ollama.ai
# Pull the embedding model
Option B: OpenAI (requires paid API key)
Quick Verification
Test your setup:
# Check Qdrant
# Check Ollama
If either fails, directory-indexer will show a helpful error with setup guidance.
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 data directory (default: ~/.directory-indexer)
# 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