secondbrain-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@secondbrain-mcpwhat are my next actions?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
secondbrain-mcp
One server. One connector. Every Claude client.
There is no chat UI to build. A custom connector is configured once, on your account, at claude.ai → Customize → Connectors → "+" → Add custom connector. From then on it is available in Claude Desktop, claude.ai, Cowork and the iOS and Android apps. Same server, same vault, same tools everywhere.
Claude connects to this remote MCP server from Anthropic's cloud, so the
server must be on the public internet with real TLS. Deploy target:
https://brain.lous.info on the shared Hetzner host. Platform services are
owned by hetzner-infra; this repo deploys only the app plus nginx /
observability drop-ins (same pattern as Padel Vibe / Unseen Servant).
Routes
route | who calls it | auth |
| Claude, every client | GitHub OAuth (allow-listed login) |
| Claude OAuth handshake | public endpoints of the OAuth proxy |
| optional browser view | optional nginx basic auth |
| GitHub webhook (optional) |
|
| Docker / CI healthcheck | none |
Related MCP server: pando
Auth
Env | Role |
| GitHub OAuth App for the Claude connector |
| Comma-separated GitHub logins (e.g. |
| Fine-scoped PAT for HTTPS clone/pull/push of the vault (separate from OAuth) |
In Claude: add connector URL https://brain.lous.info/mcp, leave OAuth Client ID/Secret empty (Dynamic Client Registration), then Connect and sign in with GitHub as an allow-listed user.
How it works
phone browser ─┐ ┌─ shared nginx :443 ─┐
├── https ───────────┤ ├── secondbrain-mcp:8000
Claude cloud ──┘ └─────────────────────┘ │
├─ /vault (git clone)
│ ▲
│ │ pull every 5 min
github.com/.../SecondBrain
▲
Obsidian Git │ auto-commit
laptopThe container never touches your laptop. GitHub is the sync bus.
Deploy (Hetzner)
# one-time on the server
sudo mkdir -p /opt/secondbrain/deploy/nginx
sudo chown -R deploy:deploy /opt/secondbrain
cp .env.example /opt/secondbrain/deploy/.env # fill secrets
chmod 600 /opt/secondbrain/deploy/.envPush to main builds ghcr.io/<owner>/secondbrain-mcp, SSHs to Hetzner,
installs the nginx vhost into /opt/hetzner/deploy/nginx/conf.d/, syncs
observability drop-ins, and health-checks https://brain.lous.info/health.
GitHub Environment Hetzner: secret HETZNER_SSH_KEY, vars
HETZNER_HOST, HETZNER_USER (same as the other apps).
Local
cp .env.example .env # set VAULT_GITHUB_PAT + GitHub OAuth vars
docker compose -f docker-compose.dev.yml up -d --build
curl -s localhost:8770/healthTools
Reads: search_vault, get_note, neighbors
Lenses: next_actions, renewals, annual_cost, open_unknowns,
stale_facts, check_graph
Writes: capture, answer_unknown
Every write is pull --rebase → edit → check_graph.py → commit → push, and
rolls back if the validator reports dangling links.
Known limits
answer_unknowndoes string surgery on frontmatter; fine for current vault shapes, not exotic YAML.renewalsneeds notes withrenewal_datepopulated.
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
Personal context for every AI: search, read, and write back to your private Markdown library.
Search, read, and safely update Markdown notes in your connected Phasoric knowledge vaults.
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceConnects claude.ai to a private GitHub repo of markdown files as a personal second brain, providing guarded read and write tools for knowledge management.5 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables Claude to search, read, write, and manage a local markdown vault through 8 tools, turning your notes into an AI-accessible knowledge base.3 npmAGPL 3.0
- AlicenseNot gradedqualityDmaintenanceEnables Claude to read, write, search, and manage an Obsidian vault with tools for notes, tags, folders, and full-text search.6 npmMIT
- -licenseNot gradedqualityNot gradedmaintenanceEnables reading and writing an Obsidian vault stored on GitHub, allowing Claude to list, search, read, and write notes with commits via the GitHub Contents API.-