AI Agent Email Automation
AI agent email automation lets your coding agent draft, test, and send campaigns without you hand-rolling an ESP integration. marginal is a hosted email MCP server that exposes the whole loop — variant generation, A/B launches, and results — as tools your agent can call directly.
What AI agent email automation means with marginal
Instead of scripting send logic yourself, you give an agent access to marginal's MCP tools and describe the campaign in plain language. The agent generates candidates, launches a subject line A/B test, and reports the winner — all over the same protocol it already uses to read files and run commands.
marginal is fully hosted, so there's no MCP server to deploy or maintain. You connect to https://marginal.sh/mcp with a Bearer API key and your agent has working email tools in seconds.
- generate_variants — produce subject line and body options
- launch_test — start a managed A/B send
- get_results — pull opens, clicks, and within-test lift
- recommend_next — get the suggested winning direction
From prompt to sent campaign
A typical automation flow keeps the agent in control of each decision point while marginal handles delivery and measurement. You stay in your editor and review the agent's choices as it goes.
- Ask your agent for five subject line variants for a re-engagement email
- Have it call launch_test to run a subject line A/B test on your list
- Let tracking collect open and click data automatically
- Use get_results and recommend_next to pick and scale the winner
Why route AI agent email marketing through an MCP server
An email MCP server gives your agent a stable, typed contract for marketing actions — no brittle custom HTTP wrappers, no juggling provider quirks. The same tools work across Cursor, Claude Code, Windsurf, Cline, Continue, Zed, OpenAI Codex, and Claude Desktop.
Because lift metrics are computed within each test, your agent can reason about whether a variant actually won rather than guessing from raw open counts. That makes AI agent email marketing repeatable instead of a one-off prompt.
Getting started
Point your client at https://marginal.sh/mcp, add your marg_live_ key, and start automating. The free tier covers 100 experiments per month, which is plenty to validate an agent-driven workflow before scaling up.
See the connection details and tool reference in the docs at https://marginal.sh/docs/ and the endpoint setup at https://marginal.sh/mcp.
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