
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 分
