Emailens MCP
Analyze, audit, fix and diff HTML, MJML, Maizzle and React Email across 21 email clients.
사용해야 할까요
품질 및 안전성
발견 사항 (2)
- HIGH
- INFOaudit_email에서
도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.
컨텍스트 비용
이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.
설치
원클릭 설치
`claude_desktop_config.json` 파일에 다음을 추가하세요:
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"@emailens/mcp"
]
}
}
}실행 가능한 패키지
0.16.1stdio원격 엔드포인트
https://emailens.dev/api/mcpstreamable-http할 수 있는 일
도구 목록
도구 (15)
🟢preview_email(html, clients, format, targetingPolicy)
Full email compatibility preview , transforms HTML for 21 email clients, analyzes CSS, generates scores, previews dark mode, checks inbox preview and email size.
입력 스키마
{
"type": "object",
"properties": {
"html": {
"type": "string",
"description": "The email HTML source code"
},
"clients": {
"description": "Optional client ID filter",
"type": "array",
"items": {
"type": "string"
}
},
"format": {
"description": "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 snippets. A pasted Vue file with no format is compiled as maizzle.",
"type": "string",
"enum": [
"html",
"jsx",
"mjml",
"maizzle"
]
},
"targetingPolicy": {
"description": "'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 hack. 'lenient' suppresses false positives and ignores non-fatal targeting warnings.",
"type": "string",
"enum": [
"progressive",
"strict",
"lenient"
]
}
},
"required": [
"html"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢analyze_email(html, format, detail, clients, targetingPolicy)
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.).
입력 스키마
{
"type": "object",
"properties": {
"html": {
"type": "string",
"description": "The email source"
},
"format": {
"description": "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 snippets. A pasted Vue file with no format is compiled as maizzle.",
"type": "string",
"enum": [
"html",
"jsx",
"mjml",
"maizzle"
]
},
"detail": {
"description": "'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 included.",
"type": "string",
"enum": [
"summary",
"full"
]
},
"clients": {
"description": "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.",
"type": "array",
"items": {
"type": "string"
}
},
"targetingPolicy": {
"description": "'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 hack. 'lenient' suppresses false positives and ignores non-fatal targeting warnings.",
"type": "string",
"enum": [
"progressive",
"strict",
"lenient"
]
}
},
"required": [
"html"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢audit_email(html, format, skip, detail, clients, ...)
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 variables, content overflow, visual fallbacks, dark-mode and mobile text contrast, design consistency, structural faults in Outlook-only VML, style survival (CSS a client parses and then discards, such as a stylesheet past Gmail's 16 KB ceiling or every rule after a `}}`), and client targeting (HowToTarget hacks such as Gmail u+.body or MSO conditionals). For HTML input, findings tied to a specific element carry loc (line, column, offset). Compatibility is collapsed to one finding per problem listing the clients it affects; pass detail:'full' for the per-client breakdown with fix snippets. Use skip to omit checks, targetingPolicy to change how targeted scopes affect scores, and clients to narrow which clients are reported.
입력 스키마
{
"type": "object",
"properties": {
"html": {
"type": "string",
"description": "The email source"
},
"format": {
"description": "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 snippets. A pasted Vue file with no format is compiled as maizzle.",
"type": "string",
"enum": [
"html",
"jsx",
"mjml",
"maizzle"
]
},
"skip": {
"description": "Checks to skip (e.g. ['spam', 'images'])",
"type": "array",
"items": {
"type": "string",
"enum": [
"spam",
"links",
"accessibility",
"images",
"compatibility",
"inboxPreview",
"size",
"templateVariables",
"overflow",
"visual",
"darkContrast",
"mobileContrast",
"design",
"vml",
"styleSurvival",
"targeting"
]
}
},
"detail": {
"description": "'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 included.",
"type": "string",
"enum": [
"summary",
"full"
]
},
"clients": {
"description": "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.",
"type": "array",
"items": {
"type": "string"
}
},
"targetingPolicy": {
"description": "'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 hack. 'lenient' suppresses false positives and ignores non-fatal targeting warnings.",
"type": "string",
"enum": [
"progressive",
"strict",
"lenient"
]
},
"emailType": {
"description": "'transactional' (receipts, password resets, codes, alerts: no unsubscribe link required) or 'marketing'. Omitted: guessed from the content, which misses many transactional emails.",
"type": "string",
"enum": [
"marketing",
"transactional"
]
},
"previousHtml": {
"description": "The design to hold this version to, usually your first draft. Omitted: the first version of this email you audited recently (matched by <title> and text).",
"type": "string"
}
},
"required": [
"html"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢fix_email(html, format, scope, selectedClientId)
Generate a structured fix prompt for email compatibility issues.
입력 스키마
{
"type": "object",
"properties": {
"html": {
"type": "string",
"description": "The email HTML source code to fix"
},
"format": {
"description": "Input format , controls fix syntax",
"type": "string",
"enum": [
"html",
"jsx",
"mjml",
"maizzle"
]
},
"scope": {
"description": "Fix scope",
"type": "string",
"enum": [
"all",
"current"
]
},
"selectedClientId": {
"description": "Client ID for scoped fixes",
"type": "string"
}
},
"required": [
"html"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢list_clients
List all 21 supported email clients with IDs, names, rendering engines, dark mode support, and deprecation status. Use the returned IDs to filter other tools like preview_email or capture_screenshots.
입력 스키마
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢diff_emails(before, after, format)
Compare two email HTML versions , shows score changes, fixed issues, and regressions per client.
입력 스키마
{
"type": "object",
"properties": {
"before": {
"type": "string",
"description": "Original email HTML"
},
"after": {
"type": "string",
"description": "Modified email HTML"
},
"format": {
"description": "Input format",
"type": "string",
"enum": [
"html",
"jsx",
"mjml",
"maizzle"
]
}
},
"required": [
"before",
"after"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪capture_screenshots(html, format, clients, modes, title)
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.
입력 스키마
{
"type": "object",
"properties": {
"html": {
"type": "string",
"description": "The email source"
},
"format": {
"description": "Input format",
"type": "string",
"enum": [
"html",
"jsx",
"mjml",
"maizzle"
]
},
"clients": {
"description": "Filter to specific client IDs",
"type": "array",
"items": {
"type": "string"
}
},
"modes": {
"description": "Screenshot modes (default: ['light'])",
"type": "array",
"items": {
"type": "string",
"enum": [
"light",
"dark"
]
}
},
"title": {
"description": "Name for the hosted preview",
"type": "string"
}
},
"required": [
"html"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟡share_preview(html, title, format)
Create a shareable link for an email preview. Recipients see the full analysis without needing an account. Requires the Dev plan or above.
입력 스키마
{
"type": "object",
"properties": {
"html": {
"type": "string",
"description": "The email source"
},
"title": {
"description": "Display title for the share page",
"type": "string"
},
"format": {
"description": "Input format",
"type": "string",
"enum": [
"html",
"jsx",
"mjml",
"maizzle"
]
}
},
"required": [
"html"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢check_deliverability(domain)
Check email deliverability for a domain , SPF, DKIM, DMARC, MX, BIMI.
입력 스키마
{
"type": "object",
"properties": {
"domain": {
"type": "string",
"minLength": 3,
"pattern": "^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$",
"description": "Domain to check (e.g. 'company.com')"
}
},
"required": [
"domain"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢build_email(intent, format, seedHtml, threshold, maxIterations)
Generate a cross-client-compatible email from a brief using Emailens's self-healing loop (generate → score across 21 clients → repair). Output stays in the framework you choose. Returns a runId immediately , poll get_build_status for progress and the final code. Requires a Pro/Team API key.
입력 스키마
{
"type": "object",
"properties": {
"intent": {
"type": "string",
"description": "What the email should be and contain , the brief to build from"
},
"format": {
"description": "Output framework: 'html' (default), 'jsx', 'mjml', or 'maizzle'",
"type": "string",
"enum": [
"html",
"jsx",
"mjml",
"maizzle"
]
},
"seedHtml": {
"description": "Optional existing code to improve from instead of starting blank",
"type": "string"
},
"threshold": {
"description": "Target compatibility score, 50-100 (default 90)",
"type": "number"
},
"maxIterations": {
"description": "Max repair rounds, 1-8 (default 5)",
"type": "number"
}
},
"required": [
"intent"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_build_status(runId)
Check a build_email run by runId , returns status, iteration, best compatibility score, and the current best source once available.
입력 스키마
{
"type": "object",
"properties": {
"runId": {
"type": "string",
"description": "The runId returned by build_email"
}
},
"required": [
"runId"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟡sandbox_get_inbox(name)
Retrieve or auto-create your Emailens sandbox test email address for capturing test emails.
입력 스키마
{
"type": "object",
"properties": {
"name": {
"description": "Optional friendly name for the sandbox inbox",
"type": "string"
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢sandbox_list_messages(inboxId)
List recently captured test emails in the Emailens sandbox.
입력 스키마
{
"type": "object",
"properties": {
"inboxId": {
"description": "Optional inbox ID filter",
"type": "string"
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢sandbox_wait_for_email(inboxId, subject, sender, timeoutSeconds)
Poll and wait for a matching incoming test email in the sandbox (ideal for auth OTPs, magic links, transactional email assertions).
입력 스키마
{
"type": "object",
"properties": {
"inboxId": {
"description": "Optional inbox ID filter",
"type": "string"
},
"subject": {
"description": "Substring match for email subject (case-insensitive)",
"type": "string"
},
"sender": {
"description": "Substring match for sender address (case-insensitive)",
"type": "string"
},
"timeoutSeconds": {
"description": "Max seconds to wait (default: 30, max: 60)",
"type": "number"
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢sandbox_get_message(messageId)
Get complete email details: HTML/text body, parsed headers, spam score, SPF/DKIM/DMARC auth status, and validated links.
입력 스키마
{
"type": "object",
"properties": {
"messageId": {
"type": "string",
"description": "ID of the sandbox message"
}
},
"required": [
"messageId"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}커뮤니티
증거