Logo vun Qdrant MCP Hybrid

Qdrant MCP Hybrid

Communautéit
marlian

Local-first TypeScript MCP server for Qdrant with client isolation, LM Studio integration, and scalable document workflows.

Editeurmarlian
Repositoryclaude-qdrant-mcp
SproochJavaScript
Forks
5
Stären
13
Disponibel Tools
0
Transporttypstdio
Kategorien
LizenzMIT
Linken
  • Tools mat KI-Workflows verbannen

    Qdrant MCP Hybrid stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 0 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    13 Stären an 5 Forks aus dem verlinkte Repository.

License: MIT TypeScript Qdrant Local-First LM Studio smithery badge

🚀 Qdrant MCP Hybrid - Ultimate RAG System

The most advanced TypeScript MCP server for Qdrant with multi-client isolation, LM Studio integration, and enterprise-grade document processing

🌟 What is This?

This is the ultimate evolution of RAG (Retrieval-Augmented Generation) systems, combining the best practices from:

  • lance-mcp architecture & document processing
  • sqlite-vss-mcp performance optimizations & concurrency
  • delorenj/mcp-qdrant-memory TypeScript foundation & MCP integration

Result: A production-ready, multi-tenant RAG system with client isolation, advanced seeding, and LM Studio integration.

⚡ Key Features

🏢 Multi-Client Architecture

  • Complete isolation between clients - perfect for agencies, consultants, or organizations managing multiple projects
  • Separate collections for each client: {client}_catalog + {client}_chunks
  • Privacy-first design for sensitive documents

🧠 LM Studio Integration

  • BGE-M3 embeddings (1024 dimensions) for semantic search
  • Qwen3-8B summaries for document overviews
  • Zero cloud dependency - everything runs locally for maximum privacy

🚀 Advanced Document Processing

  • SHA256 deduplication - never process the same document twice (90%+ time savings on updates)
  • Multi-format support - PDF, Markdown, TXT, DOCX
  • Incremental updates - only process changed files
  • Batch processing - efficient API usage with p-limit concurrency control

🔍 Enterprise Search

  • Semantic catalog search - find documents by meaning, not just keywords
  • Granular chunk search - search within specific documents
  • Cross-client search - find information across all clients
  • Rich metadata - source tracking, chunk indexing, similarity scores

🚀 Quick Install via NPM

Global Installation (Recommended)

bash
# Install globally for easy project setup
npm install -g claude-qdrant-mcp

# Create new project
mkdir my-rag-project
cd my-rag-project
qdrant-setup

# Or use the interactive setup
npm run setup

Local Project Installation

bash
# Install in existing project
npm install claude-qdrant-mcp

# Run interactive setup
npx qdrant-setup

What the Auto-Setup Does

✅ Dependency Check - Verifies Node.js, Qdrant, and LM Studio
✅ Environment Config - Interactive .env file creation
✅ Claude Desktop Integration - Automatic MCP server configuration
✅ Sample Documents - Creates test files for immediate use
✅ Connection Testing - Validates all services are working

One-Command Install & Test

bash
# Complete setup and test in one go
npm install -g claude-qdrant-mcp && \
mkdir my-rag && cd my-rag && \
qdrant-setup && \
npm run test-connection

Available Commands

After installation, you have access to:

bash
# Interactive setup wizard
qdrant-setup

# Test all connections
npm run test-connection

# Seed documents
npm run seed -- --client work --filesdir ./documents

# Start MCP server
npm start

# Development mode
npm run watch

� Table of Contents

🛠️ Manual Installation & Setup

Prerequisites

  • Node.js 18+
  • LM Studio running locally with BGE-M3 + Qwen3 models
  • Qdrant server (local Docker or Qdrant Cloud)

Quick Start

bash
# Clone the repository
git clone https://github.com/marlian/claude-qdrant-mcp.git
cd claude-qdrant-mcp

# Install dependencies
npm install

# Setup environment
cp .env.example .env
# Edit .env with your configuration

# Build the project
npm run build

# Test with help
npm run seed -- --help

Environment Configuration

Create a .env file with your settings:

bash
# Qdrant Configuration
QDRANT_URL=http://localhost:6333
QDRANT_API_KEY=your-api-key-if-using-cloud

# LM Studio Configuration  
LM_STUDIO_URL=http://127.0.0.1:1235
EMBEDDING_MODEL=text-embedding-finetuned-bge-m3
EMBEDDING_DIM=1024
LLM_MODEL=qwen/qwen3-8b

# Multi-Client Setup (customize with your client names)
CLIENT_COLLECTIONS=client_a,client_b,personal,work,research

# Performance Tuning
CONCURRENCY=5
BATCH_SIZE=10
CHUNK_SIZE=500
CHUNK_OVERLAP=10
DEBUG=false

🚀 LM Studio Setup

