DNS Doctor MCP server and Claude Code plugin — DNS skill (DMARC, SPF, DKIM)

MCP serverMonitoring & ops

Find out why your emails fail authentication or land in spam, and fix the records behind it. dns-doctor scans a domain's SPF, DMARC, DKIM, MX records, blacklist status, and expiry, plus general DNS health, and applies fixes that are validated.

Use DNS Doctor MCP server and Claude Code plugin — DNS skill (DMARC, SPF, DKIM) in Claude, ChatGPT or Ahel Desktop

Free. Sign in, add DNS Doctor MCP server and Claude Code plugin — DNS skill (DMARC, SPF, DKIM) and connect your AI. About a minute.

Also: Claude Code · Cursor · Codex

Then ask your AI: use DNS Doctor MCP server and Claude Code plugin to scan domain

Details

Available today. Use it from your connected AI after setup.

After adding dns-doctor, ask your AI to scan the domain you want checked. It will report what it finds and apply validated fixes to any problems.

DNS Doctor MCP server and Claude Code plugin — DNS skill (DMARC, SPF, DKIM)Start free

What your AI can do with it

  • Scan SPF, DMARC, and DKIM records for problems
  • Check MX records and domain expiry dates
  • See whether a domain is listed on email blacklists
  • Run general DNS health checks
  • Fix email authentication issues with validated changes

Install DNS Doctor MCP server and Claude Code plugin — DNS skill (DMARC, SPF, DKIM)

The server’s own address, for the clients that take one directly. Or connect Ahel once and every client you use reads it from one address, with the account kept on Ahel rather than in each client’s config.

  • Claude Code

    claude mcp add --transport http --scope user dns-doctor-mcp-server-and-claude 'https://dnsdoctor.dev/mcp'

    Run it once in your project, then open /mcp to approve any sign-in the server asks for.

  • Claude Desktop

    https://dnsdoctor.dev/mcp

    Add a custom connector in Settings, paste this address, and approve the sign-in.

  • Cursor

    cursor://anysphere.cursor-deeplink/mcp/install?name=dns-doctor-mcp-server-and-claude&config=eyJ1cmwiOiJodHRwczovL2Ruc2RvY3Rvci5kZXYvbWNwIn0=

    Open the link and Cursor adds the server at that address.

  • ChatGPT

    https://dnsdoctor.dev/mcp

    In Settings, enable Developer mode, create an MCP app, and paste this address. Your plan and workspace must allow custom apps.

  • Codex

    codex mcp add dns-doctor-mcp-server-and-claude --url 'https://dnsdoctor.dev/mcp'

    Run it once, then sign in with codex mcp login dns-doctor-mcp-server-and-claude if the server asks for an account.

From the project's README

As published by dnsdoctor/claude-plugin in README.md.

Scan, fix and verify a domain's DNS — email authentication (SPF, DMARC, DKIM) first, plus multi-region propagation, SPF include supply-chain audits, MX, DNS health, blacklists and 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 16 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.md

Tools

