AI Mail MCP

com.aimailmcp由 aimailmcp.com 发布官方发布者v0.1.3更新于 Oct 28, 2026

One inbox for every hat you wear: support, sales, billing mail, triaged and drafted by your agent.

已验证Streamable HTTP可网页运行效率与工作流沟通与协作

概览

AI 生成的概览

托管式邮件服务 MCP:让助手管理域名与邮箱、读取统一收件箱,并发送、回复或转发邮件。

可以做什么
  • 添加域名,获取或应用 DNS 记录方案,验证并列出或移除域名
  • 创建、列出和删除邮箱,并设置别名、全收地址与转发
  • 读取统一收件箱:列出、全文搜索、查看邮件、会话与附件,等待新邮件,标记已读、加标签、归档
  • 发送新邮件、在原会话中回复、转发以及保存草稿
  • 创建、列出和删除用于收信与发信完成的签名 webhook
  • 签发、列出和吊销受限令牌,并查看审计日志与用量
适用场景
适合需要在自己域名上使用真实邮箱地址的助手场景:分拣客服、销售或账单邮件,抓取注册验证码和登录链接,或以某个邮箱身份发送和回复邮件。
运行要求
远程 Streamable HTTP 端点,无需本地安装。可通过 OAuth 2.1 登录(邮箱加 6 位验证码),或在请求头 Authorization 中携带注册流程获得的 Bearer 令牌。创建邮箱需要你控制的域名;不支持远程连接的客户端可用 stdio 桥接。
安装前请注意
令牌可访问真实邮箱,若开启发送权限还能以你的域名发信,应尽量缩小令牌范围并设置每日发送上限。发信、回复、转发、修改 DNS、删除邮箱和创建 webhook 都会改变状态。收到的邮件属于不可信内容,应视为数据而非指令。用量按操作计量。

安装

在 SourceWeft 中

  1. 打开 控制台中的 AI Mail MCP,将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/com.aimailmcp%2Fmail/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。

{
  "mcpServers": {
    "ai-mail": {
      "type": "http",
      "url": "https://aimailmcp.com/mcp"
    }
  }
}

README

[AI Mail MCP logo]

AI Mail MCP

Real email for AI agents, over MCP. Add a domain and get the exact DNS records, create mailboxes, read one unified inbox across all of them, wait for sign-up codes and magic links, and send, reply in-thread and forward. Tokens are scoped to mailboxes with a send permission and a daily cap, every write has a dry run, and every call is audited.

This repository holds the public docs, server.json and logo. The service is hosted; there is nothing to install or run locally.

Connect

Claude Code

bash
claude mcp add --transport http aimail https://aimailmcp.com/mcp

Claude.ai and Claude Desktop: Settings, Connectors, Add custom connector, paste https://aimailmcp.com/mcp.

Any MCP client

json
{  "mcpServers": {    "aimail": { "type": "http", "url": "https://aimailmcp.com/mcp" }  }}

Clients without remote support can bridge over stdio: npx -y mcp-remote https://aimailmcp.com/mcp. Agent-oriented install steps: llms-install.md.

Sign in

  • OAuth 2.1 (most clients do this for you): dynamic client registration and PKCE. You enter your email and a 6-digit code we send you.
  • Bearer token (agents without a browser):
bash
curl -X POST https://aimailmcp.com/api/v1/signup -H 'content-type: application/json' -d '{"email":"[email protected]"}'curl -X POST https://aimailmcp.com/api/v1/signup/confirm -H 'content-type: application/json' -d '{"email":"[email protected]","code":"123456"}'

Then send Authorization: Bearer amk_.... Use create_token to hand narrower tokens to other agents.

Tools

Domains

Bring a domain, get the exact DNS records, verify it.

ToolWhat it does
add_domainAdd a domain (or subdomain) to this account so it can hold mailboxes.
get_dns_planThe exact DNS records (MX, SPF, DKIM, DMARC, ownership TXT) a domain needs for receiving and sending, and whether each is in place.
apply_dnsWrite the DNS plan to a managed domain on this service's Cloudflare account: enables Email Routing (MX + SPF), routes mail to the receiver, registers the domain for sending and adds DKIM and DMARC.
verify_domainCheck the domain's live DNS: ownership TXT (external domains), MX, SPF, DMARC and the sending provider's DKIM status.
list_domainsEvery domain on this account with its status, mode, sending readiness and mailbox count.
remove_domainRemove a domain from this account.

