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 (web/desktop)

Use the following instructions to connect the Mem MCP server to Claude.
1

Open settings

Open the sidebar to get to the Customize page.
2

Add connector

On the Customize page, click Connectors, then click + to add a connector. Find Mem and add it.
3

Complete flow

Complete the OAuth flow to connect your Mem workspace.
Claude connector setup flow
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.
  • In Claude, open the + menu, then go to Connectors and confirm Mem is enabled for the current conversation.
  • Check Connectors -> Tool access. In On demand, Claude searches for the right connector before loading it, which can add an extra discovery step.
  • If you need Mem to be available every time in that conversation, switch Claude to Always available.
  • Be explicit in your prompt when needed, for example: Use the Mem connector for this task.
  • If Claude still does not load Mem, disconnect and reconnect the Mem connector, then retry the conversation.
  • Anthropic documents this behavior here: