How to connect AgentMail MCP to Claude

Connect Claude Web, Desktop and Cowork to AgentMail MCP. Create an agentmail inbox for support, search agentmail threads for invoice updates, and more using natural language, with authentication handled for you.

AgentMail MCP logoAgentMail MCP
Dcr Oauth

AgentMail MCP is a hosted email and calendar service for AI agents. It gives agents managed access to inboxes, threads, drafts, files, and events.

55 Tools

Introduction

Claude is Anthropic's AI assistant, available on the web, in the desktop app, and on mobile. Cowork is its agent for knowledge work, and it runs on all of those surfaces too. Connected to your apps, Claude can work with your files and services to accomplish complex tasks on your behalf.

This guide walks you through the easiest and most secure way to connect your AgentMail account to Claude via Composio Connect, enabling it to create an AgentMail inbox for support, search AgentMail threads for invoice updates, draft an AgentMail reply to a customer, and more such actions on your behalf without compromising your account security.

Setup is the same on Claude Web, Desktop, and Cowork, and you only need to do it once. The connector is tied to your account, so it's available in all three.

For exact tool slugs and parameter tables, see the tool catalog in the Composio docs.

Also integrate AgentMail MCP with

Connecting AgentMail to Claude Web, Desktop, and Cowork

Two ways to add the Composio connector. Pick whichever you prefer.

1. Add with one click

Click the button. Claude opens with the Composio connector filled in. Click Add, then go to step 2.

Add to Claude

Add manually

In Claude Desktop, click Customize in the left sidebar, then select Connectors and click the + icon at the top.

Claude Desktop connectors screen with Add custom connector selected

Click Add custom connector and paste in the Composio MCP server URL:

bash
https://connect.composio.dev/mcp
Add custom connector dialog with Composio MCP server URL

2. Authorize in your browser

Click Connect. You'll be redirected to a browser window where you can authorize Composio to continue.

Composio authorization screen for Claude Web, Desktop, and Cowork

3. Connect your AgentMail account

Back in Claude, ask it to connect to AgentMail or give it any AgentMail-related task.

For example, ask Claude to:

  • "Create an AgentMail inbox for support"
  • "Search AgentMail threads for invoice updates"
  • "Draft an AgentMail reply to a customer"

It will prompt you to authenticate and authorize access.

That's it. Composio's tools are now available in Claude, and your AgentMail account is ready to use.

What is the AgentMail Claude Connector, and what's possible with it?

The AgentMail MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your AgentMail account. It provides structured and secure access to your inboxes, email threads, drafts, files, and calendars, so your agent can create inboxes, search and read conversations, send and reply to messages, manage drafts and files, and handle calendar events on your behalf.

  • Inbox and email management: Have your agent create and manage inboxes, list messages and threads, retrieve full conversations, and search through your email.
  • Sending and replying: Direct your agent to send new messages, reply within existing threads, forward messages, or respond to calendar invitations.
  • Draft organization: Let the agent create, review, list, and delete email drafts before they are sent.
  • File access: Instruct your agent to list, retrieve, and delete files stored in an inbox's drive.
  • Calendar coordination: Have your agent create one-off or recurring events, view an inbox's agenda, retrieve event details, and delete events when plans change.

Troubleshooting

1. Why does Claude not use the Composio connector for AgentMail?

The connector can show as connected, but Claude must use it in each AgentMail conversation.

  • Click + at the lower left of the chat, or type /.
  • Hover Connectors.
  • Turn on Composio.
  • Ask Claude to connect to AgentMail again.

2. Why does Claude show an MCP server error before AgentMail connects?

Claude can show Couldn't reach the MCP server or Authorization with the MCP server failed when you add the connector for AgentMail.

  • Check that the connector URL is https://connect.composio.dev/mcp.
  • Connectors run from Anthropic's cloud, so your device network is usually not the problem.
  • Add the connector again from Customize > Connectors, then ask Claude to connect AgentMail.
  • If it fails again, send the error and the ofid_ reference id to support@composio.dev.

3. Why does the AgentMail authorization link not work?

The Composio connector is one server. Your AgentMail account connects separately when Claude asks for it.

  • If the browser does not open, or the link expires, ask Claude to retry the AgentMail connection.
  • Composio creates a fresh AgentMail authorization link.
  • Open that link in your browser and finish the AgentMail sign-in.

4. Why do AgentMail actions fail after they worked before?

The AgentMail connection can expire or lose permission.

  • Ask Claude to inspect the AgentMail connection.
  • If the connection is unhealthy, disconnect it when Claude prompts you.
  • Reconnect the AgentMail account and retry the action.
  • If Claude shows a permission prompt, approve it before Claude changes data in AgentMail.
  • If the action still fails with a permission error, check that the connected account has that permission in AgentMail itself.

5. How do I switch to a different AgentMail account?

Claude can manage the AgentMail connection for you.

  • Ask Claude to disconnect or delete the current AgentMail account.
  • Ask Claude to connect AgentMail again.
  • Open the new Composio authorization link for AgentMail.
  • Sign in with the other AgentMail account in the browser.
  • After the account connects, ask Claude to retry the AgentMail task.

6. Why is my AgentMail connection missing in Claude Desktop or on a Team plan?

The connector belongs to your Claude account, so your AgentMail connection works in Claude Web, Desktop, and Cowork.

  • In Claude Desktop, open Customize > Connectors.
  • Next to Composio, click ⋮ and click Clear cache.
  • If AgentMail tools still do not appear, click ⋮, disconnect, remove the connector, and add it again.
  • On Team or Enterprise, an Owner or Primary Owner must enable the connector before you can connect AgentMail.
TOOLS

Supported Tools

