
second-brain-cloudflare
by rahilp·★ 61·Score 46
Self-hosted MCP server providing personal memory layer across AI tools like Claude and ChatGPT.
Overview
Second Brain is a memory layer that works across every AI tool you use. It stores information once and allows you to recall it in Claude, ChatGPT, Cursor, or any MCP client. Built on Cloudflare Workers with D1 SQLite and Vectorize, it offers five tools: remember, append, recall, list_recent, and forget. The service is self-hosted on Cloudflare's free tier with one-click deployment.
Try asking AI
After installing, here are 6 things you can ask your AI assistant:
When to choose this
Choose this MCP server if you want a consistent memory layer across multiple AI tools and are looking for a simple, self-hosted solution that requires minimal technical setup.
When NOT to choose this
Avoid this if you need enterprise-grade security features, require high-scale data processing, or want the ability to easily migrate data between different providers.
Tools this server exposes
5 tools extracted from the READMErememberStore anything — ideas, decisions, project context
appendAdd updates to existing entries without creating duplicates
recallSemantic search with recency bias — finds things by meaning, prioritizes fresh info
list_recentBrowse recent memories chronologically
forgetDelete an entry and all its chunks
Comparable tools
Installation
Installation
- Click the 'Deploy to Cloudflare' button in the README
- During deployment, set an AUTH_TOKEN (you can use a memorable phrase or generate a secure one)
- Save the token as you'll need it to connect AI clients
- Connect Claude Desktop by adding to
claude_desktop_config.json:
{
"mcpServers": {
"second-brain": {
"command": "npx",
"args": ["@modelcontextprotocol/server-cloudflare", "https://<your-worker-url>"],
"env": {
"AUTH_TOKEN": "<your-token>"
}
}
}
}- For other clients, follow the specific instructions in the documentation.
FAQ
- What's the storage limit?
- The free Cloudflare tier is sufficient for personal use with generous limits on D1 and Vectorize services.
- Can I migrate my data if I stop using Cloudflare?
- Data is stored in D1 SQLite which can be exported. However, there's no built-in migration tool at this time.
- Is my data private?
- Yes, it's self-hosted on your Cloudflare account with authentication token protection.
On Hacker News
Recent discussion from the developer community.
- Story by rahilpirani · 2026-05-13
Compare second-brain-cloudflare with
Last updated · Auto-generated from public README + GitHub signals.