Skip to main content

QDrant Loader MCP Server

PyPI Python License: Apache 2.0

A Model Context Protocol (MCP) server that brings advanced RAG search to AI development tools. Part of the QDrant Loader monorepo ecosystem.

🎯 What It Does

  • Provides intelligent search through semantic, hierarchy-aware, and attachment-focused tools
  • Integrates seamlessly with Cursor, Windsurf, Claude Desktop, and other MCP-compatible tools
  • Understands context including document hierarchies, file relationships, and metadata
  • Streams responses for fast, real-time search results
  • Preserves relationships between documents, attachments, and parent content

🔌 Supported AI Tools

Tool Status Integration Features
Cursor ✅ Full Support Context-aware code assistance, documentation lookup, intelligent suggestions
Windsurf ✅ Compatible MCP protocol integration, semantic search capabilities
Claude Desktop ✅ Compatible Direct MCP integration, conversational search interface
Other MCP Tools ✅ Compatible Any tool supporting MCP 2024-11-05 specification

For per-tool JSON configuration, see MCP setup and integration.

🔍 Search Tools

Core search tools

Tool Purpose Best for
search General semantic search across all content Finding relevant information by meaning, not just keywords
hierarchy_search Confluence-aware search with parent/child page relationships Navigating complex documentation structures and finding related pages
attachment_search File-focused search with parent document context Locating files, templates, specifications, and supporting materials

Search Intelligence Features

  • Hierarchy Understanding: Recognizes parent/child page relationships in Confluence
  • Attachment Awareness: Connects files to their parent documents and context
  • Metadata Enrichment: Includes authors, dates, file sizes, and source information
  • Visual Indicators: Rich formatting with icons and context clues
  • Relationship Mapping: Shows connections between related content

Additional MCP Tools

Beyond the three core search tools, the server also provides cross-document and expansion tools:

analyze_relationships, find_similar_documents, detect_document_conflicts, find_complementary_content, cluster_documents, expand_document, expand_cluster, expand_chunk_context

For full parameter references and usage examples, see MCP search capabilities.

📦 Installation

pip install qdrant-loader-mcp-server

For the full ingestion + MCP pipeline:

pip install qdrant-loader qdrant-loader-mcp-server

🚀 Quick Start

1. Set environment variables

export QDRANT_URL="http://localhost:6333"
export QDRANT_API_KEY="your_api_key"        # Required for QDrant Cloud
export LLM_API_KEY="your_openai_key"

# Optional configuration
export QDRANT_COLLECTION_NAME="documents"  # Default collection name
export MCP_LOG_LEVEL="INFO"                # Logging level
export MCP_LOG_FILE="/path/to/mcp.log"     # Log file path
export MCP_DISABLE_CONSOLE_LOGGING="true"  # Recommended for Cursor

2. Start the server

mcp-qdrant-loader

# With debug logging
mcp-qdrant-loader --log-level DEBUG

# Help
mcp-qdrant-loader --help

3. Test the connection

# Test with a simple search
echo '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search","arguments":{"query":"test","limit":1}}}' | mcp-qdrant-loader

🔧 Configuration

Environment variables

Variable Description Default Required
QDRANT_URL QDrant instance URL http://localhost:6333 Yes
QDRANT_API_KEY QDrant API key None Cloud only
QDRANT_COLLECTION_NAME Collection name documents No
LLM_API_KEY LLM API key for embeddings None Yes
MCP_LOG_LEVEL Logging level INFO No
MCP_LOG_FILE Log file path None No
MCP_DISABLE_CONSOLE_LOGGING Disable console output false Yes for Cursor
SEARCH_MAX_CONCURRENT Max concurrent Qdrant queries per worker 4 No

For Cursor: Always set MCP_DISABLE_CONSOLE_LOGGING=true to prevent JSON-RPC interference. Use MCP_LOG_FILE to capture logs instead.

HTTP transport and workers

For production deployments with multiple worker processes:

# Start with HTTP transport (single worker, good for local development)
mcp-qdrant-loader --transport http --port 8080

# Start with multiple workers for production
mcp-qdrant-loader --transport http --port 8080 --workers 4

Each worker is a separate OS process with its own event loop, Qdrant connection pool, and search engine. This eliminates GIL contention for CPU-bound work (SpaCy, BM25, reranking).

Tuning Concurrency

SEARCH_MAX_CONCURRENT limits the number of simultaneous Qdrant queries per worker. With multiple workers, the total concurrent load on Qdrant is workers × SEARCH_MAX_CONCURRENT.

Workers SEARCH_MAX_CONCURRENT Max concurrent Qdrant queries
1 4 (default) 4
4 4 (default) 16
4 2 8

If you see 408 Request Timeout from Qdrant, lower SEARCH_MAX_CONCURRENT to match your Qdrant instance's capacity:

export SEARCH_MAX_CONCURRENT=2
mcp-qdrant-loader --transport http --workers 4

🎯 Usage Examples

Ask your AI assistant in natural language:

  • "Find documentation about authentication in our API"
  • "Show me examples of error handling patterns in our codebase"
  • "What are the deployment requirements for this service?"
  • "Find all PDF attachments related to database schema"
  • "Show me the hierarchy of pages under the Architecture section"

Advanced Search Queries

Semantic Search

Find information about rate limiting implementation

Hierarchy Search

Show me all child pages under the API Documentation section

Attachment Search

Find all Excel files uploaded by john.doe in the last month

🏗️ Architecture

MCP Protocol Implementation

  • Full MCP 2024-11-05 compliance with proper JSON-RPC communication
  • Tool registration for search, hierarchy_search, and attachment_search
  • Streaming responses for large result sets
  • Error handling with proper MCP error codes
  • Resource management for efficient memory usage

Search Engine Components

  • Embedding Service — Generates query embeddings using the configured LLM provider
  • Vector Search — Performs semantic similarity search in QDrant
  • Metadata Processor — Enriches results with hierarchy and attachment information
  • Result Formatter — Creates rich, contextual response formatting
  • Caching Layer — Optimizes performance for repeated queries

Data Flow

AI Tool → MCP Server → QDrant Search → Result Processing → Formatted Response
    ↓         ↓            ↓              ↓                ↓
Cursor    JSON-RPC    Vector Query   Metadata         Rich Context
Windsurf  Protocol    Embedding      Enrichment       Visual Indicators
Claude    Tool Call   Similarity     Hierarchy        Relationship Info
Other     Streaming   Ranking        Attachments      Source Attribution

For system-level architecture, see Architecture guide.

📚 Documentation

🆘 Support

🤝 Contributing

See CONTRIBUTING - Contribution guidelines, development standards, and pull request process.

📄 License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.


Ready to get started? Check out our Quick Start Guide or browse the complete documentation.

Metadata

Release files for qdrant-loader-mcp-server 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qdrant-loader-mcp-server 1.0.4
File Size Uploaded
qdrant_loader_mcp_server-1.0.4.tar.gz 233.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for qdrant-loader-mcp-server 1.0.4
File Interpreter ABI Platform
qdrant_loader_mcp_server-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 531.7 kB

Release files / qdrant_loader_mcp_server-1.0.4.tar.gz

Download URL qdrant_loader_mcp_server-1.0.4.tar.gz
Size 233.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2249be69ddedd64d0ddb0363483030b6b6a6dfc3377382768b4332ad4ada1498
BLAKE2b-256 checksum
How to use checksums
d8442c3c8ec9c79e2b6f93ec951224861b2328473b8c77ad98ee407b0f6da130
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 21, 2026.

Transparency log

Release files / qdrant_loader_mcp_server-1.0.4-py3-none-any.whl

Download URL qdrant_loader_mcp_server-1.0.4-py3-none-any.whl
Size 297.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d18928fe831347f25f271754fc04ea9b2a30d41be351196a51badf5a656e4bcc
BLAKE2b-256 checksum
How to use checksums
7afb0da4703b1ae61f59439337b571321233fe16edb92ae61c9af9857a77d276
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 21, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.9.0

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.6

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.14

2 release files

0.4.13

2 release files

0.4.12

2 release files

0.4.11

2 release files

0.4.10

2 release files

0.4.9

2 release files

0.4.8

2 release files

0.4.7

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.1

2 release files

0.3.2

2 release files

0.3.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page