Thebrain runs on your own machine — the client starts it, so there is no endpoint to ping. 115 installs a week from npm. Last commit 14 Oct 2026.
MCP server for TheBrain 15: search by meaning, graph traversal and batch writes over the local API
Today is the operative word: we check Thebrain every 15 minutes and re-read its code on every release. Watch it and you find out the day that stops being true.
This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.
claude mcp add thebrain -e 'THEBRAIN_API_KEY=<THEBRAIN_API_KEY>' -- npx -y thebrain-mcp-server
{
"mcpServers": {
"thebrain": {
"command": "npx",
"args": [
"-y",
"thebrain-mcp-server"
],
"env": {
"THEBRAIN_API_KEY": "<THEBRAIN_API_KEY>"
}
}
}
}
[mcp_servers.thebrain]
command = "npx"
args = ["-y", "thebrain-mcp-server"]
env = { THEBRAIN_API_KEY = "<THEBRAIN_API_KEY>" }
{
"mcpServers": {
"thebrain": {
"command": "npx",
"args": [
"-y",
"thebrain-mcp-server"
],
"env": {
"THEBRAIN_API_KEY": "<THEBRAIN_API_KEY>"
}
}
}
}
{
"servers": {
"thebrain": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"thebrain-mcp-server"
],
"env": {
"THEBRAIN_API_KEY": "<THEBRAIN_API_KEY>"
}
}
}
}
Put your own value in place of
<THEBRAIN_API_KEY> (Local API key from TheBrain: Settings > User > Local API Key).
The author’s registry entry marks it as required.
Optional settings from the registry entry, left out of the block above:
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).
Read-only MCP server for UK gym search using the LocalGym Agent API.
MCP server for Logseq: graphs, pages, blocks via the local HTTP API plugin.
LynxMCP: 100% local MCP server for the code questions grep can't answer: call graph, hybrid search
CLI and MCP server for the Qonto banking API
Local personal memory for agents as MCP tools — remember, recall, search, context, graph traversal.
Official SerpApi MCP server for Google, Bing, and other search engines.
MCP server for the Withings Health API with OAuth, local SQLite cache, and trend analysis.
SQLite-backed MCP server for persistent memory, full-text retrieval, and graph traversal.
Answers built from our own checks of this server.