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
- Add the serverAdd the entry below to
~/.cursor/mcp.json, or to.cursor/mcp.jsonin a project. - Sign inCursor shows a Needs login button next to the server. Click it.
- 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
- Permissions and consent: what the assistant can and cannot do, and how to revoke it.
- MCP tools: the fourteen tools the assistant gets.
- Troubleshooting: the 403 on the consent screen, and addresses that change.
Reference: mcp.md.