← Back to directory
S

Second Brain

Community
One memory layer, every AI tool.
GitHub source repository ↗
★ 734 Stars Category · Other Very popular Source revision 99f1c1a2a005
57FMRS · C
Reliability
5/20
Security and permissions
10/20
Maintenance
14/20
Documentation
15/20
Setup experience
13/20

This server offers rich memory features with semantic search, automatic linking, and multiple capture methods, and flexible deployment. Main limitation is that it requires a Cloudflare account and self-hosting, suited for personal use. Data control and privacy are highlights, but users take on operational responsibility.

Read the FMRS scoring method →

Second Brain is a self-hosted MCP server that provides a unified persistent memory layer for AI tools like Claude, ChatGPT, Cursor, and Codex. It runs on your own Cloudflare account, using Cloudflare Workers, D1, Vectorize, and Workers AI for semantic search and memory management. Supports saving from multiple sources including CLI, browser extension, Obsidian plugin, iOS Shortcuts, Notion sync, calendar, and email capture. Data is fully under your control with OAuth authentication supported.

Tools

remember
Store ideas, decisions, preferences, and project context.
append
Add an update to an existing memory.
update
Replace an existing memory.
recall
Find memories by meaning rather than exact wording.
list_recent
Browse recently saved memories.
forget
Permanently delete a memory.
link
Explicitly connect two memories.
connections
Get direct connections of a memory.

Setup

Install Second Brain in three ways: 1) Desktop app (recommended): Download for Mac/Windows, follow guided setup in about two minutes. 2) One-click Cloudflare deploy: Click 'Deploy to Cloudflare', enter dimensions 384, cosine metric, and your AUTH_TOKEN; after deployment, copy your Worker URL. 3) Manual deployment: Clone the repo, run npm install, npm run vectors:create, and npm run deploy. Then connect AI clients via curl scripts or manual configuration.

claude_desktop_config.json
{
  "mcpServers": {
    "second-brain": {
      "url": "https://YOUR-WORKER-URL/mcp",
      "headers": {
        "Authorization": "Bearer YOUR-AUTH-TOKEN"
      }
    }
  }
}

Fit and risk

Best for

  • Individual users needing shared persistent memory across multiple AI tools.
  • Developers who want to self-host a memory layer on Cloudflare's free tier.
  • Users prioritizing data privacy and control, as data stays in their own cloud account.
  • Users wanting a quick setup with complete ecosystem support (desktop app, CLI, extensions, etc.).

Not for

  • Teams needing collaborative memory (currently single-user design).
  • Users wanting zero technical setup without touching Cloudflare (except desktop app).
  • Users requiring offline or local-only memory (depends on cloud services).
  • Strict compliance environments that require non-cloud infrastructure.

Required permissions

  • Requires a Cloudflare account to deploy the Worker and infrastructure.
  • Requires an AUTH_TOKEN (or password) to authorize all clients.
  • Supports OAuth 2.0 dynamic client registration; clients do not need to embed the token in configs.
  • For calendar, email, and Notion integrations, requires iCal links, app passwords, or Notion connection secrets.

Risks and side effects

  • Self-hosting means you are responsible for maintenance and updates.
  • Data is stored on Cloudflare, subject to Cloudflare's privacy policy (though within your own account).
  • Free tier may have usage limits (e.g., vector index size).
  • If you forget your password, you must log into Cloudflare to reset; you might temporarily lose access to memories.
  • Deploying with incorrect parameters (e.g., Vectorize dimensions) can degrade search functionality.

Troubleshooting

  1. If recall returns 'no memories found' but tool call succeeds, MCP is working.
  2. OAuth login page may be falsely flagged by browsers; ignore or use another browser.
  3. In Claude Code, tools may not appear automatically; try actually invoking recall.
  4. If Cursor has OAuth registration issues, remove and re-add the MCP server.
  5. Check that Worker URL is correct and AUTH_TOKEN is set.

Use cases

Save and recall project context, decisions, and preferences across AI tools.
Maintain persistent personal memory during sessions without re-explaining.
Capture information from various sources: browser, command line, Obsidian, Notion, calendar, and email.
Quickly find memories via semantic search even when wording differs.
Explore related context with memory graph and 'hops' option.

Supported clients

ClaudeFull support
ChatGPTFull support
CursorFull support
Codex CLIFull support