canarymail MCP Server
Email authentication checks: DMARC, SPF and DKIM, SPF building, bounce and report analysis.
canarymail scores 66 (Good), licensed MIT and written in TypeScript. It installs as a local process. It declares 4 tools. Filed under Communication. GitHub shows 0 stars. Package registries report about 74 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
66 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade A
86/100 for listing completeness. Lost points: short summary, no docs link.
How quality is graded
Where the 66 comes from
22 + 20 + 0 + 10 + 4 + 10 = 66. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "cloudcorprecords-canarymail": { "command": "npx", "args": [ "-y", "@reneturcios/canarymail@0.1.0" ] } }}
Environment variables
This server does not declare environment variables.
Tools4Tool docs quality grade A
All capabilitiesanalyze_reporttoolReads a DMARC aggregate report. Pass either file (an uploaded report file object) or reportxml (the report XML as text); neither is individually required. Returns totals and per-IP SPF, DKIM and DMARC results, with a
build_spftoolBuilds one merged SPF record from the services that send a domain's mail. senders is required (provider names, include: terms, or similar); domain, ip4, ip6 and all (~all or -all) are optional. Reports the
check_domaintoolChecks a domain's published email authentication. domain is required; pass selector when you know the DKIM selector, otherwise common selectors are tried. Returns what is wrong with each of DMARC, SPF and DKIM, plus t
explain_bouncetoolExplains a pasted bounce message, SMTP reply or Authentication-Results header. text is required. Returns what the receiving server refused, what to change, and when it clears.
About
canarymail
Email that fails authentication rarely explains itself. canarymail is a small local bridge to the hosted DomainCanary MCP service: hand it a domain, a list of sending services, a pasted bounce, or a DMARC aggregate report, and the service does the reading — checking live DMARC, SPF and DKIM records, merging an SPF record, decoding an SMTP refusal, or totalling which senders passed and failed.
Nothing is stored or computed on your own machine. This package answers tools/list locally from the captured tool definitions and forwards every tools/call to the hosted service over a streamable-HTTP JSON-RPC session, returning whatever the service sends back unchanged. All four captured tools are built; there are no omissions.
The tools
check_domain— Checks a domain's published email authentication.domainis required; passselectorwhen you know the DKIM selector, otherwise common selectors are tried. Returns what is wrong with each of DMARC, SPF and DKIM, plus the records to add or change.build_spf— Builds one merged SPF record from the services that send a domain's mail.sendersis required (provider names,include:terms, or similar);domain,ip4,ip6andall(~allor-all) are optional. Reports the record's DNS lookup count against the limit of ten.explain_bounce— Explains a pasted bounce message, SMTP reply or Authentication-Results header.textis required. Returns what the receiving server refused, what to change, and when it clears.analyze_report— Reads a DMARC aggregate report. Pass eitherfile(an uploaded report file object) orreport_xml(the report XML as text); neither is individually required. Returns totals and per-IP SPF, DKIM and DMARC results, with a next step for the report's domain.
Install and run
As an MCP server via npm:
npx -y @reneturcios/canarymail mcp
MCP client configuration:
{
"mcpServers": {
"canarymail": {
"command": "npx",
"args": ["-y", "@reneturcios/canarymail", "mcp"]
}
}
}
As a container:
docker run -i ghcr.io/cloudcorprecords/canarymail
docker run --rm ghcr.io/cloudcorprecords/canarymail check_domain '{"domain":"example.com"}'
CLI
One binary serves both the command line and the MCP server. Each tool is a subcommand taking a single JSON string with that tool's arguments:
canarymail check_domain '{"domain":"example.com"}'
canarymail build_spf '{"senders":["Google Workspace","Mailchimp"],"domain":"example.com"}'
canarymail explain_bounce '{"text":"550 5.7.26 Unauthenticated email"}'
canarymail analyze_report '{"report_xml":"<feedback>...</feedback>"}'
canarymail --version
Exit codes: 0 when the forwarded call succeeds, 1 when the upstream result is an error, and 2 for usage problems such as an unknown subcommand or a malformed JSON argument.
Configuration
DOMAINCANARY_MCP_URL— Overrides the upstream endpoint. The default is the pinned hosted endpoint,https://domaincanary.com/mcp. (The override variable is a reconstruction added by this rebuild.)
No authentication header is ever sent: the registry record declares no headers for the upstream and the tool surface was captured keyless, so no Authorization or X-API-Key header leaves this client.
Upstream failures — a JSON-RPC error from the service, a non-2xx response, an unreadable body, or a request that fails outright — are reported to the caller as an error result whose text starts with canarymail error:.
How forwarding works
The first forwarded call opens a session: an initialize request (protocol version 2025-03-26), followed by a notifications/initialized notification, then the tools/call itself. If the service answers the initialize request with an Mcp-Session-Id header, that value is carried on every later request, and the open session is reused for the rest of the process. Replies are accepted either as plain JSON or as server-sent events. Successful results pass through verbatim, including any isError flag and any extra fields the service includes.
Development
npm install
npm run build # tsc -> dist/ (dist/cli.js is the bin)
npm test # tsx --test test/*.test.ts — stubbed upstream, no network
npm run dev # run the CLI from source
The test suite checks the served tool list against the captured surface, exercises the session handshake and its reuse, asserts that no auth header is ever sent, and verifies that arguments go upstream untouched and results come back untouched, including SSE replies and upstream error results.
License
MIT — see LICENSE. Copyright (c) 2026 Rene Turcios.
Frequently asked questions
What is canarymail MCP Server?
Email authentication checks: DMARC, SPF and DKIM, SPF building, bounce and report analysis.
How do I install canarymail MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. canarymail MCP Server runs locally from the npm package @reneturcios/canarymail with the command npx -y @reneturcios/canarymail@0.1.0.
Is canarymail MCP Server free and open source?
Yes. canarymail MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does canarymail MCP Server support remote (HTTP) connections?
No remote endpoint is listed for canarymail MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does canarymail MCP Server provide?
canarymail MCP Server provides 4 tools: analyze_report, build_spf, check_domain, and explain_bounce. See the full tool list for descriptions and parameters.
How is canarymail MCP Server's trust score calculated?
canarymail MCP Server scores 66 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.