← All guides marginal.sh

Make Your AI Agent Send Email With Real A/B Testing

Updated June 2026 · Hosted email MCP server

If you want an AI agent to send email that actually performs, you need more than a raw SMTP call. marginal is a hosted email marketing MCP server that gives your agent tools to draft subject variants, launch managed sends, and measure which version wins.

Why route sends through an email MCP server

An agent calling a generic mail API can fire a message, but it can't tell you whether the subject line worked. marginal closes that loop. By connecting your agent to the email MCP server at https://marginal.sh/mcp, every send becomes a structured experiment your agent can reason about.

Because marginal is fully hosted, there is nothing to deploy. Your agent authenticates with a Bearer API key (marg_live_...) and gets immediate access to managed sends with built-in open and click tracking.

The four tools your agent uses to send email

marginal exposes a small, composable set of MCP tools. An AI agent send email workflow typically chains all four in sequence, turning a vague instruction like 'email our list about the launch' into a measured campaign.

A typical subject line A/B test run

Here's how an agent moves from prompt to insight. The agent generates several subject options, launches a split test against a slice of your audience, waits for engagement to accumulate, then reads the within-test lift to pick a winner.

This pattern is what makes AI agent email marketing repeatable rather than guesswork. Instead of shipping one subject and hoping, the agent treats each campaign as a small experiment and learns from the result before the full send.

Works with the agents you already use

marginal speaks the Model Context Protocol, so any MCP-capable client can drive it. Configure the endpoint once and your assistant can send email, test subjects, and report back inline.

Supported clients include Cursor, OpenAI Codex, Claude Desktop, Claude Code, Windsurf, Cline, Continue, and Zed. See the docs at https://marginal.sh/docs/ for setup details for each client.

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