Mcp Sendgrid

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

MCP server for SendGrid — global transactional + marketing email (Twilio-owned)

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

概览

AI 生成的概览

让助手通过 SendGrid 发送事务性和营销邮件,并管理联系人、列表、模板、抑制名单和统计数据。

可以做什么
封装 SendGrid v3 API,提供约 20 个工具。可发送普通邮件和动态模板邮件,新增、搜索、列出和删除 Marketing Campaigns 联系人与列表,管理事务性模板、抑制组和退信,取消已排期的发送,读取事件 Webhook 设置,并获取全局邮件统计。
适用场景
适合让助手发送订单确认、物流更新或促销邮件,或直接维护 SendGrid 联系人列表与抑制数据。适用于已经使用 SendGrid 的通知和营销流程。
运行要求
以 stdio 方式在本地运行,通常通过 npm 包 @codespar/mcp-sendgrid 用 npx 启动,因此需要 Node.js。需要 SENDGRID_API_KEY 中的 SendGrid API 密钥;SENDGRID_FROM_EMAIL 是可选默认发件人,必须是已验证发件人或属于已认证域名。需要访问 api.sendgrid.com 的网络连接。
安装前请注意
SENDGRID_API_KEY 是授予账户级访问权限的密钥令牌,请勿写入日志或共享配置。多个工具会写入或删除数据,包括发送邮件、删除联系人和列表、移除退信记录以及取消已排期发送。发送邮件和管理营销联系人可能产生费用或违反同意规则,使用前请确认收件人和内容。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@codespar/mcp-sendgrid

MCP server for SendGrid — global transactional and marketing email.

SendGrid is Twilio-owned (acquired 2019). Together with @codespar/mcp-twilio this package closes the messaging loop:

  • Twilio — SMS, WhatsApp, Voice, Verify
  • SendGrid — email (transactional + marketing)

Agents building commerce notification flows — order confirmations, shipping updates, abandoned-cart nudges, promos — can now cover every channel through two packages.

Tools (20)

ToolPurpose
send_mailSend an email via POST /mail/send.
send_templateConvenience wrapper for POST /mail/send with a dynamic template.
add_contactUpsert contacts in Marketing Campaigns via PUT /marketing/contacts.
list_contactsList Marketing Campaigns contacts via GET /marketing/contacts.
delete_contactDelete contacts by id via DELETE /marketing/contacts?ids=....
search_contactsSearch contacts with an SGQL query via POST /marketing/contacts/search.
get_contactRetrieve a single Marketing Campaigns contact by id via GET /marketing/contacts/{id}.
list_listsList all Marketing Campaigns contact lists via GET /marketing/lists.
create_listCreate a Marketing Campaigns contact list via POST /marketing/lists.
delete_listDelete a Marketing Campaigns contact list via DELETE /marketing/lists/{id}.
list_templatesList transactional templates via GET /templates.
create_templateCreate a transactional template via POST /templates.
list_suppressionsList all suppressed recipients for an unsubscribe group via GET /asm/groups/{group_id}/suppressions.
add_suppressionAdd recipients to a suppression group via POST /asm/groups/{group_id}/suppressions.
list_unsubscribe_groupsList all unsubscribe groups on the account via GET /asm/groups.
get_bouncesRetrieve bounced recipients via GET /suppression/bounces.
delete_bounceRemove a bounced address from the bounce suppression list via DELETE /suppression/bounces/{email}.
cancel_scheduled_sendCancel or pause a scheduled send by batch_id via POST /user/scheduled_sends.
get_event_webhook_settingsRetrieve the Event Webhook configuration via GET /user/webhooks/event/settings.
get_statsGlobal email stats via GET /stats.

Install

bash
npm install @codespar/mcp-sendgrid

Environment

bash
SENDGRID_API_KEY="SG...."         # required (secret)SENDGRID_FROM_EMAIL="[email protected]"   # optional default sender

The SENDGRID_FROM_EMAIL must be either a Verified Sender or belong to an authenticated domain.

Authentication

Bearer-token auth. The server handles this automatically.

Authorization: Bearer <SENDGRID_API_KEY>

API surface

  • Base URL: https://api.sendgrid.com/v3
  • All requests/responses are application/json
  • POST /mail/send returns 202 Accepted on success (no body)

Send with a dynamic template

json
{  "to": "[email protected]",  "template_id": "d-abc123...",  "dynamic_template_data": {    "order_id": "1001",    "total_brl": "R$ 249,90",    "tracking_url": "https://example.com/track/1001"  }}

Run

bash
# stdio (default — for Claude Desktop, Cursor, etc)npx @codespar/mcp-sendgrid
# HTTP (for server-to-server testing)MCP_HTTP=true MCP_PORT=3000 npx @codespar/mcp-sendgrid

Pairs with

Enterprise

Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.

License

MIT

来源:packages/communication/sendgrid/README.md,提交 d0a519a

工具

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

版本历史

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

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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