Testing Browse Abandonment Subject Lines in Claude Code
Browse abandonment emails catch shoppers who viewed products but never added them to a cart. With marginal's email MCP server connected to Claude Code, you can draft, test, and ship subject line experiments without leaving your editor.
Why browse abandonment needs its own subject line test
Browse abandoners are earlier in the funnel than cart abandoners, so the messaging that converts them is different. A subject line that nudges a near-purchase shopper ("Still thinking it over?") often falls flat for someone who only glanced at a category page. The only reliable way to know which framing wins for your audience is a subject line A/B test.
Running browse abandonment subject lines in Claude Code keeps the loop tight: you describe the segment and offer, and the AI agent handles variant generation, the live send, and the results readout through marginal's tools.
- Curiosity angles: "You left something behind" vs. "Did you see this?"
- Product-specific recall vs. category-level reminders
- Urgency framing tested against soft, no-pressure copy
- Emoji vs. plain text to gauge inbox standout
The marginal tools you'll use
marginal exposes four MCP tools that map cleanly onto a browse abandonment workflow. Claude Code calls them in sequence as you iterate on a campaign.
- generate_variants — produce several browse abandonment subject line candidates from a short brief
- launch_test — start a managed subject line A/B test and send to your audience split
- get_results — pull open/click tracking and within-test lift metrics
- recommend_next — get a data-backed suggestion for the next variant to try
A typical session in Claude Code
Once marginal is connected, you can drive the whole experiment with natural language. A browse abandonment flow usually looks like this:
Because marginal is hosted, there's no self-hosted MCP server to maintain and no separate Mailchimp or Klaviyo API key to wire up. You authenticate the endpoint with your marginal Bearer key and the AI agent email marketing loop runs end to end.
- Ask Claude Code to generate 4 browse abandonment subject lines for a recently viewed sneakers segment
- Launch the A/B test directly with launch_test against your chosen split
- Wait for sends to mature, then call get_results for opens, clicks, and lift
- Use recommend_next to pick the follow-up variant and re-run
Connecting and staying within the free tier
Point Claude Code at the marginal endpoint https://marginal.sh/mcp and authenticate with your Bearer API key. The free tier includes 100 experiments per month, which is plenty to validate a handful of browse abandonment subject line tests before scaling up.
See the docs at https://marginal.sh/docs/ for tool parameters and split configuration so your subject line A/B test reports clean, comparable lift.
- Endpoint: https://marginal.sh/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