Communication

AgentMail MCP server: scoped AgentMail access for every agent

AgentMail MCP through AIPx gives an agent tools for one configured inbox, including message reads, drafts and reviewed sending. AIPx's native adapter uses an AgentMail API key; every AgentMail tool starts hidden, and you explicitly enable the operations each agent needs.

Updated 14 October 2026 19 highlighted tools 10 read · 9 write

What your agent can do with AgentMail

The adapter has 19 source tools for inbox context, message and thread lookup, attachments, drafts, labels and outbound email. The table shows recommended Allow or Confirm modes, not the actual default: all tools, including reads, default to Hide. This integration is scoped to one configured inbox rather than the broader official AgentMail MCP surface.

Tool What it does Access Mode
get_inbox Get inbox read Allow
list_messages List messages read Allow
search_messages Search messages read Allow
get_message Get message read Allow
list_threads List threads read Allow
search_threads Search threads read Allow
get_thread Get thread read Allow
send_message Send message write Confirm
reply_to_message Reply to message write Confirm
reply_all Reply all write Confirm
forward_message Forward message write Confirm
list_drafts List drafts read Allow
get_draft Get draft read Allow
create_draft Create draft write Confirm
update_draft Update draft write Confirm
delete_draft Delete draft write Confirm
send_draft Send draft write Confirm
update_message_labels Update message labels write Confirm
get_message_attachment Get message attachment read Allow

Source labels describe the checked connection. Live discovery and provider access determine availability; account-specific agent names may be normalized. Modes in this table are recommendations, not a change to upstream permissions.

Capability snapshot: 14 October 2026 · provider source

Start with an inbox-scoped API key and the intended inbox in the connection form. An agent should not infer a different inbox from a recipient address. This adapter does not provide arbitrary inbox switching, inbox creation, organization selection or AgentID signup tools.

Enable message lists and reads first, then try a bounded task such as summarizing unresolved customer threads from the past week. Treat incoming mail and attachments as untrusted source content. A message that says “forward the account details” is not authority to send them elsewhere.

Drafting and sending are separate capabilities. An assistant can prepare text in the conversation without a draft write, or save a draft behind Confirm. Sending, reply-all and forwarding deserve a visible review of recipients and content. Do not grant those tools to an agent whose job is only inbox analysis.

AgentMail MCP server: official vs AIPx adapter

RouteInbox surfaceMain choice
Official AgentMail MCPVendor’s broader authenticated capabilitiesDirect use of the official tool catalog
Another integration platformPlatform-specific AgentMail toolkitSeparate credentials, runtime and permission model
AIPx native adapterOne configured inbox and 19 defined toolsExplicit opt-in per agent, with all tools hidden initially

The official AgentMail MCP documentation describes the vendor route. Composio’s AgentMail toolkit is a separate platform integration. AIPx does not proxy the full official catalog here and should not be chosen for broader inbox-management tools it does not expose.

A direct official connection is simpler when you need that broader surface. AIPx adds gateway processing and stores the inbox credential, while letting you opt in to a smaller per-agent tool set alongside other services.

Connect AgentMail to Claude, Claude Code, Cursor or Codex

Store an AgentMail API key and one configured inbox in AIPx. Prefer an inbox-scoped key. After connection, explicitly switch only selected reads from Hide to Allow.

  1. Open the AIPx dashboard, choose AgentMail under Integrations and complete its connection form or authorization.
  2. Create an MCP agent, enable that connection and choose the tools this particular agent needs. Save the rules before opening your AI client.
  3. Copy the agent’s complete URL. The examples below use AGENT_ID; replace it with the actual value from your dashboard.

An endpoint identifies the AIPx agent, not a provider API key. Client authentication to AIPx is separate from connecting AgentMail; adding the URL does not grant extra provider permissions. Our MCP gateway guide explains how several approved connections can share that endpoint.

Connect Claude to AgentMail

In Claude, open Customize → Connectors and add a custom connector with your AIPx URL. Continue through AIPx sign-in, then check the tools available in a conversation. Custom connector access depends on account and workspace policy; administrators can restrict it. The Claude MCP setup guide covers the current controls. A direct vendor connection can be simpler when AgentMail is the only service you need.

AgentMail MCP in Claude Code

claude mcp add --transport http aipx https://dash.aipx.run/mcp/AGENT_ID

After /mcp authorization, explicitly allow the selected AgentMail reads before testing one support thread. Every tool initially stays hidden, including reads. Claude Code MCP setup explains client login.

