MCP server for TheBrain 15 — semantic operations over the local API: meaning-based search, graph traversal, and batch writes
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add thebrain --env THEBRAIN_API_KEY='<THEBRAIN_API_KEY>' -- npx -y thebrain-mcp-server~/.codex/config.toml
[mcp_servers.thebrain]
command = "npx"
args = ["-y", "thebrain-mcp-server"]
env = { THEBRAIN_API_KEY = "<THEBRAIN_API_KEY>" }
# codex mcp add thebrain --env THEBRAIN_API_KEY='<THEBRAIN_API_KEY>' -- npx -y thebrain-mcp-server~/.cursor/mcp.json
{
"mcpServers": {
"thebrain": {
"command": "npx",
"args": [
"-y",
"thebrain-mcp-server"
],
"env": {
"THEBRAIN_API_KEY": "<THEBRAIN_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"thebrain": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"thebrain-mcp-server"
],
"env": {
"THEBRAIN_API_KEY": "<THEBRAIN_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"thebrain": {
"command": "npx",
"args": [
"-y",
"thebrain-mcp-server"
],
"env": {
"THEBRAIN_API_KEY": "<THEBRAIN_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"thebrain": {
"command": "npx",
"args": [
"-y",
"thebrain-mcp-server"
],
"env": {
"THEBRAIN_API_KEY": "<THEBRAIN_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"thebrain": {
"command": "npx",
"args": [
"-y",
"thebrain-mcp-server"
],
"env": {
"THEBRAIN_API_KEY": "<THEBRAIN_API_KEY>"
}
}
}
}Environment variables
THEBRAIN_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.