Connect
Optimize
Secure
Announcing StackOne Defender: leading open-source prompt injection guard for your agent • Read More →
Production-ready Mailgun MCP server with 81 extensible actions — plus built-in authentication, security, and optimized execution.
Coverage
Create, read, update, and delete across Mailgun — and extend your agent's capabilities with custom actions.
Authentication
Per-user OAuth in one call. Your Mailgun MCP server gets session-scoped tokens with zero credentials stored on your infra.
Agent Auth →Security
Every Mailgun tool response scanned for prompt injection in milliseconds — 88.7% accuracy, all running on CPU.
Prompt Injection Defense →Performance
Free up to 96% of your agent's context window to enhance reasoning and reduce cost, on every Mailgun call.
Tools Discovery →A Mailgun MCP server lets AI agents read and write Mailgun data through the Model Context Protocol — Anthropic's open standard for connecting LLMs to external tools. StackOne's Mailgun MCP server ships with 81 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.
Every action from Mailgun's API, ready for your agent. Create, read, update, and delete — scoped to exactly what you need.
Add a new sending domain to the Mailgun account.
List all domains associated with the Mailgun account.
Retrieve details and DNS verification status for a specific domain.
Update configuration settings for an existing domain.
Permanently delete a domain from the Mailgun account.
Manually add an email address to the bounce suppression list for a domain.
List all bounce records for a domain's suppression list.
Retrieve the bounce record for a specific email address.
Remove a specific email address from the bounce suppression list.
Clear all bounce records from a domain's suppression list.
Manually add an email address to the spam complaint suppression list.
List all spam complaint records for a domain's suppression list.
Retrieve the spam complaint record for a specific email address.
Remove a specific email address from the spam complaint suppression list.
Clear all spam complaint records from a domain's suppression list.
Manually add an email address to the unsubscribe suppression list.
List all unsubscribe records for a domain's suppression list.
Retrieve the unsubscribe record for a specific email address.
Remove a specific email address from the unsubscribe suppression list.
Clear all unsubscribe records from a domain's suppression list.
Add an email address or domain to the bounce allowlist.
Retrieve a specific entry from the bounce allowlist.
Remove a specific entry from the bounce allowlist.
Create a new mailing list for bulk email distribution.
List all mailing lists associated with the Mailgun account.
Retrieve details of a specific mailing list by its email address.
Update the settings of an existing mailing list.
Permanently delete a mailing list and all its members.
Add a new member to a mailing list.
List all members of a specific mailing list.
Retrieve the details of a specific mailing list member.
Update the details or subscription status of an existing mailing list member.
Remove a member from a mailing list.
Create a new email template at the account level.
List all email templates stored at the account level.
Retrieve details of a specific account-level template.
Update the metadata of an existing account-level template.
Permanently delete an account-level template and all its versions.
Add a new version to an existing account-level template.
List all versions of a specific account-level template.
Retrieve a specific version of an account-level template.
Update the content or status of a specific account template version.
Delete a specific version of an account-level template.
Create a new inbound email routing rule.
List all inbound email routing rules configured on the account.
Retrieve the details of a specific inbound routing rule.
Update an existing inbound email routing rule.
Permanently delete an inbound email routing rule.
Query analytics tags by name and optionally set a description.
Update the description of an existing analytics tag.
Delete an analytics tag from the account.
List all IP addresses allocated to the Mailgun account.
Retrieve details for a specific IP address allocated to the account.
Create a new IP pool to group dedicated IPs for a sending stream.
List all IP pools configured on the Mailgun account.
Retrieve details of a specific IP pool.
Create a new SMTP login credential for a domain.
List all SMTP credentials configured for a domain.
Update the password for an existing SMTP credential.
Permanently delete an SMTP credential from a domain.
List all users associated with the Mailgun account.
Retrieve the profile of a specific user by their user ID.
Create a new subaccount under the parent Mailgun account.
List all subaccounts under the parent Mailgun account.
Retrieve details of a specific subaccount.
Send an email message via Mailgun for the specified domain.
Send an email in raw MIME format via Mailgun for the specified domain.
Retrieve the current state of the sending queues for a domain.
Retrieve the click, open, and unsubscribe tracking settings for a domain.
List all entries in the bounce allowlist for a domain.
Query detailed email sending and engagement analytics metrics.
Query usage metrics for Mailgun services such as email validation and previews.
Query detailed email event logs for a time range with filtering support.
Retrieve a log of email events for a domain within a time period.
Retrieve the profile of the currently authenticated user.
Enable or disable click tracking for links in emails sent from a domain.
Enable or disable open tracking for emails sent from a domain.
Enable or disable unsubscribe tracking and footer injection for a domain.
Trigger DNS verification for a domain to confirm DNS records are correctly configured.
Re-enable a previously disabled subaccount.
Disable a subaccount to suspend its ability to send email.
One endpoint. Any framework. Your agent is talking to Mailgun in under 10 lines of code.
MCP Clients
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>"
]
}
}
}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
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
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
origin_owner_id.All the tools you need to build and scale AI agent integrations, with best-in-class connectivity, execution, and security.