← All guides marginal.sh

Back in Stock Subject Line Tests in Windsurf

Updated June 2026 · Hosted email MCP server

Restock emails are time-sensitive — the right subject line decides whether a customer returns before the item sells out again. This guide shows how to run back in stock subject lines in Windsurf with marginal, the hosted email MCP server, so your AI agent drafts, tests, and measures variants without leaving the editor.

Why test back in stock subject lines from Windsurf

Back in stock alerts compete with a crowded inbox, and small wording changes — urgency, product name, scarcity — produce real differences in open rate. Instead of guessing, you can drive a subject line A/B test through Windsurf's AI agent and let data choose the winner.

marginal exposes its tools over MCP, so the same agent that touches your codebase can also launch an email subject line test. No copy-paste between dashboards, no separate campaign tool to context-switch into.

Connecting marginal to Windsurf

marginal is a hosted email MCP server, so there's nothing to deploy or self-host. Point Windsurf at the https://marginal.sh/mcp endpoint and authenticate with your Bearer API key (a marg_live_ token). Once connected, the agent can call marginal's four tools directly.

The full client list includes Cursor, Claude Desktop, Claude Code, Cline, Continue, Zed, OpenAI Codex, and Windsurf — so the same setup pattern transfers if your team uses more than one.

Running the back in stock subject line test

Ask the Windsurf agent to draft restock variants, then launch a managed send and read results — all through marginal's MCP tools. A typical flow walks through generation, launch, and measurement in a single agent conversation.

Tips for restock subject line variants

Back in stock messaging works best when it pairs the product name with a reason to act now. Test one variable at a time so the lift you measure is attributable to a clear change, and keep your free tier in mind — 100 experiments per month covers frequent restock testing.

Let the AI agent handle the repetitive scaffolding — variant copy, send setup, results parsing — while you decide which angles are worth testing. That's the point of AI agent email marketing: faster iteration without spreadsheets.

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