ConnectChats

How-to guide

How to add an MCP server to Codex

The Codex CLI and the Codex IDE extension share one config file. Add a remote MCP server once and both can use it.

Last checked November 2026

Add the server from the terminal

  1. Run codex mcp add

    codex mcp add connectchats --url https://api.connectchats.com/mcp
  2. Sign in

    This opens your browser for OAuth. On a machine without a browser, add --no-browser and paste the redirect URL back when asked.

    codex mcp login connectchats
  3. Check it

    codex mcp list shows your servers. Inside Codex, type /mcp to see their tools.

    codex mcp list

Or edit config.toml by hand

  1. Open ~/.codex/config.toml

    A trusted project can also have its own .codex/config.toml.

  2. Add a block for the server

    [mcp_servers.connectchats]
    url = "https://api.connectchats.com/mcp"
  3. Sign in

    Run codex mcp login connectchats as above.

Turn a server off or remove it

Add enabled = false to the server's block to switch it off without deleting it, or run codex mcp remove connectchats. codex mcp logout connectchats clears the stored token.

Example: your WhatsApp chats in Codex

  1. Create a ConnectChats account

    Open https://connectchats.com/app and sign in with a passkey. There is no email or password to remember.

  2. Link WhatsApp

    Choose Link a chat app, then WhatsApp. Scan the QR code from WhatsApp on your phone (Linked devices, then Link a device), or switch to Use a pairing code.

  3. Choose the chats your AI can read

    Chats appear on the Chats page as they import. Turn on only the ones you want your AI app to see.

  4. Add the server

    Run codex mcp add with https://api.connectchats.com/mcp, then codex mcp login connectchats.

Tips

Questions

Where is the Codex MCP config?

In ~/.codex/config.toml, under [mcp_servers.<name>]. The CLI and the IDE extension read the same file.

Does Codex support Streamable HTTP MCP servers?

Yes. A block with url = "..." is a Streamable HTTP server, and Codex signs in with OAuth by default.

Is adding a server to Codex the same as adding it to ChatGPT?

No. ChatGPT adds servers from its Plugins page on the web, with plan limits. Codex reads its own config file, so you add the server there separately.

Related pages

Stop switching apps. Ask your AI instead.

Add ConnectChats in one click. Your first two chat apps are free.

Get started free