Mailsend

io.github.CloudCorpRecords由 GitHub 账号 CloudCorpRecords 发布v0.1.0更新于 Nov 1, 2026

Send and manage email, domains, audiences, and API keys through the Resend API.

已验证STDIO仅桌面沟通与协作商业与电商

概览

AI 生成的概览

本地 MCP 服务器,让助手通过 Resend API 发送邮件,并管理 Resend 的域名、API 密钥、受众和联系人。

可以做什么
  • 发送邮件,可指定发件人、收件人、主题,以及可选的 HTML、纯文本、抄送、密送和回复地址;随后可按 ID 列出或查看已发送邮件。
  • 创建、列出、查看和删除发信域名,并为域名启动 DNS 验证。
  • 创建、列出和删除 Resend API 密钥,可限定到单个域名。
  • 创建和列出受众,并在受众中添加或列出联系人。
  • 每个操作都是对 Resend REST API 的一次调用,并原样返回其 JSON 结果。
适用场景
适合让助手承担 Resend 账户的发信相关工作:撰写并发送邮件、查看已发送记录、配置并验证发信域名、轮换 API 密钥,或维护邮件受众与联系人。它只覆盖 Resend 的核心子集,不含广播、模板、Webhook 和收件邮件。
运行要求
通过 npx(npm 包)或 Docker 镜像以 stdio 在本地运行。需要 Resend 账户和 API 密钥,通过环境变量 RESEND_API_KEY 提供;缺少时所有操作都会失败。需要能访问 Resend API 的网络。
安装前请注意
该服务器持有可发信、并可创建或删除 API 密钥、域名和联系人的 Resend API 密钥,建议使用权限范围最小的密钥。发送邮件、删除域名或密钥、添加联系人都将改动真实账户数据,并可能触达第三方。新建的 API 密钥属于需妥善保管的凭据。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

mailsend

mailsend lets an agent run the sending side of a Resend account: send a message and look it back up, set up a sending domain and start its DNS verification, mint or retire API keys, and keep audiences and their contacts in order. Each operation is one call against the Resend REST API, and the API's JSON answer comes back as-is. It runs from the command line or as an MCP server for agents.

A Resend API key is required. Put it in the RESEND_API_KEY environment variable; the key is sent to the API as a Bearer token and never appears in output. When the variable is missing, every operation fails with an error that names it.

Install

bash
npx @reneturcios/mailsend list-domains

Or run the container image:

bash
docker run -i -e RESEND_API_KEY ghcr.io/cloudcorprecords/mailsend

The container defaults to the MCP server (see below). Pass CLI arguments to use it as a CLI instead.

CLI

bash
export RESEND_API_KEY="your API key"
mailsend send --from "Acme <[email protected]>" --to [email protected] \  --subject "Welcome" --text "Hello there"mailsend list-emails --limit 10mailsend list-domainsmailsend list-audiences
mailsend --version

Exit codes: 0 on success, 1 when an API call fails (including a missing RESEND_API_KEY), 2 for usage errors.

MCP server

One bin serves both faces. The mcp subcommand starts a stdio MCP server:

bash
npx -y @reneturcios/mailsend mcp

MCP client configuration:

json
{  "mcpServers": {    "mailsend": {      "command": "npx",      "args": ["-y", "@reneturcios/mailsend", "mcp"],      "env": { "RESEND_API_KEY": "your API key" }    }  }}

Tools

ToolInputWhat it does
send_emailfrom, to (array), subject (required); html, text, cc, bcc, reply_to (optional)Send an email.
list_emailslimit (integer, optional)List sent emails.
get_emailid (required)Get one sent email by ID.
create_domainname (required), region (optional)Create a sending domain.
list_domains—List sending domains.
get_domainid (required)Get one domain, including its DNS records.
verify_domainid (required)Start DNS verification for a domain.
delete_domainid (required)Delete a sending domain.
create_api_keyname (required), permission, domain_id (optional)Create an API key.
list_api_keys—List API keys.
delete_api_keyid (required)Delete an API key.
create_audiencename (required)Create an audience.
list_audiences—List audiences.
create_contactaudience_id, email (required); first_name, last_name, unsubscribed (optional)Add a contact to an audience.
list_contactsaudience_id (required), limit (optional)List contacts in an audience.

This is a documented core subset of the Resend platform surface. The hosted Resend MCP also covers broadcasts, templates, webhooks, segments, topics, contact properties, batch sending, and received (inbound) email; those groups are not implemented here.

Development

bash
npm installnpm run build   # tsc -> dist/npm test        # node test runner over test/*.test.ts, no network (fake fetch fixtures)npm run dev     # run the CLI from source via tsx

License

MIT — see LICENSE.

来源:README.md,提交 0b5eae0

工具

15

send_email

Send an email through Resend.

输入参数ccto必填bccfrom必填htmltextsubject必填reply_to

list_emails

List emails sent through Resend.

输入参数limit

get_email

Get one sent email by its ID.

输入参数id必填

create_domain

Create a sending domain in Resend.

输入参数name必填region

list_domains

List sending domains in Resend.

无需输入参数。

get_domain

Get one sending domain by its ID, including its DNS records.

输入参数id必填

verify_domain

Start verification of a sending domain's DNS records.

输入参数id必填

delete_domain

Delete a sending domain from Resend.

输入参数id必填

create_api_key

Create a Resend API key, optionally scoped to one domain.

输入参数name必填domain_idpermission

list_api_keys

List Resend API keys.

无需输入参数。

delete_api_key

Delete a Resend API key.

输入参数id必填

create_audience

Create an audience in Resend.

输入参数name必填

list_audiences

List audiences in Resend.

无需输入参数。

create_contact

Add a contact to an audience in Resend.

输入参数email必填last_namefirst_nameaudience_id必填unsubscribed

list_contacts

List contacts in an audience in Resend.

输入参数limitaudience_id必填

版本历史

1
  1. v0.1.0最新Nov 1, 2026

评分

已满足适用检查项的 90%

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

  • 近 30 天内可连通25 分
  • 已声明认证方式10 分

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

  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分