Required Models

  1. BGE-M3 Embedding Model

    • Download from LM Studio model library
    • Model name: text-embedding-finetuned-bge-m3
    • Purpose: Generate 1024-dim embeddings for semantic search
  2. Qwen3-8B Chat Model

    • Download from LM Studio model library
    • Model name: qwen/qwen3-8b
    • Purpose: Generate document summaries

LM Studio Configuration

  1. Start LM Studio
  2. Load both models
  3. Start the server (default port 1235)
  4. Verify connection: curl http://127.0.0.1:1235/v1/models

📊 Usage Examples

Document Seeding

bash
# Seed documents for specific client
npm run seed -- --client work --filesdir /path/to/work/documents

# Force overwrite existing data (full reprocessing)
npm run seed -- --client personal --filesdir /path/to/personal/docs --overwrite

# Validate documents without seeding  
npm run seed -- --client research --filesdir /path/to/research/docs --validate-only

# Debug mode for troubleshooting
npm run seed -- --client client_a --filesdir /path/to/docs --debug

MCP Server Usage

bash
# Run the MCP server
npm start

# Or in development mode with watch
npm run watch

Claude Desktop Integration

Add to your claude_desktop_config.json:

json
{
  "mcpServers": {
    "qdrant-rag": {
      "command": "node",
      "args": ["/absolute/path/to/claude-qdrant-mcp/dist/index.js"],
      "env": {
        "QDRANT_URL": "http://localhost:6333",
        "QDRANT_API_KEY": "your-api-key-if-needed",
        "CLIENT_COLLECTIONS": "work,personal,research"
      }
    }
  }
}

🔧 Available MCP Tools

collection_info

Get status of all collections and clients.

typescript
// No parameters needed
collection_info()
// Returns: Collection stats, client list, system status

catalog_search

Search document summaries for a specific client.

typescript
{
  "query": "quarterly business strategy",
  "client": "work", 
  "limit": 10
}

chunks_search

Search document chunks with optional source filtering.

typescript
{
  "query": "machine learning implementation",
  "client": "research",
  "source": "/path/to/specific/document.md",  // optional
  "limit": 5
}

all_chunks_search

Search across all clients and collections.

typescript
{
  "query": "project management best practices",
  "limit": 20
}

🏗️ Architecture Deep Dive

Collection Structure

Qdrant Collections:
├── work_catalog           # Document summaries for work
├── work_chunks            # Document chunks for work  
├── personal_catalog       # Document summaries for personal
├── personal_chunks        # Document chunks for personal
├── research_catalog       # Document summaries for research
├── research_chunks        # Document chunks for research
└── ... (per client)

Data Flow Pipeline

Documents → Hash Check → Content Extract → LM Summary → 
Chunk Split → BGE-M3 Embed → Batch Process → Qdrant Store → MCP Search

Document Processing Pipeline

  1. Directory Scan - Find all supported documents (.pdf, .md, .txt, .docx)
  2. Hash Validation - SHA256 deduplication (skip unchanged files)
  3. Content Processing - Extract text using appropriate parsers
  4. Summary Generation - LM Studio Qwen3 creates document overviews
  5. Chunk Creation - Split documents with configurable overlap
  6. Batch Embedding - BGE-M3 vectorization in efficient batches
  7. Qdrant Storage - Dual collection storage (catalog + chunks)

🎯 Performance & Scalability

Optimizations Applied

  • Concurrency Control - p-limit prevents API overload
  • Batch Processing - Multiple embeddings per API call
  • Smart Caching - SHA256 prevents duplicate processing
  • Memory Efficient - Streaming document processing
  • Error Recovery - Graceful handling of failures

Performance Benchmarks

MetricPerformanceNotes
Documents/minute50-100Depends on document size and LM Studio performance
Memory usage100-500MBDuring processing, minimal at rest
Search latency<200msAverage semantic search response time
Concurrency5 parallelConfigurable based on system resources
Hash optimization90%+ savingsOn incremental updates

Scalability Features

  • Multi-client isolation - No data leakage between clients
  • Horizontal scaling - Add more Qdrant nodes as needed
  • Local-first - No external API dependencies or costs
  • Incremental processing - Only process changed documents

🔍 Troubleshooting

Common Issues

❌ "LM Studio connection failed"

bash
# Check LM Studio is running
curl http://127.0.0.1:1235/v1/models

# Verify models are loaded
# BGE-M3 for embeddings, Qwen3 for summaries

❌ "Qdrant connection failed"

bash
# Check Qdrant server (local)
curl http://localhost:6333/collections

# Check Qdrant Cloud with API key
curl -H "api-key: YOUR_KEY" https://your-cluster.qdrant.io/collections

❌ "No documents found"

bash
# Check file path exists and contains supported formats
ls -la /path/to/documents

# Verify supported file types (.pdf, .md, .txt, .docx)
find /path/to/documents -name "*.md" -o -name "*.pdf" -o -name "*.txt" -o -name "*.docx"

