SendGrid
Summary
This MCP server implementation provides integration with SendGrid's Marketing API, enabling AI assistants to manage email marketing campaigns and contact lists. Developed by Garoth, it offers tools for contact management, list operations, email sending, template creation, and analytics. Built with TypeScript and leveraging the SendGrid SDK, the server focuses on supporting modern SendGrid features like dynamic templates and the Single Sends API. It is particularly useful for AI applications that need to automate email marketing tasks, manage subscriber lists, or integrate email communications into their workflows. The implementation includes robust error handling and environment variable management for secure API key storage.
Available Actions(19)
list_contacts
Lists all contacts in your SendGrid account. No parameters required.
add_contact
Add a contact to your SendGrid marketing contacts. Parameters: email (required), first_name (optional), last_name (optional), custom_fields (optional).
delete_contacts
Delete contacts from your SendGrid account. Parameters: emails (required, array of email addresses to delete).
get_contacts_by_list
Get all contacts in a SendGrid list. Parameters: list_id (required, ID of the contact list).
list_contact_lists
List all contact lists in your SendGrid account. No parameters required.
create_contact_list
Create a new contact list in SendGrid. Parameters: name (required, name of the contact list).
delete_list
Delete a contact list from SendGrid. Parameters: list_id (required, ID of the contact list to delete).
add_contacts_to_list
Add contacts to an existing SendGrid list. Parameters: list_id (required, ID of the contact list), emails (required, array of email addresses to add).
remove_contacts_from_list
Remove contacts from a SendGrid list without deleting them. Parameters: list_id (required, ID of the contact list), emails (required, array of email addresses to remove).
send_email
Send an email using SendGrid. Parameters: to (required, recipient email address), subject (required, email subject line), text (required, plain text content), from (required, verified sender email address), html (optional, HTML content), template_id (optional, dynamic template ID), dynamic_template_data (optional, template variables).
send_to_list
Send an email to a contact list using SendGrid Single Sends. Parameters: name (required, name of the single send), list_ids (required, array of list IDs to send to), subject (required, email subject line), html_content (required, HTML content), plain_content (required, plain text content), sender_id (required, ID of the verified sender), suppression_group_id (optional, required if custom_unsubscribe_url not provided), custom_unsubscribe_url (optional, required if suppression_group_id not provided).
create_template
Create a new dynamic email template. Parameters: name (required, name of the template), subject (required, default subject line), html_content (required, HTML content with handlebars syntax), plain_content (required, plain text content with handlebars syntax).
list_templates
List all dynamic email templates. No parameters required.
get_template
Retrieve a template by ID. Parameters: template_id (required, ID of the template to retrieve).
delete_template
Delete a dynamic template. Parameters: template_id (required, ID of the template to delete).
get_stats
Get SendGrid email statistics. Parameters: start_date (required, start date in YYYY-MM-DD format), end_date (optional, end date in YYYY-MM-DD format), aggregated_by (optional, aggregation period such as 'day', 'week', or 'month').
validate_email
Validate an email address using SendGrid. Parameters: email (required, email address to validate).
list_verified_senders
List all verified sender identities. No parameters required.
list_suppression_groups
List all unsubscribe groups. No parameters required.
コミュニティレビュー
まだレビューはありません. 最初のレビューを投稿しましょう!
会話に参加するにはサインインしてください