OwnMemory
OfficialStores encrypted memories in a D1 database and uses Cloudflare Workers AI for semantic search embeddings within the user's own Cloudflare account.
Stores encrypted memory files in an OwnMemory folder in the user's Google Drive, providing a storage backend for memories.
OwnMemory lets Claude remember you across chats and devices, with the memories stored encrypted under a key only you hold, in storage you own.
Claude calls a remote MCP server running in your own Cloudflare account. The server encrypts each memory and stores it in a D1 database in that account (the one-click default) or in an OwnMemory folder in your Google Drive. It works in the official Claude apps on the web, iPhone and Android.
Get started: create a free Cloudflare account and connect GitHub to it first (steps), then click the button above, choose a random owner code of 12+ characters, and open your server's address to follow its four setup steps. About 5 minutes, on a free Cloudflare account. Full guide, including Google Drive storage: docs/setup.md.
Status: early (v0.2). Built and tested for Claude: on the web, iPhone and Android, and in Claude Code. Other MCP clients that support remote servers with OAuth should be able to connect, but are untested.
How your memories stay yours

Your passphrase never leaves your browser. When you connect Claude, the passphrase page turns it into a key that unlocks a random 256-bit memory key. Only the locked copy of that key is stored, in your storage (
keyinfo.json).Every memory is encrypted (AES-256-GCM) before it is stored, in a file with a random name. Your storage provider and anyone with the files see only ciphertext.
The server keeps no key at rest. The memory key and your Google token live only inside the OAuth grant, which is encrypted with Claude's access token. The MCP handler is stateless: nothing is written to Durable Objects or logs.
Hard rules in code. Blocked categories, a pause switch, and a filter that refuses passwords, API keys and card numbers, whatever the AI decides.
Search by meaning, still private. Embeddings come from Cloudflare Workers AI in your own account and are stored encrypted like the memories. Set the
SEMANTIC_SEARCHsecret tooffto keep memory text away from it; search then uses keywords only.See and fix what it remembers. Your server's
/memoriespage lets you browse, search, edit, add and delete memories, decrypted only in your browser.No lock-in. Download all on the memories page gives you every memory as Markdown, and ownmemory.app/decrypt decrypts a downloaded copy in your browser, even without your server.
The one unavoidable exposure: the server and Anthropic see a memory's text while a save or search runs, because Claude sends plain text. Running the server yourself is the safeguard.
Who else could get at your memories, person by person, and how to keep them out: docs/security-model.md.
Related MCP server: memoraeu-mcp
Tools Claude gets
Tool | What it does |
| Called at the start of a chat: returns the memory mode, any message for you, and (in OwnMemory-only mode) your profile, preferences and recent work |
| Search by meaning and keywords, English, Chinese or mixed (finds "What do I like to drink?" without shared words) |
| Most recent memories, optionally by category |
| Saves one fact, after the hard rules allow it; points out facts already saved, even when worded differently |
| Saves up to 50 facts at once, for example everything Claude's built-in memory knows |
| Changes a fact, keeping the previous wording as dated history |
| Deletes a memory; it stays 30 days in D1, or in the Drive trash |
| Finds memories with the same wording or meaning, to merge |
| Records how you use OwnMemory alongside Claude's memory: ramp-up, OwnMemory only, or keep both |
Repository layout
Path | What's there |
| The Cloudflare Worker: OAuth and sign-in flow ( |
| Scripts for the passphrase page, the setup wizard, the memories page and the passkey / authenticator sign-in step |
| Encryption, the memory file format and the zip builder, shared by the browser, the Worker, the decrypt tool and |
| The ownmemory.app landing page and the decrypt page: static files, no data collected |
| Local export to plain Markdown |
| Unit tests ( |
| Setup guide, "Who can read your memories" and the key-flow diagram |
| Logo sources from the design canvas and PNG/SVG exports |
Contributing, security and license
Contributions are welcome; see CONTRIBUTING.md. Contributors sign a short contributor license agreement.
Found a security problem? Please report it privately: SECURITY.md.
Licensed under the Apache License 2.0. "OwnMemory" and the OwnMemory logo are trademarks of the project and are not covered by the license; forks need a different name.
This server cannot be deployed
Maintenance
Related MCP Connectors
Encrypted long-term memory shared across your AI assistants (Claude, ChatGPT, Perplexity).
A second brain for Claude: remembers your work, plans your day, encrypted under a key only you hold.
Private persistent memory for Claude, ChatGPT & Gemini via MCP - semantic search, zero-code setup.
AI personas with a lasting, encrypted memory per project, for Claude Code. Hosted in France.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceSelf-hosted semantic memory layer for Claude and MCP-compatible AI clients. Store notes, search by meaning not keywords, and recall relevant context automatically across sessions. Runs free on Cloudflare Workers, D1, Vectorize, and Workers AI0809MIT
- AlicenseNot gradedqualityDmaintenanceZero-knowledge persistent memory layer for Claude with client-side encryption and semantic search.1MIT
- AlicenseNot gradedqualityDmaintenanceA minimal, tag-free personal memory system that syncs across all Claude interfaces (mobile, web, desktop, Claude Code). Built on Cloudflare's edge stack for zero-maintenance serverless operation.5 npmMIT
- AlicenseNot gradedqualityDmaintenanceA self-hosted memory layer for Claude using plain markdown files, enabling persistent context across different Claude accounts.7 npmMIT