← All guides marginal.sh

Email Marketing Without the Klaviyo API

Updated June 2026 · Hosted email MCP server

You don't need a Klaviyo API key to run real email experiments. marginal is a hosted email MCP server that lets your AI agent generate variants, launch subject line A/B tests, and read lift metrics — all over a single endpoint.

Why skip the Klaviyo API entirely?

Plenty of teams want subject line testing and managed sends without inheriting a heavyweight ESP integration. Stitching together API keys, list syncs, and webhook handlers is a project of its own — and it's overkill when your goal is simply to test and ship better email.

marginal takes the opposite approach. It's a hosted service that handles sending and tracking for you, so doing email marketing without a Klaviyo API becomes a matter of calling a few MCP tools instead of managing infrastructure.

How the email MCP server works

marginal exposes its capabilities as MCP tools that an AI agent can call directly. You describe the campaign in plain language, and the agent orchestrates the test through the email MCP server at https://marginal.sh/mcp.

A subject line A/B test from your agent

The point of AI agent email marketing is to compress the loop between idea and result. With marginal, an agent in Cursor, Claude Desktop, Claude Code, Windsurf, Cline, Continue, Zed, or OpenAI Codex can take a campaign brief and run the full experiment.

A typical run looks like this: ask the agent to generate four subject line variants, launch the A/B test against a sample, wait for engagement data, then read the lift metrics and let recommend_next pick the winner to roll out.

What you get out of the box

Because marginal is hosted, there's nothing to self-host and no separate sending platform to configure. You point your client at the endpoint, supply your key, and start testing.

See the docs at https://marginal.sh/docs/ for tool schemas and examples covering variant generation, launching tests, and reading results.

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