← All guides marginal.sh

Post-Purchase Email A/B Testing for DTC Brands

Updated June 2026 · Hosted email MCP server

The moments right after checkout are when DTC brands earn repeat revenue. A well-timed DTC brands post-purchase email test can turn a one-time buyer into a loyal customer — and marginal lets your AI agent run those experiments without leaving your editor.

Why post-purchase is the highest-leverage moment for DTC

Post-purchase emails — order confirmations, shipping updates, review requests, and replenishment nudges — get opened far more than promotional blasts. For DTC brands, that attention is a chance to set expectations, cross-sell complementary products, and drive the second order.

Small wording changes in this flow compound across every order, which makes it the ideal place to apply disciplined A/B testing rather than guesswork.

Running a subject line A/B test with marginal

marginal is a hosted email MCP server that exposes a small set of tools to your AI agent: generate_variants, launch_test, get_results, and recommend_next. You describe the post-purchase email you want to improve, and the agent drafts subject line variants, launches a managed send, and reports back within-test lift on opens and clicks.

Because everything runs through the MCP endpoint at https://marginal.sh/mcp, you stay in your normal workflow. Ask your agent to set up a subject line A/B test for your 'Thanks for your order' email, and it handles variant generation and the split automatically.

An AI-agent workflow for repeat purchases

AI agent email marketing shines in iterative loops. After the first test resolves, recommend_next can propose a follow-up — for example, leaning into the winning emotional tone or testing a new replenishment timing. Each cycle narrows in on what actually moves your DTC repeat-purchase rate.

marginal works with the MCP clients your team already uses — Cursor, Claude Desktop, Claude Code, Windsurf, Cline, Continue, Zed, and OpenAI Codex — so the same agent that ships product code can iterate on your post-purchase emails.

Getting started

marginal is hosted, so there is nothing to deploy and no self-managed infrastructure. Authenticate with a Bearer API key (marg_live_...), point your MCP client at the registry entry sh.marginal/mcp, and your agent can run experiments immediately.

The free tier includes 100 experiments per month — plenty for a DTC brand to validate its core post-purchase sequence. See the docs at https://marginal.sh/docs/ for tool details and example agent prompts.

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