← All guides marginal.sh

Subject Line A/B Testing in Cursor

Updated June 2026 · Hosted email MCP server

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.

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.

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.

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.

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