Second Brain MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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
Each deployment serves one person: your notes, your Cloudflare account, and only your GitHub account can sign in. You need a Cloudflare account on the Workers Paid plan, Node 24 or later, and a GitHub account.
Fork and install.
npm ci, thennpx wrangler login.Point it at your account. Everything that changes per deployment is in
wrangler.jsonc:name,account_id, and invarsPUBLIC_URL(https://<name>.<your-subdomain>.workers.dev),CF_ACCOUNT_ID(same asaccount_id) andOWNER_GITHUB_ID(your numeric GitHub id:gh api user --jq .id). The scripts and CI read it from there (scripts/config.mjs;node scripts/config.mjs checkvalidates it). Thennpm run types.Create a GitHub OAuth app (Settings → Developer settings → OAuth Apps) with the callback
<PUBLIC_URL>/callback. Put its client id inGITHUB_CLIENT_ID.Create the resources.
scripts/setup.shcreates the Vectorize index, the Artifacts repository, the D1 database, the queues and the push subscription. It is safe to run again: when it creates the D1 database or the KV namespace it stops and asks you to copy the printed id intowrangler.jsonc, then run it again.Add your notes. Push your Markdown notes (at least one commit) to the Artifacts repository before the first deploy; the setup guide has the token command.
Deploy and set secrets.
npx wrangler deploy, thenscripts/secrets.sh github-oauthandscripts/secrets.sh admin.Build the index.
POST <PUBLIC_URL>/admin/reconcile?mode=rebuildwithAuthorization: Bearer <ADMIN_SECRET>.Optional, a Mac clone.
scripts/secrets.sh hook, then follow clients/claude-code: link the hook, write~/.config/second-brain/hook.envwith yourNOTES_DIRandSECOND_BRAIN_URL, and add the hooks to your Claude Code settings.
Every command, in order: docs/setup.md.
Related MCP server: 50 First Tapes MCP Server
How to use
Add your server as a remote MCP connector in each client, then sign in with GitHub on the consent page. The address is your PUBLIC_URL plus /mcp:
Client | Where |
Claude (web, desktop, phone) | Settings → Connectors → Add custom connector |
ChatGPT | Settings → Connectors → Create (developer mode) |
Claude Code |
|
Then just ask. The client picks the tool:
You ask | Tool |
"What did I decide about the Acme proposal?" |
|
"Save this idea: …" |
|
"Read projects/acme.md" |
|
"In the plan note, change the deadline to Friday" |
|
Each client gets its own grant, which expires and can be revoked (SECURITY.md).
Links
ARCHITECTURE.md: the low-level design, every component with the decision behind it
Performance: v1 vs v2, measured in production
At scale: what changes for a team
This server cannot be deployed
Maintenance
Related MCP Connectors
Markdown notes and whiteboards your AI agent can read and write.
One memory, every AI. A shared, user-owned markdown memory your AI clients read and write over MCP.
One memory for every AI you work with: your rules, notes and decisions in your own Git repo.
Personal context for every AI: search, read, and write back to your private Markdown library.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI clients to incrementally build and maintain a git-backed personal wiki, providing long-term memory by compiling and cross-referencing knowledge across sessions.2MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to read and write a local-first knowledge base of plain markdown files in git, with governance gates for safe, hash-anchored edits.1Apache 2.0
- AlicenseAqualityBmaintenanceLets AI agents from any machine list, read, search, write, edit, move and link markdown pages and store files alongside them, all in a shared wiki. People can then see what the agents know through a web app showing the link graph, every page, and the history of who changed what.168AGPL 3.0
- AlicenseNot gradedqualityCmaintenanceEnables 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