AI Skill Hub 强烈推荐:kektordb MCP工具 是一款优质的AI工具。AI 综合评分 8.2 分,在同类工具中表现稳健。如果你正在寻找可靠的AI工具解决方案,这是一个值得深入了解的选择。
kektordb MCP工具 是一款基于 Go 开发的开源工具,专注于 AI记忆系统、向量数据库、知识图谱 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
kektordb MCP工具 是一款基于 Go 开发的开源工具,专注于 AI记忆系统、向量数据库、知识图谱 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:go install(推荐) go install github.com/sanonone/kektordb@latest # 方式二:从源码编译 git clone https://github.com/sanonone/kektordb cd kektordb go build -o kektordb . # 方式三:下载预编译二进制 # 访问 Releases 页面下载对应平台二进制文件 # https://github.com/sanonone/kektordb/releases
# 查看帮助 kektordb --help # 基本运行 kektordb [options] <input> # 详细使用说明请查阅文档 # https://github.com/sanonone/kektordb
# kektordb 配置说明 # 查看配置选项 kektordb --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export KEKTORDB_CONFIG="/path/to/config.yml"
The cognitive memory layer for AI agents.
<p align="center"> <img src="docs/images/logo.png" alt="KektorDB Logo" width="500"> </p>
<p align="center"> <a href="DOCUMENTATION.md">📚 Documentation</a> • <a href="CONTRIBUTING.md">🤝 Contributing</a> • <a href="docs/guides/zero_code_rag.md">🤖 GraphRAG Open WebUI Guide</a> </p>
[!TIP] Docker Support: Prefer containers? A Dockerfile is included in the root for building your own images.
KektorDB is an in-memory memory system for AI applications that combines high-performance vector search with a temporal knowledge graph. It stores information while understanding it—tracking importance, relationships, and evolution over time. A built-in cognitive engine (Gardener) automatically consolidates memories, detects contradictions, and lets irrelevant information fade away through time-decay.
Built for developers building AI agents, RAG systems, and knowledge-intensive applications.
<p align="center"> <img src="docs/images/kektordb-demo.gif" alt="KektorDB Graph Demo" width="800"> </p>
---
type="core_fact" for persistent, fast retrieval without time-decay.superseded_by/evolves_from edges and _is_historical markers.docker run -p 9091:9091 -p 9092:9092 -v $(pwd)/data:/data sanonone/kektordb:latest
This example demonstrates building an AI Agent with Memory using sessions and cognitive features.
1. Install Client:
pip install kektordb-client sentence-transformers
from kektordb_client import KektorDBClient
from kektordb_client.cognitive import CognitiveSession
# 1. Initialize
client = KektorDBClient(port=9091)
index = "agent_memory"
# 2. Create index with memory enabled (30 day half-life)
try:
client.delete_index(index)
except:
pass
client.vcreate(index, metric="cosine", text_language="english")
# 3. Start a session (e.g., user conversation)
with CognitiveSession(client, index, user_id="user_123") as session:
# Save memories linked to this conversation
session.save_memory(
"User's name is Marco and he prefers concise answers",
layer="episodic",
tags=["user_preference"]
)
session.save_memory(
"Marco is working on a Go project called KektorDB",
layer="semantic",
tags=["project", "go"]
)
session.save_memory(
"Marco asked how to implement RAG. Explained vector search + graph traversal.",
layer="episodic"
)
# 4. Later: Retrieve user profile
profile = client.get_user_profile("user_123", index)
print(f"Communication style: {profile.get('communication_style', 'N/A')}")
print(f"Expertise areas: {profile.get('expertise_areas', [])}")
# 5. Search memories
results = client.vsearch(
index,
query_vector=[0.1, 0.2, 0.3, 0.4], # Embed your query
k=3,
filter_str="tags ? 'project'"
)
print(f"Found {len(results)} relevant memories")
# 6. Check belief confidence of a memory
belief = client.vbelief_state(index, query="Marco's project name")
print(f"Confidence: {belief['confidence']:.2f}, State: {belief['state']}")
# 7. Evolve a memory when information changes
new_id = client.vevolve(
index,
old_id="memory_001",
reason="User updated their preference",
new_content="Marco now prefers detailed explanations with examples"
)
print(f"Memory evolved to: {new_id['new_id']}")
👉 Read the Full Documentation for all available endpoints and features.
---
./kektordb -http-addr :9091 -save "30 500" -log-level debug ```
Command-line flags: -http-addr: HTTP server address (default: :9091) -aof-path: Path to persistence file (default: kektordb.aof) -save: Auto-snapshot policy "seconds changes" (default: "60 1000", empty to disable) -auth-token: API authentication token -log-level: Logging level (debug, info, warn, error) -enable-proxy: Enable AI Gateway/Proxy -proxy-config: Path to proxy configuration file -vectorizers-config: Path to vectorizers configuration file -mcp: Run as MCP Server (Stdio) --embedder: Embedder mode: auto, ollama, openai, local --embedder-model: Directory with ONNX model + tokenizer (local mode) --tools: MCP tool profile: agent, admin, all --tui: Launch terminal dashboard (experimental) --cognitive-config: Path to cognitive YAML config (enables Gardener)
Compatibility Note: All development and testing were performed on Linux (x86_64). Pure Go builds are expected to work on Windows/Mac/ARM.
---
KektorDB includes an optional built-in ONNX embedder (all-MiniLM-L6-v2, 384 dimensions) powered by Rust/Candle for zero-config local embeddings -- no Ollama required.
Build with Rust support:
make build-rust-native # requires protoc (auto-downloaded by Makefile)
make run-rust
Or manually:
cd native/compute && cargo build --release
CGO_LDFLAGS="-L$(pwd)/native/compute/target/release" go build -tags rust ./cmd/kektordb/
The ONNX model (~90 MB) is downloaded automatically from HuggingFace on first launch with SHA256 verification.
| Mode | Description |
|---|---|
auto | Auto-detect: Ollama if available, local ONNX as fallback (default) |
ollama | Use Ollama embedding API |
openai | Use OpenAI-compatible embedding API |
local | Built-in ONNX model (requires -tags rust build) |
---
<p align="center"> <img src="docs/images/kektordb-rag-demo.gif" alt="KektorDB RAG Demo" width="800"> </p>
KektorDB can function as a smart middleware between your Chat UI and your LLM. It intercepts requests, performs retrieval, and injects context automatically.
Architecture: Open WebUI -> KektorDB Proxy (9092) -> Ollama / LocalAI (11434)
How to set it up:
1. Configure vectorizers.yaml to point to your documents and enable Entity Extraction. 2. Configure proxy.yaml to point to your Local LLM (Ollama) or OpenAI. 3. Run KektorDB with the proxy enabled:
./kektordb -vectorizers-config='vectorizers.yaml' -enable-proxy -proxy-config='proxy.yaml'
4. Configure Open WebUI: Base URL: http://localhost:9092/v1 API Key: kektor (or any string). 5. Chat: Just ask questions about your documents. KektorDB handles the rest.
👉 Read the Full Guide: Building a Fast RAG System with Open WebUI
---
KektorDB includes a built-in wrapper for LangChain Python, allowing you to plug it directly into your existing AI pipelines.
from kektordb_client.langchain import KektorVectorStore
---
创新的向量+时间图谱混合架构,填补AI记忆系统空白。文档完善,社区活跃,Go实现性能稳定,值得MCP生态关注。
该工具使用 NOASSERTION 协议,商用场景请仔细阅读协议条款,必要时咨询法律意见。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
📄 NOASSERTION — 请查阅原始协议条款了解具体使用限制。
总体来看,kektordb MCP工具 是一款质量优秀的AI工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | kektordb |
| 原始描述 | 开源MCP工具:AI memory system combining vector search with temporal knowledge graph. Built-in。⭐73 · Go |
| Topics | AI记忆系统向量数据库知识图谱MCP工具Go语言 |
| GitHub | https://github.com/sanonone/kektordb |
| License | NOASSERTION |
| 语言 | Go |
收录时间:2026-05-17 · 更新时间:2026-05-19 · License:NOASSERTION · AI Skill Hub 不对第三方内容的准确性作法律背书。