Getting Started¶
Get Concept-RAG running in under 10 minutes. This guide walks you through installation, document seeding, and MCP client configuration.
Prerequisites¶
Before you begin, ensure you have:
| Requirement | Version | Purpose |
|---|---|---|
| Node.js | 18+ | Runtime environment |
| Python | 3.9+ | WordNet integration |
| NLTK | Latest | WordNet data access |
| OpenRouter API Key | — | LLM access for concept extraction |
| MCP Client | Cursor or Claude Desktop | AI assistant integration |
Quick Start¶
Step 1: Clone and Build¶
Step 2: Install WordNet¶
Verify installation:
python3 -c "from nltk.corpus import wordnet as wn; print(f'✅ WordNet ready: {len(list(wn.all_synsets()))} synsets')"
Step 3: Configure API Key¶
# Copy the example environment file
cp .env.example .env
# Edit .env and add your OpenRouter API key
# Get your key at: https://openrouter.ai/keys
Your .env file should contain:
Step 4: Seed Your Documents¶
# Load environment
source .env
# Initial seeding (creates database)
npx tsx hybrid_fast_seed.ts \
--dbpath ~/.concept_rag \
--filesdir ~/Documents/my-pdfs \
--overwrite
Incremental Seeding
After initial seeding, omit --overwrite to only process new documents:
Step 5: Configure Your MCP Client¶
Edit ~/.cursor/mcp.json:
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
Use Absolute Paths
Always use absolute paths in MCP configuration. Relative paths will fail.
Step 6: Start Searching! 🎉¶
Restart your MCP client and try these queries:
- Find documents: "What documents do I have about software architecture?"
- Search concepts: "Where is dependency injection discussed?"
- Deep research: "What do my documents say about testing strategies?"
Seeding Options¶
| Flag | Description | Default |
|---|---|---|
--filesdir |
Directory containing PDF/EPUB files | Required |
--dbpath |
Database storage path | ~/.concept_rag |
--overwrite |
Drop and recreate all tables | false |
--parallel N |
Process N documents concurrently | 10 |
--resume |
Skip documents in checkpoint | false |
--max-docs N |
Process at most N new documents | All |
--with-wordnet |
Enable WordNet enrichment | false |
--auto-reseed |
Re-process incomplete documents | false |
Verify Installation¶
Run the health check to verify your database:
Test MCP tools directly with the inspector:
What's Next?¶
- API Reference — Complete MCP tool documentation
- FAQ — Common questions answered
- Troubleshooting — Fix common issues