MCP Email Integration: Wire Your Agent to Email Marketing
If you've been searching for a clean MCP email integration, marginal is a hosted email MCP server that lets AI agents draft subject lines, launch tests, and report on lift — all through a handful of well-defined tools.
What MCP email integration actually means
The Model Context Protocol gives AI agents a structured way to call external tools. An MCP email integration is simply the bridge between your agent and your email sending and testing workflow, exposed as callable tools rather than ad-hoc HTTP requests.
marginal handles the email side of that bridge. Instead of stitching together raw send APIs, your agent talks to a single endpoint at https://marginal.sh/mcp and gets back the email marketing capabilities it needs.
- generate_variants — produce candidate subject lines for a campaign
- launch_test — start a subject line A/B test with a managed send
- get_results — pull open/click tracking and within-test lift
- recommend_next — get a data-backed suggestion for the next step
Why use a hosted email MCP server
marginal is fully hosted, so there's nothing to deploy or maintain. You don't run your own email MCP server, and you don't need to wire up separate provider credentials to start testing — managed sends and tracking are part of the service.
Authentication is a single Bearer API key in the form marg_live_..., and the registry name sh.marginal/mcp keeps configuration consistent across clients.
- No self-hosting and no infrastructure to babysit
- Bearer API key auth — one credential to manage
- Open and click tracking built into every managed send
- Free tier with 100 experiments per month to evaluate the fit
A subject line A/B test driven by your agent
The most common reason teams reach for AI agent email marketing is faster subject line iteration. With marginal, the agent can generate a set of variants, launch a subject line A/B test, wait for engagement to accumulate, and then read lift metrics to decide what wins.
Because each step is a discrete tool call, the agent's reasoning stays transparent: you can see which variants it proposed, which test it launched, and what the results said before it recommends the next move.
- Ask the agent for five subject lines targeting a specific audience
- Launch the test and let marginal handle the split and send
- Check get_results for within-test lift on opens and clicks
- Use recommend_next to promote the winner or run another round
Works with the agent tools you already use
marginal's MCP email integration plugs into the major MCP-capable clients, so you can keep your existing workflow. Whether you live in an editor or a desktop assistant, the same endpoint and tools are available.
Supported clients include Cursor, OpenAI Codex, Claude Desktop, Claude Code, Windsurf, Cline, Continue, and Zed. Full setup and tool references live in the docs at https://marginal.sh/docs/.
Get started with marginal
marginal is a hosted email marketing MCP server at marginal.sh. Sign up free, create an API key, and connect https://marginal.sh/mcp from Cursor, Codex, or Claude Desktop.
- 100 experiments/month on the free tier
- Four MCP tools: generate_variants, launch_test, get_results, recommend_next
- Listed in the MCP Registry as sh.marginal/mcp