Subject Line A/B Testing in Cursor
Cursor's agent can do more than write code. Connect it to marginal's hosted email MCP server and you can generate subject line variants, launch a managed send, and pull back open and click lift — all from the same chat panel you already keep open.
Why run subject line A/B tests from Cursor
If you live in Cursor, context-switching to a separate email tool to test a subject line breaks your flow. With marginal wired in as an MCP server, the Cursor agent treats your subject line A/B test like any other tool call — describe the audience and goal, and it handles variant generation, sending, and reporting.
This is especially useful when the same repo drives your product copy and your lifecycle emails. The Cursor agent workflow keeps marketing experiments next to the code that triggers them.
- No new dashboard to learn — drive everything through chat
- Variants, send, and results live in one conversation
- Great fit for AI agent email marketing experiments tied to product changes
Connect marginal to Cursor
marginal is fully hosted, so there's nothing to deploy or self-host. Add it as a remote MCP server in Cursor's MCP settings and authenticate with your Bearer API key (the marg_live_... token from your account).
Once connected, marginal's four tools — generate_variants, launch_test, get_results, and recommend_next — become available to the Cursor agent automatically.
- Endpoint: https://marginal.sh/mcp
- Auth: Bearer API key (marg_live_...)
- Registry id: sh.marginal/mcp
- Setup details: https://marginal.sh/mcp
A subject line A/B test, end to end
A typical subject line A/B test in Cursor follows the tool order naturally. Ask the agent to draft variants, launch the managed send, then check back for results once opens and clicks accumulate.
Because marginal reports within-test lift, you don't have to wire up your own significance math — the agent can summarize which subject line is winning and by how much.
- generate_variants — produce several subject line candidates from a prompt
- launch_test — start a managed send that splits recipients across variants
- get_results — pull open/click tracking and within-test lift metrics
- recommend_next — get a suggested follow-up based on what won
Tips for cleaner results
Subject line A/B testing rewards discipline. Change one thing at a time so the lift you measure maps to a real cause, and give the test enough audience to read past noise before you call it.
- Test one dimension per run — urgency, length, or personalization
- Let opens settle before asking the agent for results
- Use the free tier (100 experiments/month) to validate your Cursor workflow
- Reference https://marginal.sh/docs/ for tool parameters and response shapes
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