Prototype · Preview: every server in the official registry, synced every 30 minutes. Reviews and accounts come in a later step.
PopNx MCPMCP servers for people who use AI · explained in plain words

Thebrain

by yBookoffversion 0.3.0i★ –iRuns on your computer
Registry nameio.github.yBookoff/thebrain

Install

Overview

Description from the maker (original English)

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

PopNx MCP’s three pillars

These three are never merged into one score: opinions, measurements and popularity are different things.

What you can do with it

We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.

  • Connection: Runs on your computer
  • Transport: stdio
  • Category: Search & AI memory
  • You need to fill in: THEBRAIN_API_KEY

Install

Pick the AI app you use, then copy the settings.

Before you install

  • Basic checks: 1 of 1 passed
  • Runs on your computer with your user’s permissions (files, network, apps).
  • You fill in yourself: THEBRAIN_API_KEY, THEBRAIN_BASE_URL, THEBRAIN_DATA_DIR, THEBRAIN_ALLOW_DESTRUCTIVE, THEBRAIN_EMBEDDING_MODEL, THEBRAIN_EMBEDDING_DTYPE, THEBRAIN_TIMEOUT_MS

Values marked secret are keys to your account. Never share them or paste them into a chat.

You need

  • npmNode.js installed (for the npx command)

Which app do you use?

Pick your app above. We remember it, so next time the button says “Install in …”.

Open Claude Desktop → Settings → Developer → Edit Config, and paste this into claude_desktop_config.json

{
  "mcpServers": {
    "thebrain": {
      "command": "npx",
      "args": [
        "-y",
        "thebrain-mcp-server"
      ],
      "env": {
        "THEBRAIN_API_KEY": "your-value",
        "THEBRAIN_BASE_URL": "your-value",
        "THEBRAIN_DATA_DIR": "your-value",
        "THEBRAIN_ALLOW_DESTRUCTIVE": "your-value",
        "THEBRAIN_EMBEDDING_MODEL": "your-value",
        "THEBRAIN_EMBEDDING_DTYPE": "your-value",
        "THEBRAIN_TIMEOUT_MS": "your-value"
      }
    }
  }
}

Run this in your terminal

claude mcp add thebrain --env THEBRAIN_API_KEY=your-value --env THEBRAIN_BASE_URL=your-value --env THEBRAIN_DATA_DIR=your-value --env THEBRAIN_ALLOW_DESTRUCTIVE=your-value --env THEBRAIN_EMBEDDING_MODEL=your-value --env THEBRAIN_EMBEDDING_DTYPE=your-value --env THEBRAIN_TIMEOUT_MS=your-value -- npx -y thebrain-mcp-server

Fill in the empty values before running it.

Open in Cursor

Or copy the settings yourself

Paste into .cursor/mcp.json in your project, or ~/.cursor/mcp.json

