{
  "$schema": "https://mcpkg.dev/schemas/install-manifest/v1.json",
  "name": "io.github.yBookoff/thebrain",
  "slug": "io.github.ybookoff.thebrain",
  "title": "thebrain",
  "summary": "MCP server for TheBrain 15: search by meaning, graph traversal and batch writes over the local API",
  "version": "0.3.0",
  "serverKey": "thebrain",
  "pageUrl": "https://mcpkglabs.com/tool/io.github.ybookoff.thebrain",
  "installMdUrl": "https://mcpkglabs.com/tool/io.github.ybookoff.thebrain/install.md",
  "trust": {
    "score": 90,
    "grade": "A",
    "smokeStatus": "works",
    "status": "active",
    "verifiedAt": "2026-12-01T13:29:25.604430912Z"
  },
  "methods": [
    {
      "id": "npm",
      "label": "npm (npx)",
      "transport": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "--package=thebrain-mcp-server@0.3.0",
        "thebrain-mcp"
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add thebrain -e 'THEBRAIN_API_KEY=<THEBRAIN_API_KEY>' -- npx -y --package=thebrain-mcp-server@0.3.0 thebrain-mcp"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "claude_desktop_config.json",
          "content": "{\n  \"mcpServers\": {\n    \"thebrain\": {\n      \"args\": [\n        \"-y\",\n        \"--package=thebrain-mcp-server@0.3.0\",\n        \"thebrain-mcp\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"THEBRAIN_API_KEY\": \"<THEBRAIN_API_KEY>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"thebrain\": {\n      \"args\": [\n        \"-y\",\n        \"--package=thebrain-mcp-server@0.3.0\",\n        \"thebrain-mcp\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"THEBRAIN_API_KEY\": \"<THEBRAIN_API_KEY>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"inputs\": [\n    {\n      \"description\": \"THEBRAIN_API_KEY\",\n      \"id\": \"thebrain-api-key\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    }\n  ],\n  \"servers\": {\n    \"thebrain\": {\n      \"args\": [\n        \"-y\",\n        \"--package=thebrain-mcp-server@0.3.0\",\n        \"thebrain-mcp\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"THEBRAIN_API_KEY\": \"${input:thebrain-api-key}\"\n      },\n      \"type\": \"stdio\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.thebrain]\ncommand = \"npx\"\nargs = [\"-y\", \"--package=thebrain-mcp-server@0.3.0\", \"thebrain-mcp\"]\nenv = { \"THEBRAIN_API_KEY\" = \"<THEBRAIN_API_KEY>\" }"
        }
      ],
      "requires": [
        "Node.js 18+"
      ]
    }
  ],
  "env": [
    {
      "name": "THEBRAIN_API_KEY",
      "required": true,
      "secret": true,
      "description": "Local API key from TheBrain: Settings > User > Local API Key",
      "help": "Local API key from TheBrain: Settings > User > Local API Key",
      "placeholder": "<THEBRAIN_API_KEY>"
    },
    {
      "name": "THEBRAIN_BASE_URL",
      "required": false,
      "secret": false,
      "description": "Address of the local API. Default http://localhost:11522, then http://localhost:8001 for older TheBrain builds",
      "help": "Address of the local API. Default http://localhost:11522, then http://localhost:8001 for older TheBrain builds",
      "placeholder": "<THEBRAIN_BASE_URL>"
    },
    {
      "name": "THEBRAIN_DATA_DIR",
      "required": false,
      "secret": false,
      "description": "Where semantic indexes are stored. Default ~/.thebrain-mcp",
      "help": "Where semantic indexes are stored. Default ~/.thebrain-mcp",
      "placeholder": "<THEBRAIN_DATA_DIR>"
    },
    {
      "name": "THEBRAIN_ALLOW_DESTRUCTIVE",
      "required": false,
      "secret": false,
      "description": "Set to 1 to allow deleting thoughts. Deletion still requires human confirmation. Default 0",
      "help": "Set to 1 to allow deleting thoughts. Deletion still requires human confirmation. Default 0",
      "placeholder": "<THEBRAIN_ALLOW_DESTRUCTIVE>"
    },
    {
      "name": "THEBRAIN_EMBEDDING_MODEL",
      "required": false,
      "secret": false,
      "description": "Embedding model for semantic search. Default Xenova/multilingual-e5-small",
      "help": "Embedding model for semantic search. Default Xenova/multilingual-e5-small",
      "placeholder": "<THEBRAIN_EMBEDDING_MODEL>"
    },
    {
      "name": "THEBRAIN_EMBEDDING_DTYPE",
      "required": false,
      "secret": false,
      "description": "Weight precision: fp32, fp16, q8 or q4. Default q8",
      "help": "Weight precision: fp32, fp16, q8 or q4. Default q8",
      "placeholder": "<THEBRAIN_EMBEDDING_DTYPE>"
    },
    {
      "name": "THEBRAIN_TIMEOUT_MS",
      "required": false,
      "secret": false,
      "description": "API request timeout in milliseconds. Default 30000",
      "help": "API request timeout in milliseconds. Default 30000",
      "placeholder": "<THEBRAIN_TIMEOUT_MS>"
    }
  ],
  "expectedTools": [
    "brain_list",
    "brain_get_thought",
    "brain_search",
    "brain_traverse",
    "brain_list_types_and_tags",
    "brain_recent_changes",
    "brain_index",
    "brain_create_thought",
    "brain_update_thought",
    "brain_set_note",
    "brain_append_note",
    "brain_link",
    "brain_unlink",
    "brain_tag",
    "brain_create_type_or_tag",
    "brain_attach_url",
    "brain_activate",
    "brain_delete_thought",
    "brain_ingest"
  ],
  "agentSteps": [
    "Ask the user for: THEBRAIN_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.",
    "Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).",
    "Restart or reload the client so it starts the server.",
    "Verify: the server should expose these tools: brain_list, brain_get_thought, brain_search, brain_traverse, brain_list_types_and_tags, brain_recent_changes, brain_index, brain_create_thought, ….",
    "If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set."
  ],
  "generatedAt": "2026-12-01T13:29:25.604430912Z"
}
