← Back

Connect your client

Brain is consumed through MCP. Point your AI client at the Brain MCP endpoint:

https://brain.nitajsfera.com/mcp

claude.ai (web & mobile)

Recommended — signs you in with OAuth, no token to manage.

  1. 1In claude.ai, open Settings → Connectors and choose Add custom connector.
  2. 2Paste the MCP URL above as the connector URL.
  3. 3Click Connect — you'll be sent to sign in, then asked to authorize access.
  4. 4Brain's tools (read/write memories, search, …) become available in your chats.

Claude Code (CLI)

Add Brain as an HTTP MCP server with your personal token:

claude mcp add --transport http brain https://brain.nitajsfera.com/mcp \
  --header "Authorization: Bearer <your-token>" \
  --header "X-Brain-Device: <your-device>" \
  --header "X-Brain-Client: claude-code"

Desktop apps

Pick your OS — the config-file location differs.

Claude Desktop

Add Brain to your config file at:

~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "brain": {
      "type": "http",
      "url": "https://brain.nitajsfera.com/mcp",
      "headers": {
        "Authorization": "Bearer <your-token>",
        "X-Brain-Device": "<your-device>",
        "X-Brain-Client": "claude-desktop"
      }
    }
  }
}

Codex

Codex speaks MCP over HTTP natively. Add this to:

~/.codex/config.toml
[mcp_servers.brain]
url = "https://brain.nitajsfera.com/mcp"
http_headers = { "Authorization" = "Bearer <your-token>", "X-Brain-Device" = "<your-device>", "X-Brain-Client" = "codex-cli" }

Use http_headers as shown — a bare bearer_token is rejected for HTTP servers. On Windows, set the device env var with setx and fully restart Codex.