← All guides marginal.sh

Email MCP Server for Zed

Updated June 2026 · Hosted email MCP server

Wire marginal's hosted email MCP server into Zed and let its AI agent design, launch, and analyze subject line A/B tests without leaving your editor.

Why run marginal inside Zed

Zed's assistant speaks the Model Context Protocol, so it can call external tools directly. Pointing it at marginal turns email experimentation into something you script and iterate on the same way you do code — prompt the agent, inspect the results, refine, repeat.

Because marginal is a hosted email MCP server, there's nothing to deploy. You add one endpoint and a Bearer key, and Zed gains a working email MCP integration.

Configure the Zed MCP connection

Add marginal to Zed's MCP settings using the registry name and your API key. The key starts with marg_live_ and is passed as a Bearer token to the marginal endpoint.

MCP config for Zed

Use this JSON in your Zed MCP configuration. Replace the placeholder with your real marginal API key.

{
  "context_servers": {
    "marginal": {
      "command": {
        "path": "npx",
        "args": ["-y", "mcp-remote", "https://marginal.sh/mcp"],
        "env": {
          "MARGINAL_API_KEY": "marg_live_xxxxxxxxxxxxxxxx"
        }
      }
    }
  }
}

Run a subject line A/B test from Zed

Once connected, the Zed agent can drive the full marginal workflow through four tools. Ask it to draft variants, launch a test, and report back on which subject line won.

This is AI agent email marketing in practice: the model proposes copy, the platform runs the experiment, and lift metrics tell you what to send next.

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