SendGrid MCP Server
for AI Agents
Connect your AI agent to StackOne's SendGrid MCP server and give it 100 MCP tools out of the box. Auth, tool execution, and security all managed.
Coverage
100 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 100 pre-built actions, fully extensible via the Connector Builder — plus managed authentication, prompt injection defense, observability, and agent execution runtime. Connect it from MCP clients like Claude Desktop, Claude Code, Cursor, Goose, and VS Code, or from agent frameworks like OpenAI Agents SDK, LangChain, and Vercel AI SDK.
All SendGrid MCP Tools
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 (35)
- 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
- Activate Template Version
Activate a specific version of a template
- 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
SendGrid AI Agent Use Cases
Connect your AI agent to SendGrid and help your team scale the marketing operations they run by hand today.
Use StackOne to connect your AI agent to your marketing automation, CRM, and email tools to automate lead nurture email sequences.
ViewUse StackOne to connect your AI agent to your marketing automation, email, and analytics platforms to automate campaign performance reporting.
ViewUse StackOne to connect your AI agent to your document stores, email platforms, and messaging tools to automate content repurposing and distribution.
ViewSet Up Your SendGrid MCP Server in Minutes
One endpoint. Any framework. Your agent is talking to SendGrid in under 10 lines of code.
Agent Frameworks
{
"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>"
]
}
}
}Platform Resources
MCP Code Mode: Keeping Tool Responses Out of Agent Context
Anthropic's code_execution processes data already in context. Custom MCP code mode keeps raw tool responses in a sandbox. 14K tokens vs 500.
11 min
Comparing BM25, TF-IDF, and Hybrid Search for MCP Tool Discovery
Benchmarking BM25, TF-IDF, and hybrid search for MCP tool discovery across 916 tools. The 80/20 TF-IDF/BM25 hybrid hits 21% Top-1 accuracy in under 1ms.
10 min
Indirect Prompt Injection Defense for MCP Tools: A Technical Guide
MCP tools that read emails, CRM records, and tickets are indirect prompt injection vectors. Here's how we built a two-tier defense that scans tool results in ~11ms.
12 min
MCP vs A2A: Architecture, Security, and When to Use Each
MCP vs A2A: what each protocol standardizes, how they differ, their shared security risks including indirect prompt injection, and when to use one, both, or a hybrid architecture.
12 min
MCP vs API: What 200+ Connector Builds Taught Us
MCP wraps APIs, it doesn't replace them. After building 200+ connectors that serve both, here's when each approach wins.
14 min read
SendGrid MCP Server FAQ
Does StackOne have a SendGrid MCP server?
SendGrid MCP server vs direct API integration — what's the difference?
How does SendGrid authentication work for AI agents?
origin_owner_id.Are SendGrid MCP tools vulnerable to prompt injection?
What is the context bloat of a SendGrid agent and how do I avoid it?
Can I limit which actions my SendGrid agent can access?
Can I create custom agent actions for my SendGrid MCP server?
When should I NOT use a SendGrid MCP server?
What AI frameworks and AI clients does the StackOne SendGrid MCP server support?
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.