---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://elaichi.ai/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# AgentMail MCP connector

The AgentMail connector lets Claude, ChatGPT and other AI clients work with your AgentMail domains, drafts and API keys through Elaichi, so your team can verify domains, review drafts and rotate keys in plain language.

Source: https://elaichi.ai/connectors/agentmail/

## Facts

| | |
| --- | --- |
| Application | AgentMail |
| Category | Email |
| AI tools | 191 |
| Authentication | Connects with an API key |
| Bring your own OAuth app | No |
| MCP endpoint | https://api.elaichi.ai/mcp |
| Works with | Claude, ChatGPT, Perplexity, Grok, Cursor, Microsoft Copilot, any MCP client, and the Elaichi Agent |
| Tools advertised by name | No. Connected tools are never listed one by one, however few there are. The endpoint advertises `search_tools` and `execute_tool` instead |

## What you can ask once AgentMail is connected

- Which of our domains are still waiting on verification?
- Show me the drafts waiting for review today
- List our API keys and when each was created

## Connect AgentMail in Elaichi

This happens once for the organization, before any client is involved.

1. Open Connections, choose Add connection, and pick AgentMail.
2. Optionally set Share with, then press Connect.
3. Paste an AgentMail API key. One person generates a token in AgentMail and pastes it once. Everyone else works through Share with, and never sees it.

Credentials are vaulted and nobody, including the AI, reads them back. The connection becomes a toolbox immediately, so you can curate which AgentMail tools are exposed, rename them, or freeze arguments before anyone points a client at it.

## AgentMail MCP connector for Claude

Endpoint: https://api.elaichi.ai/mcp

1. Open Customize, then Connectors.
2. Press Add.
3. Name it, paste the MCP server URL, then Continue.
4. Sign in and approve.

On Team and Enterprise, an Owner adds it once. Everyone else turns it on for themselves.

## AgentMail MCP connector for Claude Code

Endpoint: https://api.elaichi.ai/mcp

1. Copy the `claude mcp add` command and run it in a terminal.
2. Start Claude Code and run `/mcp`.
3. Pick elaichi, then sign in and approve in the browser.

```bash
claude mcp add --transport http elaichi --scope user https://api.elaichi.ai/mcp
```

Use `--scope project` instead to share it with the repository through `.mcp.json`.

## AgentMail MCP connector for ChatGPT

Endpoint: https://api.elaichi.ai/mcp

1. Open Plugins, then press the + button.
2. Name it and paste the endpoint into Server URL.
3. Leave Authentication on OAuth, then tick the risk acknowledgement.
4. Press Create, then sign in and approve.

Works on the web. The plugin directory lives at chatgpt.com/plugins.

## AgentMail MCP connector for Perplexity

Endpoint: https://api.elaichi.ai/mcp

1. In the left sidebar, click Plugins, then Add custom, then Add MCP connector, then Remote.
2. Name it Elaichi.
3. Paste the endpoint as the MCP server URL.
4. Open Advanced. Pick OAuth, so you can sign in, and Streamable HTTP, which is how Elaichi talks. Leave the client ID and secret empty.
5. Tick the box about custom connectors, then click Add.
6. Click the Elaichi card. Sign in to Elaichi and approve.

Needs a paid Perplexity plan. In an organization, an admin may first need to allow custom connectors.

[Setup guide for Perplexity](/blog/connect-elaichi-to-perplexity/)

## AgentMail MCP connector for Grok

Endpoint: https://api.elaichi.ai/mcp

On grok.com:

1. Go to grok.com/connectors and click New Connector.
2. Choose Custom.
3. Paste the endpoint as the MCP server URL.
4. Sign in to Elaichi and approve.

In Grok Bot:

1. Open Connect apps and click Add a custom connector.
2. Name it Elaichi.
3. Set the type to Remote HTTPS.
4. Paste the endpoint as the Server URL.
5. Leave Client ID empty.
6. Click Add plugin. Then click Authorize, sign in to Elaichi and approve.