Debug Mode

Enable comprehensive logging:

bash
export DEBUG=true
npm run seed -- --client test --filesdir ./sample-docs --debug

🚀 Development

Project Structure

src/
├── config.ts          # Enhanced configuration system
├── types.ts           # RAG document types & interfaces  
├── index.ts           # MCP server & tool handlers
├── seed.ts            # Ultimate document processing engine
├── persistence/
│   └── qdrant.ts      # Multi-collection Qdrant client
└── validation.ts      # Input validation & safety

Building & Testing

bash
# Development build
npm run build

# Watch mode for development
npm run watch

# Test processing without modifying database
npm run seed -- --validate-only --client test --filesdir ./test-docs

Adding New Clients

  1. Update CLIENT_COLLECTIONS in .env
  2. Run seed command with new client name
  3. Collections are created automatically

📈 Migration from Other Systems

From lance-mcp

  • Collections replace single database files
  • Enhanced config replaces hardcoded settings
  • Multi-client replaces single-tenant approach
  • Cloud sync replaces local-only storage

From sqlite-vss-mcp

  • Qdrant replaces SQLite + VSS for better performance
  • TypeScript replaces Python implementation
  • MCP integration replaces custom API

From original mcp-qdrant-memory

  • RAG document model replaces knowledge graph entities
  • LM Studio replaces OpenAI for cost-free local processing
  • Multi-collection replaces single collection architecture

🔐 Privacy & Security

  • Local-first processing - Documents never leave your machine
  • Client isolation - Complete data separation between clients
  • No external APIs - LM Studio runs entirely offline
  • Hash-based deduplication - Secure content fingerprinting
  • Configurable storage - Use local Qdrant or secure cloud instances

🛣️ Roadmap

Planned Features

  • Web UI for collection management and search
  • Additional embedding models (support for other local models)
  • Advanced chunking strategies (semantic splitting)
  • Hybrid search (combine vector + keyword search)
  • Export/import collections for backup and sharing

Integration Possibilities

  • Obsidian plugin for direct vault integration
  • API server mode for external applications
  • Batch processing for large document sets
  • Real-time file watching for automatic updates

📚 Extended Documentation

Looking for deeper details, integrations or low-level references?
Check out the full documentation under /docs:

Key Resources

  • Setup guides for LM Studio, Qdrant, and Claude Desktop integration
  • Performance benchmarks and optimization tips
  • Troubleshooting guides for common issues
  • API reference for all MCP tools
  • Best practices for multi-client setups

🤝 Contributing

This project combines the best ideas from multiple RAG implementations. Contributions welcome for:

  • Performance optimizations
  • Additional document formats
  • Enhanced search capabilities
  • New embedding models support
  • UI/dashboard development
  • Documentation improvements

Development Setup

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes with tests
  4. Submit a pull request with detailed description

📄 License

MIT License - Use freely for personal and commercial projects.

🙏 Acknowledgments

Built upon the excellent work of:

  • lance-mcp - Document processing architecture inspiration
  • sqlite-vss-mcp - Performance optimization patterns
  • delorenj/mcp-qdrant-memory - TypeScript MCP foundation
  • Qdrant - Vector search engine
  • LM Studio - Local LLM hosting platform
  • BGE-M3 - Multilingual embedding model
  • Qwen3 - Document summarization model

📞 Support

For detailed API documentation, see MCP Tools Reference. For advanced setup, see Advanced Configuration.


🎯 The most advanced TypeScript RAG system with enterprise-grade features, multi-client isolation, and local-first privacy.

Installatioun

TypingMind
{
  "mcpServers": {
    "claude-qdrant-mcp": {
      "command": "qdrant-setup",
      "args": []
    }
  }
}

Qdrant MCP Hybrid MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal Qdrant MCP Hybrid verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

Qdrant MCP Hybrid als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu Qdrant MCP Hybrid an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "claude-qdrant-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "claude-qdrant-mcp"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu Qdrant MCP Hybrid. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu Qdrant MCP Hybrid.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat Qdrant MCP Hybrid?
Qdrant MCP Hybrid
Jo. Ech hunn et gelies.
Dat hunn ech mat Qdrant MCP Hybrid fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server Qdrant MCP Hybrid benotzt?

Qdrant MCP Hybrid ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech Qdrant MCP Hybrid MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir Qdrant MCP Hybrid mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat Qdrant MCP Hybrid MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann Qdrant MCP Hybrid verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech Qdrant MCP Hybrid MCP mat TypingMind?

Qdrant MCP Hybrid leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt Qdrant MCP Hybrid MCP an TypingMind zur Verfügung?

Qdrant MCP Hybrid stellt MCP-Funktiounen zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir Qdrant MCP Hybrid MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann Qdrant MCP Hybrid eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