Better Qdrant MCP server

Connects AI systems to Qdrant vector database for semantic search capabilities through multiple embedding services, enabling efficient document management and similarity searches without leaving the conversation interface.
Back to servers
Setup instructions
Provider
wrediam
Release date
Mar 22, 2025
Language
TypeScript
Package
Stats
578 downloads

Better Qdrant MCP Server is a tool that provides enhanced functionality for interacting with Qdrant vector databases through the Model Context Protocol (MCP). It allows you to manage collections, add documents, and perform semantic searches with various embedding services.

Installation

You can install the server globally using npm:

npm install -g better-qdrant-mcp-server

Alternatively, use it directly with npx without installation:

npx better-qdrant-mcp-server

Configuration

The server is configured using environment variables, which can be set in a .env file in your project root:

# Qdrant Configuration
QDRANT_URL=http://localhost:6333
QDRANT_API_KEY=your_api_key_if_needed

# Embedding Service API Keys
OPENAI_API_KEY=your_openai_api_key
OPENROUTER_API_KEY=your_openrouter_api_key
OLLAMA_ENDPOINT=http://localhost:11434

Supported Embedding Services

  • OpenAI: Requires an API key
  • OpenRouter: Requires an API key
  • Ollama: Local embedding models (default endpoint: http://localhost:11434)
  • FastEmbed: Local embedding models

Usage with Claude

To use this MCP server with Claude, add it to your MCP settings configuration file:

{
  "mcpServers": {
    "better-qdrant": {
      "command": "npx",
      "args": ["better-qdrant-mcp-server"],
      "env": {
        "QDRANT_URL": "http://localhost:6333",
        "QDRANT_API_KEY": "your_api_key_if_needed",
        "DEFAULT_EMBEDDING_SERVICE": "ollama",
        "OPENAI_API_KEY": "your_openai_api_key",
        "OPENAI_ENDPOINT": "https://api.openai.com/v1",
        "OPENROUTER_API_KEY": "your_openrouter_api_key",
        "OPENROUTER_ENDPOINT": "https://api.openrouter.com/v1",
        "OLLAMA_ENDPOINT": "http://localhost:11434",
        "OLLAMA_MODEL": "nomic-embed-text"
      }
    }
  }
}

Available Commands

List Collections

View all available Qdrant collections:

use_mcp_tool
server_name: better-qdrant
tool_name: list_collections
arguments: {}

Add Documents

Process and add documents to a Qdrant collection:

use_mcp_tool
server_name: better-qdrant
tool_name: add_documents
arguments: {
  "filePath": "/path/to/your/document.pdf",
  "collection": "my-collection",
  "embeddingService": "openai",
  "chunkSize": 1000,
  "chunkOverlap": 200
}

Search

Perform semantic searches across your vector database:

use_mcp_tool
server_name: better-qdrant
tool_name: search
arguments: {
  "query": "your search query",
  "collection": "my-collection",
  "embeddingService": "openai",
  "limit": 5
}

Delete Collection

Remove collections from your Qdrant database:

use_mcp_tool
server_name: better-qdrant
tool_name: delete_collection
arguments: {
  "collection": "my-collection"
}

System Requirements

  • Node.js >= 18.0.0
  • A running Qdrant server (local or remote)
  • API keys for the embedding services you plan to use

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "better-qdrant" '{"command":"npx","args":["better-qdrant-mcp-server"],"env":{"QDRANT_URL":"http://localhost:6333","QDRANT_API_KEY":"your_api_key_if_needed","DEFAULT_EMBEDDING_SERVICE":"ollama","OPENAI_API_KEY":"your_openai_api_key","OPENAI_ENDPOINT":"https://api.openai.com/v1","OPENROUTER_API_KEY":"your_openrouter_api_key","OPENROUTER_ENDPOINT":"https://api.openrouter.com/v1","OLLAMA_ENDPOINT":"http://localhost:11434","OLLAMA_MODEL":"nomic-embed-text"}}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "better-qdrant": {
            "command": "npx",
            "args": [
                "better-qdrant-mcp-server"
            ],
            "env": {
                "QDRANT_URL": "http://localhost:6333",
                "QDRANT_API_KEY": "your_api_key_if_needed",
                "DEFAULT_EMBEDDING_SERVICE": "ollama",
                "OPENAI_API_KEY": "your_openai_api_key",
                "OPENAI_ENDPOINT": "https://api.openai.com/v1",
                "OPENROUTER_API_KEY": "your_openrouter_api_key",
                "OPENROUTER_ENDPOINT": "https://api.openrouter.com/v1",
                "OLLAMA_ENDPOINT": "http://localhost:11434",
                "OLLAMA_MODEL": "nomic-embed-text"
            }
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "better-qdrant": {
            "command": "npx",
            "args": [
                "better-qdrant-mcp-server"
            ],
            "env": {
                "QDRANT_URL": "http://localhost:6333",
                "QDRANT_API_KEY": "your_api_key_if_needed",
                "DEFAULT_EMBEDDING_SERVICE": "ollama",
                "OPENAI_API_KEY": "your_openai_api_key",
                "OPENAI_ENDPOINT": "https://api.openai.com/v1",
                "OPENROUTER_API_KEY": "your_openrouter_api_key",
                "OPENROUTER_ENDPOINT": "https://api.openrouter.com/v1",
                "OLLAMA_ENDPOINT": "http://localhost:11434",
                "OLLAMA_MODEL": "nomic-embed-text"
            }
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later