On Grok Business and Enterprise, a team admin adds the connector in console.x.ai first.

[Setup guide for Grok](/blog/connect-elaichi-to-grok/)

## AgentMail MCP connector for Cursor

Endpoint: https://api.elaichi.ai/mcp

1. Open `~/.cursor/mcp.json`.
2. Add the endpoint under `mcpServers`.
3. Reload Cursor, then sign in and approve.

Set up per machine, so repeat it on each computer you work from.

## AgentMail MCP connector for Microsoft Copilot

Endpoint: https://api.elaichi.ai/mcp

1. In Copilot Studio, open your agent, then Tools, Add a tool, New tool and Model Context Protocol.
2. Paste the endpoint into Server URL, choose OAuth 2.0, then Dynamic discovery, and press Create.
3. Create a new connection, sign in and approve, then press Add to agent.
4. Under Channels, open Teams and Microsoft Copilot and make the agent available in Microsoft Copilot.

Microsoft Copilot was called Microsoft 365 Copilot. Keep the tool on end-user credentials, so each person signs in as themselves.

## Connect AgentMail to any MCP client

Endpoint: https://api.elaichi.ai/mcp

1. Add the endpoint as a remote MCP server.
2. Sign in and approve.

The Elaichi Agent already has these tools, with nothing to set up.

## What the consent screen decides

Every scope the client asks for starts ticked except "Delete things", which you tick yourself. Calling a AgentMail tool needs "Use your connected apps". Over MCP there is no trusted place to confirm a write in the moment, so the consent screen is the standing approval rather than a formality. Think hard before granting Use your connected apps, which can also delete in connected apps and cannot be undone.

## What teams do with AgentMail through Elaichi

### Set up a new sending domain

Engineering. Add a domain to AgentMail, pull its DNS zone file and setup link, then run verification once the records are in place.

### Find domains still waiting on verification

Operations. Get a quick list of every AgentMail domain and which ones have not verified yet, so nothing sits half set up.

### Rotate an API key that leaked

Security. Create a fresh AgentMail API key, then delete the old one so anything using it stops working right away.

### Review who holds AgentMail API keys

Security. List every API key on the account with its name and details, and tidy up keys nobody recognizes.

### Check drafts before they go out

Support. Read through the drafts your email agents have prepared, including their attachments, before anyone sends them.

### Find and connect an app

Product. Search the apps AgentMail offers, look at the details of one, and create a connection to it from the same conversation.

## Elaichi vs Zapier MCP vs Composio for AgentMail

All three can connect AgentMail to an AI assistant, and all three have admin controls. They differ in where access lives and how you pay.

| What to check | Elaichi | Zapier MCP | Composio |
| --- | --- | --- | --- |
| Where the AI connects | One address for the whole organization. Endpoint: https://api.elaichi.ai/mcp | A server per member, created at sign-in. | An MCP endpoint per team, or an SDK. |
| Control over AgentMail tools | Allow or restrict single AgentMail tools, per role or user. | App and action restrictions on the account. | Role permissions, down to the action. |
| Record of calls | One audit entry per AgentMail call. | A History tab of tool calls. | A log of every tool call. |
| Single sign-on | SAML or OIDC, plus SCIM, on Gold. | SAML on Enterprise. | SAML and OIDC on Enterprise. |
| Price | Free for one person; $15 per user per month on Gold. | 2 tasks per successful call. | Billed per tool call. |

