← All guides marginal.sh

Loyalty Reward Subject Lines in Claude Code

Updated June 2026 · Hosted email MCP server

Loyalty emails live or die on the subject line. With marginal connected to Claude Code, you can draft loyalty reward subject lines, run a subject line A/B test, and pull results — all from the same conversation where you write the rest of your code.

Why test loyalty reward subject lines from Claude Code

Loyalty reward campaigns reach people who already trust your brand, so the subject line has to feel earned rather than salesy. Small wording shifts — 'Your points are ready' versus 'A reward picked just for you' — can swing open rates meaningfully. Testing those variants is the only reliable way to know which framing your members respond to.

Claude Code is where many growth engineers already work, so wiring marginal in as an email MCP server keeps the loop tight. You describe the reward and audience, the agent generates subject line candidates, launches the test, and reports back — no context switching to a separate dashboard.

The MCP tools behind the workflow

marginal exposes four tools to your AI agent. For a loyalty reward subject line test you'll touch all of them in sequence, and Claude Code can chain the calls for you based on a plain-language prompt.

A practical run-through

Start by telling Claude Code the campaign details: the reward, the loyalty segment, and the tone you want. Ask it to generate five subject line variants, then launch a split test to your member list. Once enough sends accumulate, request results and let marginal report which variant earned the higher open rate and by how much.

Because marginal is hosted, there's nothing to deploy and no self-hosted server to maintain. You authenticate with a Bearer API key and the agent talks to the endpoint at https://marginal.sh/mcp directly.

Getting set up

Add marginal to Claude Code's MCP configuration using your marg_live_ API key, then start prompting. The free tier covers 100 experiments per month, which is plenty to validate a loyalty reward subject line strategy before scaling. Configuration steps and tool references live in the docs at 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.

Documentation · Sign up · FAQ