Emailens MCP
v0.16.1Analyze, audit, fix and diff HTML, MJML, Maizzle and React Email across 21 email clients.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
preview_email Preview Email
Full email compatibility preview, transforms HTML for 21 email clients (Gmail, Outlook, Apple Mail, Yahoo, Samsung, Thunderbird, HEY, Proton Mail, AOL, Fastmail, Superhuman), analyzes CSS, generates scores, simulates dark mode, checks inbox preview and email size.
| Parameter | Type | Description |
|---|---|---|
clients | array | Optional client ID filter (e.g. ['gmail-web', 'outlook-windows']) |
format | string | Source format: 'html' (default), 'jsx' (React Email), 'mjml', or 'maizzle' (HTML template or Vue single-file component). Anything but 'html' is compiled before analysis and sets the syntax of the fix… |
html | string | The email source: HTML, or an MJML / Maizzle / React Email template when `format` says so. Pass this or `path`. |
path | string | Absolute path to the email source file (.html, .htm, .mjml, .jsx, .tsx, .vue), instead of `html`. Prefer it when the email is on disk: the source stays out of your context. The extension sets `format`… |
targetingPolicy | string | 'progressive' (default) suppresses compatibility false-positives inside client-targeted scopes and only flags deprecated or dangerous hacks. 'strict' treats targeting as non-standard and reports every… |
analyze_email Analyze Email
Fix error and warning findings. Info findings are not problems (the email falls back safely there): never remove responsive (@media) or dark-mode CSS to clear them. Quick CSS compatibility analysis, returns per-client scores and one finding per problem, listing the clients it affects. For HTML input each finding carries loc (line, column, offset) and alsoAtLines, so you can edit the exact source. Narrow with clients, or pass detail:'full' for the per-client breakdown with fix snippets. Use audit_email for a full quality report (spam, links, a11y, images, etc.).
| Parameter | Type | Description |
|---|---|---|
clients | array | Only report these client IDs (e.g. ['gmail-web','outlook-windows']). The fastest way to cut the response when you care about specific clients. Use list_clients for the IDs. |
detail | string | 'summary' (default) returns one entry per error or warning, listing the clients it affects, and only counts info findings (safe fallbacks). 'full' returns one entry per client with fix snippets, info… |
format | string | Source format: 'html' (default), 'jsx' (React Email), 'mjml', or 'maizzle' (HTML template or Vue single-file component). Anything but 'html' is compiled before analysis and sets the syntax of the fix… |
html | string | The email source: HTML, or an MJML / Maizzle / React Email template when `format` says so. Pass this or `path`. |
path | string | Absolute path to the email source file (.html, .htm, .mjml, .jsx, .tsx, .vue), instead of `html`. Prefer it when the email is on disk: the source stays out of your context. The extension sets `format`… |
targetingPolicy | string | 'progressive' (default) suppresses compatibility false-positives inside client-targeted scopes and only flags deprecated or dangerous hacks. 'strict' treats targeting as non-standard and reports every… |
audit_email Audit Email
Fix error and warning findings, and restore anything listed in designRemovals. Info findings are not problems (the email falls back safely there): never remove responsive (@media), dark-mode CSS or rounded corners to clear them. designRemovals compares this version with the first one audited for the same email (or with previousHtml): design the edits deleted, such as @media rules, dark mode, corners, gradients, VML fallbacks or images. Comprehensive email quality audit: CSS compatibility, spam scoring, link validation, accessibility, images, inbox preview, size (Gmail clipping), template varia…
| Parameter | Type | Description |
|---|---|---|
clients | array | Only report these client IDs (e.g. ['gmail-web','outlook-windows']). The fastest way to cut the response when you care about specific clients. Use list_clients for the IDs. |
detail | string | 'summary' (default) returns one entry per error or warning, listing the clients it affects, and only counts info findings (safe fallbacks). 'full' returns one entry per client with fix snippets, info… |
emailType | string | 'transactional' (receipts, password resets, codes, alerts: no unsubscribe link required) or 'marketing'. Omitted: guessed from the content, which misses many transactional emails. |
format | string | Source format: 'html' (default), 'jsx' (React Email), 'mjml', or 'maizzle' (HTML template or Vue single-file component). Anything but 'html' is compiled before analysis and sets the syntax of the fix… |
html | string | The email source: HTML, or an MJML / Maizzle / React Email template when `format` says so. Pass this or `path`. |
path | string | Absolute path to the email source file (.html, .htm, .mjml, .jsx, .tsx, .vue), instead of `html`. Prefer it when the email is on disk: the source stays out of your context. The extension sets `format`… |
previousHtml | string | The design to hold this version to, usually your first draft. Omitted: the first version of this email audited in this session (matched by <title> and text). |
skip | array | Checks to skip (e.g. ['spam', 'images']) |
targetingPolicy | string | 'progressive' (default) suppresses compatibility false-positives inside client-targeted scopes and only flags deprecated or dangerous hacks. 'strict' treats targeting as non-standard and reports every… |
fix_email Fix Email
Generate a structured fix prompt for email compatibility issues. Returns markdown with the original code, detected issues (CSS or structural), fix snippets, and format-specific instructions. Use after preview_email or analyze_email.
| Parameter | Type | Description |
|---|---|---|
format | string | Source format: 'html' (default), 'jsx' (React Email), 'mjml', or 'maizzle' (HTML template or Vue single-file component). Anything but 'html' is compiled before analysis and sets the syntax of the fix… |
html | string | The email source: HTML, or an MJML / Maizzle / React Email template when `format` says so. Pass this or `path`. |
path | string | Absolute path to the email source file (.html, .htm, .mjml, .jsx, .tsx, .vue), instead of `html`. Prefer it when the email is on disk: the source stays out of your context. The extension sets `format`… |
scope | string | 'all' (default) or 'current' (requires selectedClientId) |
selectedClientId | string | Client ID to scope fixes to (e.g. 'outlook-windows') |
list_clients List Email Clients
List every supported email client with IDs, names, engines, and dark mode support.
diff_emails Diff Emails
Compare two email HTML versions, shows score changes, fixed issues, and newly introduced issues per client. Use after making fixes to verify improvements.
| Parameter | Type | Description |
|---|---|---|
after | string | Modified email source, in the same format. Pass this or `afterPath`. |
afterPath | string | Absolute path to the modified source file, instead of `after` |
before | string | Original email source. Pass this or `beforePath`. |
beforePath | string | Absolute path to the original source file, instead of `before` |
format | string | Source format: 'html' (default), 'jsx' (React Email), 'mjml', or 'maizzle' (HTML template or Vue single-file component). Anything but 'html' is compiled before analysis and sets the syntax of the fix… |
check_deliverability Check Deliverability
Check email deliverability for a domain: SPF, DKIM, DMARC, MX, and BIMI records. Returns a score (0-100) and actionable issues. Uses DNS lookups (no API key needed).
| Parameter | Type | Description |
|---|---|---|
domain * | string | Domain to check (e.g. 'company.com') |
check_design Check Design
Whether the email still looks like its design in each client's live preview: draws the email as the client shows it and as written, in a real browser, and compares the layouts element by element. Returns per client a verdict (kept = Ready, changed = Needs work, broken = Broken) with the reasons (columns that stack, a button that moved or resized, a fill or corners lost, fonts and spacing changed). Use it after editing an email to confirm a fix did not break the layout. Needs playwright-core installed beside this server and a browser (a local Chromium, or BROWSERLESS_URL); with sharp installed…
| Parameter | Type | Description |
|---|---|---|
clients | array | Client IDs to check (e.g. ['outlook-windows-legacy', 'gmail-web']). Default: all; each client takes a few seconds |
format | string | Source format: 'html' (default), 'jsx' (React Email), 'mjml', or 'maizzle'. Anything but 'html' is compiled first. |
html | string | The email source: HTML, or an MJML / Maizzle / React Email template when `format` says so. Pass this or `path`. |
path | string | Absolute path to the email source file (.html, .htm, .mjml, .jsx, .tsx, .vue), instead of `html`. Prefer it when the email is on disk: the source stays out of your context. The extension sets `format`… |
capture_screenshots Capture Screenshots
Capture real email screenshots across 21 clients (Gmail, Outlook, Apple Mail, etc.) with light and dark mode variants. Screenshots are rendered in real browsers and hosted on CDN. Requires EMAILENS_API_KEY env var — free plan at emailens.dev?utm_source=mcp.
| Parameter | Type | Description |
|---|---|---|
clients | array | Filter to specific client IDs |
format | string | Input format |
html | string | The email source: HTML, or an MJML / Maizzle / React Email template when `format` says so. Pass this or `path`. |
modes | array | Screenshot modes (default: ['light']) |
path | string | Absolute path to the email source file (.html, .htm, .mjml, .jsx, .tsx, .vue), instead of `html`. Prefer it when the email is on disk: the source stays out of your context. The extension sets `format`… |
title | string | Name for the hosted preview |
sandbox_get_inbox Get Sandbox Inbox
Get your active Emailens sandbox test address (or create a new one). Send emails here via SMTP (smtp.emailens.dev:2525) or inbound domain routing. Requires EMAILENS_API_KEY.
| Parameter | Type | Description |
|---|---|---|
name | string | Optional inbox name (e.g. 'Auth E2E Test') |
sandbox_wait_for_email Wait for Sandbox Email
Poll and wait for a matching incoming test email in the sandbox. Automatically extracts 4-8 digit OTP codes and action links for zero-regex test assertions. Requires EMAILENS_API_KEY.
| Parameter | Type | Description |
|---|---|---|
inboxId | string | Optional inbox ID filter |
sender | string | Substring match for sender address (case-insensitive) |
subject | string | Substring match for email subject (case-insensitive) |
timeoutSeconds | number | Max seconds to wait (default: 30, max: 60) |
sandbox_list_messages List Sandbox Messages
List recently received test emails in your sandbox inboxes. Requires EMAILENS_API_KEY.
| Parameter | Type | Description |
|---|---|---|
inboxId | string | Optional inbox ID filter |
sandbox_get_message Get Sandbox Message
Get complete captured email details including HTML/text parts, extracted OTP, magic links, headers, and spam analysis. Requires EMAILENS_API_KEY.
| Parameter | Type | Description |
|---|---|---|
messageId * | string | ID of the sandbox message |