# OwnMemory

Stores Claude's cross-session memory in encrypted files inside your personal Cloudflare infrastructure. Useful when you want persistent context without sharing raw data with third-party servers.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 1
- Author: ownmemoryhq
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/ownmemoryhq/ownmemory
- Updated: 2026-10-17
- HTML: https://affpapa.org/en/nevibecode/mcp/ownmemory

## What it does

The service runs as a Cloudflare Worker that connects to either a D1 database or a Google Drive folder. Each record is protected with AES-256-GCM encryption before saving under a randomized filename. Your master passphrase stays strictly in the local browser session. The storage backend only ever holds ciphertext.

Natural language lookup relies on Cloudflare Workers AI embeddings inside the same account. If you want to prevent text analysis by AI models, set the `SEMANTIC_SEARCH` secret to `off` to force pure keyword matching. Built-in filters automatically block credit card numbers, passwords, and API credentials from entering storage.

Anthropic and your Worker briefly inspect unencrypted payload during an active tool call, because Claude communicates in plaintext. You can inspect or purge records via the `/memories` dashboard, or export them into Markdown for local decryption.

## Requirements
- Remote server: `https://{server_address}/mcp`

## Install

### Claude Code (native platform)

1. **Template address**
- The server address is a template: replace {…} or […] with your own values

2. **Platform CLI: remote server**
```bash
claude mcp add --transport http ownmemory https://{server_address}/mcp
```

### Codex

1. **Template address**
- The server address is a template: replace {…} or […] with your own values

2. **Platform CLI: remote server**
```bash
codex mcp add ownmemory --url https://{server_address}/mcp
```

### Cursor

1. **Template address**
- The server address is a template: replace {…} or […] with your own values

2. **Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "ownmemory": {
            "url": "https://{server_address}/mcp"
        }
    }
}
```

### GitHub Copilot

1. **Template address**
- The server address is a template: replace {…} or […] with your own values

2. **Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "ownmemory": {
            "type": "http",
            "url": "https://{server_address}/mcp"
        }
    }
}
```

### Gemini CLI

1. **Template address**
- The server address is a template: replace {…} or […] with your own values

2. **Platform CLI: remote server**
```bash
gemini mcp add -t http ownmemory https://{server_address}/mcp
```

## When to use it
- preserve agent context across chats while keeping storage self-hosted
- protect saved facts with client-side AES-256-GCM encryption
- stop API keys and passwords from being stored in memory files
- export records as Markdown for offline browser-based recovery

## Example prompts
- Save into OwnMemory that our team uses Cloudflare Workers for backend tasks
- Search your memory for our previous discussion about database schemas
- Update my project profile and remove the retired staging server details

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 392262
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33989
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81163
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119231
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47577
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43902

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
