# e2a — email for AI agents [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/tokencanopy/e2a  
**GitHub Stars:** 201  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/e2a-email-for-ai-agents

## Description
Authenticated email gateway for AI agents — per-agent inboxes, HITL approval, SPF/DKIM verified.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "e2a-email-for-ai-agents": {
    "command": "uvx",
    "args": ["e2a"]
  }
}
```

## Documentation

## What e2a — email for AI agents does

e2a provides an email interface for applications and AI agents. Through MCP, an agent can work with an inbox, read incoming messages, send outbound mail, and reply to existing conversations. The service supports real two-way email rather than one-way notification delivery, making it suitable for support, scheduling, sales, recruiting, procurement, and other workflows that continue across multiple messages.

Inbound messages include structured SPF, DKIM, and DMARC evidence, including an aligned DMARC result. Outbound delivery can use an SMTP relay for agent-to-agent mail or upstream SMTP providers such as SES and Resend for messages to people.

An optional human-in-the-loop gate holds outbound messages until someone approves them. Reviews can happen through the dashboard, a magic-link email, MCP tools, or the API. Self-hosted deployments also support opt-in content screening for prompt-injection indicators and, with the LLM detector, phishing; results are routed to allow, review, or block outcomes.

## How it works

The hosted MCP endpoint is `https://api.e2a.dev/mcp`. MCP-aware clients connect to that URL, and the first tool use starts browser-based OAuth. The e2a plugin can register the hosted server and an agent skill for clients that support plugins. Cursor can configure the endpoint in `.cursor/mcp.json`, while other supported clients can use client-specific MCP configuration files.

Hosted e2a includes the shared `agents.e2a.dev` domain for slug-based onboarding, along with a dashboard and managed email delivery. Self-hosting runs the stack with Docker. A self-hosted installation can use a mail domain pointed at its relay and configure the shared domain in `config.yaml`.

MCP is one integration path. Applications can also use the TypeScript `@e2a/sdk` or Python `e2a` client, webhooks, WebSockets, REST polling, or the `e2a` CLI. The SDKs include webhook verification and a WebSocket `listen()` stream; the CLI can forward inbound mail to a local HTTP handler.

## Setup and configuration

For the hosted service, create an account at e2a.dev and connect the agent to the hosted MCP endpoint. Claude Code can install the e2a plugin from the Token Canopy marketplace, and Codex can add the marketplace and install e2a from its plugin interface. Cursor and other MCP clients can connect directly to the endpoint and authorize in a browser.

Self-hosting is available through Docker and uses the project’s deployment configuration. The shared-domain shortcut requires pointing a mail domain at the relay and setting `shared_domain` in `config.yaml`. Hosted and self-hosted deployments expose nearly the same feature set, except content screening is currently available only when self-hosted.

## Tools and capabilities

- Manage per-agent inboxes through MCP.
- List messages with structured authentication evidence.
- Send messages and reply within existing email conversations.
- Hold outbound messages for human approval before delivery.
- Use standards-compliant reply headers and optional beta `thread_id` metadata.
- Render reusable beta email templates with `{{variable}}` values at send time.
- Schedule sends, replies, and forwards up to 90 days ahead and cancel them before submission.
- Manage beta contacts and outreach state, including bulk import and due-queue notifications.

## Limitations and notes

The hosted service requires browser OAuth on first use rather than an API key pasted into the MCP configuration. Content screening is self-host-only. Email templates, contacts and outreach, and scheduled sending are beta capabilities. The shared-domain onboarding shortcut applies to the hosted setup and requires mail-domain and relay configuration when self-hosting.

_Full upstream README: https://allmcps.com/mcp/e2a-email-for-ai-agents/readme_

