Workspace Qdrant MCP
workspace-qdrant-mcp
AIアシスタント向けのプロジェクトスコープ型ベクトルデータベース。自動プロジェクト検出機能を備え、ハイブリッドなセマンティック検索とキーワード検索を提供します。
特徴
ハイブリッド検索 - Reciprocal Rank Fusion(RRF)を使用して、セマンティックな類似性とキーワード一致を組み合わせます
プロジェクト検出 - Gitリポジトリの自動認識とプロジェクトスコープのコレクション管理
6つのMCPツール - search, retrieve, rules, store, grep, list
コードインテリジェンス - Tree-sitterによるセマンティックチャンキングと、アクティブなプロジェクト向けのLSP統合
コードグラフ - アルゴリズム(PageRank、コミュニティ検出、媒介中心性)を備えた関係グラフ
高性能CLI - Rustベースの
wqmコマンドラインツールバックグラウンドデーモン - 継続的なファイル監視と処理を行う
memexd
クイックスタート
前提条件
Qdrant -
docker run -d -p 6333:6333 -v qdrant_storage:/qdrant/storage qdrant/qdrantCコンパイラ - 初回使用時にTree-sitter文法をコンパイルするために必要です。Tree-sitter文法はCソースとして配布され、ローカルでコンパイルされます。
macOS:
xcode-select --install(Xcode Command Line Tools)Linux:
apt install build-essential(Debian/Ubuntu) またはdnf groupinstall "Development Tools"(Fedora)Windows: Visual Studio Build Tools をC++ワークロードと共にインストールしてください
インストール
オプション 1: Homebrew (推奨 — macOS & Linux)
brew install ChrisGVE/tap/workspace-qdrant
brew services start workspace-qdrantオプション 2: ビルド済みバイナリ
# macOS / Linux
curl -fsSL https://raw.githubusercontent.com/ChrisGVE/workspace-qdrant-mcp/main/scripts/download-install.sh | bash
# Windows (PowerShell)
irm https://raw.githubusercontent.com/ChrisGVE/workspace-qdrant-mcp/main/scripts/download-install.ps1 | iexwqm と memexd を ~/.local/bin (Linux/macOS) または %LOCALAPPDATA%\wqm\bin (Windows) にインストールします。
オプション 3: ソースからビルド
git clone https://github.com/ChrisGVE/workspace-qdrant-mcp.git
cd workspace-qdrant-mcp
./install.sh詳細な手順とプラットフォーム固有の注意点については、インストールリファレンス を参照してください。Windowsの場合は、Windowsインストールガイド を参照してください。
MCPの設定
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"workspace-qdrant-mcp": {
"command": "node",
"args": ["/path/to/workspace-qdrant-mcp/src/typescript/mcp-server/dist/index.js"],
"env": {
"QDRANT_URL": "http://localhost:6333"
}
}
}
}Claude Code:
claude mcp add workspace-qdrant-mcp -- node /path/to/workspace-qdrant-mcp/src/typescript/mcp-server/dist/index.js検証
wqm --version
wqm status healthCLAUDE.md 統合
Claude Codeがworkspace-qdrantを積極的に使用するように、プロジェクトの CLAUDE.md (またはグローバルな ~/.claude/CLAUDE.md) に以下を追加してください:
## workspace-qdrant
The `workspace-qdrant` MCP server provides codebase-aware search, a library knowledge base, a scratchpad for accumulated insights, and persistent behavioral rules. The tool schemas are self-describing; these instructions cover *when* and *how* to use them.
### Primary Search and Knowledge Base
**Use `workspace-qdrant` first whenever context is uncertain** — first session on a project, returning after a significant gap, or exploring an unfamiliar subsystem. It is faster and more accurate than walking files manually, and it retrieves findings from prior sessions that would otherwise be lost.
**Three-step protocol:**
1. **Search** with `workspace-qdrant` (`search`, `grep`, `list`, or `retrieve`)
2. **Fall back** to `Grep`, `Glob`, `WebSearch` only when workspace-qdrant is insufficient or unavailable
3. **Store** any new findings, analysis, or design rationale via `store` so they are retrievable in future sessions
When a fresh handover or strong prior context already covers what you need, skip the exploratory search — but always store new findings at the end.
**Collections and their purpose:**
- `projects` — indexed codebase; use `scope="project"` (current project) or `scope="all"` (across all projects)
- `libraries` — external reference docs, API specs, third-party documentation; add via `store` with `collection="libraries"` and search with `includeLibraries=true`
- `scratchpad` — analysis, design rationale, research transcripts, architectural insights; complements session handovers by building a growing, semantically searchable knowledge layer across sessions
- `rules` — persistent behavioral rules; load at session start via `rules` → `action="list"`
**Practical notes:**
- Use `grep` for exact strings or regex; `list` with `format="summary"` to explore project structure
- Store external docs or specs into `libraries` so they are searchable alongside code
- Use the scratchpad to record *why* decisions were made, not just *what* was done — future sessions can retrieve the reasoning
### Sub-Agents
Sub-agents start with only the prompt you give them — they have no session history or handover context. They must always use `workspace-qdrant` first for any code exploration, without exception. Include this verbatim in every agent prompt:
> "You have no prior context about this codebase. Use `workspace-qdrant` as your mandatory first tool for ALL code searches — symbols, functions, architecture, patterns, prior findings. Use `search`, `grep`, `list`, or `retrieve` before touching any file with Read/Grep/Glob. Store any new findings, analysis, or design rationale via `store` (scratchpad for insights, libraries for reference docs) so they persist for future sessions."
### Project Registration
At session start, check whether the current project is registered with workspace-qdrant. If it is not, ask the user whether they want to register it (do not register silently). Once registered, the daemon handles file watching and ingestion automatically — no further action is needed.
### Behavioral Rules
The `rules` tool manages persistent rules that are injected into context across sessions. Rules are **user-initiated only** — add rules when the user explicitly instructs you to, never autonomously. Use `action="list"` at session start to load active rules.
### Issue Reporting
workspace-qdrant is under active development. If you encounter errors, unexpected behavior, or limitations with any workspace-qdrant tool, report them as GitHub issues at https://github.com/ChrisGVE/workspace-qdrant-mcp/issues using the `gh` CLI.MCPツール
ツール | 目的 |
| インデックス化されたコンテンツ全体に対するハイブリッドなセマンティック検索 + キーワード検索 |
| IDまたはメタデータフィルターによる直接的なドキュメント検索 |
| 永続的な行動ルールの管理 |
| コンテンツの保存、プロジェクトの登録、メモの保存 |
| FTS5を使用した完全一致のサブストリング検索または正規表現検索 |
| プロジェクトファイルとフォルダ構造のリスト表示 |
パラメータと例については、MCPツールリファレンス を参照してください。
コレクション
コレクション | 目的 | 分離 |
| プロジェクトコードとドキュメント |
|
| 参照ドキュメント(書籍、論文、ドキュメント) |
|
| 行動ルールと設定 |
|
| 一時的な作業ストレージ | セッションごと |
CLIリファレンス
# Service management
wqm service start # Start background daemon
wqm service status # Check daemon status
wqm status health # System health check
# Search and content
wqm search "query" # Search collections
wqm ingest file path.py # Ingest a file
wqm rules list # List behavioral rules
# Project and library
wqm project list # List registered projects
wqm project watch pause # Pause file watchers
wqm library list # List libraries
wqm tags list # List tags with counts
# Administration
wqm admin collections list # List collections
wqm admin rebuild all # Rebuild all indexes
wqm admin backup create # Backup snapshots
wqm admin stats overview # Search analytics
# Code graph
wqm graph stats --tenant <t> # Node/edge counts
wqm graph query --node-id <id> --tenant <t> --hops 2 # Related nodes
wqm graph impact --symbol <name> --tenant <t> # Impact analysis
wqm graph pagerank --tenant <t> --top-k 20 # PageRank centrality
# Setup
wqm init completions zsh # Shell completions
wqm init man install # Install man pages
wqm init hooks install # Install Claude Code hooks
# Queue and monitoring
wqm queue stats # Queue statistics完全なドキュメントについては、CLIリファレンス を参照してください。
設定
環境変数
変数 | デフォルト | 説明 |
|
| QdrantサーバーのURL |
| - | APIキー (Qdrant Cloudで必要) |
|
| 埋め込みモデル |
アーキテクチャ
+-----------------+
| Claude/Client |
+--------+--------+
|
+--------v--------+
| MCP Server | (TypeScript)
+--------+--------+
|
+--------------+--------------+
| |
+--------v--------+ +--------v--------+
| Rust Daemon | | Qdrant |
| (memexd) | | Vector Database |
+--------+--------+ +-----------------+
|
+--------v--------+
| File Watcher |
| Code Graph |
| Embeddings |
+-----------------+Rustデーモンがファイル監視、埋め込み生成、コードグラフ抽出、キュー処理を処理します。一貫性を保つため、すべての書き込みはデーモンを経由します。
ドキュメント
ユーザーガイド:
リファレンス:
仕様、ADR、開発者リソースについては、ドキュメントインデックス を参照してください。
開発
# TypeScript MCP server
cd src/typescript/mcp-server && npm install && npm run build && npm test
# Rust daemon and CLI (from src/rust/)
cargo build --release
cargo test
# Graph benchmarks
cargo bench --package workspace-qdrant-core --bench graph_bench
# Binaries output to:
# - target/release/wqm
# - target/release/memexd貢献
開発環境のセットアップとガイドラインについては、CONTRIBUTING.md を参照してください。
ライセンス
MITライセンス - 詳細は LICENSE を参照してください。
Inspired by claude-qdrant-mcp
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ChrisGVE/workspace-qdrant-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server