← All guides marginal.sh

marginal: a HubSpot Alternative for AI Agents

Updated June 2026 · Hosted email MCP server

If your workflow starts in Cursor or Claude Code rather than a marketing dashboard, HubSpot's UI-first model gets in the way. marginal is a hosted email MCP server built so AI agents can generate, launch, and measure email tests without leaving the conversation.

Where HubSpot and marginal diverge

HubSpot is a full marketing and CRM suite designed for human marketers clicking through screens. That breadth is useful for some teams, but it means automating email tests usually involves stitching together REST endpoints, workflow builders, and webhook plumbing.

marginal takes the opposite approach. It exposes a small set of MCP tools that an agent calls directly, so AI agent email marketing happens through structured tool calls instead of a browser session. There is no dashboard to navigate and nothing to self-host.

Built for subject line A/B tests via MCP

The core job marginal does well is the subject line A/B test. An agent asks for variants, launches a test against your list, and reads back which line is winning — all as MCP tool calls.

Four tools cover the loop: generate_variants drafts subject options, launch_test sends them as a managed experiment, get_results returns open and click tracking with within-test lift metrics, and recommend_next suggests the follow-up move.

Connect from the tools you already use

marginal speaks MCP, so it plugs into the editors and agent clients you already run. Add the endpoint, authenticate with a Bearer API key, and your agent can run email experiments inline.

Supported clients include Cursor, OpenAI Codex, Claude Desktop, Claude Code, Windsurf, Cline, Continue, and Zed. Authentication uses an API key in the form marg_live_..., and the endpoint lives at https://marginal.sh/mcp.

When to choose marginal over HubSpot

Pick a HubSpot alternative for AI agents when your goal is iterating on subject lines and measured sends programmatically, not managing contacts, pipelines, and landing pages. marginal does one slice of the email problem and exposes it cleanly to agents.

You can validate the workflow on the free tier of 100 experiments per month before committing, which is enough to wire an agent's test-and-learn loop end to end.

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