Sources: Zapier MCP [docs](https://docs.zapier.com/mcp/get-started/quickstart), [security](https://docs.zapier.com/mcp/manage/security), [usage](https://docs.zapier.com/mcp/features/usage); Composio [docs](https://docs.composio.dev/docs/composio-connect), [gateway](https://composio.dev/mcp-gateway), [enterprise](https://composio.dev/enterprise), [pricing](https://composio.dev/pricing). Checked September 2026.

Longer take: [Zapier MCP alternative](/blog/zapier-mcp-alternative/) and [when you don't need an MCP gateway](/blog/when-you-dont-need-an-mcp-gateway/).

## Frequently asked questions

### How do I connect AgentMail to Claude?

First connect AgentMail in Elaichi by pasting an AgentMail API key, with no OAuth app to register and no client ID or secret to generate. Then in Claude open Customize, then Connectors, then Add, and paste https://api.elaichi.ai/mcp. Sign in to Elaichi when Claude asks, and your AgentMail tools are ready to use.

### Does AgentMail work with ChatGPT, Perplexity, Grok and Cursor as well as Claude?

Yes. Once AgentMail is connected in Elaichi, the same https://api.elaichi.ai/mcp endpoint works in Claude, ChatGPT, Perplexity, Grok, Cursor, Microsoft Copilot, any other MCP client and the Elaichi Agent. You connect AgentMail once and every client uses it.

### What can an AI agent actually do with my AgentMail account?

An AI agent connected to AgentMail through Elaichi can list, add, update, verify and remove sending domains, read drafts and their attachments, create, rename and delete API keys, and find and connect apps. Short, concrete asks such as "which AgentMail domains are unverified" tend to work better than long sentences.

### Does connecting AgentMail give the AI access to everything in the account?

No. An AI client working with AgentMail through Elaichi can only reach what the connected AgentMail API key and the signed-in person are allowed to reach. Elaichi can narrow that further with restrictions, and it never widens it.

### Can my team share one AgentMail connection?

Yes. One person connects AgentMail in Elaichi and shares that connection with a team, so nobody else ever handles the AgentMail API key. Each teammate still signs in to Elaichi as themselves, so the audit log names the person behind every AgentMail action.

### Can I stop an AI agent from deleting domains or API keys in AgentMail?

Yes. In Elaichi you can restrict individual AgentMail actions, such as deleting a domain or an API key, on a role or on one person. A restricted AgentMail tool still appears in Elaichi's tool search, flagged as restricted, but no client can run it, whatever the prompt says.

### What happens to an AgentMail connection when someone leaves?

Offboarding a person in Elaichi ends their access to AgentMail at once, across every AI client they used. If they had shared an AgentMail connection, it keeps working for everyone else, and disconnecting AgentMail once in Elaichi removes it from every client.

### Does the AgentMail MCP connector work with Gemini, Codex, Claude Code or other MCP clients?

Yes. AgentMail is reached over the same MCP endpoint every client uses, so anything that speaks MCP can call it — Gemini, Codex, Claude Code, Windsurf, Cline, Zed and OpenCode among them — alongside Claude, ChatGPT, Perplexity, Grok, Cursor, Microsoft Copilot, and the Elaichi Agent. The tools on offer and the access behind them are identical whichever client asks. Only the setup screen differs.

### Is Elaichi an alternative to Zapier MCP for AgentMail?

Yes. Both let Claude, ChatGPT or Cursor use AgentMail. Zapier MCP fits a team that already automates in Zapier, since each person signs in and acts as themselves in that account. Elaichi fits when IT wants one address for the whole company, per-tool rules by role, and a record of every AgentMail call.

### How is Elaichi different from Composio for AgentMail?

Composio gives AI agents tools and sign-in handling across 1,000+ apps, for developers building agents or people using an assistant, billed per tool call. Elaichi gives a company's own people governed access to AgentMail: one address, restrictions per role or user, and $15 per user per month. Both have role permissions and a log of every call.

## All 191 AgentMail tools

Every tool below is callable through https://api.elaichi.ai/mcp once AgentMail is connected, subject to the toolbox it is in and the restrictions on the caller.

- **List all AgentMail accounts** (List). List Accounts. Lists accounts across all apps, scoped to the API key: an organization key sees every account, a pod key its pod's, an inbox key its inbox's. Requires inbox_read. The connector pages it (limit = page size, max 100).
- **Get single AgentMail account by ID** (Get). Get Account. Returns one account by ID. An account outside the key's scope is a 404. Requires inbox_read. Required: id.
- **AgentMail accounts bulk update** (Update). Update Account. Updates one account. Set status to disabled to stop the inbox from signing in at the app again, or to enabled to re-enable it. Idempotent: disabling an already disabled account keeps its original disabled_at, and enabling an enabled account is a no-op. Find the account_id with List Accounts. An account exists only after an inbox's first sign-in at an app, so it cannot be disabled in advance. Updates the one account named by account_id (PATCH /v0/accounts/{account_id}/update). Required: account_id.
- **List all AgentMail API keys** (List). List API Keys. Lists every credential, newest first. Filter one family with type. Page to token exhaustion: a page can be empty and still carry a next_page_token. The connector pages it (limit = page size, max 100).
- **Create a AgentMail API key** (Create). Create API Key. Creates a bearer key, or registers a public key when the body carries public_key. The route selects the scope. Bearer secrets are returned once.
- **Get single AgentMail API key by ID** (Get). Get API Key. Returns one credential of any family. Public keys also resolve by client_id. Poll a sign-in key until status is active. Required: id.
- **Update a AgentMail API key by ID** (Update). Update API Key. Renames a credential or changes its permissions. Public keys also resolve by client_id; a sign-in key accepts only app_connect and app_share_owner. Required: id.
- **Delete a AgentMail API key by ID** (Delete). Delete API Key. Deletes one credential of any family. A pending sign-in key is cancelled; an active one is revoked. Public keys also resolve by client_id. Required: id.
- **List all AgentMail app accounts** (List). List App Accounts. Lists accounts at one app, most recent sign-in first. Required: app_id. The connector pages it (limit = page size, max 100).
- **Create a AgentMail app connection** (Create). Connect App. Starts signing an inbox in to an app. Returns a single-use magic_url, valid for five minutes, to open in the client that will hold the sign-in; the client enrolls as the inbox and continues to the app. An app in the catalog can be named by its slug, as in POST /v0/apps/firecrawl/connect. A 404 names the missing resource: App or Inbox. A 403 AppSignupLimitError means the app accepts no more sign-ups from your organization; sign in with an inbox that already has an account there. Required: app_id.
- **List all AgentMail app search results** (List). Search Apps. Searches apps by name prefix. Required: q.
- **List all AgentMail apps** (List). List Apps. Lists apps, most popular first. The connector pages it (limit = page size, max 100).
- **Get single AgentMail app by ID** (Get). Get App. Gets one app by ID or slug. A catalog app returns its full entry. A registered app that the catalog does not list returns its ID and name only, without updated_at, so anyone holding its ID can still look it up; a slug finds catalog apps only. List Apps and Search Apps show catalog entries only. Required: id.
- **List all AgentMail domain setup links** (List). Get Setup Link. Build a one-click DNS setup link for the domain via the Domain Connect standard. When the domain's DNS provider supports Domain Connect and carries the AgentMail template, the response contains a signed URL: opening it lets the domain owner approve the required DNS records at their provider, which writes them automatically — no copy-paste. When the provider does not support it, supported is false and the domain's records should be added manually instead. Required: domain_id.
- **List all AgentMail domain zone files** (List). Get Zone File. Returns the DNS zone file as raw text (application/octet-stream), not JSON. Required: domain_id.
- **List all AgentMail domains** (List). List Domains. The connector pages it (limit = page size, max 100).
- **Create a AgentMail domain** (Create). Create Domain. Required: domain.
- **Get single AgentMail domain by ID** (Get). Get Domain. Required: id.
- **Update a AgentMail domain by ID** (Update). Update Domain. Required: id.
- **Delete a AgentMail domain by ID** (Delete). Delete Domain. Required: id.
- **AgentMail domains verify** (Verify). Verify Domain. Required: domain_id.
- **Get single AgentMail draft attachment by ID** (Get). Get Attachment. Required: id, draft_id.
- **List all AgentMail drafts** (List). List Drafts. The connector pages it (limit = page size, max 100).
- **Get single AgentMail draft by ID** (Get). Get Draft. Required: id.
- **List all AgentMail forwarding** (List). Get Forwarding. Get the forwarding the organization sets. Pods and inboxes that set no forwarding of their own use this list. Needs an organization-scoped API key.
- **AgentMail forwarding bulk update** (Update). Update Forwarding. Set the addresses the organization forwards to. The list replaces the current one. An address that is not verified is saved but receives nothing until it is verified. Needs an organization-scoped API key in an organization that has completed agent verification. Required: destinations.
- **AgentMail forwarding bulk delete** (Delete). Delete Forwarding. Remove the organization's forwarding, so its inboxes stop forwarding unless their pod or the inbox sets its own. Verified addresses stay verified, so adding one again needs no new code. Returns not_found when the organization sets no forwarding.
- **Create a AgentMail forwarding verification** (Create). Start Verification. Email a confirmation code to an address, so it can receive forwarded mail once confirmed. Verification belongs to the organization: once verified, the address can be used at the organization, any pod and any inbox. Starting again replaces any code already sent to the address. Needs an organization- or pod-scoped API key in an organization that has completed agent verification. Required: destination.
- **AgentMail forwarding verifications confirm** (Action). Confirm Verification. Submit the code emailed by Start Verification to verify the address. A code allows 10 wrong attempts, then stops working even with the right code, and Start Verification sends a new one. Needs an organization- or pod-scoped API key in an organization that has completed agent verification. Required: destination, code.
- **List all AgentMail inbox accounts** (List). List Accounts. Lists accounts held by the inbox, across all apps. Requires inbox_read. Required: inbox_id. The connector pages it (limit = page size, max 100).
- **Get single AgentMail inbox account by ID** (Get). Get Account. Returns one account held by the inbox. An account elsewhere is a 404. Requires inbox_read. Required: id, inbox_id.
- **List all AgentMail inbox API keys** (List). List API Keys. Required: inbox_id. The connector pages it (limit = page size, max 100).
- **Create a AgentMail inbox API key** (Create). Create API Key. Required: inbox_id.
- **Update a AgentMail inbox API key by ID** (Update). Update API Key. Required: id, inbox_id.
- **Delete a AgentMail inbox API key by ID** (Delete). Delete API Key. Required: id, inbox_id.
- **Create a AgentMail inbox authorization** (Create). Authorize Inbox. Authorizes the AgentID sign-in a client is already waiting in, for the inbox in the path, and returns the ID of the pending public key it will activate. Read the key with Get API Key. A repeat for the same token, inbox, and bearer returns the same key ID. A 403 AppSignupLimitError means the app accepts no more sign-ups from your organization. Required: inbox_id, auth_token.
- **List all AgentMail inbox calendar agenda** (List). Get Agenda. Lists every date on the calendar in a time window, ordered by start time: one-off events, and recurring events expanded into their individual dates, with cancelled dates left out. Use it to answer "what is on the calendar". The window defaults to now through 90 days from now and can be at most 366 days. Items omit description, metadata and attendees; get an event by ID for the full object. Required: inbox_id. The connector pages it (limit = page size, max 100).
- **List all AgentMail inbox calendar event instances** (List). List Event Instances. Lists the dates of one recurring event in a time window, in start order, with each date's edits applied. Dates are computed from the rule, so this works for any window up to 366 days, including dates far in the future. Cancelled dates are left out. The window defaults to now through 90 days from now. Items omit description, metadata and attendees; get a date by its ID for the full object. Required: inbox_id, event_id. The connector pages it (limit = page size, max 100).
- **Create a AgentMail inbox calendar event response** (Create). Respond to Event. Accepts, declines or tentatively accepts an invitation the inbox received by email. Pass the event's UUID to respond for every date, or a dated ID to respond for one date only. Only works on email events where the inbox is an attendee; anything else returns 409 calendar_response_invalid. Updates the inbox's attendee entry and sends calendar.event.responded. With send_reply (default true) the inbox emails the response to the organizer. Requires the calendar_event_update permission. Required: inbox_id, event_id, status.
- **List all AgentMail inbox calendar events** (List). List Events. Lists the events stored on the calendar: one item per one-off or recurring event, plus one item for each edited date of a recurring event (as that dated event, with is_exception: true). Ordered by most recently updated, and cancelled events are included. Use it to sync or manage what you created. To see what is on the calendar in a time window, use Get Agenda. The list is always read in the region that serves the request, so it can trail a change made moments earlier by a few seconds. Required: inbox_id. The connector pages it (limit = page size, max 100).
- **Create a AgentMail inbox calendar event** (Create). Create Event. Creates a one-off or recurring event on the inbox's calendar. Times are wall-clock values in timezone (the calendar's default time zone if omitted); the response also gives each boundary as a UTC instant in start_at and end_at. calendar.event.created is sent once the event is stored, then calendar.event.starting and calendar.event.ending as each date begins and ends. With send_invites: true the inbox also emails an invitation to every attendee. Required: inbox_id, title, start, end.
- **Get single AgentMail inbox calendar event by ID** (Get). Get Event. Gets an event by its UUID, or one date of a recurring event by its dated ID ( _ ). A dated ID returns the date as it currently stands, including any edit to it, with kind: instance. The response's etag (also the ETag header) is the value to send in If-Match to make an update, delete or response to this event or date conditional. Treat it as opaque. Reads can trail a change made moments earlier by a few seconds; pass consistency=primary to read the latest state of an event or a date. Required: id, inbox_id.
- **Update a AgentMail inbox calendar event by ID** (Update). Update Event. Updates an event. Send only the fields to change. To make the update conditional, send the event's current etag in If-Match: a stale value returns 412. Without If-Match the update applies to the event as it is; a change that lands while it runs returns 409 race_condition, so retry. Send If-Match when replacing attendees, so you don't overwrite a response that arrived in the meantime. - One-off or series UUID: changes the event itself. Required: id, inbox_id.
- **Delete a AgentMail inbox calendar event by ID** (Delete). Delete Event. Deletes an event, or cancels dates of a recurring event. - One-off or series UUID: deletes the event and every date of it. The event disappears from reads immediately and is removed in the background; the response is 202 with a deletion_id. A retry returns the same deletion_id while removal runs (send the same Idempotency-Key, or none and the same send_invites); once it has finished, the event no longer exists and a retry returns 404. Required: id, inbox_id.
- **List all AgentMail inbox calendars** (List). Get Calendar. Gets the inbox's calendar. Every inbox has one calendar, so this works before any event is created. Its etag (also the ETag response header) is the value to send in If-Match to make an update conditional. Requires the calendar_read permission. Calendar is available in US production (api.agentmail.to) but not yet in EU production (api.agentmail.eu), which returns 403. Required: inbox_id.
- **AgentMail inbox calendars bulk update** (Update). Update Calendar. Updates the calendar's default time zone. Existing events keep their own timezone; only events created later without a timezone use the new default. Requires the calendar_update permission. To make the update conditional, send the calendar's current etag in If-Match: a stale value returns 412. Without If-Match the update applies to the calendar as it is. Calendar is available in US production (api.agentmail.to) but not yet in EU production (api.agentmail.eu), which returns 403. Required: inbox_id, timezone.
- **Get single AgentMail inbox draft attachment by ID** (Get). Get Attachment. Required: id, inbox_id, draft_id.
- **List all AgentMail inbox drafts** (List). List Drafts. Required: inbox_id. The connector pages it (limit = page size, max 100).
- **Create a AgentMail inbox draft** (Create). Create Draft. Create a draft. Supply in_reply_to to create a reply draft (with reply_all to address the whole thread), whose recipients, subject, and threading are derived from the referenced message, or forward_of to create a forward draft, which derives the subject, threading, and forwarded content from the source but keeps recipients caller-supplied. Required: inbox_id.
- **Get single AgentMail inbox draft by ID** (Get). Get Draft. Required: id, inbox_id.
- ...and 141 more tools. Call `tools/list` via the MCP endpoint, or see the full catalog via the API, for the complete set.
