MCP directory
T

Thebrain

by github.com/yBookoff · v0.3.0 · updated Oct 14, 2026

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

npm

Run it locally

Install the package and point your AI client at it.

Environment variables

  • THEBRAIN_API_KEYrequiredsecret

    Local API key from TheBrain: Settings > User > Local API Key

  • THEBRAIN_BASE_URL

    Address of the local API. Default http://localhost:11522, then http://localhost:8001 for older TheBrain builds

  • THEBRAIN_DATA_DIR

    Where semantic indexes are stored. Default ~/.thebrain-mcp

  • THEBRAIN_ALLOW_DESTRUCTIVE

    Set to 1 to allow deleting thoughts. Deletion still requires human confirmation. Default 0

  • THEBRAIN_EMBEDDING_MODEL

    Embedding model for semantic search. Default Xenova/multilingual-e5-small

  • THEBRAIN_EMBEDDING_DTYPE

    Weight precision: fp32, fp16, q8 or q4. Default q8

  • THEBRAIN_TIMEOUT_MS

    API request timeout in milliseconds. Default 30000

More MCP servers