Email (transaccional + marketing), del grupo Twilio. Completa la cobertura de canales: Twilio maneja SMS/WhatsApp/Voz, SendGrid maneja email. Enviar mail, templates, CRUD de contactos, suppressions, stats.
SendGrid le da a tu agente 20 tools que llama directo — elegí las que necesite, en Claude, Cursor o cualquier cliente MCP.
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-sendgridAgregá esta entrada a tu claude_desktop_config.json (o a la config de cualquier cliente compatible con MCP).
{
"mcpServers": {
"sendgrid": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-sendgrid"
],
"env": {
"SENDGRID_API_KEY": "<your_sendgrid_api_key>"
}
}
}
}Después de reiniciar, tu agente puede llamar cualquiera de las 20 herramientas de abajo — probá send_mail primero.
Necesarias para autenticar el server. Almacenadas cifradas al usar el hosting gestionado de CodeSpar.
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.
Cada herramienta es independiente — tu agente carga solo lo que necesita para reducir contexto y tiempo de respuesta.
send_mailsend_templateadd_contactlist_contactsdelete_contactsearch_contactsget_contactlist_listsMCP es un protocolo — cualquier framework que lo hable puede montar este server.