The Model Context Protocol (MCP) is an open standard that lets AI clients call external tools. AgentMail runs a hosted MCP server at https://mcp.agentmail.to/mcp that exposes inbox, message, thread, draft, and attachment tools to any compatible client.
The server supports two authentication paths:
console.agentmail.to and the server uses your console identity for every call.?apiKey= query parameter or an x-api-key header.If you belong to more than one AgentMail organization, the OAuth consent screen will ask you to pick which one to use before completing the connection.
AgentMail.https://mcp.agentmail.to/mcp.console.agentmail.to. Sign in.List my AgentMail inboxes to confirm the connection.OAuth is the recommended path for Claude products. You do not need an API key; the server uses your console identity to call AgentMail on your behalf.
If your client supports custom headers, you can pass the key as a header instead of a query parameter:
Use the same URL and API key pattern as Cursor. Most clients accept either the ?apiKey=YOUR_API_KEY query form or the x-api-key header.
Add the server with the claude mcp command:
Claude Code will run the same OAuth flow on first use. Connectors installed on Claude.ai do not automatically sync to Claude Code, so install it separately.
The server exposes 17 tools, grouped by resource.
Claude says it cannot access AgentMail. The connector is not installed or not connected. Follow the Claude Desktop setup steps above and confirm the connector shows as connected in Settings, then Connectors.
OAuth opens console.agentmail.to but says you do not have an account. Sign up at console.agentmail.to first, then retry the connector flow.
You picked the wrong organization on the consent screen. Open Settings, then Connectors, disconnect the AgentMail connector, and connect again. The consent screen will let you choose a different organization.
API key requests return an authentication error. Verify the key in console.agentmail.to under Settings, then API Keys. Confirm the key has not been revoked and that you copied the full value, including the am_ prefix.