Email (transactional + marketing), Twilio-owned. Completes channel coverage: Twilio handles SMS/WhatsApp/Voice, SendGrid handles email. Send mail, templates, contacts CRUD, suppressions, stats.
SendGrid gives your agent 20 tools it calls directly β pick the ones it needs, in Claude, Cursor, or any MCP client.
send_mail β Send an email via POST /mail/send. Supply at least one `personalization` with `to` recipients, a `from` address (falls back to SENDGRID_FROM_EMAIL), and either `content` blocks or a `template_id` with `dynamic_template_data`. Returns 202 on success.send_template β Convenience wrapper for POST /mail/send with a dynamic template. Equivalent to send_mail with `template_id` set. Supply `to`, `template_id`, and `dynamic_template_data`; content is rendered from the template.add_contact β Upsert contacts in Marketing Campaigns via PUT /marketing/contacts. Matches on email. Returns a job_id β ingestion is async. Optionally assign to list_ids.// Your agent calls a tool directly β no glue code.
// CodeSpar's managed tier handles OAuth2, token rotation and rate limits.
const result = await session.call("send_mail", { /* ... */ });$ npm install @codespar/mcp-sendgridAdd this entry to your claude_desktop_config.json (or any MCP-compatible client config).
{
"mcpServers": {
"sendgrid": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-sendgrid"
],
"env": {
"SENDGRID_API_KEY": "<your_sendgrid_api_key>"
}
}
}
}After restart, your agent can call any of the 20 tools below β try send_mail first.
Required to authenticate the server. Stored encrypted when using CodeSpar managed hosting.
SENDGRID_API_KEYSendGrid API key. Used as Bearer token in the Authorization header.
SENDGRID_FROM_EMAILOptional default From address used by send_mail / send_template when `from.email` is omitted. Must be a Verified Sender or authenticated domain.
Each tool is independent β your agent loads only what it needs to reduce context and response time.
send_mailsend_templateadd_contactlist_contactsdelete_contactsearch_contactsget_contactlist_listsMCP is a protocol β any framework that speaks it can mount this server.