Skip to main content

Thebrain

io.github.yBookoff/thebrain

v0.3.0Updated Oct 14, 2026stdio · npm

MCP server for TheBrain 15: search by meaning, graph traversal and batch writes over the local API

Install

Needs 1 secret. Replace 1 placeholder with your own values.

Run in your terminal. Replace 1 placeholder.

claude mcp add thebrain -e 'THEBRAIN_API_KEY=<your-thebrain-api-key>' -- npx -y [email protected]

Configuration

7 settings, 1 required secret. Snippets use placeholders; keep real values out of shared config.

  • THEBRAIN_API_KEY
    Env var· required· secret
    Local API key from TheBrain: Settings > User > Local API Key
  • THEBRAIN_BASE_URL
    Env var· optional
    Address of the local API. Default http://localhost:11522, then http://localhost:8001 for older TheBrain builds
  • THEBRAIN_DATA_DIR
    Env var· optional
    Where semantic indexes are stored. Default ~/.thebrain-mcp
  • THEBRAIN_ALLOW_DESTRUCTIVE
    Env var· optional
    Set to 1 to allow deleting thoughts. Deletion still requires human confirmation. Default 0
  • THEBRAIN_EMBEDDING_MODEL
    Env var· optional
    Embedding model for semantic search. Default Xenova/multilingual-e5-small
  • THEBRAIN_EMBEDDING_DTYPE
    Env var· optional
    Weight precision: fp32, fp16, q8 or q4. Default q8
Show 1 more
  • THEBRAIN_TIMEOUT_MS
    Env var· optional
    API request timeout in milliseconds. Default 30000

Listed in the official MCP Registry since Oct 14, 2026. Mirrored daily; last checked Nov 26, 2026.