← All guides marginal.sh

Test Upsell Subject Lines in Cline with marginal

Updated June 2026 · Hosted email MCP server

Upsell campaigns live or die on the subject line. With marginal connected to Cline, you can generate candidate lines, run a subject line A/B test, and act on real open and click data — all without leaving your agent workflow.

Why pair Cline with marginal for upsell tests

Cline is an autonomous coding agent that can call MCP tools as part of a task. marginal is a hosted email MCP server, so once it's wired in, Cline can treat subject line testing as just another step in a build or growth task.

For upsell email, the goal is usually nudging an existing customer toward a higher tier or add-on. Small wording changes — urgency, value framing, personalization — produce measurable lift. marginal handles the variant generation, send, and tracking so you focus on the messaging strategy.

Connecting marginal to Cline

Add marginal as an MCP server in Cline's configuration. Authentication is a single Bearer API key (the marg_live_... format), and the endpoint is hosted — there's nothing to self-host or run locally.

{
  "mcpServers": {
    "marginal": {
      "url": "https://marginal.sh/mcp",
      "headers": {
        "Authorization": "Bearer marg_live_your_key_here"
      }
    }
  }
}

Running an upsell subject line test

Once connected, drive the workflow with plain instructions to Cline. The agent maps your request to marginal's four MCP tools: generate_variants, launch_test, get_results, and recommend_next.

A typical loop for upsell subject lines in Cline looks like asking for variants framed around upgrade value, launching the test to your list segment, then reading lift once enough opens accumulate.

Tips for higher-converting upsell lines

When prompting Cline through marginal, give the agent context it can turn into sharper variants. The more specific the upsell offer and audience, the more useful the subject line test becomes.

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