Emailens MCP

v0.16.1
io.github.emailens/mcp Checked 3 hours ago Published 13 days ago

Analyze, 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.

ParameterTypeDescription
clientsarrayOptional client ID filter (e.g. ['gmail-web', 'outlook-windows'])
formatstringSource 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…
htmlstringThe email source: HTML, or an MJML / Maizzle / React Email template when `format` says so. Pass this or `path`.
pathstringAbsolute 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`…
targetingPolicystring'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.).

ParameterTypeDescription
clientsarrayOnly 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.
detailstring'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…
formatstringSource 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…
htmlstringThe email source: HTML, or an MJML / Maizzle / React Email template when `format` says so. Pass this or `path`.
pathstringAbsolute 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`…
targetingPolicystring'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…

ParameterTypeDescription
clientsarrayOnly 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.
detailstring'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…
emailTypestring'transactional' (receipts, password resets, codes, alerts: no unsubscribe link required) or 'marketing'. Omitted: guessed from the content, which misses many transactional emails.
formatstringSource 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…
htmlstringThe email source: HTML, or an MJML / Maizzle / React Email template when `format` says so. Pass this or `path`.
pathstringAbsolute 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`…
previousHtmlstringThe 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).
skiparrayChecks to skip (e.g. ['spam', 'images'])
targetingPolicystring'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.

ParameterTypeDescription
formatstringSource 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…
htmlstringThe email source: HTML, or an MJML / Maizzle / React Email template when `format` says so. Pass this or `path`.
pathstringAbsolute 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`…
scopestring'all' (default) or 'current' (requires selectedClientId)
selectedClientIdstringClient 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.

ParameterTypeDescription
afterstringModified email source, in the same format. Pass this or `afterPath`.
afterPathstringAbsolute path to the modified source file, instead of `after`
beforestringOriginal email source. Pass this or `beforePath`.
beforePathstringAbsolute path to the original source file, instead of `before`
formatstringSource 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).

ParameterTypeDescription
domain *stringDomain 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…

ParameterTypeDescription
clientsarrayClient IDs to check (e.g. ['outlook-windows-legacy', 'gmail-web']). Default: all; each client takes a few seconds
formatstringSource format: 'html' (default), 'jsx' (React Email), 'mjml', or 'maizzle'. Anything but 'html' is compiled first.
htmlstringThe email source: HTML, or an MJML / Maizzle / React Email template when `format` says so. Pass this or `path`.
pathstringAbsolute 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.

ParameterTypeDescription
clientsarrayFilter to specific client IDs
formatstringInput format
htmlstringThe email source: HTML, or an MJML / Maizzle / React Email template when `format` says so. Pass this or `path`.
modesarrayScreenshot modes (default: ['light'])
pathstringAbsolute 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`…
titlestringName for the hosted preview

share_preview Share Preview

Create a shareable link for an email preview. Recipients see the full analysis without needing an account. Requires EMAILENS_API_KEY env var and Dev plan ($9/mo).

ParameterTypeDescription
formatstringInput format
htmlstringThe email source: HTML, or an MJML / Maizzle / React Email template when `format` says so. Pass this or `path`.
pathstringAbsolute 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`…
titlestringDisplay title for the share page

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.

ParameterTypeDescription
namestringOptional 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.

ParameterTypeDescription
inboxIdstringOptional inbox ID filter
senderstringSubstring match for sender address (case-insensitive)
subjectstringSubstring match for email subject (case-insensitive)
timeoutSecondsnumberMax 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.

ParameterTypeDescription
inboxIdstringOptional 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.

ParameterTypeDescription
messageId *stringID of the sandbox message