A Klaviyo alternative for AI agents
Klaviyo is built for human marketers clicking through a campaign builder. If you're wiring up AI agent email marketing, marginal gives your agent a direct MCP interface to generate variants, launch tests, and read results — no dashboard required.
Why agents need a different surface than Klaviyo
Klaviyo is a strong email service provider for people: segments, flows, and a visual editor. But an AI agent doesn't click buttons — it calls tools. Driving a UI-first ESP from an agent usually means stitching together REST endpoints, polling for state, and parsing reports that were designed for a human to read.
marginal flips that model. It's a hosted email MCP server, so an agent connects once and gets a small, purpose-built tool set for running experiments. The agent reasons about copy; marginal handles sends, tracking, and the math.
- Klaviyo: campaign builder, flows, and a dashboard for marketers
- marginal: MCP tools an AI agent calls directly to run subject line A/B tests
- No screen-scraping or brittle UI automation to make an agent send email
What marginal does as an MCP email server
The marginal MCP server exposes four tools that map cleanly to the experiment loop. Your agent generates options, ships a test, waits for signal, and asks what to do next — all over a single endpoint at https://marginal.sh/mcp.
- generate_variants — draft candidate subject lines for AI agent email
- launch_test — start a managed subject line A/B test and send it
- get_results — pull open/click tracking and within-test lift metrics
- recommend_next — get a data-backed suggestion for the following step
Choosing marginal vs. Klaviyo
Pick based on who's driving. If a marketing team lives in a campaign UI and needs full lifecycle automation, Klaviyo fits that job. If an AI agent is the operator and the goal is fast, measurable subject line experiments, marginal is the more natural alternative.
marginal is fully hosted, so there's no self-hosted MCP server to run. Authentication is a single Bearer API key (marg_live_...), and the free tier covers 100 experiments per month to start testing.
- MCP-native: built for AI agent email marketing, not a human dashboard
- Focused scope: subject line A/B testing with real lift metrics
- Hosted and ready — connect, key in, and run experiments immediately
- Docs at https://marginal.sh/docs/ to wire it into your agent loop
Works with the agents you already use
Because marginal speaks MCP, it drops into the clients developers and growth engineers already run. Point your agent at the marginal endpoint and it can start launching subject line A/B tests in the same workflow where it writes code or copy.
Supported clients include Cursor, OpenAI Codex, Claude Desktop, Claude Code, Windsurf, Cline, Continue, and Zed.
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