/ 目录 / 演练场 / Resend MCP
● 官方 resend 🔑 需要你的密钥

Resend MCP

作者 resend · resend/resend-mcp

Resend's first-party MCP — send_email, create_broadcast, manage_audience as MCP tools, with HTML templating Claude can author inline.

Resend MCP exposes the Resend REST API as MCP tools. Claude can compose, preview, and send transactional emails, manage audiences and contacts, and schedule broadcasts. Pair with a humanizer skill for tone control.

为什么要用

核心特性

实时演示

实际使用效果

就绪

安装

选择你的客户端

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "resend-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@resend/mcp-server"
      ],
      "env": {
        "RESEND_API_KEY": "${RESEND_API_KEY}"
      }
    }
  }
}

打开 Claude Desktop → Settings → Developer → Edit Config。保存后重启应用。

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "resend-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@resend/mcp-server"
      ],
      "env": {
        "RESEND_API_KEY": "${RESEND_API_KEY}"
      }
    }
  }
}

Cursor 使用与 Claude Desktop 相同的 mcpServers 格式。项目级配置优先于全局。

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "resend-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@resend/mcp-server"
      ],
      "env": {
        "RESEND_API_KEY": "${RESEND_API_KEY}"
      }
    }
  }
}

点击 Cline 侧栏中的 MCP Servers 图标,然后选 "Edit Configuration"。

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "resend-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@resend/mcp-server"
      ],
      "env": {
        "RESEND_API_KEY": "${RESEND_API_KEY}"
      }
    }
  }
}

格式与 Claude Desktop 相同。重启 Windsurf 生效。

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "resend-mcp",
      "command": "npx",
      "args": [
        "-y",
        "@resend/mcp-server"
      ]
    }
  ]
}

Continue 使用服务器对象数组,而非映射。

~/.config/zed/settings.json
{
  "context_servers": {
    "resend-mcp": {
      "command": {
        "path": "npx",
        "args": [
          "-y",
          "@resend/mcp-server"
        ]
      }
    }
  }
}

加入 context_servers。Zed 保存后热重载。

claude mcp add resend-mcp -- npx -y @resend/mcp-server

一行命令搞定。用 claude mcp list 验证,claude mcp remove 卸载。

使用场景

实战用法: Resend MCP

Compose and send a transactional email

👤 Developers ⏱ ~15 min intermediate

何时使用: You drafted release notes and want to send to a single recipient before broadcasting.

步骤
  1. Draft
    Ask Claude to draft release notes from the git log.✓ 已复制
    → Markdown draft ready
  2. Render
    Convert to HTML; inline-style for email clients.✓ 已复制
    → HTML body ready
  3. Send
    send_email [email protected], [email protected].✓ 已复制
    → Resend returns email_id; check inbox

结果: Preview email landed in your inbox, ready to broadcast.

Schedule a broadcast to an audience

👤 Developers ⏱ ~15 min intermediate

何时使用: You have a verified audience and want to send the polished version to everyone.

步骤
  1. Pick audience
    list_audiences; choose the right one.✓ 已复制
    → audience_id
  2. Create broadcast
    create_broadcast subject, body, audience_id, send_at.✓ 已复制
    → broadcast scheduled

结果: Broadcast queued in Resend; visible in dashboard.

组合

与其他 MCP 搭配,撬动十倍杠杆

resend-mcp + github

Pull the release diff, send the notes via Resend

Combine resend-mcp with github: Pull the release diff, send the notes via Resend✓ 已复制
resend-mcp + humanizer-zh-skill

Humanize the draft before sending to Chinese audiences

Combine resend-mcp with humanizer-zh-skill: Humanize the draft before sending to Chinese audiences✓ 已复制

工具

此 MCP 暴露的能力

工具输入参数何时调用成本
send_email (see docs) Single-recipient transactional send 1 call
create_broadcast (see docs) Schedule a broadcast to an audience 1 call
list_audiences (see docs) List audiences in your account 1 call
add_contact (see docs) Add a contact to an audience 1 call
verify_domain (see docs) Check sending-domain DNS status 1 call

成本与限制

运行它的成本

API 配额
Resend free tier: 3k emails/mo, 100/day; paid plans scale
每次调用 Token 数
Body length + headers
费用
Free tier; paid from $20/mo
提示
Use idempotency keys; dedupe sends if Claude retries

安全

权限、密钥、影响范围

最小权限: domain:send audiences:write
凭据存储: API key in env var
数据出站: api.resend.com
切勿授予: reuse a production key for staging — Resend supports separate keys

故障排查

常见错误与修复

422 from address not verified

Verify domain in Resend dashboard; only verified domains may send

Broadcast stuck pending

Check audience size and rate limits; broadcasts throttle on free tier

替代方案

Resend MCP 对比其他方案

替代方案何时用它替代权衡
SendGrid MCPYou're on SendGridDifferent API surface
PostmarkHigher inbox-placement focusNo first-party MCP yet

更多

资源

📖 阅读 GitHub 上的官方 README

🐙 查看未解决的 issue

🔍 浏览全部 400+ MCP 服务器和 Skills