Skip to content
MCP server
Registry

Domain Security MCP Server

Audit a domain's email and web security: SPF, DKIM, DMARC, MTA-STS, DNSSEC, TLS, WHOIS. No API keys.

Domain Security scores 68 (Good), licensed MIT and written in TypeScript. It installs as a local process. It declares 18 tools. Filed under Communication. GitHub shows 2 stars. Package registries report about 297 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by ortamarcoMITTypeScript2 stars
Trust score
68Good
Trust score 68 of 100, Good

Good trust

68 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 68 comes from

22 + 20 + 2 + 10 + 4 + 10 = 68. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity2 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 2 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

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.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "ortamarco-domain-security-mcp-server": {      "command": "npx",      "args": [        "-y",        "domain-security-mcp-server@1.2.5"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools18Tool docs quality grade D

All capabilities
  • Parse raw headers → SPF/DKIM/DMARC verdicts + Received hop chain with delays

  • Check the default.bimi BIMI record

  • IP/domain against open-access email DNSBLs

  • Which CAs may issue TLS certificates (CAA records)

  • Probe <selector>.domainkey keys (supply selectors or use common ones)

  • Parse the DMARC record (every tag is returned) and flag a missing or invalid p, p=none, no rua and pct under 100

  • All record types (A/AAAA/CNAME/MX/NS/TXT/SOA) via public resolvers

  • Compare a record across 5 public resolvers worldwide

  • DS/DNSKEY presence + DNSSEC AD validation flag (via DoH)

  • Grade a site's HSTS, CSP, X-Content-Type-Options, X-Frame-Options, Referrer-Policy, Permissions-Policy and COOP (an HSTS max-age=0 earns nothing)

  • Offline IP geolocation (DB-IP Lite) + reverse DNS

  • Validate the mta-sts TXT and the .well-known/mta-sts.txt policy + mode

About

domain-security-mcp-server

An MCP server that lets an AI agent audit the email and domain security of any domain — SPF, DKIM, DMARC, MTA-STS, TLS-RPT, BIMI, DNSSEC, DNS, TLS/SSL and WHOIS — in plain language. No API keys required.

ci npm MCP TypeScript License: MIT

Built on the v2 MCP SDK: the server speaks the 2026-07-28 protocol revision and keeps accepting 2025-era clients (Claude Desktop, Claude Code, Cursor) from the same factory — the era is negotiated per connection, so there is nothing to configure on either side.

Ask Claude "Is acme.com protected against email spoofing?" and it runs a full authentication audit and hands you a graded report with prioritised fixes — instead of you pasting a domain into five different web tools.

> Is ortamarco.me protected against email spoofing?

  email_auth_audit(domain="ortamarco.me")

  Grade: A (95/100) · MX: present
  ✅ SPF ends in '-all' (hard fail). 3/10 DNS lookups.
  ✅ DMARC policy is enforced ('p=reject').
  ✅ DKIM key found for selector: google.
  Top recommendation: add a TLS-RPT record for delivery-failure reports.

Why this exists

The email-security ecosystem is full of single-purpose web checkers (SPF here, DMARC there, WHOIS somewhere else) and the few MCP equivalents are locked behind paid API tokens. This server brings the whole deliverability & domain-security toolkit to any MCP client, key-free, with one headline workflow tool that does the synthesis for you.

It is the agent-facing companion to the network tools at ortamarco.me and shares the same battle-tested core (public-resolver DNS, host validation, timeouts).

Tools

ToolWhat it does
email_auth_audit ⭐One-call SPF + DKIM + DMARC + MX audit → 0–100 score, A–F grade, prioritised fixes
spf_checkParse SPF; recursively count DNS lookups vs the RFC 7208 limit of 10; flag +all/?all
dmarc_checkParse the DMARC record (every tag is returned) and flag a missing or invalid p, p=none, no rua and pct under 100
dkim_checkProbe <selector>._domainkey keys (supply selectors or use common ones)
mta_sts_checkValidate the _mta-sts TXT and the .well-known/mta-sts.txt policy + mode
tls_rpt_checkCheck the _smtp._tls TLS-RPT record
bimi_checkCheck the default._bimi BIMI record
dnssec_checkDS/DNSKEY presence + DNSSEC AD validation flag (via DoH)
dns_lookupAll record types (A/AAAA/CNAME/MX/NS/TXT/SOA) via public resolvers
ssl_certificateTLS cert issuer, validity window, days-to-expiry, SANs, fingerprint
whois_lookupRegistrar, dates, name servers, status (raw port-43 WHOIS, IANA-resolved)
reverse_dnsPTR records for an IP
ip_geolocationOffline IP geolocation (DB-IP Lite) + reverse DNS
mx_lookupMail servers (MX) with priority and resolved IPs
caa_checkWhich CAs may issue TLS certificates (CAA records)
blacklist_checkIP/domain against open-access email DNSBLs
dns_propagationCompare a record across 5 public resolvers worldwide
http_security_headersGrade a site's HSTS, CSP, X-Content-Type-Options, X-Frame-Options, Referrer-Policy, Permissions-Policy and COOP (an HSTS max-age=0 earns nothing)
analyze_email_headersParse raw headers → SPF/DKIM/DMARC verdicts + Received hop chain with delays

Every tool is read-only, declares an outputSchema and returns structuredContent (validated by the SDK) alongside human-readable Markdown (default) or JSON (response_format="json"), plus actionable error messages.

Install

Requires Node.js 20.18+. Nothing to clone — every MCP client can run it with npx.

Use it with Claude Code

claude mcp add domain-security -- npx -y domain-security-mcp-server

Use it with Claude Desktop or Cursor

Add to claude_desktop_config.json (or ~/.cursor/mcp.json) — see examples/:

{
  "mcpServers": {
    "domain-security": {
      "command": "npx",
      "args": ["-y", "domain-security-mcp-server"]
    }
  }
}

On Windows use "command": "cmd" with "args": ["/c", "npx", "-y", "domain-security-mcp-server"]. Restart the client, then ask: "Audit the email security of stripe.com."

Self-host (HTTP transport)

The same server speaks stateless Streamable HTTP for remote or multi-client use. One endpoint serves both protocol eras and there is no session state, so no Mcp-Session-Id header is issued or expected.

TRANSPORT=http npx -y domain-security-mcp-server
# POST JSON-RPC to http://127.0.0.1:3000/mcp   ·   health at /healthz

It is safe by default: it binds to 127.0.0.1 and only accepts localhost Host and Origin headers, which blocks DNS-rebinding attacks from a web page. To expose it — for example behind Coolify or Traefik — opt in explicitly:

VariableDefaultPurpose
TRANSPORTstdiohttp to serve Streamable HTTP
PORT3000Listening port
HOST127.0.0.1Bind address; 0.0.0.0 to accept remote connections
ALLOWED_HOSTS—Comma-separated hostnames the Host header may carry (e.g. mcp.example.com)
ALLOWED_ORIGINS—Comma-separated origins allowed to call from a browser
MCP_AUTH_TOKEN—If set, every request needs Authorization: Bearer <token>

Binding to a non-loopback address without ALLOWED_HOSTS or MCP_AUTH_TOKEN works, but the server says so on stderr. With Docker (the image sets HOST=0.0.0.0):

docker build -t domain-security-mcp .
docker run -p 3000:3000 -e ALLOWED_HOSTS=mcp.example.com -e MCP_AUTH_TOKEN=change-me domain-security-mcp

Security

The tools reach out to hosts that the caller names, so every outbound connection is screened against server-side request forgery:

  • Private, loopback, link-local (cloud metadata), shared, multicast and reserved addresses are refused in every spelling, including IPv4 embedded in IPv6 ([::ffff:169.254.169.254]).
  • The check happens at connect time, on the address the socket is actually about to use, so DNS rebinding and names only an internal resolver knows are refused too. Redirects are followed by hand and every hop is re-checked.
  • Response bodies, redirects, WHOIS referrals and every network call are capped and time-limited.

Found a problem? Please open a private security advisory.

Develop

npm run dev      # tsx watch (stdio)
npm run inspect  # open the MCP Inspector against the built server
npm run build     # type-check + emit dist/
npm run typecheck # type-check only
npm test          # offline unit tests: SSRF guard, SPF/DMARC/DKIM scoring,
                  # header parsing, HTTP transport defaults
npm run smoke     # call all 19 tools on BOTH protocol eras and validate
                  # structuredContent against each tool's outputSchema

evals/ holds a 10-question LLM evaluation set (stable, verifiable) and instructions for running it — see evals/README.md.

How it works

src/
├── index.ts        # transport selection (stdio | http), v2 SDK entry points
├── server.ts       # factory: registers every tool on one McpServer
├── core/           # pure logic, no MCP coupling — reusable & testable
│   ├── validate.ts # input validation and the address classifier
│   ├── netguard.ts # connect-time SSRF guard, redirect-safe fetch, capped bodies
│   ├── dns.ts      # public-resolver DNS + DoH client
│   ├── net.ts      # MX, CAA, DNSBL and propagation checks
│   ├── tls.ts      # certificate inspection and trust
│   ├── whois.ts    # port-43 WHOIS with IANA/registrar referral
│   ├── http.ts     # security-header grading
│   ├── geoip.ts    # offline IP geolocation on DB-IP Lite (each file read on first use)
│   ├── email-headers.ts  # raw header parsing and hop timing
│   └── email-auth.ts  # SPF/DKIM/DMARC/MTA-STS/TLS-RPT/BIMI/DNSSEC + scoring
└── tools/          # thin MCP wrappers (Zod schemas, descriptions, formatting)

The core/ layer is deliberately free of any MCP types, so the exact same logic powers both this server and the web tools on ortamarco.me.

Credits

IP Geolocation by DB-IP. ip_geolocation uses the free DB-IP "IP to City Lite" database, licensed under CC BY 4.0 and installed as the @ip-location-db/dbip-city-mmdb package; the credit also appears in the tool's description and Markdown output. The database has no time zone, so time_zone is estimated from the coordinates with @photostructure/tz-lookup (CC0).

License

MIT © Marco Orta

Frequently asked questions

What is Domain Security MCP Server?

Audit a domain's email and web security: SPF, DKIM, DMARC, MTA-STS, DNSSEC, TLS, WHOIS. No API keys.

How do I install Domain Security 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. Domain Security MCP Server runs locally from the npm package domain-security-mcp-server with the command npx -y domain-security-mcp-server@1.2.5.

Is Domain Security MCP Server free and open source?

Yes. Domain Security 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 Domain Security MCP Server support remote (HTTP) connections?

No remote endpoint is listed for Domain Security MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does Domain Security MCP Server provide?

Domain Security MCP Server provides 18 tools, including analyze_email_headers, bimi_check, blacklist_check, and caa_check. See the full tool list for descriptions and parameters.

How is Domain Security MCP Server's trust score calculated?

Domain Security MCP Server scores 68 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

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server