Agentmail MCP logo

Agentmail MCP

by agentmail-to

Manage AgentMail inboxes, messages, drafts, attachments, files, and calendars through MCP.

Install Agentmail MCP

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

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "agentmail-to-agentmail-mcp": {
      "command": "uvx",
      "args": [
        "agentmail-mcp"
      ],
      "env": {
        "AGENTMAIL_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 AGENTMAIL_API_KEY=YOUR_VALUE_HERE --transport stdio agentmail-to-agentmail-mcp -- uvx agentmail-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.

uvx agentmail-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

agentmail-to/agentmail-mcp connects AI agents to AgentMail through tools for creating inboxes, reading and sending email, managing drafts, and searching conversations. It also exposes inbox file storage and calendar agenda access, with the hosted MCP endpoint available over Streamable HTTP. Use it when an agent needs its own email identities, automated correspondence, scheduled messages, or access to mailbox content. A Node.js or Python stdio bridge is available for clients that cannot connect to the hosted endpoint directly.

Use cases

  • Create dedicated inboxes for agent identities
  • Search and summarize incoming email threads
  • Send replies and schedule outbound messages
  • Store files in an inbox-specific drive
  • Review calendar events and pending invitations

Key features

  • Create and manage AgentMail inboxes
  • Search, read, send, reply to, and forward email
  • Create and schedule drafts
  • Upload and manage Agent Drive files
  • Read inbox calendar agendas
  • Use hosted Streamable HTTP or stdio bridges

Tools53

What Agentmail MCP lets your agent do. Expand a tool for its parameters.

Verified live~18.1k 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.

21/21 checks healthy over the last 50d

What it can do

From the 53 tools this server returned when we ran it; 53 declare their own safety hints.

Can delete or modify data · 25Writes files · 1Handles credentials · 8Makes network requests · 26Read-only tools · 28
Network at startup3 connections
Files written at startup11

Observed 2026-10-24 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16d ago via OSV.dev · agentmail-mcp (PyPI)

Adoption & maintenance

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

GitHub stars73Stargazers on the source repository.
Last commit9d agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Tools exposed53Callable tools this server registers over MCP.

How Agentmail MCP works

What agentmail-to/agentmail-mcp does

agentmail-to/agentmail-mcp gives MCP-compatible clients access to AgentMail organizations and inboxes. Agents can create inboxes on demand, choose a username or domain, attach display names and metadata, then use the resulting email address as the inbox identifier. Existing inboxes can be listed, searched, updated, or removed.

Email operations cover the full message lifecycle. Agents can browse or full-text search threads and messages, retrieve complete message bodies, inspect attachments, send new mail, reply, forward, and apply labels. Conversation and message tools support filters such as sender, recipient, subject, labels, and date ranges. Drafts can be created, edited, sent immediately, or scheduled with an ISO 8601 send time.

The server also exposes Agent Drive file operations and calendar agenda access. Files can be uploaded, listed, retrieved, or deleted from an inbox drive. Calendar access returns events in a requested time window, including recurring-event occurrences and invitation response status.

How it works

The hosted implementation is available at https://mcp.agentmail.to/mcp as a Streamable HTTP MCP endpoint. It provides the runtime tool catalog and uses the hosted service's OAuth and per-request API-key authentication paths.

For clients that need stdio, the npm package can launch a bridge with npx -y agentmail-mcp; Node.js 20 or newer is required. Python users can run the corresponding bridge with uvx agentmail-mcp. Both bridges discover their tools and schemas from the hosted server rather than bundling a separate AgentMail SDK, REST implementation, or static tool-definition layer. Stdio clients can optionally request a filtered catalog with --tools name1,name2.

Email content, attachment text, calendar invitations, and other data from external senders should be treated as untrusted content rather than instructions. Sending, replying, and forwarding happen immediately and cannot be recalled. Permanent deletion of inboxes, threads, messages, drafts, and files cannot be undone.

Setup and configuration

For an npm stdio configuration, add an MCP server entry similar to:

config.json
{
  "mcpServers": {
    "AgentMail": {
      "command": "npx",
      "args": ["-y", "agentmail-mcp"],
      "env": {
        "AGENTMAIL_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}

The Python bridge accepts the same credential through AGENTMAIL_API_KEY:

sh
AGENTMAIL_API_KEY=YOUR_API_KEY uvx agentmail-mcp

Clients that support remote MCP can use the hosted Streamable HTTP URL directly. The repository also includes build and verification commands for contributors, including pnpm install, pnpm build, pnpm test, and pnpm check:contract.

Tools and capabilities

  • Manage inbox identities with create, list, search, read, update, and delete operations.
  • Search and inspect threads or messages, including paginated conversation history and full message bodies.
  • Send, reply to, forward, schedule, edit, list, and delete email drafts.
  • Retrieve attachment metadata and extracted PDF or DOCX text.
  • Apply or remove supported labels, including marking messages read or moving threads to trash.
  • Store and manage Agent Drive files with path-based upload, listing, download, and deletion.
  • Read an inbox calendar agenda, including recurring event occurrences and pending invitation responses.

Limitations and notes

Agent Drive is available only to organizations in AgentMail Labs in the United States. Calls from organizations outside Labs receive a 403 response, and file operations count against organization quotas. The server limits an individual upload call to 10 MB, making a base64 payload approximately 7 MB at most. File download URLs can remain usable for up to an hour, so they should be shared carefully.

Calendar is available for organizations in US production. EU production requests return a 403 response. Recently changed calendar events or files may take a short time to appear. Deleting an inbox also requires that no API keys scoped to that inbox remain active. Scheduled drafts can be edited until sending begins; deleting one cancels its scheduled send.

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 Agentmail MCP

agentmail-to/agentmail-mcp is an MCP server that connects AI agents to AgentMail. Its main tools create and manage inboxes, search and read email, send replies, schedule drafts, handle attachments and Agent Drive files, and inspect calendar agendas through a hosted Streamable HTTP endpoint or stdio bridge.

Install it through an MCP client's stdio configuration with `npx -y agentmail-mcp`, or run the Python bridge with `uvx agentmail-mcp`. Set `AGENTMAIL_API_KEY` in the environment. Clients supporting remote MCP can connect directly to `https://mcp.agentmail.to/mcp`.

The stdio bridges use `AGENTMAIL_API_KEY` for the AgentMail credential. Set it in the MCP client's environment configuration or export it before running `uvx agentmail-mcp`.

Yes. Create a draft with an ISO 8601 `sendAt` value to schedule automatic sending, or update an existing draft to set or change its scheduled time. Deleting a scheduled draft cancels its send, while edits are refused once sending has started.

Yes. It provides Agent Drive tools for uploading, listing, retrieving, and deleting files, plus `get_agenda` for reading calendar events in a time window. Agent Drive is limited to AgentMail Labs organizations in the US, and calendar access is available in US production.

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 PreviewAgentmail MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/agentmail-to-agentmail-mcp?style=directory)](https://allmcps.com/mcp/agentmail-to-agentmail-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/agentmail-to-agentmail-mcp"><img src="https://allmcps.com/api/badge/agentmail-to-agentmail-mcp?style=directory" alt="Agentmail MCP on AllMCPs" /></a>