SendGrid MCP by usefulapi

v1.41.1
io.usefulapi/sendgrid Checked 3 days ago Published 1 day ago

Send email and read templates, marketing contacts, lists, stats, bounces and unsubscribes.

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

sendgrid_ping Ping (health check)

Health check — verifies the API key works and returns the scopes (permissions) granted to it. SendGrid: GET /v3/scopes.

sendgrid_list_templates List email templates

List your transactional email templates (Dynamic and/or Legacy). Returns { result: [...], _metadata } — use _metadata.next / page_token to paginate. SendGrid: GET /v3/templates.

ParameterTypeDescription
generationsstringWhich template generation(s) to return (default: dynamic).
page_sizeintegerNumber of templates per page (1–200, default 50).
page_tokenstringPagination token from a previous response's _metadata.

sendgrid_get_template Get email template

Get a single transactional email template by id, including its versions (subject + content). SendGrid: GET /v3/templates/{template_id}.

ParameterTypeDescription
template_id *stringThe template id (dynamic template ids start with "d-").

sendgrid_list_marketing_lists List marketing lists

List your Marketing Campaigns contact lists, each with its id, name, and contact_count. Returns { result: [...], _metadata }. SendGrid: GET /v3/marketing/lists.

ParameterTypeDescription
page_sizeintegerNumber of lists per page (1–1000, default 100).
page_tokenstringPagination token from a previous response's _metadata.

sendgrid_get_contact_count Get contact count

Get the total number of Marketing Campaigns contacts on your account. Returns { contact_count, billable_count }. SendGrid: GET /v3/marketing/contacts/count.

sendgrid_search_contacts_by_email Search contacts by email

Look up marketing contacts by exact email address (a read-only lookup — mutates nothing). Returns { result: { "<email>": { contact: {...} } } }. SendGrid: POST /v3/marketing/contacts/search/emails.

ParameterTypeDescription
emails *arrayOne or more exact email addresses to look up.

sendgrid_get_stats Get email stats

Get global email statistics over a date range (delivered, opens, clicks, bounces, spam reports, etc.). Returns an array of { date, stats: [{ metrics: {...} }] }. SendGrid: GET /v3/stats.

ParameterTypeDescription
start_date *stringStart date in YYYY-MM-DD format (required).
aggregated_bystringHow to group the returned statistics.
end_datestringEnd date in YYYY-MM-DD format (defaults to today).
limitintegerNumber of results to return.
offsetintegerNumber of results to skip (for pagination).

sendgrid_list_bounces List bounces

List bounced email addresses (the bounce suppression list). Returns an array of { created, email, reason, status }. SendGrid: GET /v3/suppression/bounces.

ParameterTypeDescription
emailstringFilter to a specific bounced email address.
end_timeintegerEnd of the time range, as a Unix timestamp (seconds).
limitintegerNumber of bounces to return (1–500).
offsetintegerNumber of bounces to skip (for pagination).
start_timeintegerStart of the time range, as a Unix timestamp (seconds).

sendgrid_list_global_unsubscribes List global unsubscribes

List globally-unsubscribed email addresses (the global suppression list). Returns an array of { created, email }. SendGrid: GET /v3/suppression/unsubscribes.

ParameterTypeDescription
end_timeintegerEnd of the time range, as a Unix timestamp (seconds).
limitintegerNumber of records to return.
offsetintegerNumber of records to skip (for pagination).
start_timeintegerStart of the time range, as a Unix timestamp (seconds).

sendgrid_send_mail Send email

SENDS A REAL EMAIL immediately via SendGrid. Provide `from_email` and one or more `to` recipients, plus EITHER a subject + content OR a `template_id` (dynamic template ids start with "d-", pass values via dynamic_template_data). Returns { status: "accepted", message_id }. SendGrid: POST /v3/mail/send.

ParameterTypeDescription
from_email *stringSender email address (must be a verified sender/domain).
to *arrayOne or more recipient email addresses.
bccarrayBCC recipient email addresses.
ccarrayCC recipient email addresses.
contentstringThe email body. Required unless template_id is provided.
content_typestringMIME type of the body content (default text/html).
dynamic_template_dataobjectKey/value data merged into a dynamic template's handlebars variables.
from_namestringSender display name.
reply_tostringReply-To email address.
subjectstringEmail subject line. Required unless a template_id supplies it.
template_idstringA template id to render (dynamic template ids start with "d-"). When set, `content` is omitted.

sendgrid_add_or_update_contacts Add or update marketing contacts

UPSERTS marketing contacts (creates new ones, updates existing ones by email) and optionally adds them to lists. This is an ASYNC job — returns { job_id } you can poll. SendGrid: PUT /v3/marketing/contacts.

ParameterTypeDescription
contacts *arrayContacts to add or update (each needs an `email`; custom fields pass through).
list_idsarrayList ids to add these contacts to.