# email-lint

> email-lint is an open-source MCP server for communication. Lints email HTML for CSS and HTML features that Outlook, Gmail and Apple Mail drop. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Self-hosted
- **Repository:** https://github.com/mscode-pl/email-lint
- **MCP Registry name:** io.github.mscode-pl/email-lint
- **Categories:** [communication](https://ai-powered.com/categories/communication), [email validation](https://ai-powered.com/categories/email-validation)
- **Listing updated:** 2026-11-28

## About

Points at each CSS property, selector, HTML element and image format that a chosen set of email clients cannot render, with the line where it occurs. The support data comes from a bundled copy of the caniemail.com dataset, so checks run offline and inside CI pipelines without an account or API key.

It can be run as a one-off command on a folder of templates, driven by a committed config file, or wired into a GitHub Action that annotates pull request diffs and keeps a single updating comment. Output can be text, JSON, Markdown or GitHub annotations.

It also exposes two read-only tools over MCP, so an AI coding assistant can check a template while writing it and look up why a given feature breaks a client. Developers building email with React Email, MJML, Maizzle or plain HTML are the intended audience.

## Features

- **Line-level issue reports:** Each unsupported feature is reported with the line it appears on, whether in inline styles, style blocks or attributes.
- **Selectable client set:** Checks can be limited to chosen clients or platforms such as Gmail, Outlook for Windows or Apple Mail.
- **Outlook conditional awareness:** Content inside Outlook-only conditional comments is not blamed for Outlook for Windows support gaps.
- **CI and pull request integration:** A GitHub Action posts an updating report comment and annotations, and the CLI can exit non-zero on errors.
- **MCP server for AI agents:** Two read-only tools let an assistant lint inline HTML or files and explain a specific feature's support.
- **Offline, no network:** The dataset ships with the package, so linting runs without sending anything over the network.

## Good for

- Catch CSS that Outlook for Windows silently ignores before a newsletter is sent
- Gate pull requests on email template compatibility in CI
- Let an AI coding assistant check email markup while it is being written
- Narrow compatibility checks to the clients a specific audience actually uses

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add email-lint -- npx -y @mscode-pl/email-lint
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "email-lint": {
      "command": "npx",
      "args": [
        "-y",
        "@mscode-pl/email-lint"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "email-lint": {
      "command": "npx",
      "args": [
        "-y",
        "@mscode-pl/email-lint"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "email-lint": {
      "command": "npx",
      "args": [
        "-y",
        "@mscode-pl/email-lint"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "email-lint": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mscode-pl/email-lint"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add email-lint -- npx -y @mscode-pl/email-lint
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.email-lint]
command = "npx"
args = ["-y", "@mscode-pl/email-lint"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "email-lint": {
      "command": "npx",
      "args": [
        "-y",
        "@mscode-pl/email-lint"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user email-lint npx -- -y @mscode-pl/email-lint

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "email-lint": {
      "command": "npx",
      "args": [
        "-y",
        "@mscode-pl/email-lint"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "email-lint": {
      "command": "npx",
      "args": [
        "-y",
        "@mscode-pl/email-lint"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "email-lint": {
      "command": "npx",
      "args": [
        "-y",
        "@mscode-pl/email-lint"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "email-lint": {
      "command": "npx",
      "args": [
        "-y",
        "@mscode-pl/email-lint"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "email-lint": {
      "command": "npx",
      "args": [
        "-y",
        "@mscode-pl/email-lint"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "email-lint": {
      "command": "npx",
      "args": [
        "-y",
        "@mscode-pl/email-lint"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "email-lint": {
      "command": "npx",
      "args": [
        "-y",
        "@mscode-pl/email-lint"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "email-lint": {
      "command": "npx",
      "args": [
        "-y",
        "@mscode-pl/email-lint"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 2 tools reads data; 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `lint_email`: Lints inline HTML or a file, folder or glob and returns issues with lines, affected clients and notes.
- `explain_feature` (name suggests: reads): For one caniemail feature slug, reports which clients lack support, whether it breaks the email, and how to fix it.

## FAQ

### Does email-lint need an account or API key?

No. It needs Node 22 or newer and sends nothing over the network.

### Which email clients are covered?

Gmail, Outlook, Apple Mail, Yahoo, Samsung Email and Thunderbird form the default set, and 22 clients can be selected in total.

### Does email-lint render the email to show how it looks?

No. It reads the markup and reports where a client ignores a feature, so pixel checks still need a real client or a rendering service.

### Is email-lint free?

Yes. email-lint is open source, so you can use and self-host it for free.

### How do I add email-lint to Claude Code?

Run this command in your terminal: claude mcp add email-lint -- npx -y @mscode-pl/email-lint

### What are the best alternatives to email-lint?

The closest alternatives to email-lint are Mailoo - Email MCP Server, Easy Email Builder, Inbox Preview, HTML Email Playbook and MailSlurp.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Mailoo - Email MCP Server](https://ai-powered.com/mcp/mailoo-email-mcp-server): Mailoo - Email MCP Server is an open-source MCP server for communication.
- [Easy Email Builder](https://ai-powered.com/mcp/easy-email-builder): Easy Email Builder is an open-source MCP server for communication.
- [Inbox Preview](https://ai-powered.com/mcp/inbox-preview): Inbox Preview is a free MCP server for communication.
- [HTML Email Playbook](https://ai-powered.com/mcp/html-email-playbook): HTML Email Playbook is an open-source MCP server for communication.
- [MailSlurp](https://ai-powered.com/mcp/mailslurp): MailSlurp is an MCP server for communication.
- [Email List Cleaner](https://ai-powered.com/mcp/email-list-cleaner): Email List Cleaner is a freemium MCP server for communication.
- [Microsoft Outlook (TUI, CLI & MCP)](https://ai-powered.com/mcp/microsoft-outlook-tui-cli-and-mcp): Microsoft Outlook (TUI, CLI & MCP) is an open-source MCP server for communication.
- [Email Spam Tester](https://ai-powered.com/mcp/email-spam-tester): Email Spam Tester is a free MCP server for communication.

---
Source: https://ai-powered.com/mcp/email-lint
