Skip to main content

Announcing StackOne Defender: leading open-source prompt injection guard for your agent Read More

SendGrid MCP Server
for AI Agents

Production-ready SendGrid MCP server with 99 extensible actions — plus built-in authentication, security, and optimized execution.

SendGrid logo
SendGrid MCP Server
Built by StackOne StackOne

Coverage

99 Agent Actions

Create, read, update, and delete across SendGrid — and extend your agent's capabilities with custom actions.

Authentication

Agent Tool Authentication

Per-user OAuth in one call. Your SendGrid MCP server gets session-scoped tokens with zero credentials stored on your infra.

Agent Auth →

Security

Agent Protection

Every SendGrid tool response scanned for prompt injection in milliseconds — 88.7% accuracy, all running on CPU.

Prompt Injection Defense →

Performance

Max Agent Context. Min Cost.

Free up to 96% of your agent's context window to enhance reasoning and reduce cost, on every SendGrid call.

Tools Discovery →

What is the SendGrid MCP Server?

A SendGrid MCP server lets AI agents read and write SendGrid data through the Model Context Protocol — Anthropic's open standard for connecting LLMs to external tools. StackOne's SendGrid MCP server ships with 99 pre-built actions, fully extensible via the Connector Builder — plus managed authentication, prompt injection defense, and optimized agent context. Connect it from MCP clients like Claude Desktop, Cursor, and VS Code, or from agent frameworks like OpenAI Agents SDK, LangChain, and Vercel AI SDK.

All SendGrid MCP Tools and Actions

Every action from SendGrid's API, ready for your agent. Create, read, update, and delete — scoped to exactly what you need.

Templates

  • Create Template

    Create a new transactional template

  • List Templates

    Retrieve all transactional templates

  • Get Template

    Retrieve a single transactional template

  • Update Template

    Edit a transactional template

  • Delete Template

    Delete a transactional template

Template Versions

  • Create Template Version

    Create a new version of a template

  • Get Template Version

    Retrieve a specific version of a template

  • Update Template Version

    Edit the content of a template version

  • Delete Template Version

    Delete a template version

Designs

  • Create Design

    Create a new design

  • List Designs

    Retrieve a list of designs from your Design Library

  • Get Design

    Retrieve a single design by ID

  • Update Design

    Edit an existing design

  • Delete Design

    Delete a single design

Pre-built Designs

  • List Pre-built Designs

    Retrieve a list of pre-built SendGrid designs

  • Get Pre-built Design

    Retrieve a single pre-built SendGrid design

Contacts

  • Search Contacts

    Search for contacts using SGQL query

  • Delete Contacts

    Delete one or more contacts by ID or all contacts

Segments

  • Create Segment

    Create a new dynamic contact segment

  • List Segments

    Retrieve a list of contact segments

  • Update Segment

    Update a segment's name or query

  • Delete Segment

    Delete a contact segment

Single Sends

  • Create Single Send

    Create a new single send campaign

  • List Single Sends

    Retrieve all single send campaigns

  • Search Single Sends

    Search for single sends using filters

  • Update Single Send

    Update a Single Send using a Single Send ID

  • Delete Single Send

    Delete a single send campaign

Verified Senders

  • Create Verified Sender

    Create a new Sender Identity

  • List Verified Senders

    Retrieve all verified senders

  • Update Verified Sender

    Update an existing Sender Identity

  • Delete Verified Sender

    Delete a verified sender identity

Authenticated Domains

  • List Authenticated Domains

    Retrieve all authenticated domains

  • Get Authenticated Domain

    Retrieve a specific authenticated domain

  • Delete Authenticated Domain

    Delete an authenticated domain

Bounces

  • List Bounces

    Retrieve a paginated list of all bounces

  • Delete Bounces

    Delete all emails on your bounces list

Bounce By Emails

  • Get Bounce By Email

    Retrieve a specific bounce by email address

  • Delete Bounce By Email

    Remove an email address from bounce list

