e2a Email for AI Agents
Lets your AI agent have its own email inbox: read, send and reply to messages, with optional human approval.
198 stars on GitHubby Token CanopyLicense Apache-2.0Updated 21 days ago
How to install
This MCP is remote: it runs in the cloud.
Nothing to install. Copy the address and paste it into your AI app:
Server address
https://api.e2a.dev/mcp
- βΊClaude (site or app): Settings β Connectors β Add custom connector.
- βΊChatGPT: Settings β Apps β Create app (developer mode), and paste the address.
- βΊClaude Code, Cursor, VS Code and Windsurf: pick your app below.
Paste in the terminal:
claude mcp add --transport http e2a https://api.e2a.dev/mcp
What to fill in
| Name | What it is | Required |
|---|---|---|
Authorization | OAuth 2.1 is the recommended connection (add the connector and authorize β no key to paste; auto-discovered via /.well-known/oauth-protected-resource). For programmatic / self-host use, a Bearer e2a API key (e2a_acct_β¦ or e2a_agt_β¦) is also accepted. | No |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Check my agent inbox and summarize new messages.
Reply to the last customer email, but hold it for my approval.
What it is
e2a is an email service for AI agents. Each agent gets a real inbox with checked sender information (SPF, DKIM, DMARC). The agent can list, send and reply to messages, and you can hold outgoing mail until a person approves it.
What it can do
list_messages: read an inboxsend_message: send an emailreply_to_message: reply in the same thread- Human approval of held outgoing mail
- Per-agent inboxes with verified sender evidence
When to use
- βΊWhen you want an agent to run a support inbox and reply in threads.
- βΊWhen you want outgoing mail held for approval before it is sent.
- βΊWhen you want an agent on your laptop to watch an inbox without a public URL.
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
agentmailAllows your agent to read and send task emails. It can reply to emails and check if they were delivered, using its assigned inbox.agentmailGives your agent its own email inbox for sending mail, reading replies, and completing email verification codes through the AgentMail CLI.mailtrap-testing-with-sandboxLets your agent capture outgoing emails for testing. It's useful for developers to check how emails look, perform spam checks, and test fake inboxes.Frequently asked questions
Is it open source?
Yes. The stack is Apache 2.0 and can be self-hosted with Docker.
Is there a hosted version?
Yes, at e2a.dev. The readme says you can start free.
How does sign-in work?
With browser OAuth. There is no API key to paste.
Can a person approve emails first?
Yes. An optional human-in-the-loop gate holds outgoing mail until a reviewer approves.
Which clients work?
Claude Code, Codex, Cursor, Zed, Goose, Windsurf, Claude Desktop and others that support remote MCP.
Is content screening available?
It is available when self-hosting and not yet enabled on the hosted service.
If it does not work
- βΊOn first use a browser window opens for sign-in; complete it and retry.
- βΊRestart your client if the e2a tools do not appear after install.
- βΊFor Claude Code, run claude plugin marketplace add tokencanopy/e2a and then install e2a@e2a.
5 new skills a week. 1 minute to read.