← All guides marginal.sh

Test Product Launch Subject Lines in OpenAI Codex

Updated June 2026 · Hosted email MCP server

Pair OpenAI Codex with marginal, the hosted email MCP server, to generate product launch subject lines, run a subject line A/B test, and let the agent pick the winner from live open and click data.

Why run subject line tests from OpenAI Codex

A product launch lives or dies on the first impression in the inbox. Writing product launch subject lines in OpenAI Codex keeps the loop tight: you describe the launch, the agent drafts variants, and marginal handles the send, tracking, and lift math without you leaving your editor.

Because marginal exposes a small set of MCP tools, Codex can move from idea to a running subject line test in a single conversation — no copy-pasting between an ESP dashboard and your terminal.

The launch workflow with marginal's MCP tools

Once marginal is connected as an email MCP server, OpenAI Codex can call four tools to drive the whole campaign. A typical product launch flow uses each one in sequence.

Prompting Codex for launch-ready subject lines

Give the agent the specifics that matter for a launch: what the product is, who it's for, and the one outcome you want readers to feel. The more concrete the brief, the sharper the variants generate_variants returns.

Try a prompt like: "Generate five product launch subject lines for our new API analytics dashboard, aimed at backend engineers, then launch a subject line A/B test and report the lift after results come in." Codex will chain the tools and surface the numbers, making AI agent email marketing a measurable, repeatable step rather than a guess.

Setup and limits

marginal is hosted, so there's nothing to deploy — point Codex at https://marginal.sh/mcp and authenticate with your Bearer API key (marg_live_...). The free tier covers 100 experiments per month, enough to test every launch and most of your ongoing campaigns.

See the full tool reference and connection details in the docs at https://marginal.sh/docs/ before your next product launch.

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