Blocks

  • List Blocks

    Retrieve a paginated list of all email addresses that are currently on your blocks list

  • Delete Blocks

    Delete all email addresses on your blocks list

Block By Emails

  • Get Block By Email

    Retrieve a specific email address from your blocks list

  • Delete Block By Email

    Delete a specific email address from your blocks list

Spam Reports

  • List Spam Reports

    Retrieve a paginated list of all spam reports

  • Delete Spam Reports

    Delete spam reports

Spam Report By Emails

  • Get Spam Report By Email

    Retrieve a specific spam report by email address

  • Delete Spam Report By Email

    Delete a specific spam report by email address

Invalid Emails

  • List Invalid Emails

    Retrieve a paginated list of all invalid email addresses

  • Get Invalid Email

    Retrieve a specific invalid email address

  • Delete Invalid Emails

    Remove email addresses from invalid email address list

Suppression Groups

  • Create Suppression Group

    Create a new suppression group

  • List Suppression Groups

    Retrieve all suppression groups associated with the account

  • Get Suppression Group

    Retrieve a single suppression group by ID

  • Update Suppression Group

    Update or change a suppression group

  • Delete Suppression Group

    Delete a suppression group

API Keys

  • Create API Key

    Create a new API key

  • List API Keys

    Retrieve all API keys for your account

  • Update API Key

    Update an API key's name or scopes

  • Delete API Key

    Delete an API key

Account IPs

  • Add Account IPs

    Provision and add IP addresses to a customer account

  • List Account IPs

    Retrieve all IP addresses associated with a customer account

Teammates

  • List Teammates

    Retrieve a paginated list of all current Teammates

  • Get Teammate

    Retrieve a specific Teammate by username

  • Delete Teammate

    Delete a teammate

Pending Teammates

  • List Pending Teammates

    Retrieve a list of all pending Teammate invitations

  • Delete Pending Teammate

    Delete a pending teammate invite

Other (34)

  • Send Email

    Send an email through SendGrid's Mail Send API

  • Add Or Update Contacts

    Add or update up to 30,000 contacts or 6MB of data

  • Create List

    Create a new contact list

  • Get Authenticated User

    Retrieve information about the authenticated user

  • Get Contact By ID

    Retrieve a specific contact by ID

  • Get Contact Count

    Get the total number of contacts in your account

  • List All Lists

    Retrieve all contact lists

  • Get List By ID

    Retrieve a specific list by ID

  • Get Segment By ID

    Get Marketing Campaigns Segment by ID

  • Get Single Send By ID

    Retrieve a specific single send by ID

  • Get Single Send Stats

    Get statistics for a specific single send

  • Get Single Send Categories

    Retrieve all categories associated with Single Sends

  • Get Default Authenticated Domain

    Retrieve the default authenticated domain

  • List Global Unsubscribes

    Retrieve a paginated list of all email address that are globally suppressed

  • Get Email Statistics

    Retrieve email delivery statistics

  • Get Statistics By Category

    Retrieve statistics filtered by category

  • Get Email Activity

    Retrieve email activity events

  • Get Message By ID

    Retrieve a specific message by its ID

  • Get Subuser Statistics Sums

    Retrieve total sums of email statistics for all subusers

  • Get API Key By ID

    Retrieve a specific API key by ID

  • Get Current API Key Scopes

    Retrieve scopes for the current API key

  • Update List

    Update a list's name

  • Update API Key Name

    Update only the name of an API key

  • Update Teammate Permissions

    Update a teammate's permissions

  • Delete List

    Delete a contact list

  • Delete Invalid Email By Address

    Remove a specific email address from the invalid email address list

  • Duplicate Design

    Duplicate an existing design

  • Duplicate Pre-built Design

    Duplicate a pre-built SendGrid design

  • Schedule Single Send

    Schedule a single send for delivery

  • Resend Verification Email

    Resend verification email to a sender

  • Authenticate Domain

    Authenticate a new domain for sending

  • Validate Authenticated Domain

    Validate domain DNS records

  • Invite Teammate

    Invite a Teammate to your account via email

  • Resend Teammate Invite

    Resend a Teammate invitation

