Thebrain logo

Thebrain

Connects AI clients to TheBrain 15 for semantic search, graph exploration, and structured local knowledge-base writes.

Install Thebrain

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "thebrain": {
      "command": "npx",
      "args": [
        "-y",
        "thebrain-mcp-server"
      ],
      "env": {
        "THEBRAIN_API_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Automated check passed— started and listed 19 tools correctly ().

Overview

thebrain MCP server connects AI clients to TheBrain 15 through its local API, exposing tools for semantic search, graph traversal, reading, and writing. It can use a local vector index for meaning-based queries, or fall back to synonym-based prefix searches when the optional embeddings package is unavailable. Reach for it when an agent needs to inspect an existing thought graph, add connected material, update notes and metadata, or manage links and tags without sending brain contents off-device.

Use cases

  • Search a local thought graph by meaning
  • Explore related thoughts across several graph hops
  • Ingest an article as connected thoughts and links
  • Update notes, tags, URLs, and thought metadata
  • Review recent changes and index readiness

Key features

  • Semantic search with local vector indexing
  • Prefix-search fallback without embeddings
  • Multi-hop graph traversal
  • Batch ingestion with pre-write validation
  • Thought, note, link, tag, and URL management
  • Human-confirmed destructive operations

Tools19

What Thebrain lets your agent do. Expand a tool for its parameters.

Verified live~4.6k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/14 checks healthy over the last 83d

What it can do

From the 19 tools this server returned when we ran it.

Can delete or modify data · 2Makes changes · 3Makes network requests · 1Read-only tools · 14
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age106 days
Maintainers1

Observed 2026-11-26 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 13d ago via OSV.dev · thebrain-mcp-server (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars8Stargazers on the source repository.
npm downloads342Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed19Callable tools this server registers over MCP.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How Thebrain works

What thebrain MCP server does

thebrain MCP server gives an MCP-compatible agent access to a local TheBrain 15 installation. It exposes a smaller set of semantic operations rather than mirroring every local API endpoint. Reading tools can list available brains, identify the open brain, retrieve a thought with its note and graph context, search for related concepts, traverse nearby relationships, inspect types and tags, review recent changes, and check indexing state.

Writing tools cover thought creation and updates, note replacement or appending, labeled links, tag changes, URL attachments, screen activation, deletion, and multi-item ingestion. The brain_ingest operation is intended for material that should become a connected structure instead of one unstructured note. It accepts temporary identifiers, resolves dependencies, and can create links among newly added thoughts and existing graph nodes.

How it works

The server communicates with TheBrain 15 over its local API. Semantic search uses a local vector index when the optional @huggingface/transformers package is installed and the index has been built or refreshed with brain_index. The default embedding model is Xenova/multilingual-e5-small. Indexing is incremental after the initial build, so later runs recompute only changed content.

Without the embeddings package, search remains available through fan-out prefix queries based on synonyms supplied by the agent, but recall is lower.

brain_ingest validates a complete plan before writing. It rejects cycles and unresolved references before the first change, resolves thought dependencies regardless of input order, and avoids duplicating the same plan when run again.

Setup and configuration

Thebrain MCP server requires TheBrain 15 to be running with its local API enabled, Node.js 22 or newer, and an API key from TheBrain's User settings. Install the published thebrain-mcp-server package through npx, while the executable command remains thebrain-mcp. Configure the key as THEBRAIN_API_KEY in the MCP client's environment.

THEBRAIN_BASE_URL defaults to http://localhost:8001. Other settings control the local data directory, embedding model, embedding precision, API timeout, and whether destructive operations are allowed. Changing the model or precision invalidates the current index and requires a rebuild. Install @huggingface/transformers separately only when semantic vector search is wanted.

Tools and capabilities

The available operations include:

  • Discovering brains, the open brain, vocabulary, recent changes, and index status.
  • Retrieving thoughts with graph and note data.
  • Searching by meaning or fallback synonyms and traversing multiple graph hops.
  • Creating and updating thoughts, notes, labels, types, colors, tags, and URLs.
  • Linking thoughts with relationship labels and opening a thought on screen.
  • Ingesting a connected structure in one call.

The repository also includes optional Claude Code skills for ingestion, research, organization, and digest workflows. These are editable Markdown files and are separate from the server's deterministic tool mechanism.

Limitations and notes

Deletion is disabled by default. Enabling THEBRAIN_ALLOW_DESTRUCTIVE=1 still does not let an agent delete without human consent: confirmation is required through a supported form or an explicit second call.

Vector search adds a substantial optional dependency and a model download on first use. A 10,000-thought index is documented as taking about a minute to build. Write contract tests require a separate throwaway brain and refuse brains containing more than 500 thoughts. The project is licensed under MIT.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Thebrain

thebrain is an MCP server that connects AI clients to the local API of TheBrain 15. Its main tools search by meaning, read and traverse the thought graph, inspect index status, and create or modify thoughts, notes, links, tags, URLs, and larger connected structures.

Install it through the MCP client's configuration with `npx -y thebrain-mcp-server` and provide `THEBRAIN_API_KEY`. TheBrain 15 must be running with its local API enabled, and Node.js 22 or newer is required.

Yes, the server works without the optional embeddings package. `brain_search` falls back to prefix queries across synonyms supplied by the agent, although recall is lower than with the local vector index.

Install `@huggingface/transformers` globally, then call `brain_index` with `action: "rebuild"`. The server builds a local vector index using its configured embedding model and stores index data under its local data directory.

Deletion is disabled by default and still requires human consent when enabled. Set `THEBRAIN_ALLOW_DESTRUCTIVE=1`, then confirm through a client form or make a second call with the required explicit flag.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewThebrain AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/thebrain?style=directory)](https://allmcps.com/mcp/thebrain)
HTML Embed
<a href="https://allmcps.com/mcp/thebrain"><img src="https://allmcps.com/api/badge/thebrain?style=directory" alt="Thebrain on AllMCPs" /></a>