
Domain Security
io.github.OrtaMarcoPublished by GitHub account OrtaMarcov1.2.3Updated Oct 24, 2026
Audit a domain's email and web security: SPF, DKIM, DMARC, MTA-STS, DNSSEC, TLS, WHOIS. No API keys.
Overview
A local MCP server that lets an assistant audit a domain's email and web security — SPF, DKIM, DMARC, MTA-STS, DNSSEC, TLS, WHOIS — and return a graded report.
- What you can do
- Run a one-call email authentication audit with a 0–100 score, A–F grade and prioritised fixes, plus individual SPF, DMARC, DKIM, MTA-STS, TLS-RPT and BIMI checks and DNSSEC validation via DoH. Look up DNS records of all common types, MX servers, CAA records, reverse DNS, IP geolocation and WHOIS registration data. Inspect TLS certificates for issuer, validity, expiry and SANs, and compare a record across several public resolvers. Grade a site's HTTP security headers and parse raw email headers into SPF/DKIM/DMARC verdicts with the Received hop chain. Check IPs or domains against open email DNSBLs.
- When to use it
- Useful when you want an assistant to diagnose why mail from a domain is spoofable, lands in spam, or fails authentication, and to get concrete record-level fixes. Also handy for quick DNS, certificate, WHOIS and HTTP-header checks without pasting a domain into several web tools.
- Requirements
- Runs locally as an npm package via npx; Node.js 20.18 or newer. No API keys or accounts. Outbound network access to public DNS resolvers, WHOIS port 43, and the target hosts is needed. Optional HTTP mode is configured with TRANSPORT, PORT, HOST, ALLOWED_HOSTS, ALLOWED_ORIGINS and MCP_AUTH_TOKEN.
Installation
In SourceWeft
- Open Domain Security in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
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.
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
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
Use it with Claude Desktop or Cursor
Add to claude_desktop_config.json (or ~/.cursor/mcp.json) — see examples/:
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.
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:
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):
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
evals/ holds a 10-question LLM evaluation set (stable, verifiable)
and instructions for running it — see evals/README.md.
How it works
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
Source: README.md at commit 928e133
Tools
0Version history
3- v1.2.3LatestOct 16, 2026
- v1.2.2Oct 7, 2026
- v1.2.1Sep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
