Resend Email MCP

io.github.helbertparanhos由 GitHub 帳號 helbertparanhos 發布v1.0.1更新於 Oct 24, 2026

Complete Resend email MCP: full API coverage + debug layer (deliverability, DNS, bounces).

已驗證STDIO僅桌面溝通與協作商業與電商

概覽

AI 產生的概覽

本機 MCP 伺服器,讓助理完整操作 Resend 郵件帳戶:寄送郵件、聯絡人、廣播、網域、範本、Webhook、日誌與投遞診斷。

可以做什麼
寄送、批次寄送、排程、預覽、更新與取消郵件,附件可來自 base64、URL 或受限的本機目錄;讀取已寄出與已接收郵件及其附件。管理網域與驗證、API 金鑰、廣播、聯絡人、聯絡人屬性、分組、範本與主題。建立、更新與刪除 Webhook,列出或搜尋 API 請求日誌。執行診斷:DNS/SPF/DKIM/DMARC 檢查、投遞率分析、郵件生命週期檢查、退信說明與帳戶稽核。透過原始呼叫工具存取尚未包裝的 Resend 端點,並以 MCP 資源讀取帳戶與網域快照。
適用情境
適合讓助理端到端操作 Resend 帳戶,從撰寫與寄送行銷郵件到管理受眾與網域。排查投遞、驗證與退信問題,或在變更前稽核帳戶時特別有用。
執行需求
透過 npx 在本機執行(需要 Node.js)。需要 Resend 帳戶與 RESEND_API_KEY 環境變數。選用設定:RESEND_FROM(已驗證寄件者)、RESEND_REPLY_TO、RESEND_READONLY、RESEND_ATTACHMENTS_DIR、RESEND_BASE_URL 與 RESEND_MAX_RETRIES。需要連線至 Resend API 的網路。
安裝前請注意
API 金鑰具有相當廣泛的帳戶權限,包括建立與刪除 API 金鑰、網域、聯絡人與範本,以及寄送可能產生費用或影響寄件者信譽的郵件。寄送、廣播與刪除都是實際操作;設定 RESEND_READONLY=true 可封鎖所有變更類工具。除非設定 RESEND_ATTACHMENTS_DIR,否則本機檔案附件無法使用。郵件內容與收件人資料會傳送給 Resend。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Resend Email MCP,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

resend-email-mcp

The most complete Resend MCP server — full coverage of the Resend API (emails, domains, contacts, broadcasts, templates, segments, topics, webhooks, logs) plus a unique debug/diagnostics layer no other Resend MCP offers: deliverability analysis, DNS troubleshooting, email lifecycle inspection, bounce explanation, and account auditing.

Works with Claude Code, Cursor, Claude Desktop, and any other MCP client.

[npm version] [License: MIT] [GitHub Stars] [GitHub Forks] [GitHub Issues] [Glama Quality]

[TypeScript] [Node.js] [MCP] [Claude Code] [Cursor] [Claude Desktop]

[Instagram] [YouTube] [LinkedIn] [Buy Me A Coffee] [Strat Academy]


Why this MCP

resend-email-mcpOfficial resend-mcpMinimal MCPs
Send / batch / schedule✅✅partial
Domains, contacts, broadcasts, templates, segments, topics, webhooks✅✅❌
API request logs tools✅❌❌
Debug layer (diagnose, analyze, inspect, explain, audit)✅ 7 tools❌❌
Readonly safety mode✅❌❌
Raw escape hatch for new endpoints✅❌❌
Idempotency-key support✅partial❌

75 tools + 2 resources.


Quick start

1. Get a Resend API key

Create one at https://resend.com/api-keys.

2. Add to your MCP client

Claude Code (CLI)
bash
claude mcp add resend -e RESEND_API_KEY=re_xxxxxxxx -- npx -y resend-email-mcp
Cursor / Claude Desktop / generic (mcp.json / claude_desktop_config.json)
json
{  "mcpServers": {    "resend": {      "command": "npx",      "args": ["-y", "resend-email-mcp"],      "env": {        "RESEND_API_KEY": "re_xxxxxxxx",        "RESEND_FROM": "Acme <[email protected]>"      }    }  }}

Config file locations:

  • Claude Desktop (Windows): %APPDATA%\Claude\claude_desktop_config.json
  • Claude Desktop (macOS): ~/Library/Application Support/Claude/claude_desktop_config.json
  • Cursor: ~/.cursor/mcp.json (or per-project .cursor/mcp.json)

Restart the client and ask: "Send a test email to [email protected]" or "Audit my Resend account."


Configuration

