Overview
Send emails and manage email campaigns via SendGrid.
Setup
Run with npx:
npx -y @modelcontextprotocol/server-sendgridConfiguration
SENDGRID_API_KEY environment variableDocumentation
SendGrid MCP
Overview
The SendGrid MCP server enables AI agents to send emails and manage email campaigns via SendGrid. Perfect for automated email notifications, newsletters, and transactional email.
Features
- Send Emails: Send single and batch emails
- Templates: Use dynamic email templates
- Contact Management: Manage contact lists
- Campaigns: Create and send email campaigns
- Stats: View email statistics
Installation
npx -y @modelcontextprotocol/server-sendgrid
Configuration
{
"mcpServers": {
"sendgrid": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-sendgrid"],
"env": {
"SENDGRID_API_KEY": "your-api-key"
}
}
}
}
API Key Setup
- Go to SendGrid Settings
- Create a new API key with required permissions
- Set the
SENDGRID_API_KEYenvironment variable
Available Tools
| Tool | Description |
|---|---|
send_email | Send a single email |
send_batch_emails | Send emails to multiple recipients |
get_templates | List email templates |
get_stats | Get email statistics |
list_contacts | List contacts |
Usage Examples
Send a Notification Email
Send an email to john@example.com with subject "Welcome!" and body "Thanks for signing up."
Use a Template
Send an email using template "welcome-v2" to john@example.com with variables {"name": "John"}.
Check Stats
Show me email statistics for the last 7 days.
Pros
- ✅ Reliable email delivery
- ✅ Template support
- ✅ Good for transactional email
- ✅ Campaign management
Cons
- ❌ Requires SendGrid account
- ❌ API key setup needed
- ❌ Free tier has limits
