← All guides marginal.sh

Open Rate Optimization API for Email Subject Lines

Updated June 2026 · Hosted email MCP server

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.

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.

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.

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