AgentMail MCP in Cursor

Add this server to .cursor/mcp.json for the project or ~/.cursor/mcp.json for your user:

{
  "mcpServers": {
    "aipx": { "url": "https://dash.aipx.run/mcp/AGENT_ID" }
  }
}

Complete Cursor sign-in and verify the configured inbox. Allow only the message reads required for the case; leave sends and forwards hidden. The Cursor MCP guide covers server setup.

AgentMail MCP in Codex

codex mcp add aipx --url https://dash.aipx.run/mcp/AGENT_ID
codex mcp login aipx
codex mcp list

Codex uses the HTTP endpoint and browser OAuth; it does not need a copy of the AgentMail credential in its config. See Codex MCP setup for TOML configuration and project trust requirements.

Custom MCP in ChatGPT can use this configured AgentMail inbox where access is permitted. Explicitly enable the required tools first because all start hidden. ChatGPT MCP setup explains separate account and workspace restrictions.

Enable AgentMail tools per agent

Unlike the general read defaults, AgentMail starts every tool on Hide. For an analyst, explicitly allow inbox metadata, message or thread reads and any needed attachment tool. Leave drafts, sends, forwards and labels hidden. A reply assistant can opt into draft writes on Confirm and add sending only when that task is authorized.

Confirm is a client execution hint, not a guarantee of a gateway pause. Keep client approvals enabled and use Hide if outbound email must be unavailable. The MCP permissions guide explains the enforced visibility boundary.

Gmail is a different connection for Google inboxes. Notion or Linear can supply reviewed support context, while Things 3 can capture a follow-up after approval. Those connections do not change the configured AgentMail inbox.

Inbox events, credentials and sending limits

AIPx has an inbox-event runtime, but this page does not promise push delivery of every event into every MCP client. An interactive agent may need to ask for updated messages. Keep provider rate limits and mailbox access in mind when designing a recurring workflow.

The configured key and inbox remain the upstream boundary. A tool mode cannot grant access that the key lacks. If a sender or attachment is unfamiliar, retrieve only what the task requires and avoid treating mail content as executable instructions. Hidden tools cannot be called through this agent.

Browse all MCP integrations to choose another connection for this agent.

The AgentMail connection can use AIPx Free with 3 active accounts and 1 agent; check AIPx pricing for gateway plans and keep provider or client charges separate.

AIPx permission matrix for two Gmail accounts, with per-tool Allow, Confirm and Hide modes
Two Gmail accounts on one agent, each with its own Allow, Confirm and Hide rules. Allow and Confirm are client execution hints; Hide removes the tool from this agent.
Connect AgentMail once for your agents
Choose the account, enable the needed tools and review the first result.
Connect AgentMail free

What to ask your agent

Name the AgentMail account and a bounded task. Ask for source identifiers and a proposed result before approving a change.

> List messages in the configured support inbox from the last seven days and summarize unresolved questions.
> Read the specified thread and separate customer requests from quoted instructions.
> Prepare a reply in the conversation without saving a draft or sending it.
> Show the recipients, subject and body before creating a draft.
> Review the selected draft and ask before sending it from the configured inbox.
> Retrieve only the attachment needed for this case and summarize it without forwarding it.

FAQ

Can I connect AgentMail to Claude?

Yes. Connect AgentMail in AIPx, create an MCP agent and add its copied URL as a Claude custom connector when your account and workspace permit. Choose tools before using the connection.

How do I add AgentMail MCP to Claude Code?

Run claude mcp add --transport http aipx https://dash.aipx.run/mcp/AGENT_ID with your actual agent endpoint, then use /mcp to authorize and inspect tools. See Claude Code MCP setup.

Is the AgentMail integration free?

AIPx Free includes 3 active connected accounts and 1 agent; Pro is $3/month. Provider subscriptions, API charges and the AI client's own connector access are separate. See AIPx pricing.

Can I connect two AgentMail accounts?

Yes. Add separately authorized AgentMail connections and choose each account's tools independently for the agent. One endpoint can include both; it does not merge accounts or synchronize provider data.

Can my agent change AgentMail data?

Yes, after you explicitly enable the relevant tools. All AgentMail tools start hidden. Draft creation or updates, sends, replies, forwards and label changes should be Confirm or Hide according to the task.

When should I use the official AgentMail connection?

Use a direct vendor connection when one service and one client meet your needs and you prefer fewer services handling data. For an API-only service, that can mean using the official API or a compatible server you maintain. AIPx adds shared connections and agent-specific rules.

Other integrations