Agent Mail logo

Agent Mail

Connect AI agents to MailKite for sending email, receiving webhooks, managing domains, routing messages, and handling inbox agents.

Install Agent Mail

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "agent-mail": {
      "command": "npx",
      "args": [
        "-y",
        "@mailkite/mcp"
      ],
      "env": {
        "MAILKITE_API_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env MAILKITE_API_KEY=YOUR_VALUE_HERE --transport stdio agent-mail -- npx -y @mailkite/mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y @mailkite/mcp

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The agent-mail MCP server connects AI agents to MailKite for sending and receiving email through verified domains. It exposes tools for messages, attachments, templates, domains, webhooks, inbound routes, contact lists, and inbox agents. Run it locally with npm and an API key, or use MailKite's hosted MCP endpoint with browser-based OAuth. Reach for it when an agent needs to operate an email inbox or automate domain and message workflows.

Use cases

  • Send transactional email from an AI workflow
  • Route inbound messages to an inbox agent
  • Configure domain webhooks and tracking events
  • Inspect stored messages and retry webhook delivery
  • Create personalized batch messages for up to 50 recipients

Key features

  • Send individual and personalized batch email
  • Manage verified domains and DNS verification
  • Configure inbound and tracking webhooks
  • Create routes for agents, webhooks, or forwarding
  • Manage email templates and attachments
  • Read stored messages and contact-list counts

Tools92

What Agent Mail lets your agent do. Expand a tool for its parameters.

Verified live~15.7k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

26/30 checks healthy over the last 117d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16d ago via OSV.dev · @mailkite/mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads865Package downloads in the last 30 days.
Last commit2mo agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Tools exposed92Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Agent Mail works

What the agent-mail MCP server does

The agent-mail MCP server exposes MailKite's email API through the Model Context Protocol. Agents can send individual messages or personalized batches, upload attachments, read stored messages, and retry webhook delivery. Sending is tied to a verified MailKite domain.

The server also covers the configuration around email delivery. It can create, inspect, verify, and remove domains; check domain availability; register a domain; and manage DNS information returned by MailKite. Template tools list saved and base templates, retrieve full template content, and create new templates.

Inbound email can be connected to a catch-all webhook or routed with rules. Routes can send a message to an inbox agent, webhook, or forwarding destination. The available agent and route tools also let an AI workflow invoke an inbox agent directly or run a registered route. Contact-list inspection is available through the list tool.

How the agent-mail MCP server works

The package is generated from MailKite's shared API contract, with one MCP tool for each supported API method. An MCP client invokes those tools, while MailKite performs the underlying email, domain, routing, and storage operations.

Two connection patterns are documented. The local option starts @mailkite/mcp with npx and passes MAILKITE_API_KEY. The hosted option uses https://mcp.mailkite.dev/mcp over HTTP and supports browser authentication through OAuth, so a locally copied API key is not needed for that setup.

Webhook configuration supports more than inbound delivery. A domain can use a separate HTTPS tracking webhook for signed engagement events such as sends, bounces, complaints, opens, and clicks. Alternatively, engagement events can be enabled on the inbound webhook. The server can send a signed test event and remove either webhook configuration.

Setup and configuration

For a local MCP configuration, run the package with npx -y @mailkite/mcp and set MAILKITE_API_KEY to a MailKite live key. This mode is suitable for local use, offline workflows, and CI where a static key is available.

For the hosted setup, add the MailKite MCP endpoint to a compatible client and authenticate in the browser when prompted. Before sending mail, configure a domain and complete its DNS verification; domain tools expose the relevant DNS records and webhook URL.

Tools and capabilities

The agent-mail MCP server includes tools for:

  • Sending one message or up to 50 personalized recipient messages in one call.
  • Uploading attachments and receiving secure, time-limited URLs.
  • Creating and retrieving templates, including subject, HTML, text, and theme fields.
  • Managing domains, availability checks, registration, DNS verification, and webhooks.
  • Creating and deleting inbound routes and executing a route by ID or address.
  • Listing stored messages, retrieving delivery and attachment details, and retrying delivery.
  • Calling inbox agents and listing contact lists with member counts.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Agent Mail

agent-mail is an MCP server that connects AI agents to MailKite for sending and receiving email through domains and webhooks. Its main tools send messages, manage templates and domains, configure inbound routes, inspect stored messages, upload attachments, and communicate with inbox agents.

Install it by configuring an MCP client to run `npx -y @mailkite/mcp` with `MAILKITE_API_KEY` in its environment. You can instead connect to `https://mcp.mailkite.dev/mcp` and authenticate through the browser with the hosted OAuth flow.

Yes, the README names Cursor as an MCP client for MailKite. You can configure Cursor with either the local stdio command and API key or the hosted MCP endpoint, depending on the authentication method you choose.

Create an inbound route whose action is an inbox agent, then route messages to that registered route or configure the domain's inbound handling as documented by MailKite. The `mailkite_agent` and `mailkite_route` tools support direct agent communication and route execution.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAgent Mail AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/agent-mail?style=directory)](https://allmcps.com/mcp/agent-mail)
HTML Embed
<a href="https://allmcps.com/mcp/agent-mail"><img src="https://allmcps.com/api/badge/agent-mail?style=directory" alt="Agent Mail on AllMCPs" /></a>