API Keg — MailPreflight Email QA & Deliverability

Outbound HTML email QA: Gmail 102KB clipping, Outlook/Dark Mode CSS, merge tags & spam audit.

Should I use this

Quality & Safety

B
Description quality
95%
Schema completeness
97%
Naming quality
83%
Poisoning risk
20%
Permission match
100%
Protocol compliance
100%

Findings (6)

  • HIGHTool poisoning patterns detected
  • MEDIUMTool description contains URL to non-standard domainin audit_email_template
  • MEDIUMTool description contains URL to non-standard domainin extract_plain_text_fallback
  • MEDIUMTool description contains URL to non-standard domainin account_create_checkout
  • LOWTool 'account_rotate_api_key' description lacks action verbin account_rotate_api_key
  • INFOTool description contains placeholder or incomplete textin extract_plain_text_fallback

Based on automated analysis of tool definitions and protocol compliance.

Context Cost

~1,656Tokens (tool definitions)
~1.9 KBTypical response size
Moderate attention impact (1.29% of 128k context)

This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.

Install

One-Click Install

Add this to your `claude_desktop_config.json` file:

{
  "mcpServers": {
    "mail-preflight": {
      "url": "https://mail-preflight.apikeg.com/mcp"
    }
  }
}

Remote endpoints

https://mail-preflight.apikeg.com/mcpstreamable-http

What it can do

Tool inventory

Tools (6)

🟢 Read-only🟡 Write🔴 Delete⚪ Unknown
🟢audit_email_template(html, subject, preheader, plainText, emailCategory, ...)

Runs a pre-send deliverability, merge-tag, link-hygiene, Gmail 102KB clipping, and cross-client CSS compatibility audit (Outlook Windows, Gmail, Apple Mail Dark Mode) on an HTML email. Pricing: $0.003 USD per email template preflight audit (x402 instant micropayment). Defaults to HTTP 402 (x402); if your client lacks 402 support, sign in via MCP OAuth or subscribe at https://apikeg.com/account. Pass ?dry_run=true on REST to validate schema free.

Input Schema

{
  "type": "object",
  "properties": {
    "html": {
      "type": "string",
      "minLength": 1,
      "maxLength": 900000,
      "description": "Complete outbound HTML email payload to inspect for Gmail 102KB clipping, Outlook/Gmail/Dark Mode CSS support, link hygiene, and spam triggers."
    },
    "subject": {
      "type": "string",
      "maxLength": 998,
      "description": "Optional Subject header evaluated for unmerged placeholders, fake Re:/Fwd: prefixes, ALL-CAPS shouting, and punctuation triggers."
    },
    "preheader": {
      "type": "string",
      "maxLength": 1000,
      "description": "Optional preview/preheader snippet checked for unmerged merge tags and spam triggers."
    },
    "plainText": {
      "type": "string",
      "maxLength": 500000,
      "description": "Optional text/plain MIME companion body checked for unmerged placeholders and unsubscribe compliance."
    },
    "emailCategory": {
      "type": "string",
      "enum": [
        "transactional",
        "marketing",
        "cold_outreach"
      ],
      "default": "transactional",
      "description": "Outbound email class controlling compliance rules (marketing and cold_outreach require an unsubscribe mechanism)."
    },
    "apiKey": {
      "type": "string",
      "minLength": 10,
      "maxLength": 256,
      "description": "Optional API Keg Bearer key (ak_live_... or ak_oauth_...) returned by account_verify_and_checkout when your MCP client does not send an Authorization HTTP header."
    }
  },
  "required": [
    "html"
  ],
  "additionalProperties": false
}
🟢extract_plain_text_fallback(html, wrapWidth, apiKey)

Converts an HTML email into a clean, RFC 5322-wrapped text/plain MIME companion, preserving CTA links inline as 'Label (https://...)' and stripping invisible ͏ / ‌ preheader padding hacks. Pricing: $0.001 USD per HTML-to-plain-text MIME fallback conversion (x402 instant micropayment). Defaults to HTTP 402 (x402); if your client lacks 402 support, sign in via MCP OAuth or subscribe at https://apikeg.com/account. Pass ?dry_run=true on REST to validate schema free.

Input Schema

