# Connect ChatGPT

> Source: https://developers.anymail.watch/mcp-chatgpt/

ChatGPT connects to anymail as a custom MCP server and signs in with OAuth. ChatGPT cannot send an API key, so OAuth is the only way.

Custom MCP servers depend on your ChatGPT plan and, on a business plan, on the policy of your workspace admin.

## Add the server

1. Open the plugins page of ChatGPT at `https://chatgpt.com/plugins`.
2. Select the plus button, then **Add custom MCP server**.
3. Enter the name `anymail` and a short description, for example "Cold email campaigns, prospects and replies".
4. Under **Connection**, enter the URL:

   ```
   https://app.anymail.watch/api/mcp
   ```

5. Under authentication, choose OAuth. ChatGPT reads the anymail metadata and registers itself. No client id or secret is needed.
6. Read the warning about custom servers and confirm.
7. Select **Create as a plugin**. ChatGPT shows the tools it found: there are 44.
8. Sign in to anymail when ChatGPT asks. On the consent screen pick the **Workspace** and the **Access**, then select **Allow**.

## Choose the access

**Read only** gives ChatGPT the read tools: campaigns, statistics, prospects, replies, mailboxes and domains. **Read and write** also lets it create campaigns, enrol prospects, start campaigns and answer replies, which sends real email. The tool annotations mark every write, so ChatGPT can ask for your confirmation first.

## Try it

- "In anymail, which campaign got the most interested replies last week?"
- "List unread replies from anymail and summarise what each person wants."

## Related

- [MCP server](/mcp-server/)
- [Connect Claude](/mcp-claude/)
- [Authentication](/authentication/#oauth-for-mcp-clients)
