Dns

io.github.ofershap由 GitHub 帳號 ofershap 發布v1.0.1更新於 Oct 24, 2026

MCP server for DNS lookups, reverse DNS, WHOIS, and domain checks — zero auth, zero config

已驗證STDIO僅桌面開發者工具安全與監控

概覽

AI 產生的概覽

讓助理對網域和 IP 位址執行 DNS 查詢、反向 DNS、名稱伺服器檢查與 WHOIS 查詢。

可以做什麼
提供多個 DNS 記錄查詢工具:dns_lookup 支援 A、AAAA、MX、TXT、NS、CNAME、SOA、SRV 與 PTR 記錄;reverse_dns 對 IP 位址做 PTR 反向查詢;resolve_all 一次回傳 A、AAAA、MX、TXT、NS 與 CNAME;check_nameservers 回傳 NS 記錄;whois 查詢註冊資訊,並依 IANA 轉介到註冊商。它使用 Node.js 內建 DNS 解析與公開 WHOIS 伺服器。
適用情境
適合開發過程中需要查看 DNS 記錄或網域歸屬的情境,例如透過 MX 記錄排查郵件投遞、檢查新網域的名稱伺服器,或用 WHOIS 調查可疑網址。
執行需求
以 npm 套件(mcp-server-dns)形式透過 stdio 在本機執行,通常用 npx 啟動,因此需要 Node.js。未宣告任何帳號、API 金鑰、環境變數或標頭。DNS 與 WHOIS 查詢需要網路存取。
安裝前請注意
查詢會送往 DNS 解析器與公開 WHOIS 伺服器,因此你查詢的網域和 IP 位址會離開本機。這些工具是唯讀的,且不要求任何憑證。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Dns,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

mcp-server-dns

[npm version] [npm downloads] [CI] [TypeScript] [License: MIT]

DNS lookups, reverse DNS, WHOIS, and domain checks from your AI assistant. No API keys, no config. Powered by Node.js built-in DNS.

bash
npx mcp-server-dns

Works with Claude Desktop, Cursor, VS Code Copilot, and any MCP client. Uses Node.js native dns module, so there's nothing to sign up for.

[MCP server for DNS lookups, WHOIS queries, and domain checks]

Demo built with remotion-readme-kit

Why

DNS and WHOIS lookups come up more often than you'd think during development. Debugging email delivery? You need MX records. Setting up a new domain? Check the nameservers. Investigating a suspicious URL? WHOIS tells you who owns it. The existing MCP options for this require paid API keys (like WhoisXML API). This server uses Node.js built-in DNS resolution and public WHOIS servers, so it works out of the box with zero accounts or credentials.

Tools

ToolWhat it does
dns_lookupLook up A, AAAA, MX, TXT, NS, CNAME, SOA, SRV, or PTR
reverse_dnsPerform reverse DNS (PTR) lookup on an IP address
resolve_allResolve A, AAAA, MX, TXT, NS, CNAME in one call
check_nameserversGet nameserver (NS) records for a domain
whoisQuery WHOIS data (follows IANA referrals to registrar)

Quick Start

Cursor

Add to .cursor/mcp.json:

json
{  "mcpServers": {    "dns": {      "command": "npx",      "args": ["-y", "mcp-server-dns"]    }  }}

Claude Desktop

Add to claude_desktop_config.json:

json
{  "mcpServers": {    "dns": {      "command": "npx",      "args": ["-y", "mcp-server-dns"]    }  }}

VS Code

Add to user settings or .vscode/mcp.json:

json
{  "mcp": {    "servers": {      "dns": {        "command": "npx",        "args": ["-y", "mcp-server-dns"]      }    }  }}

Examples

  • "What are the DNS records for example.com?"
  • "Do a reverse DNS lookup on 8.8.8.8"
  • "Show me the WHOIS info for github.com"
  • "What nameservers does cloudflare.com use?"
  • "Resolve all record types for google.com"
  • "Check the MX records for my-company.com"

Development

bash
git clone https://github.com/ofershap/mcp-server-dns.gitcd mcp-server-dnsnpm installnpm testnpm run build

See also

More MCP servers and developer tools on my portfolio.

Author

[Made by ofershap]

[LinkedIn] [GitHub]


README built with README Builder

License

MIT © 2026 Ofer Shapira

來源:README.md,提交 f557553

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分