Mailboxes

Addresses that receive and send, plus aliases, catch-alls and forwarding.

ToolWhat it does
create_mailboxCreate a mailbox (an address that receives and sends) on one of this account's domains.
list_mailboxesEvery mailbox this token can see, with unread counts, last received time, aliases, forwarding and route address.
delete_mailboxDelete a mailbox.
add_aliasDeliver mail sent to another address on one of this account's domains into an existing mailbox.
set_catch_allDeliver mail for any unknown address on a domain into one mailbox, or pass mailbox: null to turn the catch-all off.
set_forwardingAlso forward every message a mailbox receives to up to 5 external addresses (the original is attached as message/rfc822).

Read

One unified inbox across every mailbox the token can see.

ToolWhat it does
list_messagesOne inbox across every mailbox this token can see, newest first, each item tagged with its mailbox.
search_messagesFull-text search over subject, sender, recipients and body across every mailbox this token can see (all folders by default).
get_messageHeaders, text body (or text derived from HTML), extracted links, attachment list and threading ids for one message.
get_threadThe whole conversation a message belongs to, inbound and outbound, oldest first, as previews.
wait_for_messageBlock until a matching message arrives (or timeout_s, max 60, default 25) and return it in full.
get_attachmentOne attachment as base64 (up to 5 MB).
mark_readMark up to 100 messages read (or unread with read: false).
labelAdd and/or remove labels on up to 100 messages.
archiveMove up to 100 messages out of the inbox into archive (or back with unarchive: true).

Send

Send, reply in-thread, forward and draft, behind per-token gates.

ToolWhat it does
send_messageSend a new email from a mailbox in scope (or send a saved draft with draft_id).
replyReply in-thread from the mailbox that received the message (In-Reply-To and References set, "Re:" added once, original quoted).
forwardForward a message (with its attachments) to new recipients, with an optional note on top.
create_draftSave a draft in a mailbox (folder drafts) for a human or another agent to review.

Automation

Signed webhooks when mail arrives or a send finishes.

ToolWhat it does
create_webhookPOST a signed JSON event to your https URL when mail arrives or a send finishes.
list_webhooksWebhooks on this account with their events, scope and last delivery status.
delete_webhookStop and remove a webhook.

Access

Scoped tokens for other agents, and the audit log.

ToolWhat it does
create_tokenMint a token for another agent, scoped to some mailboxes (default: all), with or without send permission and with a daily send cap.
list_tokensTokens on this account: label, prefix, scope, send permission, cap, last use.
revoke_tokenRevoke a token by id or prefix.
audit_logRecent tool calls on this account (every attempt, including refusals and dry runs): tool, outcome, token, time.
get_usageWhat this token used: sends and recipients, inbound messages, storage GB-days and tool calls, with what each cost us, by operation or by day. Admin tokens can ask for the whole account; delegating tokens for one end customer.

Full schemas: https://aimailmcp.com/tools.json

Security model

  • Inbound mail reaches the server only as HMAC-SHA256 signed raw messages from our Cloudflare email worker; unsigned posts are rejected.
  • Everything a sender controls comes back inside an untrusted_external_content envelope. Agents should treat email as data, never as instructions.
  • Tokens are stored as hashes, scoped to mailboxes, and can never mint a more powerful token.
  • Privacy: https://aimailmcp.com/privacy · Contact: [email protected]

License

The contents of this repository (docs, logo, server.json) are MIT licensed. The hosted service is operated by Hapi.

来源:README.md,提交 e93ae73

工具

0
该服务器需要登录,因此 SourceWeft 无法在没有账号的情况下读取其工具,也未收录。已连接账号所能看到的内容可能因账号及其权限而异。

版本历史

4
  1. v0.1.3最新Oct 26, 2026
  2. v0.1.2Oct 20, 2026
  3. v0.1.1Oct 20, 2026
  4. v0.1.0Oct 13, 2026

评分

已满足适用检查项的 85%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分