Skip to main content

A Python MCP server for Qdrant memory storage and semantic search, compatible with Cursor-like MCP clients.

Project description

better-qdrant-mcp

A MCP server implemented with fastmcp, OpenAI embeddings, and qdrant-client. It provides three tools equivalent to the Node.js version:

  • memory-store
  • memory-search
  • memory-debug

Requirements

  • Python 3.12+
  • Qdrant reachable via HTTP

Install deps (using uv or pip)

# using uv (recommended)
uv sync
# or with pip
pip install -e .

Environment variables

  • QDRANT_URL (default: http://localhost:6333)
  • QDRANT_API_KEY (optional)
  • COLLECTION_NAME (optional default collection)
  • OPENAPI_API_KEY or OPENAI_API_KEY (required)
  • OPENAI_BASE_URL (optional)
  • OPENAI_EMBEDDING_MODEL (default: text-embedding-3-small)

Run (stdio)

uvx better-qdrant-mcp

You can still run it via Python directly if you prefer:

python -m better_qdrant_mcp

Configure in MCP clients as a stdio server. Example (cursor-like):

{
  "mcpServers": {
    "qdrant-mcp-python": {
      "type": "stdio",
      "command": "uvx",
      "args": ["better-qdrant-mcp"],
      "env": {
        "QDRANT_URL": "http://localhost:6333",
        "COLLECTION_NAME": "long_term_memory"
      }
    }
  }
}

Tools

  • memory-store(information, metadata?: dict, collection_name?: str) -> str
  • memory-search(query, limit?: int=5, collection_name?: str) -> str
  • memory-debug(collection_name?: str) -> str

memory-search uses hybrid search in Qdrant (dense + sparse). If the collection is configured with named vectors dense and sparse, queries are ranked by fusing dense OpenAI embeddings and sparse BM25 scores; otherwise it falls back to dense-only search.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

better_qdrant_mcp-0.2.1.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

better_qdrant_mcp-0.2.1-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file better_qdrant_mcp-0.2.1.tar.gz.

File metadata

  • Download URL: better_qdrant_mcp-0.2.1.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.6

File hashes

Hashes for better_qdrant_mcp-0.2.1.tar.gz
Algorithm Hash digest
SHA256 1168abbec110a01686373579484c3ba63fbb89fc42d54d3020983b86ade269c1
MD5 6c9cbac5d193ca1bd7d0fb648f532db0
BLAKE2b-256 64d4794bc4aea9b0787eeca9a8376b4740dfa1dfdd8d5fea07dcf384a9748e39

See more details on using hashes here.

File details

Details for the file better_qdrant_mcp-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for better_qdrant_mcp-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c0eebd0b5ff5972471e79d9e3c50837c17bd853eb1814556577c5e90f893859a
MD5 c1b7c73def92d4aa7ded9f53415da08e
BLAKE2b-256 3f8edab9ab8d956c77328767179a233f0ae2aa906fdd517dc5f0c3a26ef453b1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page