Skip to main content
Glama

second-brain

WARNING

Mothballed — August 2026. This repository is archived and read-only.

second-brain v2 is end-of-life. It carried too much v1 baggage, and the profile mechanism never worked as intended in real use. A ground-up successor — stacks, designed from scratch against actual requirements rather than v2's constraints — is in development and will take its place. It is not public yet.

The published images (kitchencoder/second-brain:latest, :oauth, :full) remain pullable and existing containers keep running, but there will be no further releases, fixes, or support. Everything below describes v2 as it was left at v2.0.0.

Docker container for brain management: zk, semantic search, and Model Context Protocol (MCP) server for Claude Code and Claude Desktop.

The second-brain provides a set of tools and skills to manage a brain of markdown notes using semantic search, structured metadata, and AI capabilities.

Quick start

No repository clone is required to run the second-brain — the Docker image includes everything needed.

# 1. Create a directory for your brain (or use an existing notes folder)
mkdir -p ~/Documents/brain

# 2. Run the setup wizard (choose model provider, create folders, generate .env)
docker run --rm -it \
  -v ~/Documents/brain:/brain \
  kitchencoder/second-brain:latest \
  brain-init

# 3. Start the container
docker run -d --name second-brain --restart unless-stopped \
  -v ~/Documents/brain:/brain \
  -v second-brain-claude:/home/coder/.claude \
  -v second-brain-zsh:/home/coder/.zsh-data \
  -p 7779:7779 -p 7780:7780 \
  kitchencoder/second-brain:latest

The brain-init wizard will guide you through picking your model provider and embedding model (presets for Docker Model Runner, Ollama, LM Studio, and Anthropic API).

Tiers: the quickstart above is the core image (MCP + brain tools only). Want a browser IDE on top? See the code-server recipe. Want vectors in Postgres instead of the embedded SQLite index? See the full-stack compose recipe.

Related MCP server: brain-mcp

Documentation Index

For Users

  • User Guide: Installation, Host configuration, and how to use the brain.

  • Brain Guide: Philosophy and structure of your brain (folders, frontmatter, tags).

  • MCP Server: How to connect your brain to AI clients (Claude Code, Claude Desktop, Open WebUI, etc).

  • Brain Skills: Detailed list of all AI skills available for managing your brain.

  • Authentication: Gate the REST API and MCP HTTP transport behind static tokens or OAuth 2.1 (profile.auth.mode, default off).

  • Recipes: Browser IDE (code-server) and full-stack (Postgres/pgvector) layers on top of the core image.

For Developers

  • Development Guide: How to build the image, run in development mode, and create new skills or tools.

  • CHANGELOG: What has landed in each release.


At a glance

  • Semantic Search: Find notes by meaning, not just keywords.

  • MCP Server: Expose your brain tools to any Model Context Protocol client.

  • Claude Code Integration: Custom skills for note capture, triage, and management.

  • Profiles: One engine runs many brains — the default ace profile is cloned on first init; flavours like obsidian and custom forks (folders, skills, templates, queryable fields) are one env var away.

  • Multi-platform: Runs anywhere Docker does; works with Obsidian and VS Code on the host.

  • Privacy First: Designed to run with local models via Docker Model Runner or Ollama.

Roadmap

The profile refactor shipped in 2.0.0: the engine (this Docker image: search, MCP, editing, auth) is fully separated from the profile (a brain's folders, templates, skills, identity, and queryable fields) — one engine, many brains, no fork.

Landed:

  • Profile-driven engine — a brain self-describes via <brain>/.brain/

  • Profiles live in their own public repos (ace, obsidian); the default is cloned from brain-profile-ace on first init, with profile.toml schema versioning

  • Profile-driven queries — metadata filters adapt to each profile's fields

  • Auth — static per-principal bearer tokens and an OAuth 2.1 authorization server behind profile.auth.mode (default none). See the Authentication guide.

  • Content visibility / RBAC — role-based read/write layers, oracle-safe. See docs/rbac.md.

  • Full-stack tier — Postgres/pgvector index store, admin plane + agent credentials, per-principal retrieval log

  • Per-brain host identity (brain-init --brain-name) and a configurable MCP endpoint for tunnel/reverse-proxy deployments

Planned:

  • Admin UI for the RBAC tier

  • Community profiles

Custom profiles are covered in the User Guide; the running record is in the CHANGELOG.

F
license - not found
Not graded
quality - not tested
F
maintenance

Maintenance

Maintainers
Response time
Release cycle
1Releases (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
    B
    quality
    B
    maintenance
    Headless semantic MCP server for Obsidian, Logseq, Dendron, Foam, and any markdown folder. Features built-in hybrid semantic search, surgical AST editing, template scaffolding, zero-config local embeddings, and workflow tracking.
    5
    69
    10
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A private, local AI second brain for Markdown notes, providing hybrid search and read/write tools for MCP-compatible AI clients like Claude and Cursor.
    6
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables managing and searching markdown notes with semantic search, question answering, and note generation, and provides an MCP server for GitHub Copilot integration.
    4
  • A
    license
    Not graded
    quality
    A
    maintenance
    MCP server that turns a Markdown folder (e.g. Obsidian vault) into a second brain, capturing readings and ideas, connecting them as concepts, and resurfacing related notes on demand.
    64
    MIT

View all related MCP servers

Related MCP Connectors

  • Markdown-based note-taking with a hosted MCP server. Your notes serve you and your AI.

  • Serve a folder of Markdown notes as an MCP server: hybrid search, reading, and sourced answers.

  • Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.

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/thekitchencoder/second-brain'

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