Skip to main content
Glama
TomLous

secondbrain-mcp

by TomLous

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

/mcp

Claude, every client

Authorization: Bearer <MCP_AUTH_TOKEN>

/

optional browser view

optional nginx basic auth

/refresh

GitHub webhook (optional)

X-Webhook-Secret

/health

Docker / CI healthcheck

none

Related MCP server: Obsidian Everywhere

Auth

Two secrets, two jobs — do not mix them:

Env

Role

MCP_AUTH_TOKEN

Dedicated bearer for the Claude connector (not a GitHub PAT)

VAULT_GITHUB_PAT

Fine-scoped PAT for HTTPS clone/pull/push of the vault

No GitHub OAuth. In the connector UI, set request header Authorization = Bearer <MCP_AUTH_TOKEN>.

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
                                                                  laptop

The container never touches your laptop. GitHub is the sync bus.

Deploy (Hetzner)

See docs/hetzner-deploy.md.

# 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/.env

Push 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 + MCP_AUTH_TOKEN
docker compose -f docker-compose.dev.yml up -d --build
curl -s localhost:8770/health

Tools

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_unknown does string surgery on frontmatter; fine for current vault shapes, not exotic YAML.

  • renewals needs notes with renewal_date populated.

F
license - not found
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    A
    maintenance
    Enables Claude clients to interact with an Obsidian vault as a knowledge graph, supporting full-text search, backlink traversal, neighborhood exploration, and note creation/append.
    39
    1,314
    2
    MIT
  • A
    license
    -
    quality
    B
    maintenance
    Enables Claude to search, read, write, and manage a local markdown vault through 8 tools, turning your notes into an AI-accessible knowledge base.
    3
    AGPL 3.0

View all related MCP servers

Related MCP Connectors

  • Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…

  • Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.

  • Read and write your Fresh Jots notes from Claude, Cursor, and any MCP client.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TomLous/secondbrain-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server