Skip to content

FOR AGENTS, DEVELOPERS & OPERATORS

One MCP connection.
Full email infrastructure.

Connect Claude Code, Codex, Cursor, Windsurf, or our standalone CLI over Streamable HTTP MCP with scoped Bearer keys.

Connect your agent over HTTPS MCP

  1. Create a workspace (Free / BYO or Starter/Scale/Agency Managed).
  2. Open Agent access in your workspace and generate a scoped key (1–90 day expiry).
  3. Paste the Streamable HTTP endpoint below into Claude Code, Codex, Cursor, or any MCP client.
STREAMABLE HTTP ENDPOINThttps://mcpmails.com/mcp

Claude Code CLI

claude mcp add --transport http mcpmails https://mcpmails.com/mcp \
  --header "Authorization: Bearer YOUR_AGENT_KEY"

Cursor, Windsurf, Antigravity & Generic MCP JSON

{
  "mcpServers": {
    "mcpmails": {
      "url": "https://mcpmails.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_AGENT_KEY"
      }
    }
  }
}

Smoke-test with curl (JSON-RPC initialize)

curl -sS -X POST https://mcpmails.com/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Authorization: Bearer YOUR_AGENT_KEY" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"curl-check","version":"1.0"}}}'

HTTP status & error codes: 200 valid MCP response · 401 {"error":"Sign in to your workspace."} (with WWW-Authenticate: Bearer realm="MCPMails") when unauthenticated/expired · 403 disallowed origin or missing scope · 429 rate limit exceeded (retry with exponential backoff).

Managed Bare-Metal Infrastructure (mx1.mcpmails.com)

Paid Starter, Scale, and Agency workspaces connect automatically to MCPMails Managed Infrastructure running Stalwart Mail Server (Rust) on dedicated US bare-metal hardware with clean IPv4 (40.160.60.125), strict FCrDNS, and automatic dual Ed25519 + RSA-2048 DKIM.

  1. Call managed_provision_domain (or open Provision Infra in the UI) with mode: "root" for clean domains or mode: "subdomain" (mail.<domain>) to preserve existing Google Workspace, Microsoft 365, or SiteGround MX.
  2. Add the 5 returned DNS records (MX, SPF, DMARC, Ed25519 DKIM, RSA-2048 DKIM) at your DNS host.
  3. Call managed_provision_mailbox to create hello@domain (up to your plan quota).
  4. Call managed_verify_dns_activate to verify live public DNS and start 24/7 progressive warm-up + IMAP spam rescue automatically.

Terminal & Codex CLI

Download the standalone CLI and verify its SHA-256 checksum (Node.js 24+; no npm global package required).

curl -fsSLO https://mcpmails.com/downloads/mcpmails.mjs
node mcpmails.mjs login --scopes read,write,operate
codex mcp add mcpmails -- node $(pwd)/mcpmails.mjs mcp
node mcpmails.mjs status
node mcpmails.mjs warmup status
node mcpmails.mjs jobs show JOB_ID
node mcpmails.mjs jobs execute JOB_ID --wait

Scoped permissions & reviewable jobs

Read

Inspect domains, DNS observations, live warm-up placement, outreach analytics, inbox threads, and billing quota.

Write / Prepare

Provision managed domains & mailboxes, import MX-verified prospects, draft sequences, manage stoplist, and plan jobs.

Operate

Start, pause, resume, or tune warm-up policies and health sweeps via exact reviewable execution plans.

Send

Approve and activate warmup-gated campaigns or execute reviewed direct compose/reply jobs after recipient-stop verification.

Complete MCP tool surface (30+ tools)

managed_provision_domain · managed_provision_mailbox · managed_verify_dns_activate · managed_list_domainsOne-click Stalwart domain + dual DKIM + mailbox provisioning and live DNS verification/activation.

fleet_overview · fleet_list_domains · fleet_import_domains · fleet_check_dns · fleet_exportManage domain inventory, run live DoH MX/SPF/DKIM/DMARC audits, and export portable backups.

fleet_import_prospects · fleet_approve_prospects · fleet_create_sequence · fleet_preview_sequenceMX-verify leads, draft multi-step plain-text sequences, and run owner approval gates.

fleet_outreach_analytics · mail_warmup_overview · fleet_policy_save · fleet_policy_plan · fleet_health_check · fleet_alerts_listReal placement %, daily velocity charts, reusable ramp policies, mailbox labels, and health alerts.

mail_operation_catalog · mail_operation_plan · mail_job_get · mail_job_execute · mail_job_cancelReviewable, expiring execution plans with lease fencing and per-account receipts (supports compose, reply, warmup controls, campaign activation).

fleet_add_suppression · fleet_recipient_stops_verify · fleet_recipient_stops_plan · fleet_billing_statusGlobal do-not-contact enforcement synced to the engine before any transmission, plus plan quota status.

physical_list_products · physical_estimate_postage · physical_estimate_route · physical_verify_address · physical_provider_statusInspect all 11 USPS physical formats (July 12, 2026 rates), calculate US ZIP distance zones (1–8) and nearest print-injection hubs, and run live Lob/PostGrid CASS verification.

physical_create_letter · physical_create_postcard · physical_create_self_mailer · physical_create_check · physical_create_bulk_campaign · physical_create_eddm_planCompose, edge-proof (PDF), and stage physical letters, Certified Mail (+ Electronic/Green-Card Return Receipt), postcards, MICR checks, bulk CSV merges, and EDDM plans.

physical_create_checkout · physical_dispatch_mailpiece · physical_cancel_mailpiece · physical_list_mailpieces · physical_get_mailpieceFinalize and send physical USPS mail end-to-end via Stripe Pay-As-You-Go Checkout (auto-dispatches on payment) or direct agent dispatch (send scope) through Lob/PostGrid.

Accelerate Gmail & Outlook Primary Inbox graduation

Inside Provision Infra → Connect External / Seed Mailbox, enroll 1–2 dedicated Gmail or Outlook accounts using a revocable App Password with role = "seed". MCPMails automatically routes 25% of warm-up sends to seed peers so IMAPS spam-rescue trains ISP filters to place your domains in Primary Inbox before Day 14. Pair this with free Google Postmaster Tools and Microsoft SNDS monitoring.

Bring Your Own Engine (Self-Hosted)

Prefer to run 100% on your own server? Connect any HTTPS MCP endpoint from our self-hosted Stalwart + Fly.io engine (https://your-engine.fly.dev/v1/mcp) or an Apache-2.0 Warmbly instance inside Workspace → Connect Engine. Your key is AES-256-GCM encrypted and bound strictly to your workspace.