SendGrid MCP Server
This server provides access to SendGrid's Marketing Campaigns API via the Model Context Protocol (MCP), enabling comprehensive email marketing and contact management capabilities:
Contact Management: Add, list, delete, retrieve, filter, and manage contacts
List Management: Create, delete, and manage contact lists, including adding/removing contacts
Email Sending: Send individual emails or bulk campaigns to contact lists using Single Sends
Template Management: Create, list, retrieve, and delete dynamic email templates
Analytics & Validation: Fetch email statistics and validate email addresses
Account Management: Access verified senders and unsubscribe (suppression) groups
Development Features: Supports real API testing and deployment via build process
Provides access to SendGrid's Marketing API for email marketing and contact management, including contact and list management, email sending, template management, and analytics capabilities
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SendGrid MCP Server add john.doe@example.com to our newsletter list"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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!
Related MCP server: SendGrid MCP Server
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 requiredadd_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 requiredcreate_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
emails: string[]; // Required: Array of email addresses to add
}remove_contacts_from_list
Remove contacts from a SendGrid list without deleting them.
{
list_id: string; // Required: ID of the contact list
emails: string[]; // Required: Array of email addresses to remove
}Email Sending
send_email
Send an email using SendGrid.
{
to: string; // Required: Recipient email address
subject: string; // Required: Email subject line
text: string; // Required: Plain text content
from: string; // Required: Verified sender email address
html?: string; // Optional: HTML content
template_id?: string; // Optional: Dynamic template ID
dynamic_template_data?: object; // Optional: Template variables
}send_to_list
Send an email to a contact list using SendGrid Single Sends.
{
name: string; // Required: Name of the single send
list_ids: string[]; // Required: Array of list IDs to send to
subject: string; // Required: Email subject line
html_content: string; // Required: HTML content
plain_content: string; // Required: Plain text content
sender_id: number; // Required: ID of the verified sender
suppression_group_id?: number; // Required if custom_unsubscribe_url not provided
custom_unsubscribe_url?: string; // Required if suppression_group_id not provided
}Template Management (Dynamic Templates Only)
create_template
Create a new dynamic email template.
{
name: string; // Required: Name of the template
subject: string; // Required: Default subject line
html_content: string; // Required: HTML content with handlebars syntax
plain_content: string; // Required: Plain text content with handlebars syntax
}list_templates
List all dynamic email templates.
// No parameters requiredget_template
Retrieve a template by ID.
{
template_id: string; // Required: ID of the template to retrieve
}delete_template
Delete a dynamic template.
{
template_id: string; // Required: ID of the template to delete
}Analytics and Validation
get_stats
Get SendGrid email statistics.
{
start_date: string; // Required: Start date (YYYY-MM-DD)
end_date?: string; // Optional: End date (YYYY-MM-DD)
aggregated_by?: 'day' | 'week' | 'month'; // Optional: Aggregation period
}validate_email
Validate an email address using SendGrid.
{
email: string; // Required: Email address to validate
}Account Management
list_verified_senders
List all verified sender identities.
// No parameters requiredlist_suppression_groups
List all unsubscribe groups.
// No parameters requiredInstallation
git clone https://github.com/Garoth/sendgrid-mcp.git
cd sendgrid-mcp
npm installConfiguration
Get your SendGrid API key:
Log in to your SendGrid account
Go to Settings > API Keys
Create a new API key with full access permissions
Save the API key securely as it won't be shown again
Add it to your Cline MCP settings file inside VSCode's settings (ex. ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json):
{
"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"
]
}
}
}Note: Tools that modify data (like sending emails or deleting contacts) are intentionally excluded from autoApprove for safety.
Development
Setting Up Tests
The tests use real API calls to ensure accurate responses. To run the tests:
Copy the example environment file:
cp .env.example .envEdit
.envand add your SendGrid API key:SENDGRID_API_KEY=your-api-key-hereNote: The
.envfile is gitignored to prevent committing sensitive information.Run the tests:
npm test
Building
npm run buildImportant Notes
When sending emails to lists, you must provide either a suppression_group_id or custom_unsubscribe_url to comply with email regulations
Sender email addresses must be verified with SendGrid before they can be used to send emails
All templates are created as dynamic templates with support for handlebars syntax (e.g., {{variable_name}})
The Single Sends API is used for all bulk email operations as it provides better tracking and management capabilities
The SendGrid API is "eventually consistent" - data changes (like adding contacts or updating lists) may not appear immediately after being made
License
MIT
SendGrid logo copyright / owned by Twilio
Available Tools
21 toolsadd_contactC
Add a contact to your SendGrid marketing contacts
Inputs: email (required), first_name, last_name, custom_fields.
add_contacts_to_listC
Add contacts to an existing SendGrid list
Inputs: list_id (required), emails (required).
create_contact_listC
Create a new contact list in SendGrid
Inputs: name (required).
create_templateC
Create a new email template in SendGrid
Inputs: name (required), subject (required), html_content (required), plain_content (required).
delete_contactsC
Delete contacts from your SendGrid account
Inputs: emails (required).
delete_listC
Delete a contact list from SendGrid
Inputs: list_id (required).
delete_templateC
Delete a dynamic template from SendGrid
Inputs: template_id (required).
get_contacts_by_listC
Get all contacts in a SendGrid list
Inputs: list_id (required).
get_single_sendC
Get details of a specific single send
Inputs: single_send_id (required).
get_statsC
Get SendGrid email statistics
Inputs: start_date (required), end_date, aggregated_by.
get_templateC
Retrieve a SendGrid template by ID
Inputs: template_id (required).
list_contact_listsB
List all contact lists in your SendGrid account
Inputs: no named parameters.
list_contactsB
List all contacts in your SendGrid account
Inputs: no named parameters.
list_single_sendsB
List all single sends in your SendGrid account
Inputs: no named parameters.
list_suppression_groupsB
List all unsubscribe groups in your SendGrid account
Inputs: no named parameters.
list_templatesB
List all email templates in your SendGrid account
Inputs: no named parameters.
list_verified_sendersA
List all verified sender identities in your SendGrid account
Inputs: no named parameters.
remove_contacts_from_listA
Remove contacts from a SendGrid list without deleting them
Inputs: list_id (required), emails (required).
send_emailC
Send an email using SendGrid
Inputs: to (required), subject (required), text (required), from (required), +3 more.
send_to_listC
Send an email to a contact list using SendGrid Single Sends
Inputs: name (required), list_ids (required), subject (required), html_content (required), +4 more.
validate_emailC
Validate an email address using SendGrid
Inputs: email (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 21 tools
Most tools have distinct purposes, but some overlap exists between list_contacts and get_contacts_by_list, and between send_email and send_to_list, which could cause minor confusion. However, descriptions clarify the differences (e.g., list vs. get by list, general send vs. list-specific send).
All tool names follow a consistent verb_noun or verb_noun_preposition pattern (e.g., add_contact, list_contact_lists, get_contacts_by_list), with clear and predictable naming conventions throughout the set.
With 21 tools, the count is borderline high for a SendGrid server, as it covers contacts, lists, templates, sends, and stats, which might feel heavy but is reasonable given the broad scope. It's not excessive but leans toward the upper limit of typical scoping.
The tool set provides comprehensive coverage for SendGrid's core email marketing and contact management functions, including CRUD operations for contacts, lists, and templates, as well as sending emails, retrieving stats, and validation, with no obvious gaps in the surface.
Maintenance
Related MCP Connectors
Send email and read templates, marketing contacts, lists, stats, bounces and unsubscribes.
Send email, check deliverability, set up domains, and run templates, contacts and campaigns.
Send transactional email, run campaigns, manage contacts and automations, audit deliverability.
Send transactional and marketing emails, manage contacts and campaigns, and read stats.
Related MCP Servers
- AlicenseBqualityBmaintenanceEnables comprehensive email marketing and transactional email operations through SendGrid's API v3. Supports contact management, campaign creation, email automation, list management, and email sending with built-in read-only safety mode.58164 npm4ISC
- AlicenseNot gradedqualityDmaintenanceEnables AI models to send emails, manage contacts, and interact with SendGrid's email platform via MCP.1MIT
- AlicenseBqualityCmaintenanceManages SendGrid email workflows including design library, transactional templates, marketing contacts and lists, single sends, and direct email sends via the SendGrid v3 API.80MIT
- AlicenseBqualityDmaintenanceEnables sending transactional emails, managing templates, suppression lists, sending domains, webhooks, subaccounts, and retrieving account metrics via the SparkPost API.20521 npmMIT
Appeared in Searches
- Automating Workflow for File Processing and Communication
- Automating File Processing and Communication Tasks
- A workflow for processing and sharing meeting-related materials
- A workflow for processing and summarizing voice recordings into meeting notes and sending emails
- Automating Business Processes in Marketing