Connect MyAgentMail to Claude and ChatGPT
Give Claude, ChatGPT or Codex your MyAgentMail inboxes and calendars. You sign in to MyAgentMail and click Allow. There is nothing to install and no API key to copy.
MyAgentMail runs a remote MCP server at https://mcp.myagentmail.com/mcp. Any AI app that supports remote MCP connectors with OAuth can use it. Once connected, you can ask things like:
- "Summarise the unread mail in my support inbox and draft replies to anything urgent."
- "Find the invoice Acme sent last month and download the PDF."
- "Am I free Thursday afternoon? If so, send Priya an invite for 3pm."
- "Create an inbox called research@ and tell me its address."
Before you start
You need a MyAgentMail account. Create one if you don't have one yet.
Claude (claude.ai, Claude Desktop, Claude mobile)
- In Claude, open Settings → Connectors and choose Add custom connector. On a Team or Enterprise plan, an organization Owner adds it once under the organization's connector settings, and members then connect their own accounts.
- Name:
MyAgentMail. URL:https://mcp.myagentmail.com/mcp. Leave the advanced OAuth fields empty. Claude registers itself automatically. - Click Connect. A MyAgentMail page opens. Sign in if asked, review what Claude will be able to do, and click Allow.
- You're returned to Claude and the MyAgentMail tools appear. Connectors added on claude.ai are also available in Claude Desktop and the mobile apps.
Claude Code
claude mcp add --transport http myagentmail https://mcp.myagentmail.com/mcp
Then run /mcp inside Claude Code, pick myagentmail and choose Authenticate. Your browser opens the same sign-in and Allow page. Add --scope user to make it available in every project.
ChatGPT
- In ChatGPT settings, open Apps (called Connectors on some plans), then Advanced settings, and turn on Developer mode. Your plan and workspace admin settings decide whether this is available.
- Choose Create and enter the URL
https://mcp.myagentmail.com/mcpwith OAuth authentication. - Sign in to MyAgentMail on the page that opens and click Allow.
ChatGPT's menu names change from time to time. If a step above doesn't match what you see, OpenAI's help center has the current path for adding a custom MCP app.
Codex
codex mcp add myagentmail --url https://mcp.myagentmail.com/mcp
codex mcp login myagentmail
The login command opens the sign-in and Allow page in your browser.
Other MCP clients
Any client that supports streamable HTTP and the MCP authorization spec works with the same URL: OAuth discovery, dynamic client registration and PKCE are all supported. For clients that run a local server instead, see MCP server.
What the connection can access
A connection acts on your whole MyAgentMail account: every workspace and every inbox you can access, including inboxes created later. The consent page lists this before you click Allow.
- Read only: list and read inboxes, messages, threads, drafts and attachments; search mail; read calendars and free/busy; list domains, workspaces and webhooks; view send and receive metrics; check whether an address can receive mail.
- Creates or changes things: create inboxes and drafts, mark messages read, add custom domains and inbox addresses, create workspaces and workspace API keys, and add webhooks.
- Destructive, so your AI app should ask first: send, reply, reply-all and forward email; send drafts; create, update, cancel and RSVP to calendar events (which emails the attendees); edit drafts; and delete inboxes, messages, drafts, events, domains and webhooks.
Every tool is labelled read-only or destructive in the MCP metadata, so Claude and ChatGPT can ask for your confirmation before anything is sent or deleted. Inbound mail is scanned for prompt-injection attempts, and each message carries a risk level the AI is told to respect. See Prompt injection and agent safety.
Connections can't reach account-level actions such as billing, account deletion or managing other connections.
Disconnect
Every connection gets its own dedicated key, so you can revoke one app without affecting the others.
- Open Dashboard → API Keys.
- Under Connected apps, click Disconnect next to the app.
Access stops immediately, including any tokens the app had already been given. Removing the connector inside Claude or ChatGPT stops that app from using it, but only disconnecting in the dashboard revokes the key on our side, so do both if you're done with it.
Privacy
The connector is a thin layer over the MyAgentMail API. When your AI app calls a tool, MyAgentMail performs that one action on your account and returns the result to the app. We don't receive or store your chat conversations, and we don't use your mail to train models. The privacy policy covers how account data is handled.
Troubleshooting
- The Allow page says the redirect address isn't allowed. The connector accepts sign-ins only from Claude, ChatGPT, Codex and local desktop clients. Other hosted apps need to be added on our side; email us.
- "Your account isn't active". The account is suspended or was deleted. Contact support.
- Tools stopped working with "disconnected connector key". The connection was disconnected in the dashboard. Remove the connector in your AI app and connect again.
- The AI can't find an inbox you expect. Ask it to list inboxes first. A connection sees every active inbox in your account, so a missing one has been deleted or belongs to a different MyAgentMail account.
Support
Questions or problems: kamal@send.myagentmail.com.