MCP server for SendGrid email marketing
## SendGrid MCP Server: Email Delivery Platform The **SendGrid MCP Server** integrates SendGrid's email delivery platform into Google Antigravity. This enables reliable transactional and marketing email delivery with templates, analytics, and high deliverability. ### Why SendGrid MCP? SendGrid leads email delivery: - **High Deliverability**: 99%+ inbox rates - **Templates**: Dynamic email templates - **Analytics**: Detailed engagement metrics - **Scalability**: Billions of emails monthly - **APIs**: RESTful and SMTP access ### Key Features #### 1. Send Email ```python from sendgrid import SendGridAPIClient from sendgrid.helpers.mail import Mail sg = SendGridAPIClient(api_key="your-key") message = Mail( from_email="noreply@example.com", to_emails="user@example.com", subject="Welcome to Our Platform!", html_content="<h1>Welcome!</h1><p>Thanks for signing up.</p>" ) response = sg.send(message) print(f"Status: {response.status_code}") ``` #### 2. Dynamic Templates ```python message = Mail( from_email="noreply@example.com", to_emails="user@example.com" ) message.template_id = "d-template123" message.dynamic_template_data = { "name": "John", "order_id": "12345", "items": [ {"name": "Widget", "price": "$99"}, {"name": "Gadget", "price": "$149"} ] } response = sg.send(message) ``` #### 3. Bulk Sending ```python from sendgrid.helpers.mail import Personalization message = Mail(from_email="noreply@example.com") message.template_id = "d-newsletter123" for user in users: personalization = Personalization() personalization.add_to(user.email) personalization.dynamic_template_data = {"name": user.name} message.add_personalization(personalization) response = sg.send(message) ``` ### Configuration ```json { "mcpServers": { "sendgrid": { "command": "npx", "args": ["-y", "@anthropic/mcp-sendgrid"], "env": { "SENDGRID_API_KEY": "SG.xxxxx", "SENDGRID_FROM_EMAIL": "noreply@example.com" } } } } ``` ### Use Cases **Transactional Email**: Password resets, order confirmations. **Marketing Campaigns**: Newsletters and promotions. **User Notifications**: Activity alerts and updates. The SendGrid MCP Server brings reliable email to Antigravity.
{
"mcpServers": {
"sendgrid": {
"mcpServers": {
"sendgrid": {
"env": {
"SENDGRID_API_KEY": "YOUR_SENDGRID_API_KEY"
},
"args": [
"-y",
"sendgrid-mcp"
],
"command": "npx"
}
}
}
}
}