communication
SendGrid MCP, CLI, and Lua Integration for AI Agents
SendGrid integration docs for AI agents: MCP gateway setup, SendGrid CLI commands, Lua API reference, credentials, and function schemas.
7 functions 6 read 1 write API key auth
SendGrid for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Machine-Readable Metadata
- integration_slug
sendgrid- route_slug
sendgrid- package
sendgrid- auth_strategy
api_keyAPI key- cli_setup_supported
true- cli_runtime_supported
true- mcp_gateway_supported
true- lua_supported
true- supports_multi_account
true
Quick Links
Lua APIAgent-facing namespace and function reference. SendGrid CLIHeadless setup and direct function calls. SendGrid MCPMCP gateway setup for external clients. Submit feedbackReport missing tools, auth problems, wrong docs, or runtime issues. ContributeAdd tools or improve metadata in the integrations repo.
SendGrid MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for SendGrid.
Claude Code SendGrid MCP setup for Claude Code. Cursor SendGrid MCP setup for Cursor. Codex SendGrid MCP setup for Codex. OpenAI Agents SendGrid MCP setup for OpenAI Agents SDK. Claude Agent SDK SendGrid MCP setup for Claude Agent SDK. Vercel AI SDK SendGrid MCP setup for Vercel AI SDK. LangChain SendGrid MCP setup for LangChain. LangGraph SendGrid MCP setup for LangGraph. CrewAI SendGrid MCP setup for CrewAI. MCP clients SendGrid MCP setup for Generic MCP Clients.
SendGrid CLI Matrix
Use these pages for direct SendGrid CLI workflows in scripts, CI, cron, and agent wrappers.
CI SendGrid CLI for CI. Cron Jobs SendGrid CLI for cron jobs. Shell Scripts SendGrid CLI for shell scripts. Headless Automation SendGrid CLI for headless automation. Coding Agents SendGrid CLI for coding agents.
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
sendgrid.sendgrid_list_contacts | Read read | 2 | List contacts in your SendGrid marketing contacts database. Supports pagination. |
sendgrid.sendgrid_send_email | Write write | 5 | Send an email via SendGrid. Specify sender, recipients, subject, and HTML or text content. |
sendgrid.sendgrid_get_contact | Read read | 1 | Get details of a specific contact in SendGrid by their contact ID. Returns email, custom fields, and list memberships. |
sendgrid.sendgrid_get_current_user | Read read | 0 | Get the profile of the currently authenticated SendGrid user, including email, first name, and last name. |
sendgrid.sendgrid_get_template | Read read | 1 | Get details of a specific email template in SendGrid by its ID. Returns template name, versions, and active version content. |
sendgrid.sendgrid_list_emails | Read read | 2 | List emails in your SendGrid account. Supports filtering by query and pagination. |
sendgrid.sendgrid_list_templates | Read read | 2 | List email templates in your SendGrid account. Supports pagination. |