Self-Hosted Memory Layer for Claude Runs Free on Cloudflare

A Reddit user built second-brain-cloudflare, an open-source MCP server that adds persistent memory to Claude. It runs entirely on Cloudflare's free tier using Workers, D1 (SQLite), Vectorize, and Workers AI.
Key Features
- Four MCP tools:
remember,recall,list_recent,forget. - Semantic search via
recall: notes are vector-embedded usingbge-small-en-v1.5model via Workers AI and stored in Cloudflare Vectorize. Searches match by meaning, not keywords. - Works with Claude Desktop, Claude Code, and
claude.ai(via custom connectors).
How It Works
You add instructions to Claude's system prompt. The server is deployed via one-click deploy button on the repo. Context: remember stores a note, recall searches semantic embeddings, list_recent shows recent notes, forget deletes a note. The stack: TypeScript, Cloudflare Workers + D1 + Vectorize + Workers AI.
Tradeoffs and Implementation Details
The author notes that semantic search has tradeoffs — embedding quality, latency, and cost are discussed in the Reddit thread. The free tier handles personal use without issue.
📖 Read the full source: r/ClaudeAI
👀 See Also

OpenClaw Plugin Categories and Their Practical Functions
A Reddit post categorizes OpenClaw plugins by function, listing specific tools like commit-guard for preventing secret leaks, dep-audit for vulnerability scanning, and cortex-memory for layered memory management.

RelayCode VS Code Extension Routes Claude Code Through Sovereign RDUs
OpenGPU has released RelayCode, a VS Code extension that acts as a local proxy to route Claude Code or Copilot requests through their decentralized network to open-weight models like DeepSeek-R1 and MiniMax M2.5 running on sovereign reconfigurable dataflow units.

Memorine: A Local Memory System for OpenClaw Agents Using Python and SQLite
Memorine is a local memory system for OpenClaw agents that uses only Python and SQLite, with no external dependencies, API calls, or telemetry. It provides fact storage with full-text search, memory decay, contradiction detection, causal event chaining, and optional semantic search via fastembed and sqlite-vec.

A System for Claude Code to Learn Your Project Over Time
A developer created a simple setup to help Claude Code retain context between sessions by adding a CLAUDE.md file, a docs folder with project conventions, and three prompts for bootstrapping, refining, and capturing patterns.