
Domain Security
io.github.OrtaMarco由 GitHub 账号 OrtaMarco 发布v1.2.3更新于 Oct 24, 2026
Audit a domain's email and web security: SPF, DKIM, DMARC, MTA-STS, DNSSEC, TLS, WHOIS. No API keys.
概览
本地运行的 MCP 服务器,让助手审计域名的邮件与网站安全(SPF、DKIM、DMARC、MTA-STS、DNSSEC、TLS、WHOIS),并给出评分报告。
- 可以做什么
- 一次调用完成邮件认证审计,给出 0–100 分、A–F 等级和按优先级排列的修复建议,并支持单独的 SPF、DMARC、DKIM、MTA-STS、TLS-RPT、BIMI 检查及基于 DoH 的 DNSSEC 验证。查询各类常见 DNS 记录、MX 邮件服务器、CAA 记录、反向 DNS、IP 地理位置和 WHOIS 注册信息。检查 TLS 证书的签发者、有效期、到期天数和 SAN,并在多个公共解析器之间比对同一条记录。为网站的 HTTP 安全响应头评级,并把原始邮件头解析为 SPF/DKIM/DMARC 结论及 Received 跳转链。用公开的邮件 DNSBL 检查 IP 或域名。
- 适用场景
- 适合让助手诊断某域名为何容易被伪造、邮件进入垃圾箱或认证失败,并给出具体的记录级修复方案。也适合快速做 DNS、证书、WHOIS 和 HTTP 响应头检查,免去在多个网页工具间反复粘贴域名。
- 运行要求
- 以 npm 包形式通过 npx 在本机运行,需要 Node.js 20.18 或更高版本。无需 API 密钥或账号。需要访问公共 DNS 解析器、WHOIS 的 43 端口以及目标主机的出站网络。可选的 HTTP 模式通过 TRANSPORT、PORT、HOST、ALLOWED_HOSTS、ALLOWED_ORIGINS 和 MCP_AUTH_TOKEN 配置。
安装
在 SourceWeft 中
- 打开 控制台中的 Domain Security,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
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
来源:README.md,提交 928e133
工具
0版本历史
3- v1.2.3最新Oct 16, 2026
- v1.2.2Oct 7, 2026
- v1.2.1Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
