Skip to main content
Glama
Second Brain MCP

Second Brain MCP

by YudiG12

A remote MCP server that gives every AI client the same Markdown notes: Claude Code on the Mac, Claude on the web and phone, ChatGPT. Search by keyword or by meaning; every change is a Git commit. Deploy your own on Cloudflare.

Deploy your own

Needs a Cloudflare account on the Workers Paid plan, Node 24 and git. No Homebrew or sudo (a second user on a Mac, say)? Install Node with nvm, fnm or the nodejs.org tarball in your home folder, and keep it on the PATH for npx wrangler login too.

A second deployment in the same Cloudflare account (--name with another name) gets its own D1, index, notes, queues, workflow and OAuth store; it shares nothing with the first.

git clone https://github.com/YudiG12/second-brain-mcp && cd second-brain-mcp
npm ci && npm run deploy-your-own

Or ask your AI coding agent:

Clone https://github.com/YudiG12/second-brain-mcp and deploy it for me, following its AGENTS.md.

Every client, Claude Code on the Mac included, reads and writes only through the MCP tools (ADR 014). Optional, a read-only copy of the notes in a folder, to view them in Obsidian:

scripts/secrets.sh hook && npm run mirror -- ~/notes

Don't edit that folder: each run resets it. Run it on a schedule (launchd or cron) to keep it fresh.

Related MCP server: obsidian_shared_memory

How to use

The installer prints your <PUBLIC_URL>. Claude Code:

claude mcp add -s user --transport http <worker-name> <PUBLIC_URL>/mcp

Claude (web, desktop, phone) and ChatGPT: add a custom connector with <PUBLIC_URL>/mcp.

Keyword search sees a change in seconds. Search by meaning is eventually consistent: after a save, edit or move it can take a minute or two to find the new text (and to stop finding the old path).

Then ask:

What did I decide about the Acme proposal?
Save this idea: …
In the plan note, change the deadline to Friday.

Architecture

Overview

Architecture of v2

1. Sign-in

2. Write a note

3. Index in the background

4. Read a note

6. Reconciliation

7. A job that keeps failing

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI clients to incrementally build and maintain a git-backed personal wiki, providing long-term memory by compiling and cross-referencing knowledge across sessions.
      2
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables multiple AI agents to share a locally controlled long-term knowledge base of Markdown notes, allowing them to retrieve, add, update, and remove preferences, decisions, and experiences. It supports cross-agent recall and version-aware changes while keeping the notes readable and editable outside the agent.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to search, read, create, patch, lint, and synchronize a shared Markdown+git knowledge base across multiple machines and sessions, with confidence metadata and protocol resources.
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables people and AI assistants to share one persistent Markdown-in-Git memory, so any MCP client can load current context, save sessions and decisions, search notes, and work from a team's real knowledge across machines.
      AGPL 3.0