Subject Line Testing with an Email MCP Server
A subject line testing MCP lets your AI agent draft variants, launch the send, and read open and click lift without leaving the chat. marginal is a hosted email MCP server built exactly for that loop.
What a subject line testing MCP does
The Model Context Protocol gives AI agents a structured way to call real tools. When you connect a subject line testing MCP, the agent stops guessing about which line performs best and starts running actual experiments against your list.
With marginal, the entire subject line A/B test runs through four tools the agent can call in sequence — no copy-pasting between an email platform and your editor.
- generate_variants — produce candidate subject lines for a campaign
- launch_test — split your audience and send each variant
- get_results — pull open/click tracking and within-test lift
- recommend_next — suggest the winning line or a follow-up test
Why run subject line A/B tests through MCP
Most subject line work dies in a spreadsheet. You write five ideas, pick a favorite, and never learn whether it actually moved opens. Routing the test through an MCP server closes that loop because the agent that wrote the variants also reads the results.
- Tighter iteration: draft, send, and measure in one conversation
- Real metrics: open and click tracking with within-test lift, not vibes
- Repeatable: ask the agent to test every campaign, not just big ones
- Free tier covers 100 experiments per month to get started
Connecting marginal to your AI agent
marginal is hosted, so there's no server to deploy and nothing to self-manage. You point a supported MCP client at the endpoint https://marginal.sh/mcp and authenticate with a Bearer API key that starts with marg_live_.
Compatible clients include Cursor, OpenAI Codex, Claude Desktop, Claude Code, Windsurf, Cline, Continue, and Zed — so AI agent email marketing fits into whatever editor or agent runtime you already use. See the docs at https://marginal.sh/docs/ for client-specific setup.
A typical testing workflow
Once connected, a single prompt can drive a complete subject line A/B test. The agent handles each step, and you stay in the loop to approve the send and interpret the lift.
- Ask the agent for variants on a campaign theme via generate_variants
- Launch the managed send and split with launch_test
- Wait for engagement, then call get_results for open/click lift
- Use recommend_next to lock in the winner or plan the next test
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