Skip to main content
Connect your AI client to Mem’s MCP server. We currently document setup for Claude, ChatGPT, Claude Code CLI, and Codex CLI.

Claude

1

Open connector settings

Open Settings -> Connectors.
2

Add custom connector

Click Add custom connector and enter:
https://mcp.mem.ai/mcp
3

Authenticate

Complete the OAuth flow to connect your Mem workspace.

ChatGPT

1

Enable Developer mode

In ChatGPT, go to Settings -> Apps -> Advanced settings and turn on Developer mode.
2

Create app from MCP server

In Apps settings, click Create app and configure your MCP server:
https://mcp.mem.ai/mcp
3

Authenticate

Complete OAuth when prompted.

Claude Code CLI

1

Add remote HTTP MCP server

claude mcp add --transport http mem https://mcp.mem.ai/mcp
2

Authenticate

Run /mcp in Claude Code and complete the browser OAuth flow.

Codex CLI

1

Add Mem MCP in Codex CLI

codex mcp add mem --url https://mcp.mem.ai/mcp
2

Authenticate

Start a Mem tool call in Codex and complete the OAuth flow when prompted.

Provider docs

Troubleshooting

  • Make sure your client can open a browser window for sign-in and consent.
  • If the flow was interrupted, disconnect and reconnect the Mem connector in your client.
  • Confirm you are signing in to the intended Mem account/workspace.
  • A direct 401 from https://mcp.mem.ai/mcp without auth is expected.
  • In your MCP client, reconnect Mem to refresh authentication and retry.
  • Verify the connector URL is exactly https://mcp.mem.ai/mcp.
  • Re-list connectors/servers in your client and confirm Mem is enabled.
  • Retry the setup flow for your client.