
Kagura Memory Cloud
io.github.kagura-ai由 GitHub 帳號 kagura-ai 發布v0.82.0更新於 Nov 2, 2026
Persistent memory for AI assistants: store, search, and connect knowledge across conversations.
發布方自己的服務:Memory.fit
概覽
遠端 MCP 記憶服務,讓助理跨對話儲存、檢索並連結知識,並可在工作區中共用。
- 可以做什麼
- 儲存與批次儲存記憶,包含摘要、內容、類型與標籤
- 以語意加關鍵字的混合檢索尋找記憶,可選擇重新排序
- 遍歷神經記憶圖譜,找出關鍵字檢索遺漏的關聯記憶
- 依情境與標籤整理記憶,並管理檔案、分析與資源
- 管理代理狀態、固定或定時投遞,以及依工作階段回復代理寫入
- 管理工作區、成員、用量與 API 金鑰綁定
- 適用情境
- 適合需要助理在多次對話之間記住事實、決策與專案知識的情境,也適合團隊在 Claude、ChatGPT、Gemini 等 MCP 用戶端背後共用一層可檢索的記憶。
- 執行需求
- 遠端 MCP 端點,使用 Streamable HTTP,且要求 OAuth。README 另述自架部署需 Docker、Python 3.11+、Node.js 24+、PostgreSQL、Qdrant 與 Redis,以及 OpenAI API 金鑰或自架嵌入服務;部分用戶端可用 API 金鑰取代 OAuth。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Kagura Memory Cloud,將其新增到工作區。
- 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
交給代理程式安裝
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/io.github.kagura-ai%2Fmemory-cloud/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。
{
"mcpServers": {
"kagura-memory-cloud": {
"type": "http",
"url": "https://memory.kagura-ai.com/mcp"
}
}
}README
[Kagura Memory Cloud — adaptive memory for AI agents and teams, beyond RAG]
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.
[License] [CI] [codecov] [Python 3.11+] [Node.js 24+] [MCP] [SafeSkill 90/100]
Works with Claude, ChatGPT, Gemini, and any MCP-compatible client.
Python SDK (KaguraClient, REST clients & FileIngestor)
[Claude Code CLI recalling from Kagura Memory over MCP]
Claude Code CLI recalling memories from Kagura over MCP — ▶ watch the demo
Why Kagura Memory Cloud?
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:
Architecture
LLM Knowledge Base — 5-Layer Implementation
Karpathy's LLM Wiki pattern describes a 5-layer "living knowledge base" — beyond traditional RAG. Kagura implements all 5 layers at team scale:
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.
Adaptive Memory: Two Search Paths
Kagura separates precision search and discovery into two independent paths, each optimized for its purpose:
recall()— Precision search. Hybrid (semantic 60% + BM25 40%) with optional AI reranking. Returns the most relevant memories.explore()— Discovery. Traverses the Neural Memory graph to find related memories that keyword search would miss. Opt-in over MCP:?add_tools=exploreor?profile=fullon the URL lists it.- Hebbian learning — Every
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.
Quick Start
System Requirements
Prerequisites
- Docker & Docker Compose
- Python 3.11+
- Node.js 24+
- OpenAI API key (for embeddings) — or a self-hosted inference server (e.g. Ollama) for local embeddings
- OAuth2 credentials (optional — password + MFA login available without OAuth)
Setup
One-line setup:
With Claude Code:
Step-by-step setup:
.env.local settings (auto-configured by setup_env):
* Either OPENAI_API_KEY or a running self-hosted inference server (e.g. Ollama) is required for memory features.
Admin CLI
Run from
backend/directory. Docker API container must be running.
Platform-specific notes
- WSL (Windows): Install Docker Desktop for Windows and enable WSL integration
- macOS: Install Docker Desktop for Mac.
brew install [email protected] node - Linux (Ubuntu/Debian):
sudo apt install docker.io docker-compose-v2 python3.11 nodejs npm - GCP (Production): Set production values in
.env.local(DATABASE_URL,QDRANT_URL,ENVIRONMENT=production,CORS_ORIGINS) and private values forAPI_KEY_SECRET,AUDIT_HMAC_KEY,AUDIT_PSEUDO_SALT(openssl rand -hex 32) — the API refuses to start on the defaults or.env.exampleplaceholders - Frontend env vars: Copy
frontend/.env.exampletofrontend/.env.localand 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 customization (default: S/M/L/XL)
Connect an MCP Client
Works with Claude Code, Claude Desktop, Claude Chat, ChatGPT, Gemini, Gemini CLI, and any Streamable-HTTP MCP client.
Claude Code (3 steps):
- Start services and open
http://localhost:3000/workspace/integrations/credentials?tab=api-keysto create an API key - Copy
.mcp.json.exampleto.mcp.jsonand fill in your API key (a key created there is scoped to its workspace):
.mcp.json.example ships with the all-tools URL. Set "url" to one of:
- Core tools (default):
http://localhost:8080/mcp - All tools:
http://localhost:8080/mcp?profile=full
An OAuth client (Claude.ai, Claude Desktop, ChatGPT, Gemini, Cursor, claude mcp add) uses the same /mcp URL and connects to the workspace selected in the web UI; /mcp/w/{workspace_id} pins such a connector to one workspace when you belong to several.
The default URL lists the core memory and context tools (the exact set is under Tool Profiles) and leaves out explore, Sleep, analyses, files, edges, secrets, resources and the agent control plane — they are just not listed — describe_tools names them from inside a session, and most clients let the model call listed tools only, so a task that needs them reconnects with the URL below. Add ?profile=full when your client should see every tool schema up front (the list is about 2.7 times larger). See Tool Profiles.
- Restart Claude Code and verify:
.mcp.jsonis in.gitignore— never commit it (contains API keys).
Full setup guide — every client, the memory-sync hook, the ready-to-use .claude/ templates, the kagura-memory Claude Code plugin (skills + tool-guardrail hooks), and the WSL2 networking note: MCP Client Setup
MCP Tools
72 tools across 14 categories: Guide (guide, the tool manual on demand; describe_tools, the tools the URL left out), Memory (remember / remember_batch / recall / explore …), Agent Substrate (pinned + time-triggered delivery, deterministic list / changes_since, one-call bootstrap, state, measurements, feedback), Agent Control Plane (preview), Neural Edges, Contexts, Tags, Files (R2), Analyses (Memory Analysis), Resources, Secrets (zero-knowledge), Sleep Maintenance, Usage, and API-Key Bindings — each with per-role access control.
Tool-by-tool reference with required roles: MCP Tools Reference
An agent's writes can be listed and undone: changes_since + rollback_session per session (a stateless MCP client can name its own session with _meta["ai.kagura/sessionId"] or a Kagura-Session-Id header), or — for clients without a session id — over a time window of your own writes (by_me=true, since / until); see Which clients get a session id.
A client does not have to list all 72: the default URL above lists the 21 core tools (?profile=full lists everything), ?tools=remember,recall lists exactly the tools you name, and ?add_tools=list_edges lists the core tools plus the ones you name — see Tool Profiles.
REST API
In addition to MCP tools, a full REST API is available:
- Memory: remember, recall, reference, forget, explore (
/api/v1/memory/*) - Contexts: CRUD, search settings (
/api/v1/contexts/*) - Agents (preview): Registry, context bindings, and composed bootstrap (
/api/v1/agents/*) - Files: Presigned upload/download backed by R2 (
/api/v1/files/*, up to 100 MiB); legacy/api/v1/attachments/*routes return410 Gone - Analyses: Memory Analysis preview/start/read/cancel (
/api/v1/analyses/*) - Resources: External event ingestion and resource inspection (
/api/v1/resources/*) - Workspaces: Management, members, invitations (
/api/v1/workspaces/*) - Admin: Users, plan management, neural config (
/api/v1/admin/*) - Secrets: Zero-knowledge secret store — ciphertext-only, server never decrypts (
/api/v1/config/secrets/*)
Full API documentation: http://localhost:8080/redoc
Authentication
Two OAuth2 providers are supported:
- Google OAuth2 — Optional. Set
GOOGLE_CLIENT_IDandGOOGLE_CLIENT_SECRET - GitHub OAuth2 — Optional. Set
GITHUB_CLIENT_IDandGITHUB_CLIENT_SECRET
Users with the same email address across providers share a single account. Password + MFA login is available without any OAuth provider (see Quick Start). An existing account can also add a password from its profile and then sign in with its verified email address and that password; see Deployment → Email + password sign-in.
Plan Tier Customization
Plans control per-workspace resource limits (contexts / memories / MCP calls per day). Four tiers ship by default: S (free), M (basic), L (pro) and XL (promax). For self-hosted single-user setups, assign the XL (promax) plan to your workspace — it is the only tier that may create resources, connectors and public contexts (numeric limits are env-overridable; a tier's feature set is not). Defaults, environment-variable overrides, and optional Stripe self-service billing: Deployment → Plan Tiers
Development with Claude Code
This project is designed to be developed with Claude Code and Kagura Memory Cloud itself — pre-configured slash commands, safety hooks, sub-agents, and rules load automatically from .claude/. Setup and the full tooling reference: Contributing → Development with Claude Code
Documentation
API reference — two complementary entry points:
- Concepts (markdown): API Reference — auth, base URLs, MCP endpoint, request/response examples
- Endpoint reference (live):
http://localhost:8080/redoc— auto-generated from FastAPI, always in sync with the running backend
Concepts & guides:
- Core Concepts — Workspace, Context, Memory, Neural Memory, MCP Tools
- MCP Client Setup — Claude Code / Desktop / Chat, ChatGPT, Gemini, Gemini CLI, plugin & templates
- MCP Tools Reference — All 72 tools with required roles
- Architecture — System design and data flow
- Getting Started — Detailed setup guide
- Chunking Guide — Best practices for memory storage
- Resource Tokens Guide — External data ingestion via resource tokens
- Neural Memory Evaluation — Benchmark results, architecture decisions
- Search Quality Benchmark — Accuracy tests, reranking, best practices
- Retrieval Feedback & Eval Gate — Feedback signal + the no-self-update-loop policy (Agent Memory Substrate)
- Deployment — Production deployment with Caddy reverse proxy
- Contributing — Development setup, code style, PR workflow
- Security — Vulnerability reporting, security design
- Python SDK —
KaguraClient(MCP) plus REST clients for resources, files, secrets, workspaces, and agent bootstrap, and a documentFileIngestor - Project site: www.kagura-ai.com — overview, use cases, getting started paths
Contributing
See CONTRIBUTING.md for development setup, code style, and PR workflow.
License
來源:README.md,提交 38554bb
工具
0版本歷史
2- v0.82.0最新Sep 28, 2026
- v0.77.0Sep 24, 2026
評分
已滿足適用檢查項的 85%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
- 已宣告認證方式必需10 分
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Memory 整合

Memory.fit
fit.memory官方發布者
託管式 Memory.fit 伺服器,讓 AI 讀取你的訓練、睡眠、恢復與飲食資料,並寫回每週計畫、每日目標和飲食計畫。
pg.ddx.io: the PostgreSQL community's memory
io.ddx.pg官方發布者
pg.ddx.io: the PostgreSQL community's memory 的託管 MCP 服務,由 pg.ddx.io 發布;無需登入;Streamable HTTP;29 個工具。
var.gg Naming Memory
gg.var官方發布者
遠端 MCP 伺服器,可依領域概念推薦並檢索韓、日、中、越、英多語言的程式識別字名稱,並提供 ERD 結構查詢。

Counterparts
ai.counterparts
為 Claude Code 與 Claude Desktop 提供的本地優先長期記憶:助理自行寫下關於你與專案的筆記,並在之後的對話中回想起來。

LAHZE - Persian AI Memory Platform
由 GitHub 帳號 pedramgholizadeh 發布
以波斯語為先的地理記憶平臺:發現地點,起草併發布僅限波斯語的記憶。AI 翻譯