Open Rate Optimization API for Email Subject Lines
An open rate optimization API turns subject line guesswork into measured experiments. marginal exposes that workflow through an email MCP server, so your AI agent can generate variants, launch a test, and read lift metrics without you wiring up dashboards.
What an open rate optimization API actually does
Open rates move when the subject line and preview text earn the click in a crowded inbox. An open rate optimization API gives you a programmatic way to test those variables instead of shipping a single guess to your whole list.
marginal handles the full loop: it generates subject line candidates, splits a managed send across them, tracks who opened, and reports which variant won. You call it as an API, so the testing logic lives in code or in an agent — not in a person manually copying numbers.
- Generate multiple subject line candidates per campaign
- Run a subject line A/B test across a sample of your audience
- Track open and click events on managed sends
- Compare within-test lift so the winner is statistically grounded
The MCP tools behind the workflow
marginal is delivered as a hosted email MCP server at https://marginal.sh/mcp, authenticated with a bearer API key. Four tools cover the optimization cycle, and any MCP-compatible agent can chain them together.
- generate_variants — draft a set of subject lines to test
- launch_test — start a subject line A/B test on a managed send
- get_results — pull open/click tracking and within-test lift metrics
- recommend_next — get a data-backed suggestion for the next experiment
Why run open rate tests through an AI agent
AI agent email marketing works best when the agent can both write and measure. Because marginal speaks MCP, tools like Cursor, Claude Code, Claude Desktop, Windsurf, Cline, Continue, Codex, and Zed can run a complete optimization pass conversationally — propose subject lines, launch the test, and act on results.
The agent does not stop at generation. With get_results and recommend_next, it closes the feedback loop: read the open rate, identify the winning variant, and queue a smarter follow-up test instead of guessing again next week.
Getting started and what's free
marginal is hosted, so there is nothing to deploy or self-host. Point your agent at the MCP endpoint, add your API key, and start optimizing. The free tier covers 100 experiments per month, which is plenty to validate subject line testing against your real audience.
- Endpoint: https://marginal.sh/mcp
- Registry: sh.marginal/mcp
- Auth: bearer API key (marg_live_...)
- Free tier: 100 experiments/month
- Docs: https://marginal.sh/docs/
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