AgentMail

Open-source (MIT) email inboxes for AI agents with scoped keys, webhooks & AI spam guard.

Should I use this

Quality & Safety

A
Description quality
97%
Schema completeness
65%
Naming quality
100%
Poisoning risk
100%
Permission match
80%
Protocol compliance
100%

Findings (2)

  • LOWTool 'get_attachment_url' suggests web access but openWorldHint=falsein get_attachment_url
  • LOWTool 'list_webhooks' suggests web access but openWorldHint=falsein list_webhooks

Based on automated analysis of tool definitions and protocol compliance.

Context Cost

~658Tokens (tool definitions)
~668 BTypical response size
Moderate attention impact (0.51% of 128k context)

This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.

Install

One-Click Install

Add this to your `claude_desktop_config.json` file:

{
  "mcpServers": {
    "agentmail": {
      "url": "https://api.theagentmail.net/mcp"
    }
  }
}

Remote endpoints

https://api.theagentmail.net/mcpstreamable-http

What it can do

Tool inventory

Tools (6)

🟢 Read-only🟡 Write🔴 Delete⚪ Unknown
🟢get_mailbox

Get mailbox address, status, expiration, and send count.

Input Schema

{
  "type": "object",
  "properties": {},
  "required": []
}
🟢list_messages

List recent inbound and outbound messages for the mailbox, newest first.

Input Schema

{
  "type": "object",
  "properties": {},
  "required": []
}
🟢get_message(messageId)

Read a single email message including full text/HTML body and attachment metadata.

Input Schema

{
  "type": "object",
  "properties": {
    "messageId": {
      "type": "string",
      "description": "Unique message ID returned by list_messages."
    }
  },
  "required": [
    "messageId"
  ]
}
🟡send_email(to, subject, text, html, cc, ...)

Send an email from the agent mailbox (outbound mail is scanned in real time for spam/phishing).

Input Schema

{
  "type": "object",
  "properties": {
    "to": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Primary recipient email addresses."
    },
    "subject": {
      "type": "string",
      "description": "Email subject line."
    },
    "text": {
      "type": "string",
      "description": "Plain text message body."
    },
    "html": {
      "type": "string",
      "description": "Optional HTML message body."
    },
    "cc": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Optional carbon-copy (CC) recipient email addresses."
    },
    "bcc": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Optional blind carbon-copy (BCC) recipient email addresses."
    },
    "inReplyTo": {
      "type": "string",
      "description": "Optional Message-ID header for threading replies."
    },
    "references": {
      "type": "string",
      "description": "Optional References header for threading replies."
    }
  },
  "required": [
    "to",
    "subject",
    "text"
  ]
}
🟢get_attachment_url(messageId, attachmentId)

Get a 1-hour signed download URL for a message attachment.

Input Schema

{
  "type": "object",
  "properties": {
    "messageId": {
      "type": "string",
      "description": "Message ID containing the attachment."
    },
    "attachmentId": {
      "type": "string",
      "description": "Attachment ID from get_message metadata."
    }
  },
  "required": [
    "messageId",
    "attachmentId"
  ]
}
🟢list_webhooks

List inbound email webhook subscriptions for the mailbox.

Input Schema

{
  "type": "object",
  "properties": {},
  "required": []
}

Community

Rate this Server

Evidence

Recent observations

verifiedversion not recorded6 tools