B2B Email Subject Line MCP for AI Agents
If you write B2B campaigns and want your AI agent to test subject lines instead of guessing, a B2B email subject line MCP connects the two. marginal is a hosted email MCP server that lets agents generate variants, launch tests, and read real open and click data.
Why subject line testing matters for B2B
B2B inboxes are crowded and decision-makers skim. The subject line decides whether a sequence email gets opened at all, and small wording changes — value framing, specificity, length — can move open rates more than the body copy ever will.
The problem is that most teams test by gut feel. A B2B email subject line MCP turns that into a measurable loop your AI agent can drive directly, with structured variants and within-test lift metrics instead of anecdotes.
- Compare specific vs. curiosity-driven framing on real recipients
- Test length and personalization tokens against your actual list
- Capture open and click data per variant, not aggregate guesses
- Feed winning patterns back into the next campaign
How marginal works as an email MCP server
marginal exposes a small set of MCP tools over a hosted endpoint, so your agent can run an entire subject line A/B test without leaving the conversation. There is nothing to self-host — you connect to the endpoint with a Bearer API key and start calling tools.
The flow mirrors how a growth engineer actually works: draft candidate subject lines, ship them to a segment, watch the numbers, and decide what to send next.
- generate_variants — produce candidate subject lines to test
- launch_test — start a managed send across variants
- get_results — pull open/click tracking and within-test lift
- recommend_next — suggest the next subject line or follow-up step
Connecting your AI agent
marginal works with the MCP clients developers already use for AI agent email marketing — Cursor, Claude Desktop, Claude Code, OpenAI Codex, Windsurf, Cline, Continue, and Zed. Point the client at https://marginal.sh/mcp, authenticate with your marg_live_ key, and the subject line tools appear alongside your other agent capabilities.
From there you can describe a campaign in plain language and let the agent handle the test mechanics. The free tier covers 100 experiments per month, which is plenty to validate the workflow on real B2B sends before scaling up.
- Endpoint: https://marginal.sh/mcp
- Auth: Bearer API key (marg_live_...)
- Registry: sh.marginal/mcp
- Docs and tool reference: https://marginal.sh/docs/
A typical subject line A/B test loop
Once connected, a single prompt can kick off a full cycle. The agent generates a handful of variants for your B2B audience, launches the managed send, and reports lift once enough opens land.
- Ask the agent for 4 subject line variants for a product launch email
- Launch the test to a sample segment with launch_test
- Check get_results for per-variant open and click lift
- Use recommend_next to roll out the winner to the full list
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