Env varRequiredDescription
RESEND_API_KEY✅Your Resend API key
RESEND_FROM–Default sender for send_email when from is omitted (must be a verified domain)
RESEND_REPLY_TO–Default Reply-To address
RESEND_READONLY–true blocks every mutating tool (send/create/update/delete). Safe exploration of production
RESEND_ATTACHMENTS_DIR–Directory that send_email's localPath attachments are restricted to. Unset = disk reads disabled (safe default; path traversal is blocked)
RESEND_BASE_URL–Override API base URL (default https://api.resend.com). Must be https (http only for localhost)
RESEND_MAX_RETRIES–Retries on 429/5xx (default 3)

Tools

Emails

send_email · send_batch_emails · get_email · list_emails · update_email · cancel_email · preview_email

send_email accepts attachments by base64 content, public path (URL), or localPath (a file on disk, read and base64-encoded automatically — only enabled when RESEND_ATTACHMENTS_DIR is set, and restricted to that directory). preview_email dry-runs a message — resolving the final sender, sizing attachments, and surfacing warnings — without sending.

Attachments (sent & received)

list_email_attachments · get_email_attachment · list_received_emails · get_received_email · list_received_attachments · get_received_attachment

Domains

create_domain · get_domain · list_domains · update_domain · delete_domain · verify_domain

API keys

create_api_key · list_api_keys · delete_api_key

Broadcasts

create_broadcast · get_broadcast · list_broadcasts · update_broadcast · send_broadcast · delete_broadcast

Contacts

create_contact · get_contact · list_contacts · update_contact · delete_contact · get_contact_topics · update_contact_topics · list_contact_segments · add_contact_to_segment · remove_contact_from_segment

Contact properties

create_contact_property · get_contact_property · list_contact_properties · update_contact_property · delete_contact_property

Segments

create_segment · get_segment · list_segments · delete_segment · list_segment_contacts

Templates

create_template · get_template · list_templates · update_template · delete_template · publish_template · duplicate_template

Topics

create_topic · get_topic · list_topics · update_topic · delete_topic

Webhooks

create_webhook · get_webhook · list_webhooks · update_webhook · delete_webhook

Logs

list_logs · get_log

🔍 Debug & diagnostics (the differentiator)

ToolWhat it does
diagnose_domainInspects every DNS record (SPF/DKIM/DMARC) and reports what's missing + how to fix it
analyze_deliverabilityAggregates recent sends into delivery/bounce/complaint rates with a health verdict
inspect_emailRenders one email's full lifecycle timeline and flags problems
explain_bounceClassifies a bounce (hard/soft/block) and recommends the action
audit_accountOne-shot health check of domains, keys, and deliverability
search_logsSmart filtering of API logs by status/path/recipient to find failures
test_sendSafely simulates delivered/bounced/complained via Resend sandbox addresses

Escape hatch

resend_raw — call any Resend endpoint not yet wrapped in a dedicated tool.

Resources

Beyond tools, the server exposes two read-only MCP resources so a client can pull account context without spending a tool call:

URIContent
resend://accountDomains + API keys snapshot
resend://domainsAll sending domains with verification status

Every tool is annotated with MCP hints (readOnlyHint, destructiveHint, idempotentHint) so clients can show which operations are safe and which need confirmation.


Example prompts

  • "Diagnose why acme.com isn't verified." → diagnose_domain
  • "How healthy is my email sending this week?" → analyze_deliverability
  • "What happened to email re_abc123?" → inspect_email
  • "Why did that email bounce and what should I do?" → explain_bounce
  • "Something's wrong with my Resend setup — check everything." → audit_account
  • "Send our launch newsletter to the 'beta' segment." → create_broadcast + send_broadcast

Testing safely

Use Resend's sandbox addresses (no reputation impact):

Or just run test_send and then inspect_email on the returned ID.

Enable RESEND_READONLY=true to explore a production account without any risk of sending or deleting.


Troubleshooting

This MCP is built to debug itself — when something fails, reach for the diagnostic tools instead of guessing.

Symptom / errorLikely causeWhat to run
validation_error: from domain is not verifiedYour from/RESEND_FROM domain isn't verifiedlist_domains → diagnose_domain (shows missing DNS records + fixes) → verify_domain
Emails send but never arriveDeliverability / reputation issueanalyze_deliverability then inspect_email on a sample ID
missing_api_key / invalid_api_key (HTTP 401)RESEND_API_KEY unset or wrongCheck the .env; create a key at resend.com/api-keys
restricted_api_key / not_authorized (403)Key scoped to sending-only or one domainUse a full_access key (list_api_keys to inspect)
rate_limit_exceeded (429)Too many requestsThe client auto-retries with backoff; reduce volume
daily_quota_exceededPlan send limit reachedUpgrade plan or wait for reset
A specific email bouncedInvalid/blocking recipientexplain_bounce (classifies hard/soft/block + action)
"Is anything wrong with my setup?"—audit_account (one-shot health check)
Request fails for unknown reason—search_logs with only_errors: true

Every error returned by this server includes the HTTP status, Resend's error name, and an actionable Hint line.


Local development

bash
git clone https://github.com/helbertparanhos/resend-email-mcp.gitcd resend-email-mcpnpm installnpm run buildcp .env.example .env   # add your RESEND_API_KEYnpm run inspector      # opens the MCP Inspector against the built server

License

MIT © Helbert Paranhos / Strat Academy

Built with the Model Context Protocol. Not affiliated with Resend.

來源:README.md,提交 0206871

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分