Kagura Memory Cloud
OfficialSupports a self-hosted Ollama (or vLLM) backend as a local, private, zero-cost alternative for embeddings and cross-encoder AI reranking, configured through SELF_HOSTED_BASE_URL.
Uses the OpenAI API as the default embedding provider to generate semantic vectors for memories stored and searched by the server (configurable via OPENAI_API_KEY and EMBEDDING_PROVIDER).
This server has a remotely hosted endpoint. Open its connector listing for connection details, authentication requirements, and setup instructions:
Keep the context. Change the conversation.
OpenAI Plugin released: Kagura Memory Cloud is available in ChatGPT. Add the plugin and sign in to Kagura to save and recall memories in your conversations. See supported platforms for the other ways to connect.
You explained the project yesterday. Today you open a new chat, switch AI tools, or hand work to a teammate. The decisions and their reasons should come with you.
Kagura Memory Cloud gives your assistants a shared place to remember and recall that knowledge. Save a decision in one session; retrieve it in another client connected to the same workspace and context. Browse, edit, and organize the memories in the web UI.
It works with ChatGPT, Claude, Codex, Cursor, Gemini, Muse, Grok, and Microsoft 365 Copilot. Use the published ChatGPT plugin or connect a compatible client over MCP. Applications can also use the REST API or Python SDK.
When you… | Use shared memory to… |
Resume a project | Recover decisions, constraints, and unresolved work. |
Switch AI assistants | Reuse the same project knowledge across tools. |
Work with a team | Share knowledge through workspace and context roles. |
Change a decision | Replace an outdated memory and retain its history. |
Build an agent | Retrieve relevant context without sending the entire conversation log. |
Related MCP server: Agent Memory
Quick start
Choose how to try it
Start here | What you need | |
Hosted Kagura AI | An invited account and a compatible AI client. Cloud registration is currently invite-only. | |
Self-hosted Memory Cloud | Run the setup below | Docker Compose, Python 3.11+, Bash, and an embedding provider. |
Supported platforms
Client | Start here |
ChatGPT — released OpenAI Plugin | Add Kagura Memory Cloud, then sign in to your Kagura AI account. |
Claude / Claude Desktop | Connect over remote MCP and sign in to Kagura. |
Claude Code | Connect MCP; add the optional plugin for session workflows. |
Codex | |
Cursor | |
Gemini / Gemini CLI | Use a custom MCP connector or the CLI configuration. |
Muse | Add a remote MCP server and sign in to Kagura. |
Grok / Grok Bot | Connect over remote MCP and sign in to Kagura. |
Microsoft 365 Copilot | Connect through MCP and OAuth, with operator setup of the OAuth client and Microsoft registration. |
Other MCP clients / your own apps |
The published ChatGPT plugin connects to hosted Kagura AI and requires an account. For your own Memory Cloud deployment, use the custom MCP connection instructions.
Run locally
On Linux, macOS, or Windows with WSL2, with Docker running:
git clone https://github.com/kagura-ai/memory-cloud.git
cd memory-cloud
bash setup.shThe interactive setup generates configuration secrets, installs the pinned Python dependencies and Kagura CLI, starts the services, runs migrations, and creates an admin account and MCP configuration. It uses curl if it needs to install uv. Node.js runs inside Docker; a host Node.js installation is only needed for frontend development.
Memory search needs embeddings: configure an OpenAI API key or a reachable self-hosted embedding server. Google/GitHub sign-in is optional; the local admin can use a password and MFA. See the setup guide for manual steps and provider configuration.
Open | Purpose |
Sign in and manage your memories. | |
| Connect a local MCP client. |
Explore the running server's REST API. |
The root Compose stack is for local development. For a public server, use the deployment guide.
Try your first memory
In the web UI, create a context named my-first-project. A context groups memories for a project or topic.
Connect your AI client using MCP Client Setup. For Claude Code, setup generates a local
.mcp.json; restart the client to load it. Other clients have their own configuration. Web-based clients need a reachable HTTPS server, rather than your machine'slocalhost.Ask the assistant:
In Kagura's my-first-project context, remember: we chose PostgreSQL because the app needs transactions and relational queries.
Open a new conversation with the connected client and ask:
Search Kagura's my-first-project context. Which database did we choose, and why?
Look for the saved memory in the web UI and a recall tool call in the new conversation. Then repeat the question in another client with access to the same context.
Kagura stores what you or an integration explicitly saves. Connecting a client does not automatically import all of its past chats. Keep credentials out of memories and version control.
Benchmarks: accuracy and cost together
How much history does an assistant need to answer well? Our public benchmark report measures answer quality as well as cost.
LoCoMo, 472 questions across 3 conversations | KMC v0.152.0 | Full conversation input |
Answer accuracy, strict grading | 84.2% | 89.0% |
Memory tokens read at answer time | 80% fewer | Baseline |
Answer-time model cost | 66% lower | Baseline |
These are developer-run, preregistered results from November 10, 2026, excluding adversarial questions. Costs exclude memory construction and service fees. The tradeoff includes lower accuracy than full-history input; these are not official full-dataset scores or a guarantee for your workload.
A November 12 rerun of v0.156.0 scored 91.3% with lenient grading / 83.7% with strict grading. It reused the same conversations after tuning and was not preregistered. Keep it separate from the original run and its cost measurements.
Evaluation is ongoing. We are running additional evaluations and working to improve memory retrieval and answer accuracy. The published results above reflect the tested versions and conditions.
See the benchmark reading guide for FC and LongMemEval results, comparison limits, and the distinction between answer accuracy and retrieval metrics. English public report · 日本語・LoCoMo詳細
What you get
Capability | How it helps |
Hybrid retrieval | Semantic search + BM25 keyword matching, with optional reranking. |
Memory you can maintain | Update, supersede, inspect revisions, and remove outdated knowledge. |
Session continuity | Bootstrap a session with context, pinned notes, upcoming items, and recent changes. |
Related-memory discovery | Explore a graph of related memories; supported searches can strengthen associations. |
Team controls | Workspaces, private/shared contexts, roles, and scoped credentials. |
Web management | Search and edit memories, inspect history, manage members and integrations. |
Your deployment choice | Self-host the Apache-licensed server and choose your embedding provider. Model and infrastructure costs depend on that choice. |
MCP tools
Start with remember, recall, and reference. Session tools such as bootstrap and changes_since help an agent pick up previous work. Use update_memory or supersession when a fact changes.
The default /mcp endpoint lists the core tools. Add ?profile=full for the full catalog, or ?add_tools=explore for graph exploration. Tool visibility and access permissions are separate; workspace and context roles still apply. See tool profiles and roles.
Getting started with Claude Code
Once MCP is connected, the optional plugin adds guided session and memory workflows. In Claude Code:
/plugin marketplace add kagura-ai/memory-cloud
/plugin install kagura-memory@kagura-memory-cloudUse /kagura-memory:session-start when you return to a project and /kagura-memory:session-summary to save useful knowledge before leaving. /kagura-memory:recall, :remember, and :maintain support day-to-day use. Installation and hook configuration are covered in MCP Client Setup; Codex users have a separate plugin setup.
How it works
People and AI clients ── MCP / REST ── Kagura Memory Cloud
├─ Workspace → contexts → memories
├─ PostgreSQL: records, keywords, graph
├─ Qdrant: semantic retrieval
└─ Web UI: browse, edit, sharerecall finds relevant memories through hybrid search. explore follows relationships for discovery. Keeping these paths separate lets you choose direct retrieval or related knowledge. Background Sleep Maintenance consolidates memory according to configuration.
Built with FastAPI, PostgreSQL, Qdrant, Redis, and Next.js. Read the architecture and core concepts for the underlying design.
Documentation
I want to… | Read |
Install and save my first memory | |
Connect an AI client | |
Build an integration | |
Write useful memories | |
Evaluate quality | |
Deploy and operate | |
Find a specialist guide | |
See what changed |
Contribute
Bug reports, documentation improvements, and contributions are welcome. Start with CONTRIBUTING.md. Report vulnerabilities through SECURITY.md.
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
Hosted memory for AI agents over MCP. One memory shared by all your agents.
Persistent, portable memory for AI assistants — your private memory graph, from any MCP client.
Persistent, inspectable memory for AI agents with lineage, correction, and a hosted MCP endpoint.
Related MCP Servers
- AlicenseCqualityAmaintenanceProvides AI agents with a human-inspired memory layer via MCP, enabling episodic and semantic memory recall, forgetting curves, consolidation, and contradiction detection. It integrates with MCP clients to offer local-first, dependency-free memory management.981MIT
- AlicenseNot gradedqualityBmaintenanceProvides a self-hosted shared memory service that lets AI agents capture and recall durable facts, decisions, and context across multiple tools and MCP-capable clients.3MIT
- AlicenseNot gradedqualityBmaintenanceA self-hosted memory server that gives AI agents a shared, persistent second brain, enabling verbatim storage, hybrid semantic/keyword retrieval, and a synthesized wiki layer through MCP tools.2MIT
- AlicenseNot gradedqualityBmaintenanceProvides a single self-hosted memory service that any AI assistant can write to and recall from over MCP or REST, storing episodic, semantic, procedural, reflective and session memories in one shared store. Enables agents to remember events as they happen and receive a ranked, token-budgeted brief of relevant history, counts, lessons and procedures before they act.2MIT