Skip to content
Cursor

thebrain for Cursor

io.github.ybookoff/thebrain

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

client:Cursor transport:stdio runtime:npm

Install thebrain in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

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

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

thebrain in other clients