Qdrant MCP
A Model Context Protocol (MCP) server that exposes the full Qdrant
vector database API as tools β collection management, advanced hybrid search, payload and
vector editing, snapshots, and server observability. Not just store/find.
Table of Contents
- Overview
- Key Features
- Requirements
- Installation
- Quick Start
- Connecting to Claude
- Configuration Reference
- Available Tools
- Read-Only Mode
- Architecture
- Security
- Development
- Versioning & Changelog
- License
Overview
Qdrant MCP is a thin MCP server that wraps the Qdrant API
one-to-one: it registers a tool per Qdrant operation, validates the input with Pydantic, calls
the official qdrant-client SDK, and returns the result. It never generates embeddings, never
parses documents, and never decides how to chunk text β it is not a RAG system, on purpose.
Whatever an LLM client wants to store or query, it brings its own vectors.
That focus is also what sets it apart from the official Qdrant MCP
server, which exposes exactly two tools
(store/find) and does embed documents for you. This server covers the rest of Qdrant's
surface β everything under collections, points, search, payload, indexing, snapshots, and
observability β so an LLM client can manage a Qdrant deployment end to end, not just push and
pull memories through a narrow interface.
See ROADMAP.md for the full phase-by-phase design history, including every finding that shaped a decision (in Spanish).
Key Features
- Full collection & point lifecycle β create/update/delete collections, CRUD on points, scrolling, counting.
- Every Qdrant search mode β plain vector search over dense, sparse and multivectors,
hybrid search (RRF β optionally weighted β and DBSF fusion), nested multi-stage prefetch
(fuse dense+sparse, then rerank with a multivector), MMR diversity, custom score formulas
(payload boosts, recency and geo decay), ordering by a payload field, random sampling,
grouped queries, recommend, discover, and pairwise distance matrices. Search accuracy knobs
(
search_params,score_threshold, paging, timeouts) are accepted by every search tool. - Payload & vector editing β set/overwrite/delete/clear payload, payload indexes, facet counting, named (dense/sparse) vector management, ordered batch operations.
- Snapshots β per-collection and full-storage backup/restore.
- Aliases, reindexing & introspection β switch the collection a name points to without downtime, copy points between collections server-side (vectors never pass through the model), check shard layout and whether the optimizer has finished indexing, and profile the payload keys a collection actually has before writing a filter.
- Observability β telemetry, Prometheus metrics endpoint, resource quotas, self-diagnosed issues.
- Opt-in tool surface β tools are grouped into toolsets you enable explicitly, so a client isn't handed 60+ overlapping tools by default.
- Read-only guard β one flag removes every mutating tool from the registry entirely.
- Easy on the model's context β the schemas the server advertises are compact (Qdrant's
verbose
Filterand configuration models are summarized, validation unchanged), so the default toolset costs ~44 KB of schema instead of ~150 KB, and a per-call result cap (QDRANT_MCP_MAX_LIMIT) stops one mistakenlimitfrom flooding the conversation. - Resilient by default β every Qdrant call goes through retry-with-backoff and returns Qdrant's own error message on failure, never a generic exception.
Requirements
- Python 3.12+
- Qdrant server v1.19.0 or newer. Two tools
(
qdrant_collection_vector_create/qdrant_collection_vector_delete) depend on an endpoint that returns404on older Qdrant servers (verified against v1.13.6 and v1.15.1) β everything else works on older versions, but v1.19.0+ is the only version this project tests against.
Installation
PyPI
# Run without installing (recommended for Claude Desktop/Code configs)
uvx mcp-qdrant
# Or install into your environment
pip install mcp-qdrant
Docker
docker run --rm -p 8000:8000 \
-e QDRANT_URL=http://host.docker.internal:6333 \
-e QDRANT_MCP_TRANSPORT=streamable-http \
-e QDRANT_MCP_HTTP_HOST=0.0.0.0 \
-e QDRANT_MCP_SHARED_SECRET=<a long random secret> \
ghcr.io/avaazquezz/qdrant-mcp:latest
The image only makes sense with streamable-http β stdio needs a client to own the process's
stdin/stdout directly, which a detached container can't provide. The server binds
127.0.0.1 by default, so QDRANT_MCP_HTTP_HOST=0.0.0.0 is required for the port to be
reachable from outside the container. Images are published on every tagged release as
{version}, {major}.{minor}, and latest.
Claude Desktop bundle (.mcpb)
Download mcp-qdrant.mcpb from the latest release
and double-click it. Claude Desktop installs the server via uv (resolving dependencies on your
machine, no Python installation required) and prompts for Qdrant URL, API key, local path,
toolsets, and read-only mode through its own settings form β no JSON to edit.
Quick Start
Point the server at a local Qdrant instance over stdio and confirm it's reachable:
QDRANT_URL=http://localhost:6333 mcp-qdrant
Once connected from an MCP client, a typical first exchange looks like:
qdrant_health_checkβ confirms the configured Qdrant instance is reachable before doing anything else.qdrant_collection_createβ{"collection_name": "docs", "vector_size": 4, "distance": "Cosine"}.qdrant_points_upsertβ{"collection_name": "docs", "points": [{"id": 1, "vector": [0.1, 0.2, 0.3, 0.4], "payload": {"title": "hello"}}]}.qdrant_queryβ{"collection_name": "docs", "query_vector": [0.1, 0.2, 0.3, 0.4], "limit": 5}.
The full parameter shape of every tool is described in its own MCP schema β an LLM client reads
those directly via tools/list; the table in Available Tools below is a
human-readable summary of the same data.
Connecting to Claude
Claude Desktop / Claude Code (local, stdio)
claude_desktop_config.json (Claude Desktop) or .mcp.json (Claude Code):
{
"mcpServers": {
"qdrant": {
"command": "uvx",
"args": ["mcp-qdrant"],
"env": {
"QDRANT_URL": "http://localhost:6333",
"QDRANT_MCP_TOOLSETS": "core,search"
}
}
}
}
Or use the .mcpb bundle described in Installation β same
result, no JSON to edit.
Remote (streamable-http)
For a server reachable over the network (e.g. added as a custom connector in Claude.ai) with a
single, fixed backing Qdrant. QDRANT_MCP_SHARED_SECRET is required in this mode β the
server refuses to start as streamable-http without one, to avoid serving an unauthenticated
endpoint over the network (verified hands-on: an open streamable-http server is trivially
usable by anyone with the URL).
QDRANT_URL=http://localhost:6333 \
QDRANT_MCP_TRANSPORT=streamable-http \
QDRANT_MCP_HTTP_HOST=0.0.0.0 \
QDRANT_MCP_SHARED_SECRET=<a long random secret> \
mcp-qdrant
In Claude.ai (Customize β Connectors β Add custom connector, verified hands-on against a
real account): enter the server's HTTPS URL, then on the detected authentication screen choose
"None" and add a Request header β Authorization β Bearer <the same secret>.
(Authorization is used here because it's one of the two header names Claude.ai's
custom-connector UI accepts without requiring Anthropic's manual approval of a custom name.)
Configuration Reference
All configuration is via environment variables, read once at startup β a misconfiguration fails immediately instead of surfacing later as a confusing tool error.
ΒΉ QDRANT_URL and QDRANT_LOCAL_PATH are mutually exclusive; if neither is set, the client
falls back to the qdrant-client SDK's own default of localhost:6333.
Available Tools
Tools are grouped into toolsets, enabled via QDRANT_MCP_TOOLSETS (comma-separated). Only
core is enabled by default β the rest are explicit opt-ins, so a client isn't handed every
tool at once:
coreβ collection and point CRUD, plusqdrant_queryand theqdrant_health_checksmoke test. Enough for a fully working MCP on its own.searchβ everything beyond plain vector search: batched/grouped queries, recommend, discover, and pairwise distance matrices.payloadβ payload editing and indexing, named-vector management, ordered batch point operations.snapshotsβ collection and full-storage backup/restore.observabilityβ telemetry, metrics, quotas, and self-diagnosed issues.adminβ collection aliases, per-collection shard layout and optimizer progress, and two composite operations that keep the data on the server: copying points between collections (the missing half of a zero-downtime reindex) and profiling the payload keys a collection really has. Everything here works on a single node; distributed-cluster administration (shard keys, resharding) is out of scope β see ROADMAP.md, Fase 5 and Fase 12.
The table below is generated directly from the live tool registry β run
uv run python scripts/gen_tools_doc.py after adding or changing a tool to keep it in sync
(CI fails the build if it drifts).
Read-Only Mode
Setting QDRANT_MCP_READ_ONLY=1 removes every tool whose destructiveHint isn't explicitly
false (i.e. anything that isn't readOnlyHint=true) from the registry itself β a client
calling tools/list never sees them, rather than seeing them and having calls rejected. This is
the mechanism to hand an LLM client safe, read-only access to a Qdrant deployment: point it at
your database, set the flag, and there is no code path left for it to write anything.
Architecture
- Single shared client. One
AsyncQdrantClientis built once at startup and closed over by every tool. - One registration choke point. Every tool module calls into a single
ToolRegistry, which is where the toolset filter and the read-only guard are both enforced β a tool can't bypass either by registering itself differently. - Resilience. Every Qdrant call is wrapped with
tenacity-based retry and backoff (theqdrant-clientSDK itself only exposes a timeout, not retries), and translated into an MCPToolErrorcarrying Qdrant's own error message instead of a generic failure β so "collection not found" reads as exactly that. stdio-safe logging. All logging goes tostderr, configured before the MCP server object is even constructed β writing tostdoutunder thestdiotransport would corrupt the JSON-RPC message framing.
Security
- Mandatory authentication for
streamable-http. The server refuses to start withoutQDRANT_MCP_SHARED_SECRETβ verified hands-on that an unauthenticated instance is trivially usable by anyone with the URL. - Input validation everywhere. Every tool's input is a Pydantic model β malformed input is rejected with a structured error before it reaches the Qdrant SDK.
- Read-only guard.
QDRANT_MCP_READ_ONLYremoves every mutating tool from the registry β see Read-Only Mode.
Development
git clone https://github.com/avaazquezz/Qdrant-MCP.git
cd Qdrant-MCP
uv sync --dev
uv run pre-commit install
uv run ruff check . # lint
uv run ruff format --check . # formatting
uv run mypy . # type checking (strict)
uv run pytest # unit tests
uv run pytest -m integration # integration tests β needs a running Qdrant (CI runs one as a Docker service)
If you add or change a tool, regenerate the table in Available Tools rather than hand-editing it:
uv run python scripts/gen_tools_doc.py # regenerate
uv run python scripts/gen_tools_doc.py --check # verify, no changes (what CI runs)
Versioning & Changelog
This project follows Semantic Versioning. See CHANGELOG.md for release notes and ROADMAP.md for the phased design history behind each version.