From a brief
Describe the product, audience, and goal. marginal writes subject line options for the send.
{ brief, count: 3 }Email marketing MCP server
marginal is a hosted email marketing MCP server for AI agents — programmatic subject line experiments, managed sends, open/click tracking, and experiment results. Connect from Cursor, Codex, or Claude Desktop with one API key — no Mailchimp or Klaviyo integration.
generate_variants({ brief: { goal: "cart recovery" } })
launch_test({ variants, recipients: 12_847 })
→ campaign sent · tracking live
get_results({ experiment_id })
top subject click rate: 12.4%Copy workflows
Start from a brief, riff on seed lines, or send exactly what the agent wrote. marginal handles delivery and measurement either way.
Describe the product, audience, and goal. marginal writes subject line options for the send.
{ brief, count: 3 }Start with lines your agent or brand already likes. marginal expands them into send-ready options.
{ seed_texts: ["Your cart is saved"], count: 4 }Pass finished subject lines straight through — marginal tags and sends them without rewriting.
{ source_variants: ["Line A", "Line B"] }What it does
One MCP connection covers the email marketing loop your agent would otherwise have to stitch together across an ESP, a copy tool, and an analytics stack.
01
Subject lines from a brief, seeds, or agent copy
02
Campaigns to your list with managed delivery
03
Opens and clicks tracked on every message
04
See which subjects drive engagement
05
Recommendations for the next campaign
Pricing
Every account starts on Free. Paid plans are coming later — for now, everyone gets the same generous limits.
$0
/ month
Generous early-access limits. No credit card — the only plan until paid tiers launch.
100 campaigns / month
250,000 recipients / month
50,000 recipients / send
10 API keys
FAQ
Quick answers for developers evaluating marginal for agent-driven email marketing and subject line A/B tests.
Without marginal
With marginal
MCP tools
Write subject lines from a campaign brief, seed copy, or exact lines your agent already drafted.
Send a campaign to your recipient list with tracking on every message.
Opens, clicks, and performance broken down by subject line — from your own logs.
Guidance on what messaging angle to try in the next campaign.
Built to learn
Subject lines are tagged by strategy — urgency, tone, discount, and more — so performance compounds across campaigns, not just one-off sends.
Connect
Create an account at marginal.sh, generate an API key, and connect via hosted MCP or npx marginal-cli. Delivery, AI, Postgres, and tracking run on our infrastructure — nothing to deploy.
Free tier
100 experiments/mo · 250k recipients/mo · 10 API keys · one Bearer token to connect
{
"mcpServers": {
"marginal": {
"url": "https://marginal.sh/mcp",
"headers": {
"Authorization": "Bearer marg_live_..."
}
}
}
}export MARGINAL_API_KEY=marg_live_...
npx marginal-cli generate-variants --json '{"source_variants":["Line A","Line B"]}'# 1. Generate variants
marginal generate-variants --json '{"brief":{"product":"Shoes","audience":"Cart abandoners","goal":"Recover sales"},"count":3}'
# 2. Launch test → save experiment_id
marginal launch-test --json @campaign.json
# 3. After opens/clicks
marginal get-results --experiment-id <id>
marginal recommend-next --experiment-id <id>