thebrain for VS Code
io.github.ybookoff/thebrain
MCP server for TheBrain 15: search by meaning, graph traversal and batch writes over the local API
client:VS Code
transport:stdio
runtime:npm
Install thebrain in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "thebrain-api-key",
"description": "THEBRAIN_API_KEY",
"password": true
},
{
"type": "promptString",
"id": "thebrain-base-url",
"description": "THEBRAIN_BASE_URL",
"password": true
},
{
"type": "promptString",
"id": "thebrain-data-dir",
"description": "THEBRAIN_DATA_DIR",
"password": true
},
{
"type": "promptString",
"id": "thebrain-allow-destructive",
"description": "THEBRAIN_ALLOW_DESTRUCTIVE",
"password": true
},
{
"type": "promptString",
"id": "thebrain-embedding-model",
"description": "THEBRAIN_EMBEDDING_MODEL",
"password": true
},
{
"type": "promptString",
"id": "thebrain-embedding-dtype",
"description": "THEBRAIN_EMBEDDING_DTYPE",
"password": true
},
{
"type": "promptString",
"id": "thebrain-timeout-ms",
"description": "THEBRAIN_TIMEOUT_MS",
"password": true
}
],
"servers": {
"thebrain": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"thebrain-mcp-server"
],
"env": {
"THEBRAIN_API_KEY": "${input:thebrain-api-key}",
"THEBRAIN_BASE_URL": "${input:thebrain-base-url}",
"THEBRAIN_DATA_DIR": "${input:thebrain-data-dir}",
"THEBRAIN_ALLOW_DESTRUCTIVE": "${input:thebrain-allow-destructive}",
"THEBRAIN_EMBEDDING_MODEL": "${input:thebrain-embedding-model}",
"THEBRAIN_EMBEDDING_DTYPE": "${input:thebrain-embedding-dtype}",
"THEBRAIN_TIMEOUT_MS": "${input:thebrain-timeout-ms}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs