Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Persistent memory for AI assistants: store, search, and connect knowledge across conversations.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
适用于网页版、桌面版和手机版 Claude:
https://memory.kagura-ai.com/mcp在终端中运行这条命令
claude mcp add --transport http memory-cloud https://memory.kagura-ai.com/mcp粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"memory-cloud": {
"url": "https://memory.kagura-ai.com/mcp"
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"memory-cloud": {
"type": "http",
"url": "https://memory.kagura-ai.com/mcp"
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
ChatGPT 只能连接互联网上的服务器:
https://memory.kagura-ai.com/mcp菜单名称可能因套餐和版本不同而略有差异。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
我们还没有读取这个服务器的工具列表;我们会轮流检查各个端点。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 kagura-ai 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
尚未检查;我们会轮流检查各个端点
尚未检查;我们会轮流检查各个端点
尚未检查;我们会在检查端点时读取工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在作者的云端运行。通过互联网连接,无需安装,但你发送的内容会经过作者的服务器。
GitHub 仓库最后更新于–,最新版本(0.82.0)于40天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,所以接受远程 MCP 服务器的应用也可以使用,例如开启开发者模式的 ChatGPT。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
English · 日本語
Adaptive memory for AI agents and teams — self-hosted, beyond RAG.
An MCP server that gets smarter every time you search:
hybrid search + a neural memory graph that learns which memories belong together.
Works with Claude, ChatGPT, Gemini, Muse, and other MCP-compatible clients.
Python SDK (KaguraClient, REST clients & FileIngestor)
Claude Code CLI recalling memories from Kagura over MCP — ▶ watch the demo
Your AI forgets everything after each conversation. Kagura fixes that — and gets smarter every time you search.
Most AI memory tools are just vector databases with a chat wrapper. Kagura is different — it implements the full LLM Knowledge Base pattern (Karpathy's LLM Wiki) at team scale:
| Approach | Storage | Compounding | Scale |
|---|---|---|---|
| Vector DB / RAG | Embedded chunks | None — retrieve-only | Any |
| Karpathy's LLM Wiki | Markdown files | LLM rewrites pages | Personal (~100 pages) |
| Kagura Memory Cloud | PostgreSQL + Qdrant + Neural graph | Hebbian + Sleep Maintenance | Team / org |
| Feature | Description |
|---|---|
| Adaptive Memory | Every search automatically strengthens connections between related memories. The more you use it, the better explore() discovers hidden relationships. |
| Hybrid Search | Semantic (OpenAI / self-hosted) + BM25 keyword — 96% top-1 accuracy |
| AI Reranking | Self-hosted (Ollama/vLLM — local, free), Voyage AI, or Cohere — cross-encoder reranking for precision |
| Neural Memory Graph | Hebbian learning builds a knowledge graph in the background. explore() traverses it for serendipitous discovery. |
| Agent Memory Substrate | Beyond a knowledge store: delivery modes (pinned / time-triggered), a server-stamped trust boundary, an agent state lane, and a retrieval-feedback signal — the primitives an autonomous agent loop needs. |
| Agent Control Plane (preview) | Workspace-scoped Agent Registry, subtractive context bindings, agent-bound member keys, lifecycle kill switches, and one-call session bootstrap. Introduced in v0.49.0. |
| 72 MCP Tools | Guide, Memory, Agent Substrate, Agent Control Plane, Neural edges, Contexts, Tags, Files (R2), Analyses (Memory Analysis), Resources, Secrets, Sleep Maintenance, Usage, API-Key Bindings |
| Multi-Provider | OpenAI or self-hosted (Ollama, vLLM — local, private, zero cost) for embeddings |
| Team Ready | Workspaces, RBAC, context isolation, shared memory |
| Web UI | Next.js dashboard — contexts, search settings, member management |
| 5-Minute Setup | ./setup.sh and you're done |
Workspace (team/org)
├── Context A ("my-project") ← like a folder │ ├── Memory 1 ← 3-layer: summary / context / content │ ├── Memory 2 │ └── Neural edges (Hebbian) ← automatic connections ├── Context B ("learning-notes") │ └── ... └── Members (Owner/Admin/Member/Viewer)
Karpathy's LLM Wiki pattern describes a 5-layer "living knowledge base" — beyond traditional RAG. Kagura implements all 5 layers at team scale:
| Layer | Kagura Implementation | Difference from Karpathy's pattern |
|---|---|---|
| Ingest | REST /api/v1/memory, MCP remember, R2 file storage, resource tokens | + binary blobs, + multi-tenant |
| Compile | MCP-as-compile-API — chat agent compiles via structured tool calls (remember(summary, content, type, tags)) + Sleep Maintenance for batch consolidation | Continuous micro-compile (not batch wiki rewrite) — schema-enforced output |
| Index | Triple index: BM25 (keyword) + Qdrant (semantic) + Hebbian graph (relational) — all auto-maintained | No manual index.md upkeep |
| Query | Hybrid Search + AI Reranker + explore graph traversal | Beyond markdown grep — supports semantic + relational queries |
| Enhance | Hebbian learning — every recall() strengthens edges between co-retrieved memories. Sleep Maintenance consolidates periodically. | Background graph evolution (zero LLM cost) vs LLM-driven page rewrites |
Compounding loop: Currently explicit (user/agent calls remember() after synthesizing answers). Auto-write-back of synthesized answers is intentionally opt-in to keep noise low.
Kagura separates precision search and discovery into two independent paths, each optimized for its purpose:
recall() ──→ Hybrid Search (semantic + BM25) ──→ [Reranker] ──→ Precise results
│ └──→ Hebbian Learning (background) ──→ Graph edges grow │ explore() ──→ Graph Traversal (Neural Memory) ←─────────────────┘ Related discoveries
?add_tools=explore or ?profile=full on the URL lists it.recall() silently strengthens edges between co-retrieved memories. No explicit training needed — the graph grows organically as you use the system.This separation is intentional: mixing graph signals into recall degrades precision (validated via benchmarks). Instead, each path does what it's best at.
Data isolation: All data is filtered by workspace_id → context_id → user_id. Memories never leak across boundaries. Single Qdrant collection with payload filtering.
Tech stack: FastAPI (async) · PostgreSQL · Qdrant · Redis · Next.js 16 · OAuth2 · MCP over Streamable HTTP
Vector backend: Qdrant by default. A single-process self-hosted / CLI / edge deployment can instead run the embedded LanceDB backend — "Kagura Lite" (preview) with no separate Qdrant server (KAGURA_VECTOR_BACKEND=lance, cd backend && uv sync --locked --extra lite). Not for multi-worker / SaaS (LanceDB is single-writer). See Deployment → Embedded Vector Backend.
| Minimum | Recommended | |
|---|---|---|
| CPU | 2 cores | 4+ cores |
| RAM | 4 GB | 8+ GB |
| Disk | 10 GB free | 20+ GB free |
One-line setup:
git clone https://github.com/kagura-ai/memory-cloud.git
cd memory-cloud ./setup.sh
With Claude Code:
git clone https://github.com/kagura-ai/memory-cloud.git
cd memory-cloud claude # then run /setup
Step-by-step setup:
# 1. Clone
git clone https://github.com/kagura-ai/memory-cloud.git cd memory-cloud
(cd backend && python3 -m src.cli.setup_env)
docker compose up -d
(cd backend && alembic upgrade head)
(cd backend && python3 -m src.cli.create_admin)
`.env.local` settings (auto-configured by setup_env):
| Setting | Required | Description |
|---|---|---|
API_KEY_SECRET | Yes | Secret for API key encryption (auto-generated) |
AUDIT_HMAC_KEY / AUDIT_PSEUDO_SALT | Production | Audit-log HMAC key and erasure salt (auto-generated) |
OPENAI_API_KEY | Yes\* | OpenAI API key for embeddings |
SELF_HOSTED_BASE_URL | No | Self-hosted backend URL (default: http://localhost:11434) |
EMBEDDING_PROVIDER | No | openai (default) or self_hosted |
GOOGLE_CLIENT_ID/SECRET | No | Google OAuth2 login (optional — password login available) |
GITHUB_CLIENT_ID/SECRET | No | GitHub OAuth2 login (optional) |
\* Either OPENAI_API_KEY or a running self-hosted inference server (e.g. Ollama) is required for memory features.
| Command | Purpose |
|---|---|
python3 -m src.cli.setup_env | Generate secrets + configure .env.local (run before Docker) |
python3 -m src.cli.create_admin | Create admin + workspace + API key + .mcp.json + embedding setup |
python3 -m src.cli.reset_password | Reset password and/or MFA |
python3 -m src.cli.delete_admin | Delete admin (for re-creation) |
python3 -m src.cli.transfer_context_creator | Move contexts created by one user to another (CLI admin → OAuth account, see docs/deployment.md) |
Run from
backend/directory. Docker API container must be running.
Platform-specific notes
brew install python@3.11 nodesudo apt install docker.io docker-compose-v2 python3.11 nodejs npm.env.local (DATABASE_URL, QDRANT_URL, ENVIRONMENT=production, CORS_ORIGINS) and private values for API_KEY_SECRET, AUDIT_HMAC_KEY, AUDIT_PSEUDO_SALT (openssl rand -hex 32) — the API refuses to start on the defaults or .env.example placeholdersfrontend/.env.example to frontend/.env.local and set:NEXT_PUBLIC_API_URL — backend URL (default: http://localhost:8080)NEXT_PUBLIC_APP_URL — frontend URL for metadataNEXT_PUBLIC_PLAN_FREE_DISPLAY_NAME / BASIC / PRO / PROMAX — plan display name customiza只显示了开头部分;其余内容请在仓库中阅读