Connect marginal's email MCP server to Continue
Continue is an open-source AI coding assistant that supports the Model Context Protocol. By wiring up marginal as an email MCP server for Continue, you give your agent the ability to draft, launch, and measure email A/B tests without leaving your editor.
Why run email experiments from Continue
Continue lets you extend its chat and agent modes with MCP servers, so any tool you connect becomes callable directly in your workflow. marginal exposes the full lifecycle of an email test — generate variants, launch a managed send, and pull results — as MCP tools your Continue agent can invoke.
Because marginal is fully hosted, there's nothing to deploy or maintain. You authenticate with a Bearer API key and Continue talks to the endpoint over HTTP.
- Draft and ship a subject line A/B test from an editor prompt
- Track opens, clicks, and within-test lift without a separate dashboard
- Let Continue recommend the next iteration based on real results
- Start free with 100 experiments per month
Configure the Continue MCP connection
Add marginal to your Continue config under the MCP servers section. Point it at the marginal endpoint and supply your API key. Once saved, Continue discovers the available tools automatically.
- Endpoint: https://marginal.sh/mcp
- Auth: Bearer API key beginning with marg_live_
- Registry name: sh.marginal/mcp
- Reload Continue after editing the config to register the server
{
"mcpServers": {
"marginal": {
"url": "https://marginal.sh/mcp",
"headers": {
"Authorization": "Bearer marg_live_xxx"
}
}
}
}
The marginal tools available in Continue
After the email MCP integration is live, your Continue agent has four tools to compose a complete experiment loop. A typical session moves from variant generation to launch to analysis in a single conversation.
- generate_variants — produce candidate subject lines for a campaign
- launch_test — start a managed send for a subject line A/B test
- get_results — fetch open/click metrics and within-test lift
- recommend_next — suggest the next variant to try based on outcomes
A practical AI agent email marketing flow
Once the Continue MCP connection is set up, you can run AI agent email marketing entirely from your editor. Ask Continue to generate five subject lines for a product announcement, launch a test across your list, and report back the winner once data accumulates.
For tool schemas, response shapes, and rate limits, see the marginal docs at https://marginal.sh/docs/. The same endpoint works across other clients too, so your setup stays consistent if you switch editors.
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