← All guides marginal.sh

Test Newsletter Subject Lines in Cursor

Updated June 2026 · Hosted email MCP server

Cursor is where you already write and ship — so it's a natural place to draft and test newsletter subject lines. With marginal's hosted email MCP server, you can generate variants, launch a subject line A/B test, and pull results back into your editor through a few tool calls.

Why run subject line tests inside Cursor

Most newsletter teams write subject lines in a doc, paste them into an ESP UI, and lose the loop between drafting and measuring. Cursor's agent can close that loop by calling marginal's MCP tools directly while you stay in context with the rest of your codebase or content pipeline.

Connect marginal as an email MCP server

marginal is a hosted MCP server, so there's nothing to deploy or self-host. Add it to Cursor's MCP configuration with the endpoint https://marginal.sh/mcp and your Bearer API key (a marg_live_... token). Once connected, Cursor can discover marginal's four tools and call them on demand.

The tools you'll use for a newsletter workflow are generate_variants, launch_test, get_results, and recommend_next. Full setup details live in the docs at https://marginal.sh/docs/ and on the MCP page at https://marginal.sh/mcp.

A newsletter subject line test, step by step

Ask Cursor to generate candidate subject lines for your next newsletter, then launch a subject line A/B test against your list. marginal manages the send and tracks opens and clicks, returning within-test lift metrics so you can see which line is actually winning.

Make it a repeatable AI agent email marketing loop

Because Cursor's agent can chain these calls, your newsletter workflow becomes a tight loop: generate, launch, measure, recommend. Over several issues, you build a track record of which angles resonate with your audience, all driven from the editor you already work in.

This is AI agent email marketing without the glue code — marginal handles managed sends and tracking, while Cursor orchestrates the steps. Start with one subject line A/B test per newsletter and scale up as the data sharpens your instincts.

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