← All guides marginal.sh

AI Agent Email Automation

Updated June 2026 · Hosted email MCP server

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.

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.

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.

Documentation · Sign up · FAQ