Clawaimail

io.github.joansongjr由 GitHub 账号 joansongjr 发布v0.1.1更新于 Oct 24, 2026

Email infrastructure for AI agents. Create inboxes, send/receive email, and search messages.

已验证STDIO仅桌面开发者工具沟通与协作

概览

AI 生成的概览

让 AI 助手拥有自己的邮箱地址,可创建邮箱、收发邮件并搜索收件箱。

可以做什么
ClawAIMail 为智能体提供电子邮件基础设施。通过该 MCP 服务器,助手无需额外代码即可调用 send_email、read_inbox、search_emails、create_mailbox 等工具。底层服务还提供 REST API、实时邮件事件的 WebSocket 推送、针对来信与投递状态的 webhook、自定义域名,以及 Node.js 和 Python SDK。
适用场景
当助手需要以自己的身份收发邮件时适用,例如处理客服或通知邮件、监控收件箱,或在工作流中搜索邮件。适合把邮件当作一等能力的智能体场景,而非一次性脚本。
运行要求
以 stdio 本地进程方式运行,通过 npx 启动 npm 包 clawaimail-mcp,因此需要 Node.js 和网络访问。需要 ClawAIMail 账户与 API key,通过环境变量 CLAWAIMAIL_API_KEY 提供。仅支持桌面端,无网页版可执行程序。
安装前请注意
需要密钥 API key(CLAWAIMAIL_API_KEY),该密钥可访问账户下的邮箱与邮件。助手可以向任意收件人发送邮件、创建和删除邮箱、删除邮件以及注册 webhook,因此对外发信和删除类操作应先确认。服务有付费档位(每月 5 美元至 99 美元)与用量限制;自托管据称免费且不限量。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Clawaimail,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

ClawAIMail

Email infrastructure for AI agents.

[npm version] [License: MIT] [Documentation]


ClawAIMail gives AI agents their own email addresses and full programmatic control over sending, receiving, and managing email. Built for developers who need reliable email primitives in agentic workflows.

Features

  • REST API -- Send, receive, search, and manage emails with a simple JSON API.
  • MCP Server -- First-class Model Context Protocol server for Claude, Cursor, and other MCP-compatible clients.
  • WebSocket Streaming -- Real-time email events pushed to your agent as they happen.
  • Webhooks -- HTTP callbacks on incoming mail, delivery status, and other events.
  • Custom Domains -- Bring your own domain or use a @clawaimail.com address.
  • SDKs -- Official Node.js and Python SDKs for rapid integration.

Quick Start

Node.js

bash
npm install clawaimail
javascript
const { ClawAIMail } = require("clawaimail");
const client = new ClawAIMail({ apiKey: process.env.CLAWAIMAIL_API_KEY });
// Create a mailbox for your agentconst mailbox = await client.mailboxes.create({  name: "support-agent",  domain: "clawaimail.com",});
// Send an emailawait client.emails.send({  from: mailbox.address,  to: "[email protected]",  subject: "Hello from my AI agent",  text: "This email was sent by an autonomous agent.",});
// List incoming emailsconst inbox = await client.emails.list({  mailbox: mailbox.id,  unread: true,});

Python

bash
pip install clawaimail
python
from clawaimail import ClawAIMail
client = ClawAIMail(api_key="your-api-key")
# Create a mailboxmailbox = client.mailboxes.create(name="support-agent", domain="clawaimail.com")
# Send an emailclient.emails.send(    from_address=mailbox.address,    to="[email protected]",    subject="Hello from my AI agent",    text="This email was sent by an autonomous agent.",)
# List incoming emailsinbox = client.emails.list(mailbox=mailbox.id, unread=True)

MCP Server

ClawAIMail ships an MCP server so that Claude, Cursor, and other MCP-compatible clients can use email tools directly.

Claude Desktop

Add the following to your Claude Desktop MCP config (claude_desktop_config.json):

json
{  "mcpServers": {    "clawaimail": {      "command": "npx",      "args": ["-y", "clawaimail-mcp"],      "env": {        "CLAWAIMAIL_API_KEY": "your-api-key"      }    }  }}

Cursor

Add to your .cursor/mcp.json:

json
{  "mcpServers": {    "clawaimail": {      "command": "npx",      "args": ["-y", "clawaimail-mcp"],      "env": {        "CLAWAIMAIL_API_KEY": "your-api-key"      }    }  }}

Once configured, the agent can call tools like send_email, read_inbox, search_emails, and create_mailbox without any additional code.

Self-Hosting

ClawAIMail can be self-hosted for full control over your email infrastructure.

bash
# Clone the repositorygit clone https://github.com/joansongjr/clawaimail.gitcd clawaimail
# Install dependenciesnpm install
# Configure environmentcp .env.example .env# Edit .env with your SMTP credentials, database URL, and API keys
# Run database migrationsnpm run db:migrate
# Start the servernpm start

The server will be available at http://localhost:3000 by default. See the self-hosting docs for production deployment guides (Docker, Railway, Fly.io).

API Endpoints

MethodEndpointDescription
POST/v1/emails/sendSend an email
GET/v1/emailsList emails for a mailbox
GET/v1/emails/:idGet a single email by ID
DELETE/v1/emails/:idDelete an email
POST/v1/mailboxesCreate a new mailbox
GET/v1/mailboxesList all mailboxes
DELETE/v1/mailboxes/:idDelete a mailbox
POST/v1/webhooksRegister a webhook
GET/v1/webhooksList registered webhooks
DELETE/v1/webhooks/:idRemove a webhook
GET/v1/domainsList verified domains
POST/v1/domains/verifyVerify a custom domain
GET/v1/wsWebSocket connection for real-time events

Full API reference: clawaimail.com/docs/api

Pricing

FreeStarterProBusiness
Price$0/mo$5/mo$29/mo$99/mo
Emails/month1005,00050,000500,000
Mailboxes110100Unlimited
Custom domains--15Unlimited
Webhooks1525Unlimited
WebSocket--YesYesYes
SupportCommunityEmailPriorityDedicated

Self-hosted deployments are free and unlimited. See clawaimail.com/pricing for details.

Links

License

MIT -- see LICENSE for details.

来源:README.md,提交 96de265

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

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

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