Test Newsletter Subject Lines in Cursor
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.
- Draft and iterate on subject lines next to your newsletter content
- Trigger a subject line test without context-switching to another dashboard
- Let an AI agent handle the busywork of variant generation and result parsing
- Keep your experiment history reproducible alongside your project
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.
- Endpoint: https://marginal.sh/mcp
- Auth: Bearer API key beginning with marg_live_
- Registry name: sh.marginal/mcp
- Free tier: 100 experiments per month
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.
- Call generate_variants with your topic and tone to get fresh subject line options
- Use launch_test to send the variants and start a subject line test
- Pull get_results for open and click rates plus within-test lift
- Ask recommend_next to decide the follow-up subject line or send
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.
- 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