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 分