SendGrid Secure

v0.1.0
io.github.Choppaaahh/sendgrid-mcp-secure Checked 13 hours ago Published 3 months ago

Security-first SendGrid MCP server: dry-run default, recipient allowlists, rate caps, audit log.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

preview_email

Validate and render an email WITHOUT sending it. Returns the exact payload that would go to SendGrid plus a single-use confirm_token (valid 10 minutes). Sending requires passing that token to send_email — there is no direct-send path. BCC is not accepted by design.

ParameterTypeDescription
from_email *string
to *array
body_htmlstring
body_textstring
cc
from_namestring
reply_tostring
subjectstring
template_data
template_idstring

send_email

Send the email previously rendered by preview_email. Accepts ONLY a confirm token — the payload cannot be altered between preview and send. Tokens are single-use and expire after 10 minutes. In dry-run mode (the default) this simulates and audits but sends nothing.

ParameterTypeDescription
confirm_token *string

add_suppression

Add an address to a suppression list (default: global unsubscribes). Suppressing is the SAFE direction — it stops future sends to the address.

ParameterTypeDescription
email *string
kindstring

remove_suppression

Remove an address from a suppression list. DANGEROUS direction — it re-enables sending to someone who bounced or unsubscribed, which can be a compliance violation. Requires confirm=true, is rate-limited, and audited.

ParameterTypeDescription
email *string
kind *string
confirmboolean

list_templates

List transactional email templates (dynamic + legacy).

get_template

Fetch one template with its versions (subject + content preview).

ParameterTypeDescription
template_id *string

get_email_stats

Global email stats (requests/delivered/opens/clicks/bounces/spam) from start_date (YYYY-MM-DD). aggregated_by: day|week|month.

ParameterTypeDescription
start_date *string
aggregated_bystring
end_datestring

list_suppressions

List a suppression list: unsubscribes|bounces|blocks|spam_reports|invalid_emails.

ParameterTypeDescription
kindstring
limitinteger

check_suppression

Check whether an address appears on any suppression list. Run this before drafting mail to someone — sending to suppressed addresses hurts deliverability and may violate consent.

ParameterTypeDescription
email *string

get_domain_auth

List authenticated sending domains and their DNS validity — the first thing to check when deliverability drops.

server_status

This server's security posture: mode, rate-limit remaining, allowlist, caps, audit-log path, and whether an API key is present (never the key).