AgentMail

AgentMail is an email API for AI agents: create inboxes, send and receive messages, manage threads, and handle webhooks programmatically. Source: AgentMail docs, 2026-07-01

What It Is

AgentMail gives agents real two-way inboxes instead of treating email as an ad hoc SMTP side channel. The docs expose inboxes, messages, threads, drafts, labels, lists, attachments, pods, permissions, webhooks, WebSockets, IMAP/SMTP, custom domains, deliverability, idempotency, and examples for event-driven, sales, labeling, and auto-reply agents. Source: AgentMail docs index, 2026-07-01

The agent-facing surface is broad: official docs are Markdown-readable via .md URLs and /llms.txt; the hosted MCP server is https://mcp.agentmail.to/mcp; the docs also list official skills, CLI, Google ADK, LangChain, OpenClaw, Replit, LiveKit, Sim.ai, x402, and MPP integrations. This makes AgentMail a communication substrate for agent workflows, not just an email-sending API. Source: AgentMail docs index and MCP docs, 2026-07-01

MCP and CLI Surface

The hosted MCP server exposes 17 tools across inboxes, threads, messages, drafts, and attachments. Claude Desktop and Claude.ai use OAuth through console.agentmail.to; Cursor, Windsurf, and similar clients can pass an API key via ?apiKey= or an x-api-key header; Claude Code can add the server with claude mcp add --transport http agentmail https://mcp.agentmail.to/mcp. Source: AgentMail MCP docs, 2026-07-01

This is a good MCP as the Integration Standard example because email has state, auth, side effects, and human-visible consequences. Treat the MCP route as a production integration candidate only after choosing permission scopes, allowlists, webhook verification, dry-run behavior, and human approval for outbound sends. For shell-heavy workflows, prefer the official CLI or SDK when they provide a smaller, auditable command surface.

Email-to-Claude Code Gateway

mvanhorn/agentmail-to-claude-code shows the agent-operator version of AgentMail: email becomes a remote control plane for Claude Code on a trusted Mac. The daemon subscribes to an AgentMail inbox over WebSocket or polls a Primitive inbox, rejects unallowlisted or DKIM/SPF-failed messages, downloads attachments to local paths, writes the email body and attachment paths into a prompt file, then opens a fresh Claude Code session in cmux or Ghostty. If terminal dispatch fails, the message stays unread and the sender gets a bounce, so a task is not silently lost. Source: GitHub README, 2026-07-02

The useful pattern is "inbox as durable task trigger", not email as a chat transcript. The repo's README is explicit about the safety boundary: CC_ALLOWED_FROM controls who can drive the machine, DKIM/SPF failures are dropped, credentials live in env files, and --dangerously-skip-permissions only belongs on a trusted machine and inbox. Attachments are passed as file paths so screenshots/files can reach Claude without embedding raw bytes in the agent's prompt context. Source: GitHub README, 2026-07-02

This belongs next to Claude Code Dynamic Workflows when the trigger needs to originate outside the terminal: phone shortcuts, another agent, cron, email, or a human sending a structured task. Keep it out of default routing until the allowlist, launchd ownership, terminal backend, and audit/logging story are reviewed for the target machine.

Pricing and Startup Program

The reviewed X bookmark announced the Startup Program: three months free on the Startup tier for early-stage AI-agent startups that have raised $500K to $10M and are not current or prior AgentMail customers. The promoted tier includes 150 inboxes, 150,000 emails/month, 150 GB storage, 150 custom domains, SOC 2 report access, and Slack channel support. Source: X/@agentmail, 2026-06-16; AgentMail Startup Program, 2026-07-01

Pricing snapshot on 2026-07-01: Free is $0/month with 3 inboxes, 3,000 emails/month, and 3 GB storage; Developer is $20/month with 10 inboxes, 10,000 emails/month, 10 GB storage, and 10 custom domains; Startup is $200/month with the 150-inbox package; Enterprise is custom and adds unlimited inbox availability, bulk discounts, white-label, usage-based pricing, EU cloud, BYO cloud, dedicated IPs, and OIDC/SAML SSO. Source: AgentMail pricing, 2026-07-01

Version and Source Snapshot

Package snapshot on 2026-07-01:

Surface Snapshot
agentmail npm package latest 0.5.13; registry modified 2026-06-25
agentmail-cli npm package latest 0.7.12; registry modified 2026-05-14
agentmail-mcp npm package latest 0.2.2; registry modified 2026-05-08
agentmail-python repo 58 stars, 16 forks, no declared license, pushed 2026-06-25
agentmail-node repo 35 stars, 15 forks, no declared license, pushed 2026-06-25
agentmail-toolkit repo 79 stars, 25 forks, no declared license, pushed 2026-06-12
agentmail-mcp repo 51 stars, 15 forks, no declared license, HEAD 1728911dcfd1b55314b15ffcb3febbcf8ce0fec6
agentmail-cli repo Apache-2.0, 30 stars, 8 forks, pushed 2026-06-25
mvanhorn/agentmail-to-claude-code repo MIT, 40 stars, 6 forks, HEAD d5ebbaf3dee1488a155eab57ce58e60aab3948d0, no public tags observed, pushed 2026-06-04

No current npm packages were found at @agentmail/sdk or @agentmail/client during the registry check. Source: npm registry and GitHub agentmail-to, 2026-07-01

Kevin Fit

Use AgentMail when an agent needs a real external communications channel: outbound outreach, inbound triage, threaded conversations, custom-domain inboxes, webhook-driven processing, or human-in-the-loop draft review. It belongs with Tool-Calling Design and Agentic Infrastructure because the hard part is not "send email"; it is permissioning, reputation, auditability, retries, idempotency, and user-visible side effects.

Do not treat the startup promo as the routing default. The durable thing is the API/MCP/CLI surface for agent-owned inboxes; the promo is only pricing context.


Timeline