Universal knowledge base with Qdrant for Claude Code integration
Project description
Claude KB
Semantic search across your Claude Code conversation history, powered by Qdrant.
Setup
1. Install
uv tool install claude-kb
2. Start Qdrant
docker compose up -d
3. Initialize and import
kb init
kb import claude-code-chats
4. Add MCP server to Claude Code
claude mcp add -s user kb -- kb mcp
That's it. Claude Code now has access to kb_search and kb_get tools for searching your conversation history.
Update
uv tool upgrade claude-kb
To check current version:
kb --version
CLI Usage
kb search "your query" # semantic search
kb search "query" --limit 20 # with options
kb get <message-id> # retrieve specific message
kb get-thread <message-id> # message with context
kb status # check collections and stats
kb ai # LLM-optimized schema
Configuration
Set QDRANT_URL if Qdrant is not on localhost:
export QDRANT_URL=http://your-host:6333
Or create a .env file:
QDRANT_URL=http://localhost:6333
EMBEDDING_MODEL=BAAI/bge-base-en-v1.5
Search Tips
- Score 0.9+: exact topic match, 0.7-0.9: related, 0.5-0.7: partial, <0.5: filtered
- Lower
min_scoreto 0.3 for broader exploration - Use
projectparameter to filter by project (partial match), not the query - By default, thinking and tool_result content shows as
[thinking: N chars]placeholders - useinclude_thinking=True/include_tool_results=Truefor full content
Development
git clone https://github.com/tenequm/claude-kb.git
cd claude-kb
uv sync --extra dev
just check # lint + format
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file claude_kb-0.7.4.tar.gz.
File metadata
- Download URL: claude_kb-0.7.4.tar.gz
- Upload date:
- Size: 137.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b49f3348dab2c964dfe852bf4de09f7380574970ccb78db81ff54ebdbce62af9
|
|
| MD5 |
dd4926492ce95c2609c92b622b0845ae
|
|
| BLAKE2b-256 |
47c2ec456c162a3cae3002b93e3b6c559c30f40b36c557445bf9118e683a2667
|
File details
Details for the file claude_kb-0.7.4-py3-none-any.whl.
File metadata
- Download URL: claude_kb-0.7.4-py3-none-any.whl
- Upload date:
- Size: 38.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50ff3c123252ade74d1d622a36bcb92bc79ca7156441e795fbffe27b83a0dbba
|
|
| MD5 |
7f1057914389ab8dc2c75da01fb6d456
|
|
| BLAKE2b-256 |
55a6ec86734b366c7d8b6dea1d842ce0ef6d7503c6e6c02d864aabff1f0936aa
|