AgentMail
Open-source (MIT) email inboxes for AI agents with scoped keys, webhooks & AI spam guard.
Should I use this
Quality & Safety
Findings (2)
- LOWin get_attachment_url
- LOWin list_webhooks
Based on automated analysis of tool definitions and protocol compliance.
Context Cost
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-httpWhat it can do
Tool inventory
Tools (6)
🟢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
Evidence