← All guides marginal.sh

Cold Email Subject Line A/B API

Updated June 2026 · Hosted email MCP server

If you're searching for a cold email subject line A/B API, you want one call to spin up variants, send them, and tell you which line wins. marginal exposes exactly that through an email MCP server your AI agent can drive directly.

What a subject line A/B API should do

Cold email lives and dies on the subject line. The hard part isn't writing one option — it's testing several against a real segment and measuring open lift without stitching together send infrastructure and analytics yourself.

marginal collapses that workflow into four MCP tools so a subject line A/B test is a few structured calls rather than a multi-tool integration project.

Why use the MCP endpoint instead of raw HTTP

marginal is a hosted email MCP server, so the same A/B capabilities are available to any MCP-capable client without you running infrastructure. Point your agent at the endpoint, authenticate, and the subject line tools show up as callable functions.

That means an AI agent doing cold email marketing can decide to test subject lines mid-conversation — generate variants, launch the test, and report lift — instead of you copying results between dashboards.

A typical cold email A/B flow

A practical loop looks like this: ask generate_variants for a handful of subject lines on your offer, call launch_test to send them across a sample of recipients, then poll get_results once data accrues. Lift is computed within the test, so you compare variants against each other rather than guessing at an absolute baseline.

When a clear leader emerges, recommend_next tells you which subject line to roll out to the rest of your list — closing the loop from idea to decision in one API surface.

Getting started

The free tier covers 100 experiments per month, which is enough to validate subject lines across several cold email campaigns before committing. Managed sends and tracking are included, so you don't bolt on a separate analytics layer.

See the docs at https://marginal.sh/docs/ for the full tool schemas and example payloads for each call in the A/B workflow.

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