Set Up Your SendGrid MCP Server in Minutes

One endpoint. Any framework. Your agent is talking to SendGrid in under 10 lines of code.

MCP Clients

Agent Frameworks

Claude Desktop
{
  "mcpServers": {
    "stackone": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote@latest",
        "https://api.stackone.com/mcp?x-account-id=<account_id>",
        "--header",
        "Authorization: Basic <YOUR_BASE64_TOKEN>"
      ]
    }
  }
}

More Marketing Automation MCP Servers

Klaviyo

162+ actions

Zoho CRM

126+ actions

Intercom

123+ actions

Braze

98+ actions

Mailchimp

80+ actions

Campaign Monitor

73+ actions

HubSpot

73+ actions

SendGrid MCP Server FAQ

SendGrid MCP server vs direct API integration — what's the difference?
A SendGrid MCP server and direct API integration serve different use cases. Direct API integration is for software-to-software — backend code calling SendGrid. A SendGrid MCP server is for AI agents — MCP clients like Claude and Cursor, plus framework agents built with OpenAI, LangChain, or Vercel AI — discovering and calling SendGrid at runtime. StackOne provides both.
How does SendGrid authentication work for AI agents?
SendGrid authentication for AI agents works through a StackOne Connect Session. Create one via the dashboard or the SDK — you get an auth link and ready-to-paste config for Claude Desktop, Cursor, and other MCP clients. Your user authenticates their own SendGrid account; StackOne handles token exchange, storage, and refresh. Credentials never reach the LLM, and each user is isolated via origin_owner_id.
Are SendGrid MCP tools vulnerable to prompt injection?
Yes — SendGrid MCP tools can be vulnerable to indirect prompt injection. Any tool that reads user-written content — documents, messages, tickets, records, or free-text fields — is a potential vector. StackOne Defender scans every tool response before it enters the agent's context — regex patterns in ~1ms, then a MiniLM classifier in ~4ms. 88.7% accuracy, CPU-only.
What is the context bloat of a SendGrid agent and how do I avoid it?
Context bloat happens when SendGrid tool schemas and API responses eat your SendGrid agent's memory, preventing it from reasoning effectively. A single SendGrid query can return a massive JSON response, and connecting multiple tools compounds the problem. Tools Discovery and Code Mode reduce context bloat — loading only relevant tools per query and keeping raw responses out of the agent's context.
Can I limit which actions my SendGrid agent can access?
Yes — you can limit which actions your SendGrid agent can access directly from the StackOne dashboard. Toggle actions on or off, or restrict them to specific accounts, with no code changes to your agent. Session tokens can be scoped to exact actions so if one leaks, exposure stays contained.
Can I create custom agent actions for my SendGrid MCP server?
Yes — you can create custom agent actions for your SendGrid MCP server using Connector Builder. It's an integration agent your coding assistant (Claude Code, Cursor, or Copilot) can invoke to research SendGrid's API, generate production-ready connector YAML, test against the live API, and validate before you ship.
When should I NOT use a SendGrid MCP server?
Skip a SendGrid MCP server if your integration is purely software-to-software — direct SendGrid API integration is simpler when no AI agent is involved. For deterministic, compliance-critical operations (financial transactions, regulatory reporting), direct API gives you predictable behavior without agent-driven decision-making. MCP shines when AI agents need to dynamically discover and call SendGrid actions at runtime.
What AI frameworks and AI clients does the StackOne SendGrid MCP server support?
The StackOne SendGrid MCP server supports both. MCP clients (paste-and-go apps): Claude Desktop, Claude Code, Cursor, VS Code, Goose. Agent frameworks (code SDKs you build with): OpenAI Agents SDK, Anthropic, Vercel AI, Google ADK, CrewAI, Pydantic AI, LangChain, LangGraph, Azure AI Foundry.

Put your AI agents to work

All the tools you need to build and scale AI agent integrations, with best-in-class connectivity, execution, and security.