AI Assistants

Learn how to connect and use Clean Email with AI Assistants: ChatGPT, Codex, or Claude.

Once connected, your AI assistant can work with all email accounts already added to Clean Email. You do not need to connect or authenticate each mailbox separately.

During setup, you may see terms such as MCP server or custom MCP server.

📌 What is MCP? MCP stands for Model Context Protocol. It is the technology that lets your AI assistant connect to Clean Email. In this guide, an MCP server refers to the Clean Email connection you are adding.

How to Connect Clean Email to Your AI Assistants

ChatGPT

📌 Note: If you use ChatGPT through a managed workspace, an admin may need to add or allow the plugin before workspace members can connect Clean Email.

Depending on your ChatGPT version, you may need to enable Developer mode before connecting to Clean Email.

If Developer Mode Is Required

  1. Select your profile in the bottom-left corner and go to Settings.
  2. Open Plugins → Developer mode.
  3. Open Plugins and Developer mode in ChatGPT settingsOpen Plugins and Developer mode in ChatGPT settings
  4. Make sure Developer mode is turned on. If it is disabled, you will not be able to connect Clean Email.
  5. Turn on Developer mode in ChatGPTTurn on Developer mode in ChatGPT
  6. Return to the ChatGPT sidebar and continue with the steps below.

Connect Clean Email to ChatGPT on the Web

📌 Note: The exact labels and position of the controls may differ slightly depending on your ChatGPT version.

  1. In the sidebar, select Plugins.
  2. Select Add or the + button. Depending on your version, the control may appear in the top-right corner or next to the Search plugins field.
  3. Select Add custom MCP server on the ChatGPT Plugins pageSelect Add custom MCP server on the ChatGPT Plugins page
  4. Select Create custom MCP server or Add custom MCP server, depending on the option shown in your version of ChatGPT.
  5. In the window that opens, enter Clean Email as the name.
  6. Under Connection, keep Server URL selected and paste the Clean Email connection address: https://app.clean.email/mcp
  7. Under Authentication, select OAuth.
  8. Read the custom server notice, select I understand and want to continue, then select Create as a plugin.
  9. Add custom MCP server window in ChatGPT with Clean Email name, server URL and OAuthAdd custom MCP server window in ChatGPT with Clean Email name, server URL and OAuth
  10. Complete Clean Email sign-in and approve the requested access.
  11. Connect Clean Email dialog in ChatGPTConnect Clean Email dialog in ChatGPT

You can choose how ChatGPT handles Clean Email tools under Settings → Plugins → Plugin settings, including when it should ask for permission before accessing mailbox information or making changes.

Clean Email plugin permissions in ChatGPT settingsClean Email plugin permissions in ChatGPT settings

Start a new chat and ask your AI assistant to use Clean Email to help you manage your inbox.

Codex

Codex App

📌 Note: The exact labels and position of the controls may differ slightly depending on your Codex app version and operating system. The guide below has been tested on macOS.

  1. Open the Codex app, select your profile and go to Settings, or press ⌘ + ,.
  2. Open Settings from the profile menu in the Codex appOpen Settings from the profile menu in the Codex app
  3. Under Integrations, open Plugins, then select Add → Add MCP server.
  4. Select Add MCP server on the Plugins page in Codex settingsSelect Add MCP server on the Plugins page in Codex settings
  5. Enter Clean Email as the server name.
  6. Select Streamable HTTP and paste the Clean Email connection address: https://app.clean.email/mcp
  7. Connect to a custom MCP in Codex with Clean Email name, Streamable HTTP and server URLConnect to a custom MCP in Codex with Clean Email name, Streamable HTTP and server URL
  8. Save the server.
  9. Find Clean Email in the MCP server list and select Authenticate.
  10. Select Authenticate next to Clean Email in the Codex MCP server listSelect Authenticate next to Clean Email in the Codex MCP server list
  11. Complete Clean Email sign-in and approve the requested access.
  12. Approve access to connect your Clean Email account to CodexApprove access to connect your Clean Email account to Codex

If the server does not appear immediately after saving, restart Codex.

To use Clean Email in Codex, start a new chat, click + (plus), and select Clean Email under Plugins.

Select Clean Email under Plugins in a new Codex chatSelect Clean Email under Plugins in a new Codex chat

Codex CLI or IDE Extension

  1. Open a terminal.
  2. Run: codex mcp add clean_email --url https://app.clean.email/mcp
  3. Then run: codex mcp login clean_email
  4. Complete Clean Email sign-in and approve the requested access.
  5. To check the connection, run codex mcp list in the CLI or use /mcp in the IDE extension.

Claude

📌 Note: If you use Claude Team or Enterprise, an Owner or another authorized admin must add the Clean Email connector to the organization first. After that, members can connect Clean Email to their Claude accounts.

  1. Open Claude and go to Customize.
  2. Switch to the Connectors tab.
  3. Click + Add, then select Add custom connector.
  4. Select Add custom connector on the Connectors tab in ClaudeSelect Add custom connector on the Connectors tab in Claude

    📌 Note: The Claude Free plan allows one custom connector. If you already use a custom connector for another service, you will need to remove it before adding Clean Email or upgrade to a paid plan.

  5. In the Add custom connector window, enter Clean Email as the name and paste the Clean Email connection address: https://app.clean.email/mcp
  6. Click Continue.
  7. Add custom connector window in Claude with Clean Email name and server URLAdd custom connector window in Claude with Clean Email name and server URL

    📌 Note: If Claude shows “Couldn’t check the server” or “Connecting to the server — Not found,” you can still continue with the setup. Click Continue anyway to complete the setup.

  8. Under OAuth client, keep Claude’s recommended settings, then scroll down and click Add.
  9. Keep the recommended OAuth client settings and click Add in ClaudeKeep the recommended OAuth client settings and click Add in Claude
  10. If you selected Sign in now during the setup process, click Connect.
  11. Click Connect to finish connecting Clean Email in ClaudeClick Connect to finish connecting Clean Email in Claude

    If you selected Sign in when needed, or closed the window before connecting, go to Customize → Connectors → Yours and click Connect next to Clean Email.

    Click Connect next to Clean Email under Customize, Connectors, Yours in ClaudeClick Connect next to Clean Email under Customize, Connectors, Yours in Claude
  12. Complete Clean Email sign-in.
  13. Approve access to connect your Clean Email account to ClaudeApprove access to connect your Clean Email account to Claude

You can configure Clean Email’s tool permissions under Customize → Connectors → Yours, choosing whether Claude can use individual tools automatically, only with your approval, or not at all.

Clean Email tool permissions in Claude connector settingsClean Email tool permissions in Claude connector settings

Can I Connect Other AI Apps to Clean Email?

Clean Email currently supports the AI apps listed above, as well as MCP Inspector.

To connect another AI app, contact the Clean Email team and provide the client ID and redirect address shown by the app. After we confirm support, enter the MCP address https://app.clean.email/mcp and follow the app’s sign-in steps.

Sign-in and Troubleshooting

Never paste access tokens, authorization codes, client secrets, or mailbox credentials into a chat or support message.

Do you have more questions?

Please contact us and we will be happy to help.