tokencanopy

e2a: Go Email API for Applications and AI Agents

e2a is a Go email API and SMTP relay for transactional email and two-way agent inboxes. Use its hosted service or self-host with Docker, connecting through REST, SDKs, webhooks, WebSockets, or MCP.

ActiveGoApache-2.0APIEmailMCP
Stars
194
Forks
27
Stars, last 30 days
+5
Last commit
3 days ago
Contributors
16

Our take

Activeregular commits and releases

Health score

59/100

How it is scored
Activity
85
Community
36
Issues
53
Pull requests
60

+5 stars in the last 30 days

  • Releases more often than 87% of the projects we track
  • Merges more pull requests than 85% of the projects we track

e2a is an actively developed, feature-rich email layer for agent workflows, though its development is concentrated in one contributor and its self-hosted setup requires operating a database and email infrastructure.

Good fit if

  • You need applications or agents to both send and receive email, with threading and structured sender-authentication results.
  • You want an MCP integration or SDKs and can use the hosted service or operate the self-hosted stack.
  • You need optional human approval before outbound messages are sent.

Look elsewhere if

  • You only need a basic outbound email provider and do not need agent inboxes or inbound email handling.
  • You need hosted inbound content screening, which the README says is currently self-host-only.
  • Your team cannot operate PostgreSQL and SMTP infrastructure and does not want to use the hosted service.
All health signals
Last commit2026-10-22 (3 days ago)
Commits, last 90 days100+
Releases, last 12 months50 (latest v1.16.0, 2026-10-10)
Contributors16 (top contributor: 88% of commits)
Issues closed, last 90 days2+
Pull requests merged, last 90 days77 (typically merged in 1 day)
Project age6 months

Checked on 2026-10-26 with the GitHub API.

Project history

Daily GitHub snapshots since Oct 7, 2026. History covers stars and forks; health signals are not tracked historically.

Selected snapshot

Stars

199

Forks

27

Change since Nov 14, 2026: 0 stars·0 forks

Overview

e2a is a Go-based email API and SMTP relay for applications and AI agents. It handles transactional sending and real two-way inboxes, so agents can receive and reply to email without teams building the mail infrastructure and integration layer themselves. It supports hosted use at e2a.dev or self-hosting with Docker.

The service connects email to agent code through REST, TypeScript and Python SDKs, webhooks, WebSockets, a CLI, or a hosted MCP server. Inbound messages include SPF, DKIM, and DMARC evidence, and outbound messages can be held for human approval. The project is aimed at developers building email-enabled applications or agents, rather than users looking for a general-purpose mail server.

Key Features

  • Send transactional email over the HTTP API or TypeScript and Python SDKs.
  • Give agents inboxes that receive email and support replies in existing email threads.
  • Deliver inbound mail through webhooks, WebSockets, REST polling, or MCP tools, including options that do not require a public URL.
  • Provide structured SPF, DKIM, and DMARC authentication results for inbound messages.
  • Hold outbound messages for human approval through the dashboard, API, MCP tools, or email links.
  • Offer a hosted MCP endpoint for connecting MCP-compatible agent clients.
  • Support self-hosted deployment with Docker, PostgreSQL, and standard SMTP.

Use Cases

  • An application team can send transactional messages and receive replies through one API rather than operating its own email integration layer.
  • An AI support agent can monitor a support inbox, reply in-thread, and send sensitive responses for human approval.
  • A developer can run a local agent behind a firewall and consume incoming email over WebSockets without exposing a webhook endpoint.
  • Teams building agent workflows can use email to communicate with people or agents at other organizations through familiar email clients.

What you need

Detected in the repository

  • Node.js (from package.json)
  • Go 1.26.0 or newer (from go.mod)
  • A Dockerfile, so it can run in a container; a Compose file sets up the related services
  • A test suite and automated checks on GitHub Actions

License in plain words

Apache-2.0permissive

  • Commercial use: yes
  • Modify and redistribute: yes
  • You must keep: the license, the NOTICE file and a note of your changes
  • Share your changes: no
  • Includes an explicit patent grant from the contributors:

A summary, not legal advice: the LICENSE file is what applies.

Getting Started

For hosted use, connect an MCP client to https://api.e2a.dev/mcp. To self-host, clone the repository and start its Docker Compose services:

git clone https://github.com/tokencanopy/e2a.git
cd e2a
docker compose up -d

See the README for setup, configuration, and API details.

Alternatives

  • relay: Hyvor Relay sends and manages email through your own SMTP infrastructure, while e2a also supports two-way agent inboxes and multiple integration methods.
ProjectLanguageLicenseStarsStatus
e2aGoApache-2.0194Active
relayPHPAGPL-3.0918Active

Considerations

  • The project is active, with frequent recent commits and releases, but most code contributions come from one person. The available health data shows limited recent issue closure, so teams should assess their support needs independently.
  • Self-hosting requires Docker and PostgreSQL 14 or later, plus SMTP configuration for real email delivery. The project also includes a Node.js dashboard alongside its Go backend.
  • Inbound content screening is available only on self-hosted deployments and is disabled by default there.
  • The repository uses the Apache-2.0 license. Review its terms and the included notices when incorporating or distributing the software.

Found this useful?

Share it with someone who would like e2a.

Comparisons