{
  "mcpServers": {
    "thebrain": {
      "command": "npx",
      "args": [
        "-y",
        "thebrain-mcp-server"
      ],
      "env": {
        "THEBRAIN_API_KEY": "your-value",
        "THEBRAIN_BASE_URL": "your-value",
        "THEBRAIN_DATA_DIR": "your-value",
        "THEBRAIN_ALLOW_DESTRUCTIVE": "your-value",
        "THEBRAIN_EMBEDDING_MODEL": "your-value",
        "THEBRAIN_EMBEDDING_DTYPE": "your-value",
        "THEBRAIN_TIMEOUT_MS": "your-value"
      }
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

Open in VS Code

Or copy the settings yourself

Paste into .vscode/mcp.json in your project

{
  "servers": {
    "thebrain": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "thebrain-mcp-server"
      ],
      "env": {
        "THEBRAIN_API_KEY": "your-value",
        "THEBRAIN_BASE_URL": "your-value",
        "THEBRAIN_DATA_DIR": "your-value",
        "THEBRAIN_ALLOW_DESTRUCTIVE": "your-value",
        "THEBRAIN_EMBEDDING_MODEL": "your-value",
        "THEBRAIN_EMBEDDING_DTYPE": "your-value",
        "THEBRAIN_TIMEOUT_MS": "your-value"
      }
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

This one runs on your computer, and ChatGPT can only connect to servers on the internet. Pick another app.

Your choice stays on this device in a cookie; no account needed.

Values you fill in

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

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 7, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account yBookoff, which owns the repo

  • … Not checked yet

    Still maintained

    We have not read this repo from GitHub yet

  • … Not checked yet

    Has a licence

    We have not read this repo from GitHub yet

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Compared with others in Search & AI memoryi

  • More stars than 0% of the other 7251 servers in this category
  • Published to the registry more recently than 62% of the other 7251 servers in this category
  • Basic checks equal to or better than 100% of the other 7251 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Thebrain safe?

It passed 1 of 1 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

You need to fill in: THEBRAIN_API_KEY

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed –, and the latest version (0.3.0) reached the registry 23 days ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: Context7, Codebase Memory, Exa

Alternatives

Servers in the same category from other makers, sorted by stars.

Reading a card:★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

Context7

by upstash

Feeds AI the latest docs for libraries and frameworks before it answers, so code it writes does not use outdated, removed functions.

Computer or cloud★ 64,224MITUpdated today
Install

Codebase Memory

by DeusData

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

Runs on your computer★ 48,148MITUpdated 20 days ago
Install

Exa

by exa-labs

Connect AI agents to Exa for web search, content fetching, and multi-step research.

Runs in the cloud★ 5,213MITUpdated last month
Install

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

thebrain-mcp

An MCP server for TheBrain 15, built on its local API.

It gives an agent semantic operations over your brain: search by meaning, read a neighbourhood of the graph, and write a decomposed piece of material into the brain as a whole connected structure. It is not a mirror of the API — 19 tools instead of 48 endpoints.

The point is not "save this text". The point is that when you hand an agent an article, it reads it, breaks it into meanings, works out where each one belongs in the graph you already have, what to link it to, and what each note should say.

Published on npm as `thebrain-mcp-server` — npm considers the shorter name

too close to an unrelated existing package. The installed command is still

thebrain-mcp.

Requirements

  • TheBrain 15 running, with the local API enabled
  • Node.js 22 or newer
  • An API key: Settings → User → Local API Key

Install

Claude Code
claude mcp add thebrain -e THEBRAIN_API_KEY=your-key -- npx -y thebrain-mcp-server
Clients with a config file
{

"mcpServers": { "thebrain": { "command": "npx", "args": ["-y", "thebrain-mcp-server"], "env": { "THEBRAIN_API_KEY": "your-key" } } } }

Semantic search

TheBrain's own search matches prefixes: OT finds OTGP, while a synonym or a typo finds nothing. To search by meaning, the server builds a local vector index.

The embeddings package is not part of the install: it weighs around 380 MB, plus 113 MB for the model itself on first run. Install it separately, and only if you want it:

npm install -g @huggingface/transformers

Then, from your client: brain_index with action: "rebuild". Indexing a 10,000-thought brain takes about a minute; later runs only recompute what changed.

The server works without the package. brain_search falls back to a fan-out of prefix queries over the synonyms the agent supplies, and says plainly that recall is lower.

Everything is local: neither your brain's contents nor your queries are sent anywhere.

Settings

VariableDefaultPurpose
THEBRAIN_API_KEY—Required
THEBRAIN_BASE_URLhttp://localhost:11522, then :8001Local API address
THEBRAIN_DATA_DIR~/.thebrain-mcpWhere indexes are stored
THEBRAIN_ALLOW_DESTRUCTIVE0Allow deleting thoughts and links
THEBRAIN_EMBEDDING_MODELXenova/multilingual-e5-smallEmbedding model
THEBRAIN_EMBEDDING_DTYPEq8Weight precision
THEBRAIN_TIMEOUT_MS30000API request timeout

Changing the model or the precision makes an existing index unusable — the server will say so and ask for a rebuild.

THEBRAIN_BASE_URL rarely needs setting. A TheBrain update moved the local API from port 8001 to 11522, so the server tries the new port and falls back to the old one. Set the variable only if TheBrain listens somewhere else; the endpoint exactly as Settings shows it (http://localhost:11522/api/) is fine.

Tools

Reading

ToolWhat it does
brain_listBrains, which one is open, whether the index is ready
brain_get_thoughtA thought, its aliases, its graph and its note in one call
brain_searchSearch by meaning
brain_traverseWalk the graph several hops out
brain_list_types_and_tagsThe brain's vocabulary
brain_recent_changesWhat changed, in plain language
brain_indexIndex status, build and refresh

Writing

ToolWhat it does
brain_create_thoughtA thought together with its note, type, tags and aliases
brain_update_thoughtName, label, type, colours; add and remove aliases
brain_set_note / brain_append_noteReplace or extend a note
brain_linkConnect two thoughts, with a label; with replace, make the link that joins them another kind
brain_unlinkRemove a link, with human confirmation
brain_tagAttach and detach tags
brain_create_type_or_tagA new type or tag; a tag of a name the brain has is given back, not made twice
brain_attach_urlAttach a link, without duplicates
brain_activateOpen a thought on the user's screen
brain_delete_thoughtDelete, with human confirmation
brain_ingestWrite a whole structure in one call
brain_ingest

The main tool for filling a brain. The agent breaks material into thoughts, wires them together through temporary identifiers, and the whole thing lands in one call:

{

"brainId": "…", "thoughts": [ { "tempId": "art", "name": "Article on RAG", "parent": " " }, { "tempId": "embed", "name": "Embeddings", "parent": "art", "note": "…" }, { "tempId": "store", "name": "Vector store", "parent": "art" } ], "links": [ { "from": "embed", "to": "store", "name": "is written into" } ] }

The order of thoughts in the input does not matter — dependencies resolve themselves. Running the same plan twice duplicates nothing, and a thought that was already there keeps the note it has: a plan's note is written only where there is none, and the result says which notes were kept. Bad plans (a cycle, a reference to nowhere) are rejected before the first write.

Skills

The server provides the mechanism — deterministic operations. The methodology (how finely to split meanings, when to attach to something that already exists, what belongs in a note) lives separately, in Claude Code skills. They are plain markdown files, so you can adjust them to your own way of working without rebuilding the server.

SkillWhen it fires
thebrain-ingest"put this article in my brain", "break this down and record it"
thebrain-research"what do I know about X", "have we discussed this already?"
thebrain-organize"clean up my brain", "find duplicates"
thebrain-digest"what did I add this week", "what have I been working on"

Install them as symlinks, so edits in the repository take effect immediately:

mkdir -p ~/.claude/skills

for d in skills/*/; do ln -sfn "$PWD/$d" ~/.claude/skills/"$(basename "$d")" done

Or copy them, if you do not want the link to the repository. For a single project, use .claude/skills in its root instead of ~/.claude/skills.

Skills are picked up when a session starts — an already running session needs a restart (claude --continue keeps the conversation).

Deletion

Of a thought (brain_delete_thought) and of a link (brain_unlink). Off by default. Even with THEBRAIN_ALLOW_DESTRUCTIVE=1 it requires human consent: through a confirmation form if the client supports one, otherwise through a second call with an explicit flag. The agent cannot make this decision for you.

Development

npm install

npm test # unit tests, no live TheBrain needed npm run build

Contract tests against a live API:

THEBRAIN_API_KEY=… npm test                                  # read-only

THEBRAIN_API_KEY=… THEBRAIN_TEST_BRAIN_ID= npm test # + writes

The write tests require a separate, throwaway brain and refuse to touch any brain with more than 500 thoughts. The read-only tests that need a brain read that one too, and skip without it: no test reads another brain.

Documentation

  • ARCHITECTURE.md — how the server is built and why: layer boundaries, the mechanism/policy split, error philosophy, the semantic layer, and the reasons behind each decision.
  • docs/api-map.md — the local API's behaviour, including the undocumented parts, verified against a live instance, with the measurements.
  • docs/stack-evaluation.md — why TypeScript, with numbers.
  • CONTRIBUTING.md — how to work on this.

Support

thebrain-mcp is built and maintained in spare time. If it earns a place in your workflow, you can sponsor it on GitHub — once or monthly.

License

MIT

Ask PopNx