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

Exploring the Claude Code Guidelines: A Minimalist Approach in 65 Lines
The Claude Code extension encapsulates essential AI coding principles in just 65 lines of Markdown, emphasizing 'Think Before Coding'. Despite its simplicity, it has gained notable traction among developers.

Open-source structural hallucination checker for AI agent pipelines
A new open-source tool provides four suppressors to catch structural failures in AI agent pipelines, including grounding enforcement, prompt injection detection, JSON validation, and tool response verification. Available as both a REST API and MCP server with a free tier of 500 requests/month.

KANBAII: A Visual Kanban Board Built with Claude Code for AI-Assisted Development
A developer built KANBAII, a local kanban board tool entirely with Claude Code over two months. It provides visual task management, AI planning, and parallel execution modes for Claude Code workflows.

Using a Local LLM as a Claude Code Subagent to Reduce Context Usage
A developer shares a method to use Claude Code to delegate tasks to a local LLM via LM Studio's API, keeping file content out of Claude's context. The approach uses a ~120-line Python script with tool-calling to read files locally and return summaries.