GS

garoth/sendgrid-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

32 stars 20 forks 品質 58 トレンド 11

Allows AI Agents to interact with the Twilio SendGrid v3 API, managing contact lists, templates, single sends, and stats

概要

A Model Context Protocol (MCP) server that provides access to SendGrid's Marketing API for email marketing and contact management. https://docs.sendgrid.com/api-reference/how-to-use-the-sendgrid-v3-api In this demo, we ask the Cline SendGrid agent to make a new contact list, add my emails to it, automatically generate a template for Lost Cities facts, and send the email to the list. In this process, Cline will automatically realize that it needs to know the verified senders we have, and which unsubscribe group to use. A pretty email is delivered to my inboxes, delighting me with Lost Cities! This server exclusively supports SendGrid's v3 APIs and does not provide support for legacy functionality. This includes: - Dynamic templates only - legacy templates are not supported - Marketing API v3 for all contact & contact list operations - Single Sends API for bulk email sending Lists all contacts in your SendGrid account. Add a contact to your SendGrid marketing contacts.

README

以下は原文 README の抜粋です。原文を見る。

SendGrid MCP Server

A Model Context Protocol (MCP) server that provides access to SendGrid’s Marketing API for email marketing and contact management. https://docs.sendgrid.com/api-reference/how-to-use-the-sendgrid-v3-api

Demo

In this demo, we ask the Cline SendGrid agent to make a new contact list, add my emails to it, automatically generate a template for Lost Cities facts, and send the email to the list. In this process, Cline will automatically realize that it needs to know the verified senders we have, and which unsubscribe group to use. A pretty email is delivered to my inboxes, delighting me with Lost Cities!

Important Note on API Support

This server exclusively supports SendGrid’s v3 APIs and does not provide support for legacy functionality. This includes:

  • Dynamic templates only - legacy templates are not supported
  • Marketing API v3 for all contact & contact list operations
  • Single Sends API for bulk email sending

Available Tools

Contact Management

list_contacts

Lists all contacts in your SendGrid account.

// No parameters required

add_contact

Add a contact to your SendGrid marketing contacts.

{
  email: string;           // Required: Contact email address
  first_name?: string;     // Optional: Contact first name
  last_name?: string;      // Optional: Contact last name
  custom_fields?: object;  // Optional: Custom field values
}

delete_contacts

Delete contacts from your SendGrid account.

{
  emails: string[];  // Required: Array of email addresses to delete
}

get_contacts_by_list

Get all contacts in a SendGrid list.

{
  list_id: string;  // Required: ID of the contact list
}

List Management

list_contact_lists

List all contact lists in your SendGrid account.

// No parameters required

create_contact_list

Create a new contact list in SendGrid.

{
  name: string;  // Required: Name of the contact list
}

delete_list

Delete a contact list from SendGrid.

{
  list_id: string;  // Required: ID of the contact list to delete
}

add_contacts_to_list

Add contacts to an existing SendGrid list.

{
  list_id: string;    // Required: ID of the contact list
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "sendgrid": { "command": "node", "args": ["/path/to/sendgrid-mcp/build/index.js"], "env": { "SENDGRID_API_KEY": "your-api-key-here" }, "disabled": false, "autoApprove": [ "list_contacts", "list_contact_lists", "list_templates", "list_single_sends", "get_single_send", "list_verified_senders", "list_suppression_groups", "get_stats", "validate_email" ] } } }