qdrant-mcp
qdrant-mcp
Qdrantでのドキュメント取り込みおよびセマンティック検索のためのMCPサーバー。
概要
qdrant-mcp は以下のツールを提供します:
ローカルドキュメントをQdrantコレクションに取り込む
OpenAIで埋め込みを生成する
オプションのメタデータフィルターを使用してベクトル検索を実行する
Related MCP server: mcp-server-qdrant
機能
ingest_documentsMarkItDownを使用して
docx、pptx、pdfなどのファイルをMarkdownに変換chunk_sizeとoverlap_ratioを使用してコンテンツをチャンクに分割OpenAI Embeddings(デフォルトは
text-embedding-3-small)でチャンクを埋め込みチャンクのテキストとメタデータをQdrantにアップサート
search_documents同じ埋め込みAPIを使用してクエリテキストを埋め込み
Qdrantから上位
k件の検索結果を取得categoryおよびpathによるフィルタリングをサポート
要件
Python 3.11+
uvQdrant (例:
http://localhost:6333)OPENAI_API_KEY
セットアップ
uv syncCodex CLI内での実行
[mcp_servers.qdrant-mcp]
command = "uv"
args = ["run", "qdrant-mcp"]
cwd = "/sandbox/qdrant-mcp"
env = {
OPENAI_API_KEY = "sk-...",
QDRANT_URL = "http://127.0.0.1:6333",
QDRANT_API_KEY = "QDRANT_API_KEY",
QDRANT_COLLECTION = "codex_collection",
CHUNK_HEADER_MODEL = "gpt-5.4-mini"
}テスト
.env に OPENAI_API_KEY、QDRANT_URL、QDRANT_API_KEY を設定し、以下を実行します:
uv run python -m unittest tests/integration/test_qdrant_integration.pyMCPツール
ingest_documents
パラメータ:
paths: list[str]category: strchunk_size: int = 1200overlap_ratio: float = 0.15embedding_model: str = "text-embedding-3-small"chunk_header_mode: Literal["enabled", "disabled"] = "enabled"
戻り値:
collectionembedding_modelingested_filesingested_pointsfailed_files
search_documents
パラメータ:
query: strtop_k: int = 5category: str | None = Nonepath: str | None = Noneembedding_model: str = "text-embedding-3-small"
戻り値:
collectionembedding_modelquerycountresults(score,path,category,chunk_index,text)
delete_documents_by_path
パラメータ:
path: strcategory: str | None = None
戻り値:
collectionpathcategorystatusoperation_id
list_category
パラメータ:
limit: int = 100
戻り値:
collectioncountcategories
list_path
パラメータ:
category: strlimit: int = 1000
戻り値:
collectioncategorycountpaths
注意事項
ターゲットのコレクションが存在しない場合、最初の取り込み時に自動的に作成されます。
categoryおよびpathのペイロードインデックスが存在しない場合、取り込み時に作成されます。デフォルトでは、取り込み時に最初の4096バイトから派生した生成済みの
Chunk-Header(最大64文字)がすべてのチャンクの先頭に追加されます。chunk_header_modeがenabled(デフォルト:gpt-5.4-mini)の場合、Chunk-HeaderモデルはCHUNK_HEADER_MODELから読み込まれます。コレクション名は
QDRANT_COLLECTIONを通じてのみ設定されます(MCPツールパラメータ経由ではありません)。text-embedding-3-smallを使用する場合、ベクトルサイズは1536です。
ライセンス
LICENSE を参照してください。
This server cannot be deployed
Maintenance
Related MCP Connectors
An MCP server for search and retrieval over a local LanceDB database
DocBase MCP server for AI agents
Document-to-Markdown MCP server — convert PDF, Office and HTML into LLM-ready Markdown.
Related MCP Servers
- AlicenseAqualityDmaintenanceLocal-first RAG indexing and semantic search MCP server. Enables document retrieval and context-aware queries using local embedding models.310 npmMIT
- AlicenseNot gradedqualityCmaintenanceMCP server for Qdrant vector database with local BERT embeddings. Enables semantic search and vector storage operations through natural language.MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that searches documents in Qdrant using embeddings from LMStudio. Takes a text query, converts it to a vector via LMStudio's OpenAI-compatible API, and performs semantic search in Qdrant.9 npmISC
- FlicenseNot gradedqualityCmaintenanceMCP server for retrieving answers from local PDFs using RAG with FAISS and OpenAI.-