# qdrant/mcp-server-qdrant architecture

> Architecture diagram of the GitHub repository qdrant/mcp-server-qdrant, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/qdrant/mcp-server-qdrant
- Repository: https://github.com/qdrant/mcp-server-qdrant

## Overview

mcp-server-qdrant exposes Qdrant-backed semantic memory through MCP. An MCP client invokes the registered find or store tool; the server applies configured collection and filter behavior, the connector embeds text and queries or writes Qdrant, and find returns formatted entries. Settings configure the connector and embedding provider. The graph reflects the excerpts and README; unsampled integrations are not expanded beyond documented capabilities.

Main entry points: [`src/mcp_server_qdrant/mcp_server.py`](https://github.com/qdrant/mcp-server-qdrant/blob/master/src/mcp_server_qdrant/mcp_server.py) (MCP server), [`src/mcp_server_qdrant/server.py`](https://github.com/qdrant/mcp-server-qdrant/blob/master/src/mcp_server_qdrant/server.py) (Server setup), [`src/mcp_server_qdrant/qdrant.py`](https://github.com/qdrant/mcp-server-qdrant/blob/master/src/mcp_server_qdrant/qdrant.py) (Qdrant connector), [`src/mcp_server_qdrant/common/wrap_filters.py`](https://github.com/qdrant/mcp-server-qdrant/blob/master/src/mcp_server_qdrant/common/wrap_filters.py) (Filter tool arguments)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Server runtime"]
  node_main["CLI entry point<br/>[main.py]"]
  node_server["Server setup<br/>[server.py]"]
  node_settings["Runtime settings<br/>[settings.py]"]
end

subgraph group_tools["MCP tools"]
  node_mcp["MCP server<br/>[mcp_server.py]"]
  node_tools_api["Find and store tools<br/>[mcp_server.py]"]
  node_partial["Tool parameter binding<br/>[func_tools.py]"]
end

subgraph group_filters["Filtering"]
  node_filter_wrap["Filter tool arguments<br/>[wrap_filters.py]"]
  node_filter_build["Filter construction<br/>[filters.py]"]
end

subgraph group_storage["Embedding and storage"]
  node_connector["Qdrant connector<br/>[qdrant.py]"]
  node_provider_factory["Provider factory<br/>[factory.py]"]
  node_provider_base["Embedding interface<br/>[base.py]"]
  node_fastembed["FastEmbed provider<br/>[fastembed.py]"]
end

node_client(("MCP client"))
node_qdrant[("Qdrant database")]

node_client -->|"invokes tools"| node_mcp
node_main -->|"loads server"| node_server
node_server -->|"constructs"| node_mcp
node_server -->|"loads settings"| node_settings
node_mcp -->|"registers tools"| node_tools_api
node_tools_api -->|"stores and searches"| node_connector
node_mcp -->|"creates provider"| node_provider_factory
node_mcp -->|"builds indexes"| node_filter_build
node_mcp -->|"wraps find tool"| node_filter_wrap
node_mcp -->|"binds defaults"| node_partial
node_filter_wrap -->|"builds query filter"| node_filter_build
node_provider_factory -->|"creates provider"| node_fastembed
node_fastembed -->|"implements"| node_provider_base
node_connector -->|"embeds text"| node_provider_base
node_connector -->|"reads and writes"| node_qdrant

click node_main "https://github.com/qdrant/mcp-server-qdrant/blob/master/src/mcp_server_qdrant/main.py"
click node_server "https://github.com/qdrant/mcp-server-qdrant/blob/master/src/mcp_server_qdrant/server.py"
click node_settings "https://github.com/qdrant/mcp-server-qdrant/blob/master/src/mcp_server_qdrant/settings.py"
click node_mcp "https://github.com/qdrant/mcp-server-qdrant/blob/master/src/mcp_server_qdrant/mcp_server.py"
click node_tools_api "https://github.com/qdrant/mcp-server-qdrant/blob/master/src/mcp_server_qdrant/mcp_server.py"
click node_partial "https://github.com/qdrant/mcp-server-qdrant/blob/master/src/mcp_server_qdrant/common/func_tools.py"
click node_filter_wrap "https://github.com/qdrant/mcp-server-qdrant/blob/master/src/mcp_server_qdrant/common/wrap_filters.py"
click node_filter_build "https://github.com/qdrant/mcp-server-qdrant/blob/master/src/mcp_server_qdrant/common/filters.py"
click node_connector "https://github.com/qdrant/mcp-server-qdrant/blob/master/src/mcp_server_qdrant/qdrant.py"
click node_provider_factory "https://github.com/qdrant/mcp-server-qdrant/blob/master/src/mcp_server_qdrant/embeddings/factory.py"
click node_provider_base "https://github.com/qdrant/mcp-server-qdrant/blob/master/src/mcp_server_qdrant/embeddings/base.py"
click node_fastembed "https://github.com/qdrant/mcp-server-qdrant/blob/master/src/mcp_server_qdrant/embeddings/fastembed.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_main,node_server,node_settings,node_client toneBlue
class node_mcp,node_tools_api,node_partial,node_qdrant toneAmber
class node_filter_wrap,node_filter_build toneMint
class node_connector,node_provider_factory,node_provider_base,node_fastembed toneRose
```

## Components

### Server runtime

- [CLI entry point](https://github.com/qdrant/mcp-server-qdrant/blob/master/src/mcp_server_qdrant/main.py): `src/mcp_server_qdrant/main.py`
- [Server setup](https://github.com/qdrant/mcp-server-qdrant/blob/master/src/mcp_server_qdrant/server.py): `src/mcp_server_qdrant/server.py`
- [Runtime settings](https://github.com/qdrant/mcp-server-qdrant/blob/master/src/mcp_server_qdrant/settings.py): `src/mcp_server_qdrant/settings.py`

### MCP tools

- [MCP server](https://github.com/qdrant/mcp-server-qdrant/blob/master/src/mcp_server_qdrant/mcp_server.py): `src/mcp_server_qdrant/mcp_server.py`
- [Find and store tools](https://github.com/qdrant/mcp-server-qdrant/blob/master/src/mcp_server_qdrant/mcp_server.py): `src/mcp_server_qdrant/mcp_server.py`
- [Tool parameter binding](https://github.com/qdrant/mcp-server-qdrant/blob/master/src/mcp_server_qdrant/common/func_tools.py): `src/mcp_server_qdrant/common/func_tools.py`

### Filtering

- [Filter tool arguments](https://github.com/qdrant/mcp-server-qdrant/blob/master/src/mcp_server_qdrant/common/wrap_filters.py): `src/mcp_server_qdrant/common/wrap_filters.py`
- [Filter construction](https://github.com/qdrant/mcp-server-qdrant/blob/master/src/mcp_server_qdrant/common/filters.py): `src/mcp_server_qdrant/common/filters.py`

### Embedding and storage

- [Qdrant connector](https://github.com/qdrant/mcp-server-qdrant/blob/master/src/mcp_server_qdrant/qdrant.py): `src/mcp_server_qdrant/qdrant.py`
- [Provider factory](https://github.com/qdrant/mcp-server-qdrant/blob/master/src/mcp_server_qdrant/embeddings/factory.py): `src/mcp_server_qdrant/embeddings/factory.py`
- [Embedding interface](https://github.com/qdrant/mcp-server-qdrant/blob/master/src/mcp_server_qdrant/embeddings/base.py): `src/mcp_server_qdrant/embeddings/base.py`
- [FastEmbed provider](https://github.com/qdrant/mcp-server-qdrant/blob/master/src/mcp_server_qdrant/embeddings/fastembed.py): `src/mcp_server_qdrant/embeddings/fastembed.py`

### Other components

- **MCP client**
- **Qdrant database**

## Connections

- MCP client → MCP server: invokes tools (evidence: `README.md`)
- CLI entry point → Server setup: loads server (evidence: `src/mcp_server_qdrant/main.py`)
- Server setup → MCP server: constructs (evidence: `src/mcp_server_qdrant/server.py`)
- Server setup → Runtime settings: loads settings (evidence: `src/mcp_server_qdrant/server.py`)
- MCP server → Find and store tools: registers tools (evidence: `src/mcp_server_qdrant/mcp_server.py`)
- Find and store tools → Qdrant connector: stores and searches (evidence: `src/mcp_server_qdrant/mcp_server.py`)
- MCP server → Provider factory: creates provider (evidence: `src/mcp_server_qdrant/mcp_server.py`)
- MCP server → Filter construction: builds indexes (evidence: `src/mcp_server_qdrant/mcp_server.py`)
- MCP server → Filter tool arguments: wraps find tool (evidence: `src/mcp_server_qdrant/mcp_server.py`)
- MCP server → Tool parameter binding: binds defaults (evidence: `src/mcp_server_qdrant/mcp_server.py`)
- Filter tool arguments → Filter construction: builds query filter (evidence: `src/mcp_server_qdrant/common/wrap_filters.py`)
- Provider factory → FastEmbed provider: creates provider (evidence: `src/mcp_server_qdrant/embeddings/factory.py`)
- FastEmbed provider → Embedding interface: implements (evidence: `src/mcp_server_qdrant/embeddings/fastembed.py`)
- Qdrant connector → Embedding interface: embeds text (evidence: `src/mcp_server_qdrant/qdrant.py`)
- Qdrant connector → Qdrant database: reads and writes (evidence: `src/mcp_server_qdrant/qdrant.py`)
