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 分