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.
No reviews yet. Be the first to review!
Sign in to join the conversation
Lists all contacts in your SendGrid account. No parameters required.
Add a contact to your SendGrid marketing contacts. Parameters: email (string, required), first_name (optional string), last_name (optional string), custom_fields (optional object).
Delete contacts from your SendGrid account. Parameters: emails (string[], required) - Array of email addresses to delete.
Get all contacts in a SendGrid list. Parameters: list_id (string, required) - ID of the contact list.
List all contact lists in your SendGrid account. No parameters required.
Create a new contact list in SendGrid. Parameters: name (string, required) - Name of the contact list.
Delete a contact list from SendGrid. Parameters: list_id (string, required) - ID of the contact list to delete.
Add contacts to an existing SendGrid list. Parameters: list_id (string, required) - ID of the contact list, emails (string[], required) - Array of email addresses to add.
Remove contacts from a SendGrid list without deleting them. Parameters: list_id (string, required) - ID of the contact list, emails (string[], required) - Array of email addresses to remove.
Send an email using SendGrid. Parameters: to (string, required), subject (string, required), text (string, required), from (string, required), html (optional string), template_id (optional string), dynamic_template_data (optional object).
Send an email to a contact list using SendGrid Single Sends. Parameters: name (string, required), list_ids (string[], required), subject (string, required), html_content (string, required), plain_content (string, required), sender_id (number, required), suppression_group_id (optional number), custom_unsubscribe_url (optional string).
Create a new dynamic email template. Parameters: name (string, required), subject (string, required), html_content (string, required), plain_content (string, required).
List all dynamic email templates. No parameters required.
Retrieve a template by ID. Parameters: template_id (string, required) - ID of the template to retrieve.
Delete a dynamic template. Parameters: template_id (string, required) - ID of the template to delete.
Get SendGrid email statistics. Parameters: start_date (string, required), end_date (optional string), aggregated_by (optional 'day' | 'week' | 'month').
Validate an email address using SendGrid. Parameters: email (string, required) - Email address to validate.
List all verified sender identities. No parameters required.
List all unsubscribe groups. No parameters required.