Every Claude session starts fresh. You copy context, explain your setup, reintroduce your project, and then do it all over again the next day. I got tired of this and created a solution.

second-brain-cloudflare is a self-hosted MCP server that provides Claude, ChatGPT, Cursor, and any MCP-compatible client with persistent memory across sessions. It operates entirely on Cloudflare's free tier. Here’s how it works.

The stack

Cloudflare Workers: MCP server, REST API, and web UI, all from one wrangler deploy

D1 (SQLite): stores entry content, tags, source, timestamps, and vector chunk IDs