SendGrid MCP server for AI agents

Send email with or without templates, list templates and marketing lists, and manage marketing contacts.

Auth
Access token
Tools
6
Triggers
0
Category
Email, Communication

Tools and triggers

  • Send an email

    SENDGRID_SEND_EMAIL

    Sends an email from a verified sender, either with your own subject and body or with a dynamic template. Returns 202 when accepted.

  • List templates

    SENDGRID_LIST_TEMPLATES

    Lists email templates; dynamic templates (d-…) are the ones usable with Send an email.read-only

  • List marketing lists

    SENDGRID_LIST_CONTACT_LISTS

    Lists Marketing Campaigns contact lists with their ids and contact counts.read-only

  • Add or update contacts

    SENDGRID_UPSERT_CONTACTS

    Adds contacts to the marketing database or updates them by email, optionally adding them to lists. Runs asynchronously and returns a job id.

  • Search contacts

    SENDGRID_SEARCH_CONTACTS

    Finds marketing contacts with an SGQL query, e.g. `email LIKE 'jane%'` or `first_name = 'Jane'`.read-only

  • Get the account profile

    SENDGRID_GET_USER_PROFILE

    Returns the profile of the SendGrid account: name, company and address.read-only

Connect via MCP

Create an MCP server for SendGrid in the dashboard, then add its URL to your client. This is the Claude Code command; the client guide has the others.

terminal
claude mcp add --transport http sendgrid \
  "https://www.prompt-tm.com/mcp/<server id>?user_id=<your user>" \
  --header "x-api-key: ptm_…"

Connect via REST

Run a tool with one request. The response is { data, error, successful, log_id } for every tool.

terminal
curl -X POST https://www.prompt-tm.com/api/v3/tools/execute/SENDGRID_SEND_EMAIL \
  -H "x-api-key: $PROMPT_TM_KEY" -H "content-type: application/json" \
  -d '{ "user_id": "alice", "arguments": {} }'

SendGrid questions