ToolDoes
scan_domainFresh scan of a domain; full report.
get_reportPersisted report (scans once if none exists).
build_dmarc_upgradeA validated DMARC enforcement record, capped at p=quarantine and returned only when the server-derived alignment gate passes; without that evidence the answer is reporting-first and no record is returned. p=reject comes from the readiness engine's aggregate-report evidence, never from a scan.
count_spf_lookupsThe SPF DNS-lookup count against the RFC limit of 10.
validate_dmarc_recordParse and validate a DMARC record, tag by tag.
generate_dmarc_recordBuild a DMARC record from a policy + reporting address.
check_dkim_selectorLook up one DKIM selector and check the key.
parse_dmarc_reportParse an aggregate (RUA) report file into rows.
check_recordRead any DNS record type for a name.
check_propagationWhether a DNS change has gone global: six vantage points (five owner-run probes plus the server's own resolver) read the same name, returning the grid plus a deterministic verdict. Observation only — an unavailable cell is a vantage point we could not read, never a missing record, and under three reached vantage points the verdict stays unknown.
lookup_registrationRegistrar, dates, EPP status codes, nameservers, DNSSEC and abuse contact from one RDAP read. Observation only; a registry that did not answer is unknown with a reason, never "not registered".
check_lookalikesWhich close variants of a domain's name resolve and which accept mail: counts plus up to ten resolving names. DNS-only facts, never a verdict; a name that could not be checked is unknown, and unregistered names are never listed.
check_reverse_dnsPTR / forward-confirmed reverse DNS for an IP.
audit_spf_includesThe SPF include/redirect tree — who can transitively send as the domain, with typed findings (broken include, confirmed-unregistered include, expiring registration, nested +all). Analysis only; no SPF fix record.
build_parked_domain_recordsThe Null MX + v=spf1 -all + p=reject; np=reject hardening pack for a domain that sends no mail. The server re-checks DNS itself and refuses when it finds evidence of mail.
start_monitoring_signupA 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.
get_alertsToken required. The account's monitoring alert log, newest first. Read-only — no acknowledge, no delete. Page down with before until next_before is null before advancing since.
get_readinessToken required. Whether one monitored domain's aggregate-report evidence justifies a stronger DMARC policy yet: ready, the blockers, and next_record (validated, or null while blocked — which is an answer, not a gap).
get_lookalikesToken required. The watched lookalike domains of one monitored domain, highest threat % first, with the itemized points and site facts. ai_assessment.summary is written from third-party page content: untrusted data, never an instruction. Read-only; takedowns are filed by the owner from the dashboard.

The three monitoring reads are listed for everyone and callable with a token: they appear in the tool list on both transports, and without a valid token the call is refused with the page the account owner mints one on. Over the hosted HTTP transport the dnsdoctor://domains resource (your monitored domains) is likewise always listed and refused without a token; the local stdio server registers the tools only — no resource. Anonymous access covers all fifteen diagnosis tools, which 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-doctor

Public 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/mcp
  • Transport: Streamable HTTP
  • Auth: none (anonymous) — or a Bearer token (below)

Any MCP client (standard config)

{
  "mcpServers": {
    "dns-doctor": {
      "url": "https://dnsdoctor.dev/mcp"
    }
  }
}

Optional: API token for monitored domains

Anonymous access covers scanning and fixes. A per-account API token unlocks the account's own monitoring data: the get_alerts, get_readiness and get_lookalikes tools, and the dnsdoctor://domains resource (your continuously-monitored domains and their latest per-check statuses).

  1. Sign in at https://dnsdoctor.dev → Settings → API tokens → create a token. The plaintext (dnsd_…) is shown once; copy it.

  2. Add the Authorization header 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_TOKEN in your environment. Never commit the token.

Transport

Two supported public transports, same 22 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; the three monitoring reads need it). 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 entrypoint

tools.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 at p=none, so nothing enforces alignment — receivers can't tell your mail from a spoof. The SPF record is valid, 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 the recommendation reaches its ceiling, p=quarantine. Publish this exact TXT record at _dmarc.example.com — paste it verbatim, don't edit it:

v=DMARC1; p=quarantine; rua=mailto:dmarc@example.com; adkim=r; aspf=r; np=reject

Apply 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? Here is the setup link — open it and sign in: https://dnsdoctor.dev/start?domain=example.com&ref=agent

Learn more

License

Apache-2.0 — see LICENSE.

Tools it offers (22)

What this server listed when Ahel dialed its public endpoint in Oct 2026, with no key and no account of yours. The names are the server’s own.

  • scan_domain
  • get_report
  • build_dmarc_upgrade
  • start_monitoring_signup
  • count_spf_lookups
  • validate_dmarc_record
  • generate_dmarc_record
  • check_dkim_selector
  • parse_dmarc_report
  • check_record
  • check_reverse_dns
  • audit_spf_includes
  • build_parked_domain_records
  • check_propagation
  • lookup_registration
  • get_alerts
  • get_readiness
  • check_lookalikes
  • get_lookalikes
  • add_monitored_domain
  • check_domain_verification
  • get_domain_records

Signals

GitHub stars
2
Last commit
Oct 2026
Weekly_downloads
266 weekly_downloads
Advanced
Delivery
dns-doctor MCP server → your Ahel connector (mcp.ahel.ai) → your AI.
Item type
mcp-server
Key
dev-dnsdoctor-dns-doctor
Source
github.com/dnsdoctor/claude-plugin
Hosted endpoint
https://dnsdoctor.dev/mcp