Running an EU GDPR ecommerce email test with marginal
Selling to EU customers means treating consent and data minimization as first-class concerns — even when you're just testing subject lines. This guide shows how an EU GDPR ecommerce email test fits into marginal, the hosted email MCP server your AI agent can drive directly.
What a GDPR-aware ecommerce email test actually requires
GDPR doesn't ban A/B testing — it requires you to have a lawful basis for sending, to honor consent, and to limit how much personal data you process. For ecommerce teams, that usually means testing on subscribers who opted in, keeping suppression and unsubscribe states authoritative, and avoiding sensitive segmentation you can't justify.
- Only test against contacts who have a valid opt-in or other lawful basis
- Respect unsubscribes and suppression lists across every send
- Minimize the personal data tied to each experiment — test the message, not the person
- Keep your test scope auditable so you can explain what was sent and why
Where marginal fits
marginal is a hosted email MCP server that exposes four tools to your AI agent: generate_variants, launch_test, get_results, and recommend_next. You connect over MCP at https://marginal.sh/mcp using a Bearer API key, and the agent orchestrates the subject line A/B test, managed sends, and open/click tracking.
Because it's hosted, there's no self-hosted server to deploy or patch. Your AI agent email marketing workflow drives the test, while marginal reports within-test lift metrics so you can pick a winner on the data rather than a hunch.
- generate_variants — draft subject line options to test
- launch_test — start a subject line A/B test on your audience
- get_results — pull opens, clicks, and within-test lift
- recommend_next — get a data-backed suggestion for the next step
A compliant testing workflow for EU audiences
Keep GDPR responsibilities where they belong: your consent records and audience list define who can receive mail, and marginal handles the experiment and tracking on the audience you provide. Treat the opted-in segment as the source of truth before any test launches.
- Confirm your test audience consists of opted-in EU contacts only
- Use generate_variants to produce subject lines for that segment
- launch_test to run the split and track opens and clicks
- Review lift with get_results before rolling the winner to the full list
- Document the test outcome so your sends stay explainable
Get started for free
The free tier includes 100 experiments per month, which is plenty to validate your EU subject line approach before scaling. marginal works with MCP clients including Cursor, Claude Desktop, Claude Code, Windsurf, Cline, Continue, Zed, and OpenAI Codex.
See the docs at https://marginal.sh/docs/ for tool details, and point your client at https://marginal.sh/mcp to begin testing.
- 100 experiments/month on the free tier
- Endpoint: https://marginal.sh/mcp
- Bearer API key auth (marg_live_...)
- 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