DNS Doctor
The DNS Doctor server provides tools to diagnose, validate, generate, and monitor a domain's email authentication (SPF, DMARC, DKIM) and DNS health, powered by a deterministic, RFC-compliant validation engine — never LLM-guessed records.
Scan a domain (
scan_domain): Force a fresh, full diagnostic scan covering SPF, DKIM, DMARC, MX, DNS hardening, domain/TLS expiry, and blacklist status — each with a pass/warn/fail verdict and a fix record where applicable.Get a cached report (
get_report): Retrieve a stored report (scanning once if none exists), including a staleness timestamp — ideal for a quick look without forcing a re-scan.Build a validated DMARC upgrade (
build_dmarc_upgrade): Generate a safe, server-validated DMARC enforcement record (up top=reject), only when real scan data justifies it.Validate a DMARC record (
validate_dmarc_record): Parse and validate a pasted DMARC record tag-by-tag, returning diagnostics and a preview of a stronger policy.Generate a DMARC record (
generate_dmarc_record): Build a new DMARC record from a chosen policy, optional reporting addresses, subdomain policy, and alignment strictness.Count SPF lookups (
count_spf_lookups): Validate an SPF record and count its DNS lookups against the RFC 10-lookup limit, flagging offending mechanisms and parse errors.Check a DKIM selector (
check_dkim_selector): Look up a specific DKIM selector on a domain and verify its published key.Parse a DMARC aggregate report (
parse_dmarc_report): Decode a DMARC RUA report file (XML, .gz, or .zip) into per-source rows showing volume and SPF/DKIM alignment rates.Check DNS propagation (
check_record): Read any DNS record type (SPF, DMARC, TXT, MX, CNAME, A, AAAA) from the domain's nameservers and two public resolvers, reporting sync status and remaining TTL.Check reverse DNS (
check_reverse_dns): Verify forward-confirmed reverse DNS (FCrDNS) for a sending IP, confirming PTR and forward resolution agree.Generate a monitoring signup link (
start_monitoring_signup): Produce a sign-up URL for a domain owner to enroll in continuous monitoring.
DNS Doctor — Claude Code plugin & DNS skill (DMARC, SPF, DKIM)
Diagnose and fix a domain's email authentication (SPF, DMARC, DKIM, MX, blacklist, domain/SSL expiry) from inside Claude. This plugin bundles the DNS Doctor skill (the scan → diagnose → fix workflow) and an MCP server config pointing at the hosted DNS Doctor tools.
The moat: every fix record you get back is generated and validated by a deterministic engine — RFC grammar plus the SPF 10-lookup counter — never an LLM guess. Your agent hands the human a record that already parses correctly, not a plausible-looking string that silently fails.
What's inside
claude-plugin/
├── .claude-plugin/plugin.json # plugin manifest
├── .mcp.json # MCP server: https://dnsdoctor.dev/mcp (HTTP)
├── skills/dns-doctor/SKILL.md # the scan → diagnose → fix workflow
├── src/ # @dnsdoctor/mcp — the local stdio MCP server
├── tools.json # the 11 tool definitions (generated, never hand-edited)
├── instructions.txt # the server's own `initialize` guidance (generated)
├── tests/ # vitest suite for the stdio server
├── package.json tsconfig.json # npm package + build
├── LICENSE # Apache-2.0
└── README.mdRelated MCP server: intodns-mcp
Tools it adds
Tool | Does |
| Fresh scan of a domain; full report. |
| Persisted report (scans once if none exists). |
| A validated DMARC enforcement record — |
| The SPF DNS-lookup count against the RFC limit of 10. |
| Parse and validate a DMARC record, tag by tag. |
| Build a DMARC record from a policy + reporting address. |
| Look up one DKIM selector and check the key. |
| Parse an aggregate (RUA) report file into rows. |
| Read any DNS record type for a name. |
| PTR / forward-confirmed reverse DNS for an IP. |
| A sign-up link to hand to the human who owns the domain. Sends no email and creates nothing — they open it, sign in on our page themselves (a social provider or an emailed link, whichever that deployment offers), and the domain is carried over to their dashboard already filled in; monitoring starts once they verify it with a TXT record. |
Over the hosted HTTP transport the dnsdoctor://domains resource (your
monitored domains) is always listed; reading it needs an API token and is
refused without one. The local stdio server registers the tools only — no
resource. Anonymous access is enough for a one-off diagnosis either way.
Install
Claude Code
Add the marketplace/repo and enable the plugin:
/plugin marketplace add dnsdoctor/claude-plugin
/plugin install dns-doctorPublic home: github.com/dnsdoctor/claude-plugin (org
dnsdoctor, domain-verified). The plugin is developed in the DNS Doctor monorepo and published here as clean release snapshots.
Or point Claude Code at a local checkout of this directory during development.
Once enabled, the skill auto-loads and the dns-doctor MCP server connects to
https://dnsdoctor.dev/mcp.
claude.ai (MCP connector)
Add a custom connector with:
URL:
https://dnsdoctor.dev/mcpTransport: Streamable HTTP
Auth: none (anonymous) — or a Bearer token (below)
Optional: API token for monitored domains
Anonymous access covers scanning and fixes. A per-account API token unlocks the
dnsdoctor://domains resource (your continuously-monitored domains and their
latest per-check statuses).
Sign in at https://dnsdoctor.dev → Settings → API tokens → create a token. The plaintext (
dnsd_…) is shown once; copy it.Add the
Authorizationheader to the server in.mcp.json:{ "mcpServers": { "dns-doctor": { "type": "http", "url": "https://dnsdoctor.dev/mcp", "headers": { "Authorization": "Bearer ${DNSDOCTOR_API_TOKEN}" } } } }Then export
DNSDOCTOR_API_TOKEN=dnsd_YOUR_TOKENin your environment. Never commit the token.
Transport
Two supported public transports, same 11 tools:
Hosted streamable HTTP —
https://dnsdoctor.dev/mcp, wired in this plugin's.mcp.json. No install, no keys.Local stdio —
npx -y @dnsdoctor/mcp. A thin server that runs on your machine and calls the public DNS Doctor REST API; it holds no diagnosis logic of its own and relays every record string verbatim.
{
"mcpServers": {
"dns-doctor": {
"command": "npx",
"args": ["-y", "@dnsdoctor/mcp"],
"env": { "DNSDOCTOR_API_TOKEN": "dnsd_YOUR_TOKEN" }
}
}
}DNSDOCTOR_API_TOKEN is optional (anonymous access covers scanning and fixes).
DNSDOCTOR_API_BASE overrides the origin — it must be an origin that serves the
/api/… paths, i.e. the public site rather than a bare backend port.
Build the stdio server from source
npm ci
npm test
npm run build # -> dist/index.js, the package's bin entrypointtools.json and instructions.txt are generated from the hosted server and
pinned by a backend test — never hand-edit them, and never add a tool
description to src/. Both files ship in the npm tarball; without them the
client has no tools and none of its safety guidance.
Worked example
You: Our invoices keep landing in customers' spam. Domain is
example.com.Claude (
scan_domain→example.com): DMARC is atp=none, so nothing enforces alignment — receivers can't tell your mail from a spoof. SPF passes with 7 of 10 lookups used. DKIM: a selector was found and is valid. Not blacklisted. Domain expires in 240 days.Claude (
build_dmarc_upgrade→example.com): SPF is aligned and DKIM is present, so enforcement top=rejectis safe. Publish this exact TXT record at_dmarc.example.com— paste it verbatim, don't edit it:v=DMARC1; p=reject; rua=mailto:dmarc@example.com; adkim=r; aspf=rApply it in your DNS host once you've confirmed it's approved, then ask me to re-scan to verify. Want the domain watched continuously with aggregate-report alerts? I can send a setup link to your email.
Learn more
Methodology (how the verdicts are computed): https://dnsdoctor.dev/methodology
REST API / OpenAPI schema: https://dnsdoctor.dev/api/v1/openapi.json
License
Apache-2.0 — see LICENSE.
Maintenance
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server for email deliverability: validate SPF/DKIM/DMARC/BIMI, check blacklists, test SMTP/IMAP, look up DNS, and generate ready-to-deploy records for any major email provider. Ships with two one-click prompts (audit-deliverability, setup-dns). Public, no auth.Last updated17MIT
- AlicenseAqualityAmaintenanceMCP server for IntoDNS.ai providing 36 free tools for DNS, DMARC, SPF, DKIM, BIMI, DNSSEC, MTA-STS, FCrDNS, blacklist and email security checks. Citation-grade report snapshots with content hashes. No API key required.Last updated361582MIT
- AlicenseAqualityAmaintenanceInfrastructure diagnostics library with MCP server for Claude. Automate DNS, TLS, email security, and DNS propagation checks via AI agents. DNSSEC, DANE/TLSA support.Last updated53MIT
- Flicense-qualityDmaintenanceProvides DNS lookup and email authentication diagnostic tools (SPF, DKIM, DMARC, MX, etc.) for use with MCP-compatible clients. Enables natural language queries to check DNS records and email health.Last updated
Related MCP Connectors
Uptime, SSL, DNS and domain monitoring you can talk to from Claude or any MCP client.
DMARC analytics for AI assistants — domain health, SPF/DKIM records, compliance stats, anomalies.
Domain intel for AI agents: RDAP registration, DNS, email deliverability, tech stack.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dnsdoctor/claude-plugin'
If you have feedback or need assistance with the MCP directory API, please join our Discord server