Documentation menu

Connecting AI assistants

Connecting Claude Code

Claude Code connects to Memex over HTTP with one command. Authentication goes through the same consent screen as every other client.

Steps

  1. Add the serverRun the command below in a terminal.
  2. AuthenticateInside Claude Code, run /mcp and choose Authenticate.
  3. Approve on the consent screenA browser window opens on your Memex instance. Sign in, tick the brains and folders the assistant may see, choose Read or Read and write for each, decide whether it Can create new brains, then click Authorize.
claude mcp add --transport http memex https://<host>/mcp

Replace <host> with the address of your instance, without a trailing slash after /mcp. You never copy a token by hand: the client discovers the authorisation server by itself (OAuth 2.1).

Check that it worked

/mcp shows the memex server as connected, with its tools. Ask for the list of your brains: the answer comes from list_brains.

Next

Reference: mcp.md.