Every AgentMail MCP action and event your agent gets out of the box.

Agent attach human

Attach the human you work for to an unverified agent organization, and email them a 6-digit verification code for agent_verify.

Agent verify

Verify an unverified agent organization using the 6-digit code emailed to the human attached to it, lifting the unverified plan's caps (1 inbox, 10 sends/day) at no cost.

Authorize inbox

Finish an AgentID sign-in that a browser already started at an app: when the app's Sign in with AgentID page says it is waiting for your agent and shows an auth token, pass that token with the inbox to sign in as.

Connect app

Create an account at an app as an inbox, or sign an inbox that already holds one back in: mints a browser sign-in session and returns a single-use magic URL to open in the client that will hold the sign-in (usually the agent's own browser session), plus the ID of the pending sign-in key.

Create draft

Create a draft email.

Create event

Create a one-off or recurring event on an inbox's calendar, with this inbox as organizer.

Create inbox

Create an inbox and return it, including the email address that is its inboxId.

Create list entry

Add an email address or domain to one of an inbox's allow or block lists.

Delete draft

Permanently delete a draft; this cannot be undone.

Delete event

Delete a calendar event, or cancel dates of a recurring one; this cannot be undone.

Delete file

Permanently delete a file from an inbox's drive (Agent Drive); this cannot be undone.

Delete inbox

Permanently delete an inbox and all of its threads, messages, and drafts; this cannot be undone.

Delete list entry

Remove an email address or domain from one of an inbox's allow or block lists — for a send block, this is the remedy a blocked-recipient send error names.

Delete thread

Permanently delete a thread and all of its messages; this cannot be undone.

Forward message

Forward a message to new recipients; it is sent right away and cannot be recalled.

Get agenda

List what is on an inbox's calendar in a time window, ordered by start: one-off events and each date of recurring events, with cancelled dates left out.

Get app

Get one app by ID, or by the slug of an app in the catalog (such as "firecrawl").

Get attachment

Get an attachment from a thread.

Get calendar

Get an inbox's calendar: its default time zone (used for events created without one), how many events it holds, and its etag.

Get draft

Get a draft by ID, including its content, status, and scheduled send time.

Get event

Get one calendar event in full, with its description, attendees and their responses, and its etag: a one-off or recurring event by its UUID, or one date of a recurring event by its dated ID (_).

Get file

Get a file from an inbox's drive (Agent Drive), with a download link that works for up to an hour without an API key.

Get inbox

Get one inbox by its inboxId: its email address, display name, metadata, and when it was created and last updated.

Get labs

Check whether the organization is in AgentMail Labs, which offers features still in preview, such as Agent Armor, and whether Labs is offered in this deployment.

Get list entry

Get one entry from one of an inbox's allow or block lists, by the email address or domain it holds: whether it is an address or a domain, why it was added, whether AgentMail added it (readOnly), and when.

Get message

Get one message by ID with its full body.

Get started

Start here when the user is new to AgentMail, asks to set it up or try it, or has no inbox yet.

Get thread

Get a thread by ID, including its messages.

Join labs

Join AgentMail Labs for the whole organization, making its preview features, such as Agent Armor, available to every inbox; some, Agent Armor among them, are then turned on by an organization admin in the console.

List accounts

List your organization's accounts: the inboxes signed in at apps.

List apps

List the app marketplace: services where an agent can create an account using an inbox (for example a web scraping, search, or database API), most popular first.

List drafts

List drafts in an inbox, most recently updated first, paginated.

List files

List the files in an inbox's drive (Agent Drive) in path order, optionally only those under a path prefix such as reports/.

List inboxes

List the organization's inboxes, newest first, paginated.

List list entries

List the entries on one of an inbox's allow or block lists.

List messages

List messages in an inbox, newest first, paginated.

List organizations

List the organizations you belong to and show which one is currently selected for AgentMail operations: each with its ID, its name, and whether it is selected.

List threads

List email threads in an inbox, most recently received first, paginated.

Reply to message

Reply to a message in its thread; the reply is sent right away and cannot be recalled.

Respond to invitation

Accept, decline, or tentatively accept a calendar invitation this inbox received by email, and by default email the answer to the organizer right away, which cannot be recalled.

Search apps

Search the app marketplace by name prefix, for when the user names a service ("create an account at Firecrawl").

Search inboxes

Find inboxes by address or display name (word-prefix match, best match first) without paging the whole organization.

Search messages

Search messages in an inbox with a full-text query, ranked by relevance.

Search threads

Search threads in an inbox with a full-text query, ranked by relevance.

Select organization

Choose which organization your AgentMail operations target (for users who belong to multiple orgs).

Send draft

Send a draft right away; once sent it cannot be recalled.

Send feedback

Records feedback about this MCP server, including unexpected tool failures, unhelpful responses, or missing capabilities observed by the agent or reported by the user.

Send message

Send an email from an inbox right away; once sent it cannot be recalled.

Update calendar

Set an inbox's calendar default time zone, used for events created later without one; existing events keep their own.

Update draft

Update a draft email.

Update event

Change a calendar event: send only the fields to change.

Update inbox

Update an inbox's display name or metadata.

Update message

Add or remove labels on one message, for example remove unread to mark it read.

Update thread

Add or remove labels on every message in a thread: add trash to move it to trash, or remove unread to mark it read.

Upload file

Store a file at a path in an inbox's drive (Agent Drive) and get it back ready, with a download link when the credential may read files.

FRAMEWORKS

How to build AgentMail MCP Agent with another framework

FAQ

Frequently asked questions

Start with AgentMail MCP.It takes 30 seconds.

Managed auth, hosted MCP servers, and every AgentMail MCP tool your agent needs.Free to start.

Start building