{
  "type": "object",
  "properties": {
    "html": {
      "type": "string",
      "minLength": 1,
      "maxLength": 900000,
      "description": "HTML email body to convert into a formatted text/plain MIME fallback with inline CTA URLs and stripped preheader padding."
    },
    "wrapWidth": {
      "type": "integer",
      "minimum": 40,
      "maximum": 120,
      "default": 78,
      "description": "Soft line-wrap width in characters (default 78 per RFC 5322; URLs are never split)."
    },
    "apiKey": {
      "type": "string",
      "minLength": 10,
      "maxLength": 256,
      "description": "Optional API Keg Bearer key (ak_live_... or ak_oauth_...) returned by account_verify_and_checkout when your MCP client does not send an Authorization HTTP header."
    }
  },
  "required": [
    "html"
  ],
  "additionalProperties": false
}
🟡account_send_verification_code(email)

Free ($0.00). Sends a 9-character verification code (AAA-AAA-AAA) to the user's email address to register, sign in, or view their current ak_live_... API key without rotating it. Ask for the email and resulting code using your built-in interactive question tool (AskUserQuestion / ask_question).

Input Schema

{
  "type": "object",
  "properties": {
    "email": {
      "type": "string",
      "minLength": 5,
      "maxLength": 254,
      "description": "User's email address to receive the 9-character verification code."
    }
  },
  "required": [
    "email"
  ],
  "additionalProperties": false
}
🟡account_verify_and_checkout(email, code, tierId, createCheckout, rotateApiKey)

Free ($0.00). Verifies the 9-character email code from account_send_verification_code, returns the user's current ak_live_... API key on the first call (even if already registered, without rotating their key!), and optionally creates a direct Stripe Checkout URL for "mail-preflight" ($5, $20, or $50/mo).

Input Schema

{
  "type": "object",
  "properties": {
    "email": {
      "type": "string",
      "minLength": 5,
      "maxLength": 254,
      "description": "The same email address passed to account_send_verification_code."
    },
    "code": {
      "type": "string",
      "minLength": 9,
      "maxLength": 16,
      "description": "9-character verification code (AAA-AAA-AAA) from the user's email."
    },
    "tierId": {
      "type": "string",
      "enum": [
        "starter_5",
        "growth_20",
        "scale_50"
      ],
      "default": "starter_5",
      "description": "Monthly plan for this API: starter_5 ($5/mo = $6 credit), growth_20 ($20/mo = $28 credit), or scale_50 ($50/mo = $80 credit)."
    },
    "createCheckout": {
      "type": "boolean",
      "default": true,
      "description": "Set false when the user only wants to view their current ak_live_... API key without generating a Stripe Checkout session."
    },
    "rotateApiKey": {
      "type": "boolean",
      "default": false,
      "description": "Leave false (default) to return the user's existing ak_live_... key unchanged. Set true only if the user explicitly wants to revoke and replace their key."
    }
  },
  "required": [
    "email",
    "code"
  ],
  "additionalProperties": false
}
🟡account_create_checkout(tierId, apiKey)

Free ($0.00). Generates a direct Stripe Checkout URL (https://checkout.stripe.com/...) for "mail-preflight" ($5, $20, or $50/mo) using either the connected Authorization header or an apiKey.

Input Schema

{
  "type": "object",
  "properties": {
    "tierId": {
      "type": "string",
      "enum": [
        "starter_5",
        "growth_20",
        "scale_50"
      ],
      "default": "starter_5",
      "description": "Monthly plan to activate or upgrade to: starter_5 ($5/mo = $6 credit), growth_20 ($20/mo = $28 credit), or scale_50 ($50/mo = $80 credit)."
    },
    "apiKey": {
      "type": "string",
      "minLength": 10,
      "maxLength": 256,
      "description": "Optional ak_live_... or ak_oauth_... key when no Authorization header is configured on the MCP client."
    }
  },
  "additionalProperties": false
}
🔴account_rotate_api_key(apiKey)

Free ($0.00). Rotates the user's ak_live_... API key immediately without requiring an email verification code, authenticating with either the connected Authorization header or the current apiKey.

Input Schema

{
  "type": "object",
  "properties": {
    "apiKey": {
      "type": "string",
      "minLength": 10,
      "maxLength": 256,
      "description": "Current ak_live_... or ak_oauth_... Bearer key when no Authorization header is configured on the MCP client."
    }
  },
  "additionalProperties": false
}

Community

Rate this Server

Evidence

Recent observations

verifiedversion not recorded6 tools