Documentation menu

Connecting AI assistants

Connecting Cursor

Cursor reads its MCP servers from a JSON file. Add Memex there, then sign in from the button Cursor shows next to the server.

Steps

  1. Add the serverAdd the entry below to ~/.cursor/mcp.json, or to .cursor/mcp.json in a project.
  2. Sign inCursor shows a Needs login button next to the server. Click it.
  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.
{
  "mcpServers": {
    "memex": {
      "url": "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

The server is listed as connected in Cursor’s MCP settings, with its tools. In Memex, Settings → Connected AIs shows the client.

Next

Reference: mcp.md.