← All guides marginal.sh

How to Send Email From a Claude Agent

Updated June 2026 · Hosted email MCP server

If you want to send email from a Claude agent without wiring up SMTP credentials or building your own dispatch pipeline, marginal handles the heavy lifting. It's a hosted email marketing MCP server that gives Claude the tools to generate, test, and send campaigns through a single endpoint.

Why use an email MCP server with Claude

Claude Desktop and Claude Code can call external tools through MCP. On its own, a Claude agent can draft an email but can't actually deliver it or measure how it performs. marginal closes that gap by exposing a small set of email tools the agent can invoke directly in conversation.

Because marginal is hosted, there's no self-hosted server to maintain and no transactional provider keys to manage by hand. You connect once with a Bearer API key and your Claude agent gains the ability to send, track, and optimize.

Connecting Claude to marginal

Add the marginal endpoint to your Claude MCP configuration and authenticate with your API key. Once registered, the four tools appear in your agent's tool list and you can ask Claude to compose and send in plain language.

The endpoint is https://marginal.sh/mcp, and keys start with marg_live_. After that, sending email from your Claude agent is as simple as describing what you want shipped.

Don't just send — test as you go

The real advantage of routing email through an AI agent is that testing becomes part of the workflow. Instead of guessing at a subject line, ask Claude to generate variants and launch a subject line A/B test in one step.

marginal tracks opens and clicks for each variant and reports within-test lift, so the agent can recommend a winner rather than leaving you to read raw stats. This makes AI agent email marketing measurable from the first send.

Getting started for free

marginal includes a free tier of 100 experiments per month, which is plenty to validate the workflow of sending email from a Claude agent before scaling up. Beyond Claude, the same MCP server works with Cursor, Codex, Windsurf, Cline, Continue, and Zed.

Full setup details, tool schemas, and examples live in the docs at https://marginal.sh/docs/ — start there once your key is in place.

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