Skip to main content
Glama
README.md
# MailX MCP

Official MCP server for [MailX](https://themailx.com) email deliverability tools — **SPF, DKIM, DMARC, BIMI** validation, domain/IP blacklist checks, **SMTP/IMAP** connectivity tests, DNS lookups (MX, TXT, CNAME, PTR, full A/AAAA/NS/SOA), and ready-to-deploy record generation for any major email provider.

This package is a thin stdio bridge to the hosted MCP server at [https://themailx.com/mcp](https://themailx.com/mcp). All tool logic runs server-side; this is ~50 lines of passthrough glue so clients that want stdio (Claude Desktop, local agents) can use it without hand-wiring a remote URL.

> Prefer the remote URL directly? Skip this package — point any streamable-HTTP MCP client straight at `https://themailx.com/mcp`. See [install guide](https://themailx.com/mcp/docs) for per-client JSON snippets.

## Tools

- `spf_check`, `dkim_check`, `dmarc_check`, `bimi_check` — validate authentication records
- `blacklist_check` — check a domain or IP against popular DNSBLs
- `smtp_check`, `imap_check` — test mail server connectivity with credentials
- `smtp_finder`, `imap_finder` — look up server settings by provider name
- `spf_generate`, `dmarc_generate` — produce copy-pasteable DNS records
- `mx_lookup`, `txt_lookup`, `cname_lookup`, `ptr_lookup`, `dns_lookup` — DNS queries
- `bimi_host` — host a BIMI SVG for email authentication

Full catalog + live descriptions: [themailx.com/mcp/docs](https://themailx.com/mcp/docs)

## Install

### Claude Desktop

Edit `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or the equivalent on your OS:

```json
{
  "mcpServers": {
    "mailx": {
      "command": "npx",
      "args": ["-y", "@mailwarm/mailx-mcp"]
    }
  }
}
```

### Claude Code

```bash
claude mcp add mailx -- npx -y @mailwarm/mailx-mcp
```

### Cursor / Windsurf / VS Code / Zed

Same `npx -y @mailwarm/mailx-mcp` pattern — see your client's MCP config docs for the exact JSON shape. Full examples at [themailx.com/mcp/docs](https://themailx.com/mcp/docs).

### Direct remote (no install)

If your client supports streamable-HTTP, point it at `https://themailx.com/mcp` directly — this bridge is only needed for stdio clients.

## Configuration

Optional session preferences (set once in your MCP client config, applied to every call):

| Variable | Effect |
|---|---|
| `default_dkim_selector` | Default selector used by `dkim_check` when the call omits `dkim_selector` |
| `preferred_provider` | Default provider for `spf_generate` (google, mailgun, sendgrid, postmark, amazon-ses, outlook, zoho, fastmail) |
| `dmarc_aggregate_email` | Default `rua=` address for `dmarc_generate` |

Override the upstream URL (staging/self-hosting):

```json
{
  "mcpServers": {
    "mailx": {
      "command": "npx",
      "args": ["-y", "@mailwarm/mailx-mcp"],
      "env": { "MAILX_MCP_URL": "https://tools-stg.themailx.com/mcp" }
    }
  }
}
```

## Prompts

Two one-click slash commands ship with the server:

- `audit-deliverability(domain)` — full deliverability audit (SPF + DMARC + DKIM + blacklist) with copy-pasteable fixes
- `setup-dns(domain, provider)` — greenfield DNS setup, generates SPF + DMARC for the chosen provider

## Links

- **Homepage**: [themailx.com](https://themailx.com)
- **Full docs**: [themailx.com/mcp/docs](https://themailx.com/mcp/docs)
- **Skills repo** (Claude Code plugin marketplace): [Mailwarm/mailx-skills](https://github.com/Mailwarm/mailx-skills)
- **Official MCP Registry**: [`com.themailx/email-deliverability`](https://registry.modelcontextprotocol.io/v0.1/servers?search=com.themailx)
- **Smithery**: [mailwarm/mailx-tools](https://smithery.ai/server/mailwarm/mailx-tools)
- **llms.txt**: [themailx.com/llms.txt](https://themailx.com/llms.txt)

## License

MIT — see [LICENSE](./LICENSE)

TDQS

A4/5.0

Scored across 17 tools

Disambiguation5/5

Each tool has a distinct purpose focused on specific email-related DNS checks, server testing, or configuration lookups. For example, dkim_check and spf_check target different authentication mechanisms, while imap_check and smtp_check test different server types, ensuring clear boundaries and no overlap.

Naming Consistency5/5

All tools follow a consistent verb_noun pattern using snake_case, such as bimi_check, dmarc_generate, and smtp_finder. This uniformity makes the tool set predictable and easy to navigate, with no deviations in naming conventions.

Tool Count4/5

With 17 tools, the count is slightly high but reasonable for the comprehensive email diagnostics and configuration domain. It covers various aspects like DNS records, server checks, and lookups, though it might feel a bit heavy compared to more streamlined servers.

Completeness5/5

The tool set provides complete coverage for email infrastructure, including DNS-based authentication (SPF, DKIM, DMARC, BIMI), server testing (SMTP, IMAP), and lookup utilities (MX, CNAME, TXT). There are no obvious gaps, allowing agents to handle full email configuration and troubleshooting workflows.

Maintenance

ActivityInactive
ResponsivenessNo issues