rhizome
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
rhizome.
Long-term memory for your AI agents. One shared memory across Claude, ChatGPT and friends, served over MCP from Cloudflare.
Live: rhizome.shiftbloom.studio (explorer behind Cloudflare Access, MCP at /mcp) · License: AGPL-3.0-or-later
rhizome is a long-horizon memory that belongs to a person, not to an agent. Claude, ChatGPT, Hermes, Cursor and your own agents all read and write the same memory, so each of them knows how you work, what you decided and what you prefer, whichever provider it comes from.
It was built for Cloudflare: one Durable Object per person, Vectorize for semantic search, R2 for the raw history and Workers AI for embeddings and reranking. There is no server, database or GPU to run yourself, and an idle memory costs only its storage.
The same code also runs on your own machine. npm run local or docker compose up starts it on Node with SQLite files and any OpenAI-compatible model server, such as Ollama or LM Studio. See Run it without Cloudflare.
Status: version 1.0. Store and find, fact extraction with conflict resolution, nightly reflection, a 3D memory explorer and a remote MCP server for Claude, ChatGPT and other MCP clients work. The evaluation harness and the bi-temporal knowledge graph come next. See Roadmap.
Features
One memory per person, shared by every agent and provider, split into scopes for the profile, each project and each agent's private notes.
Hybrid recall: vector search, full-text search and recent items, fused and reranked, within a token budget.
Notes are extracted from conversations in the background, compared with what is already known, and updated or marked as disputed. What you said yourself beats what an agent guessed.
A nightly reflection recomputes importance, archives what is stale, merges duplicates and rewrites your profile and project summaries.
A 3D memory explorer to search, confirm and forget memories.
A remote MCP server with OAuth for Claude, ChatGPT and other MCP clients, plus API keys for Claude Code, Hermes and your own agents.
Imports of
CLAUDE.md,AGENTS.mdand Hermes memory files.Runs on Cloudflare, or on your own machine with Node, SQLite and any OpenAI-compatible model server.
Related MCP server: engram
How it works
agents (any provider) ─> gateway worker ─> one MemoryObject per person (SQLite)
auth, scopes episodes, notes, blocks, FTS5, audit log
│
┌───────────────────────┼───────────────────────┐
v v v
R2 raw episodes outbox ─> Workers AI bge-m3 ─> Vectorize
(namespace = person, filter = scope)
recall: bge-m3 + Vectorize ─┐
FTS5 / BM25 ────────┼─> reciprocal rank fusion ─> bge-reranker ─> token budget ─> context
recent items ───────┘The person is the unit. Every person gets one Durable Object. It is the single writer for all their memory, so Claude and Hermes never race each other.
Scopes split the memory:
profile: working style, preferences, values. Every agent reads it.project:<slug>: decisions and conventions of one project.agent:<slug>: private notes of one agent, invisible to the others.
Clients are agents of a provider (
claude-codebyanthropic,hermesbynous). Each has its own API key and grants that say which scopes it may read and write. Every memory records which agent, provider and model wrote it.Lossless at the bottom. Episodes are stored verbatim in R2. Chunks, notes and vectors are derived and can be rebuilt, for example after switching the embedding model.
Cheap reads. Recall uses no generative model: an embedding, a vector query, SQLite full-text search and a small reranker.
Trust levels on notes (
user_explicit,user_confirmed,agent_inference,tool) feed ranking and conflict resolution: what you said yourself beats what an agent guessed.
What happens in the background
Everything runs inside the person's Durable Object, triggered by its alarm, with Workers AI models by default.
Extraction. A few seconds after an episode arrives, DeepSeek V4.1 Flash turns it into short English notes (preference, decision, fact, learning) with a scope, a trust level and the people, projects and tools it mentions. An episode without user messages can never produce a note that claims the user said something.
Resolution. Each new fact is compared with the notes of its scope using the embeddings stored next to them, so nothing waits for the vector index.
At a similarity of 0.93 or more it is the same fact: the existing note gains a confirmation, and keeps the higher of both trust levels.
Between 0.78 and 0.93 the model decides between same, update, contradicts and new. An update replaces the old note (
superseded), and recall follows the chain to the current version.A guess never replaces what the person said. Such a conflict is stored as
disputedand shown in the explorer for review, where confirming one side settles it.
Linking. New notes get
similaredges to their nearest neighbours. Notes written directly through the API are merged with an existing equal note, or linked.Reflection, nightly at 03:17 UTC and on demand:
Importance is recomputed from trust, confirmations, recall count and a decay whose half-life depends on trust (a year for what you said, two months for an agent's guess).
Episode chunks that are older than a year, were never recalled and are unimportant are archived. Their raw episode stays in R2.
Duplicates the day produced are merged.
GLM 5.3 rewrites the
distilled-profileblock from the profile notes, and asummaryblock for each changed project. It only runs when the notes changed.
Set EXTRACTION=off to store episodes without extraction, and EXTRACTION_MODEL or REFLECTION_MODEL to use other Workers AI models. At most EXTRACTION_DAILY_LIMIT episodes (default 200) per person and UTC day go through extraction; the rest are stored and searchable without extracted notes.
Memory explorer
The web UI at / shows the memory as a 3D graph.
Notes are coloured by trust, and their size follows importance.
Conversations and the people, projects and tools they mention are nodes too.
Search runs the same hybrid recall as the agents and shows the scores and sources of every result.
A detail panel shows where a memory came from, what it replaced and what contradicts it. From there you can confirm or forget it, everywhere.
You can also write notes about yourself, and start a reflection.
The explorer opens the memory of the person whose email address matches the signed-in user. AUTH_MODE picks how people sign in:
| Sign-in | Settings |
| Cloudflare Access in front of rhizome. The app checks the Access token itself as well |
|
| rhizome's own sign-in page for one person, with a signed cookie that lasts a week. The person is created on the first sign-in |
|
| A sign-in proxy you already run, such as Authelia, oauth2-proxy or Tailscale Serve, passes the email address in a header |
|
Until the chosen mode is fully configured, the explorer API answers 404 and nobody can approve an OAuth connector. The same sign-in protects the OAuth consent page. In password mode, sign-in attempts are limited to 10 a minute per address, and changing LOGIN_EMAIL, LOGIN_PASSWORD or SESSION_SECRET signs every session out.
MCP
https://<your host>/mcp is a remote MCP server (Streamable HTTP, stateless). It has six tools:
Tool | What it does |
| Profile, working style and, with a |
| Hybrid search across the profile, the agent's own notes and every project it may read, or one |
| Stores one note. |
| Stores a conversation verbatim; notes are extracted from it in the background |
| Imports a |
| Deletes a note or a conversation by id |
There are two ways to connect.
OAuth, for Claude, ChatGPT and any client that adds a server by URL. Add
https://<your host>/mcpas a custom connector. The client registers itself, and you approve it on a consent page that needs you signed in. There you choose the agent and provider names its notes are signed with. Approving creates a client with the default grants, or reuses the one you already have for that agent and provider. Access tokens are API keys that expire after an hour and are refreshed automatically, so revoking the client in your token manager ends the connection.API key, for Claude Code, Hermes and other clients that can send a header:
claude mcp add --transport http rhizome https://memory.example.com/mcp --header "Authorization: Bearer $RHIZOME_KEY"API
All memory endpoints take Authorization: Bearer <client api key>.
Method | Path | Purpose |
|
| Store a conversation turn or any text ( |
|
| Store a note ( |
|
| Hybrid search ( |
|
| Cache-friendly core for a system prompt: blocks plus the most trusted notes. Supports |
|
| List working-memory blocks |
|
| Create or replace a block ( |
|
| List episodes, newest first |
|
| Raw episode from R2 |
|
| Forget a note or a whole episode, everywhere |
|
| Import a memory file ( |
|
| Page through everything the client may read |
|
| Counts and database size |
|
| The calling client and its grants |
Recall leaves out superseded and archived notes, and returns disputed ones with a lower score.
# remember something about yourself
curl -X POST https://memory.example.com/v1/memory/notes \
-H "Authorization: Bearer $RHIZOME_KEY" -H "Content-Type: application/json" \
-d '{"scope":"profile","kind":"preference","trust":"user_explicit","content":"Use the AGPL-3.0-or-later license for every project."}'
# ask from any other agent
curl -X POST https://memory.example.com/v1/memory/recall \
-H "Authorization: Bearer $RHIZOME_KEY" -H "Content-Type: application/json" \
-d '{"query":"Which license should this repo use?","budgetTokens":800}'Admin endpoints (/v1/admin/users, /v1/admin/clients) create people and agent clients, and PATCH /v1/admin/users/:id with {"email": "..."} links a person to the address they sign in to the explorer with. They take Authorization: Bearer <ADMIN_TOKEN> and are disabled when no ADMIN_TOKEN secret is set.
API keys
A client can hold several keys, each with an optional label and expiry date. Keys are stored as SHA-256 hashes; the plain key is returned once. A key is refused as soon as its expiry has passed or it is revoked.
Method | Path | Body |
|
|
|
|
| optional |
|
| – |
|
| – (prefix = first 10 characters of the key) |
field offers the same through a screen, using a D1 binding to rhizome-control.
Tech stack
TypeScript on Hono, bundled with esbuild. The explorer in
web/has its own build.Cloudflare Workers with Durable Objects (SQLite), D1, R2, Vectorize, Workers AI, static assets, rate limiting and a Cron Trigger
Node.js 26 for builds and tests, and as a second runtime with
node:sqliteand any OpenAI-compatible model server, also as a Docker imageVitest for tests.
npm run checkruns the typecheck, the explorer build and a dry-run deploy.
Self-hosting
rhizome runs in two places. Both use the same code, API and MCP server.
Cloudflare | Node (your machine, a VPS, a homelab) | |
Memory per person | Durable Object with SQLite | SQLite file in |
Control plane | D1 |
|
Raw episodes | R2 | files in |
Semantic index | Vectorize | exact cosine search, |
Models | Workers AI | any OpenAI-compatible server (Ollama, LM Studio, llama.cpp, vLLM, OpenAI), or Workers AI over REST |
Nightly reflection | cron trigger | timer in the process |
The Node version uses small stand-ins for the Cloudflare bindings (src/node/), so nothing in the memory logic differs. It is meant for one person or a small group: vector search scans every vector of a person, which is quick for tens of thousands of memories.
Run it without Cloudflare
You need Node 26 or Docker, and a model server for embeddings and extraction. These steps use Ollama.
With Docker
cp .env.example .env # set LOGIN_EMAIL, LOGIN_PASSWORD, SESSION_SECRET and ADMIN_TOKEN
docker compose up -d
docker compose exec ollama ollama pull bge-m3
docker compose exec ollama ollama pull qwen3:8bWith Node
ollama pull bge-m3 && ollama pull qwen3:8b
cp .env.example .env # same settings as above
npm run setup
npm run local # builds the explorer and the server, then starts on http://localhost:8787Open http://localhost:8787 and sign in with LOGIN_EMAIL and LOGIN_PASSWORD. The first sign-in creates you as a person. To connect an agent, add <PUBLIC_URL>/mcp as an MCP server and approve it (OAuth), or create a client with an API key through the admin API as in step 4 below. Your user id for that is userId at http://localhost:8787/ui/api/me while you are signed in.
Things worth knowing:
Models.
EMBEDDING_MODELandEXTRACTION_MODELmust be models your server serves.bge-m3matches the Worker's embeddings. Any chat model that writes JSON reliably works for extraction; smaller ones miss more facts.EXTRACTION=offstores conversations without extracting notes.AI_PROVIDER=cloudflarewithCLOUDFLARE_ACCOUNT_IDandCLOUDFLARE_API_TOKENuses Workers AI and its default models from Node.Reranking is optional: point
AI_RERANK_URLat a/rerankendpoint (llama.cpp with--reranking, vLLM, TEI or Infinity). Without it, recall keeps the fused order of vector and full-text search.Reachable from elsewhere. rhizome listens on
127.0.0.1unless you setHOST. Put a reverse proxy with TLS in front (Caddy, nginx, Traefik) and setPUBLIC_URLto its address, because OAuth for Claude and ChatGPT needs anhttpsURL they can reach. WithTRUST_PROXY=truerhizome takes the client address from the lastX-Forwarded-Forentry, the one your proxy added; only set it when the proxy is the only way in.Sign-in.
AUTH_MODE=passwordneeds nothing else. Withproxy, rhizome only believes the email header when the proxy also sendsPROXY_AUTH_SECRET, or when the connection comes from an address inPROXY_TRUSTED_IPS(the TCP peer, never a header). Use the address list for proxies that can't add headers, such as Tailscale Serve. A Cloudflare Tunnel with Access works too: keepAUTH_MODE=access.Backups. Everything lives in
DATA_DIR. Stop the server, or usesqlite3 .backup, and copy the folder.
Run it on Cloudflare
You need a Cloudflare account with Workers Paid and a zone for the hostname.
Create the resources
npm install npx wrangler d1 create rhizome-control npx wrangler r2 bucket create rhizome-episodes npx wrangler vectorize create rhizome-memory --dimensions=1024 --metric=cosine npx wrangler vectorize create-metadata-index rhizome-memory --propertyName=scope --type=string npx wrangler vectorize create-metadata-index rhizome-memory --propertyName=kind --type=stringFill in your settings.
wrangler.jsoncis a template with placeholders. Copy.env.deploy.exampleto.env.deployand set your hostname and the D1 database id. Optional settings are the Access application of the explorer and the operator details for/imprintand/privacy; both pages answer 404 without them.npm run deployrenders everything intowrangler.deploy.jsonc, which is not committed. To deploy from Workers Builds instead, see Deploy with Workers Builds.Deploy
npm run setup npm run migrate npm run deploy npx wrangler secret put ADMIN_TOKEN # any long random stringCreate yourself and your agents
curl -X POST https://memory.example.com/v1/admin/users \ -H "Authorization: Bearer $ADMIN_TOKEN" -d '{"name":"me"}' curl -X POST https://memory.example.com/v1/admin/clients \ -H "Authorization: Bearer $ADMIN_TOKEN" \ -d '{"userId":"<id from above>","agent":"claude-code","provider":"anthropic"}'The response contains the client's API key once. Repeat for every agent.
Protect the explorer. Without Cloudflare Access, set
AUTH_MODE=passwordandLOGIN_EMAILas build variables andLOGIN_PASSWORDandSESSION_SECRETas secrets, and skip the rest of this step. With Access, create a Cloudflare Access application for your hostname. Add a second one with a Bypass policy for/v1/*,/mcp,/.well-known/*,/oauth/token,/oauth/register,/oauth/revoke,/privacy,/datenschutz,/imprint,/impressum,/fonts/*and/favicon.svg, so agents, MCP clients and the legal pages stay reachable. Agents still need their API key or OAuth token. Leave/oauth/authorizebehind Access: that is where you approve a connector. Then setACCESS_AUD(the application's audience tag) andACCESS_TEAM_DOMAIN.
If your zone challenges bots, add a WAF skip rule for requests to your hostname that carry an Authorization header, otherwise agents get a challenge page instead of JSON.
Deploy with Workers Builds
rhizome.shiftbloom.studio deploys with Workers Builds on every push to main, and no API token is stored on GitHub. Connect the repository to the Worker in the Cloudflare dashboard (Settings > Build) and set the names from .env.deploy.example as build variables. Use npm ci && npm ci --prefix web && npm run build:web && npm run config as the build command and npx wrangler deploy -c wrangler.deploy.jsonc as the deploy command. The build picks up Node 26 from .node-version.
Costs
On Node the costs are your machine's. On Cloudflare, measured list prices on Workers AI and Vectorize (November 2026). An idle memory costs only storage, roughly $0.20 a month after a year of heavy use. Active use is dominated by fact extraction, about $0.0006 per short episode with DeepSeek V4.1 Flash, and by the nightly reflection, which only calls GLM 5.3 when notes changed. Details in docs/m0-spike.md.
Roadmap
Milestone | Scope |
M0 | Spike: model comparison, FTS5 in Durable Objects, Vectorize latency (results) |
M1 | Store and find: gateway, MemoryObject with scopes, R2, Vectorize, hybrid recall, API keys |
0.2 | First parts of M4, M6 and M9: extraction with conflict resolution, links, decay, nightly reflection, 3D memory explorer behind Access |
M2 | Remote MCP server with OAuth for Claude, ChatGPT and other MCP clients; import of CLAUDE.md and Hermes memory files (0.3) |
M3 | Evaluation harness (LongMemEval, LOCOMO, own data) in CI |
M4 | Fact extraction and update resolver (add, update, invalidate) via Queues |
M5 | Bi-temporal knowledge graph, entity resolution, as-of queries |
M6 | Reflection and dreaming: profile distillation, decay, communities, block rewriting |
M7 | Retrieval v2: query planning, deep mode, feedback |
M8 | Procedural memory (skills) and a Hermes memory provider plugin |
M9 | Memory explorer UI and a memory proxy for any OpenAI- or Anthropic-compatible client |
M10 | Hosted version and control plane |
Contributing
Issues and pull requests are welcome. Start with CONTRIBUTING.md.
Security
Please don't report vulnerabilities in public issues. Use GitHub's private vulnerability reporting on this repository or email safety@shiftbloom.studio. SECURITY.md has the details.
License
Copyright © 2026 shiftbloom studio and contributors.
rhizome is free software under the GNU Affero General Public License, version 3 or (at your option) any later version (AGPL-3.0-or-later). If you run a modified version as a service, you share your changes under the same license.
rhizome is part of shiftbloom studio, an open studio from Hamburg. All of our apps are open source at github.com/shiftbloom-studio.
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 AI memory shared across Claude, ChatGPT, coding agents, and compatible MCP clients.
Persistent memory for AI assistants. Save once; recall from Claude, ChatGPT, or any MCP client.
Persistent memory for AI agents across Claude, ChatGPT and any MCP client.
Private persistent memory for Claude, ChatGPT & Gemini via MCP - semantic search, zero-code setup.
Related MCP Servers
AlicenseNot gradedqualityDmaintenanceGives Claude Desktop, Cursor, Cline, and other MCP-compatible AI tools persistent memory, enabling them to store and recall information seamlessly across sessions.1Apache 2.0- AlicenseNot gradedqualityDmaintenanceGives AI persistent personal memory with hybrid search, temporal decay, and knowledge graph. Works with Claude and any MCP client.41 npm10MIT
- AlicenseAqualityBmaintenanceEnables personal AI memory management through MCP tools for adding, searching, exporting, and deleting memories, with knowledge-graph retrieval and multi-hop association for clients like Claude Desktop and Cursor.61Apache 2.0
- AlicenseNot gradedqualityBmaintenanceProvides a shared long-term memory across any LLM via MCP, enabling semantic recall, session save/reload, and multimedia memory management with local embeddings and private storage.MIT