Purpose
Emailens MCP is an MCP server for AI assistants, focused on email compatibility analysis. Before sending an email, you can use it to check how HTML emails render across 21 email clients, helping identify and fix compatibility issues. According to official information, of the 298 tracked CSS and HTML features, only 6 are fully supported across all major email clients.
Main Capabilities
- Comprehensive email compatibility preview: transforms HTML for 21 clients, analyzes CSS, generates scores, simulates dark mode, and checks inbox previews and email size.
- Quick CSS compatibility analysis: returns scores broken down by client, with only one finding per issue rather than one per client.
- Comprehensive quality audit: covers CSS compatibility, spam scoring, link validation, accessibility, images, inbox previews, size (Gmail truncation), template variables, content overflow, visual defects, dark mode and mobile text contrast, design consistency, and client targeting. The dark mode-related checks can uncover issues that a light desktop preview cannot show, such as text disappearing when a client forces dark mode, text contrast falling below the breakpoint, or color values differing while being hard for readers to distinguish.
- Generates structured fix suggestions: returns Markdown-formatted fix instructions for compatibility issues, which AI can apply directly.
- Lists all 21 supported email clients: including ID, name, engine, and dark mode support.
- Compares two versions of email HTML: shows score changes, fixed issues, and new issues for each client.
- Checks domain deliverability: detects SPF, DKIM, DMARC, MX, and BIMI records, providing scores and actionable issues.
- Hosted tools (requires EMAILENS_API_KEY): captures email screenshots in real browsers across 21 clients, with screenshots hosted on a CDN; creates shareable links so recipients can view the full analysis without an account. The free plan includes 30 previews per day; shareable links require the Dev plan ($9/month), Dev links expire after 7 days, and Pro links never expire.
How to Use
Can be added to claude_desktop_config.json for use. Supports unlocking screenshots and sharing features via API key; a free API key can be obtained at emailens.dev/settings/api-keys. A remoteHosted endpoint, no need to install npm or Node.js, but requires an API key. The local tool has multiple tools: audit_email for a full compatibility preview, check_css for quick CSS analysis, fix_email for generating fix suggestions, list_clients for listing clients, diff_email for version comparison, and check_deliverability for deliverability checks. The server is based on @emailens/engine and is also available as a GitHub Action.
When to use
Suitable for compatibility checks before sending emails, helping avoid rendering surprises in clients such as Outlook; suitable for email developers, marketers, and teams using AI assistants to write and review emails. AI assistants can use this to check emails before sending.
Limitations
- Compilers (such as MJML, Maizzle, JSX) are not built in. MJML alone takes up 56MB, and the server is usually started with npx, so the engine treats them as optional peer dependencies. If the server runtime environment cannot install them, you need to compile the template yourself and send the resulting HTML with format: "html".
- Source locations are only reported for html input. JSX, MJML, and Maizzle are compiled before analysis, and line numbers point to the generated output rather than the source file, so the tool omits location information.
- Narrowing the report scope (specifying clients) does not affect the score for the entire email; the score is still calculated for the entire email.
- fix_email does not include fix snippets; the returned hasFix indicates whether a fix is available, and fixType indicates whether it is markup or CSS.
- Detailed mode detail: "full" returns the engine's per-client structure and includes snippets.
- Unknown client IDs are rejected by name, and an empty result is understood as "this email is fine for that client."
- Screenshot and sharing features require an API key, and shared links have plan and expiration limits.
Other notes
This MCP server is published on both npm and the MCP registry. The version number must be kept consistent in four places; see RELEASING.md for details.